Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

path to root directory?


Qacer

Recommended Posts

Hi all,

 

I have to point to a file & directory that is my root directory on my web account. I don't have full server access.

 

here is my dir structure:

 

- cgi-bin

- bin

- html

- logs

 

My OSC installation is located in: /html/osc/catalog/

 

I am trying to configure a payment module so that the files in the bin folder is seen. How would I do this?

 

I tried using ../bin, but it doesn't seem to work.

 

Also, I tested using the following PHP code:

test.php

<?php

 

define(PFPRO_EXE_PATH, './bin/pfpro');

define(LD_LIBRARY_PATH_ENV, 'LD_LIBRARY_PATH=./bin');

 

putenv(LD_LIBRARY_PATH_ENV);

 

@exec(PFPRO_EXE_PATH, $result);

$version = substr($result[0], strlen($result[0])-4, 4);

 

echo $version;  

 

?>

 

If I upload test php to the main html directory, the script works. But if I upload it to a sub-directory of the html dir (/html/osc/), it doesn't work.

 

What should I set the path to, so that it points to the /bin dir?

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...