Re: [PHP] CleanUp!!
First, make sure to use str_replace whenever possible instead of ereg_replace. It's faster: $out_file = str_replace("http://";, "", $in_file); etc... -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org - Original Message - From: "Erich Kolb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 11:11 AM Subject: [PHP] CleanUp!! > How can I clean this up? > $in_file = http://somedomain.com/somefile.php; > > $out_file = ereg_replace("http://";, "", $in_file); > $out_file = ereg_replace("/","-", $out_file); > $out_file = "/www/dev/".$out_file; > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CleanUp!!
How can I clean this up? $in_file = http://somedomain.com/somefile.php; $out_file = ereg_replace("http://";, "", $in_file); $out_file = ereg_replace("/","-", $out_file); $out_file = "/www/dev/".$out_file; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cleanup script
that's funny...the function oh_god_im_so_lazy does the job i think jeje... >From: "Liam MacKenzie" <[EMAIL PROTECTED]> >To: "php" <[EMAIL PROTECTED]> >Subject: [PHP] Cleanup script >Date: Sun, 18 Aug 2002 09:18:50 +1000 > >I just had a massive open house party... > >Is it possible to write a PHP script to collect all the bottles and >cans, mop the floor, fumigate the carpet and make me lunch? > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php _ Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cleanup script
I just had a massive open house party... Is it possible to write a PHP script to collect all the bottles and cans, mop the floor, fumigate the carpet and make me lunch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php