PDA

View Full Version : Resolved Path issues (I believe) when trying to run a php app on IIS


Daniellez
10-08-2009, 05:15 PM
**RESOLVED by changing the backslashes to forward: D:/W3Sites/myIISsite/www/FileManager/

When running this script on a Linux server, you enter something similar in the config file:

$installed_path = "/home/mysite/public_html/FileManager/";

When I enter the path on a IIS server running php, I enter the following:

$installed_path = "D:\W3Sites\myIISsite\www\FileManager/";

...which I found by using <?php echo getcwd(); ?>

It may be worth mentioning that this script stores sessions, which is declared in the config file here:

$session_save_dir = $installed_path."tmp";

Can anyone provide insight and offer a possible solution?