PDA

View Full Version : Parse_url doesn't work


getthat
09-03-2004, 11:52 AM
Hi Guys,

I'm using the code below in a code modification but it doesn't seem to work. I guess it has something to do with parse_url. It works fine when use it in a separate non-vb php file. How can I make this work ?

// Extract the program name

$arr = parse_url('$reflink');
$newprogname = $arr['host'];
$newprogname = ereg_replace("www.","",$newprogname);

Dean C
09-03-2004, 08:18 PM
Please post your questions in the correct forum in future. Moved

getthat
09-04-2004, 07:55 AM
Somebody ???

rake
09-04-2004, 08:42 AM
lol.... if you put $reflink between single quotes the variable doesn't get expanded.

getthat
09-04-2004, 09:05 AM
OK it works. Thx again Rake :-> How come it worked in a normal php file and not in vbulletin ?

Getthat

getthat
09-04-2004, 11:24 AM
Don't bother ... made a very newby mistake :-<