Qacer Posted June 21, 2003 Posted June 21, 2003 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.