String with front slashes.....
| From: | Jay Blanchard | Date: | Tue, 19 Jul 2005 16:16:03 +0000 |
| Subject: | String with front slashes..... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218966@lists.php.net to get a copy of this message | ||
I have the potential for strings where the string will contain a front
slash;
index_Foo_Communications_c/o_Bar_Enterprises_20050718
I want to use the string to name a text file
index_Foo_Communications_c/o_Bar_Enterprises_20050718.txt
but it always fails to open the file because of the front slash. I have
completely brain farted on how to escape this (perhaps only 2 hours of
sleep last night) and I cannot find what I am looking for in the manual.
addslashes? mysql_real_escape_string? nope...nope...ack. Coffee...where
is the coffee? What do you mean, "I didn't make any more?" Are you new
here?