Jump to content

problems with directories


Renlok

Recommended Posts

I dont own a windows so i have no way of testing this but im building an open source script but the guy who helps me test it says that it shows errors when it references some files.

 

i have the following bit of code to build the paths to the directories includes and uploaded

$main_path	= "W:\www\WeBid\\";
$include_path = $main_path."includes/"; 
$uploaded_path = "uploaded/";
$upload_path = $main_path.$uploaded_path;

 

it seems when $include_path is used theres no problem but when $upload_path is used it leaves the 2 backslashes at the end the path is W:\www\WeBid\\uploaded/ which throws back an error i dont know why it does this.

Link to comment
https://forums.phpfreaks.com/topic/136366-problems-with-directories/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.