note 30664 deleted from function.file by felipe

From: Date: Mon, 10 Dec 2007 18:19:36 +0000
Subject: note 30664 deleted from function.file by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133270@lists.php.net to get a copy of this message
Note Submitter: webmaster AT the-afterburner DOT de ---- If you want to send a URL via GET to a script and want to open this URL via file() there are problems if there is a & sign in the URL, all after die & sign is cut. TO fix this an get it working with the & sign in the URL @$myopenedcontent= implode("", file ("$url")); $myopenedcontent=eregi_replace('&','{KU}',$myopenedcontent); so all & signs are replaced by {KU} before use the file() function you have to rereplace it, the whole code: $url=eregi_replace('{KU}','&,$url); @$myopenedcontent= implode("", file ("$url")); $myopenedcontent=eregi_replace('&','{KU}',$myopenedcontent); echo "$myopenedcontent"; hope it is helpful ;) Bye Afterburner

« previous php.notes (#133270) next »