Hi,
I have a scalar variable, "$url" that may or not contain "http://" in
front of it. If it is not there, I'd like to add it. Unfortunately,
this code isn't working for me with PHP 4.
if (strpos(strtolo wer($url), "http://") != 0) {
$url = "http://$url";
} // if
How can I correct?
Thanks, - Dave
I have a scalar variable, "$url" that may or not contain "http://" in
front of it. If it is not there, I'd like to add it. Unfortunately,
this code isn't working for me with PHP 4.
if (strpos(strtolo wer($url), "http://") != 0) {
$url = "http://$url";
} // if
How can I correct?
Thanks, - Dave
Comment