...

View Full Version : error and i aint sure if i am in the rite direction on this either



sytodave88
02-08-2006, 06:08 PM
Parse error: parse error, unexpected ',' in /home/sytodave/public_html/includes/smile.php on line 90



this is the lines

made spaces betewwn so u can see it


$txt = str_replace("[ url]", "<a href=leave.php?site=$txt", $txt);
$txt = str_replace("[ url= ")," ]") ,"", $txt); <<<<<<<<<<line 90
$txt = str_replace("[*url]", ">", $txt);
$txt = str_replace("[ /url]", "</a>", $txt);

sftl99
02-08-2006, 06:22 PM
make
$txt = str_replace("[ url= ")," ]") ,"", $txt);
into
$txt = str_replace("[ url= "," ]" ,"", $txt);

you had an end ) all throughout, get rid of them and it should work.

sytodave88
02-08-2006, 06:23 PM
Warning: Wrong parameter count for str_replace() in /home/sytodave/public_html/includes/smile.php on line 89

know i am geting this

raf
02-08-2006, 10:45 PM
i think you are trying to remove all instances of [ url= "," ] inside $txt. If so, then use

$txt = str_replace('[ url= "," ]' ,'', $txt);

else post an example of an inputstring ad the desired output of the replace.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum