RE: [PHP] String with front slashes.....O T

2005-07-19 Thread Jay Blanchard
[snip] > BTW, my daughter got her learner's permit today! Damn, you're old. ;) [/snip] You sure you want to say that today? I started late too, most of my high school friends had their children starting in their 20's ...I was into my 30's. She is my only child though. [snip] I only have a 5yo..

Re: [PHP] String with front slashes.....

2005-07-19 Thread John Nichel
Jay Blanchard wrote: BTW, my daughter got her learner's permit today! Damn, you're old. ;) I only have a 5yoso that must mean I'm still in my 20's, right? Right? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] String with front slashes.....

2005-07-19 Thread Jay Blanchard
[snip] I'd say it would be best to keep that slash out of the filename. Do a regex on the string before doing anything else preg_replace ( "/\//", "-", $string ); [/snip] That is what I ultimately told them, "Don't do that." Of course they looked at me like I was a space alien (which I am t

Re: [PHP] String with front slashes.....

2005-07-19 Thread John Nichel
Jay Blanchard wrote: 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