Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

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.