0

hello all. i have this code...

@mkdir("C:\wamp\www\uma\member media\member tracks\'$memberid'") or die(mysql_error());

... it works but the folder it makes is in single quotes. i'd like to have the folder it makes have no quotes at all. its creating 'FOLDER' when i just want it to read FOLDER. i've tried...

@mkdir("C:\wamp\www\uma\member media\member tracks\\"$memberid\"") or die(mysql_error());

and

@mkdir("C:\wamp\www\uma\member media\member tracks\$memberid") or die(mysql_error());

...but they don't work properly. any ideas?

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Javvy
0

Try

@mkdir("C:\\wamp\\www\\uma\\member media\\member tracks\\".$memberid) or die(mysql_error());

On Edit:

Javvy's right... You do need the double backslash. This is because a single backslash(\) is an escape character.

Edited by sudeepjd: n/a

0

thanks Javvy. worked great. so, just to make sure i understand, when refering to a pathname in php i must always use the double backslash (since the single backslash is an escape character like Sudeepjd said) cool thanx guys

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.