Hi,
Try this:
$str = 'HTMLFiles/MenuDisplay.php?var=Thai%20Image&Item=1797&Action=add';
$str = preg_replace("/(\&Item.*)$/","", $str);
this should work.
Cheers,
V
-Original Message-
From: Johny Burns <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Sent: Thu, 24 Jan 2008 11:
Try this, it should work.
//Get the file from the remote location
function getFile($host, $resource, $port)
{
??? $hdr = '';
??? $file_cont = '';
??? $fh = fsockopen($host, $port, $errno, $errstr, 300);
???
??? if(! $fh)
??? {
??? ??? return "error";
??? } else {
??? ??? $hdr .= "GET /$resour
2 matches
Mail list logo