I am using php to check if a URL is available using th if file exists function.
Help with Code Tags PHP Syntax (Toggle Plain Text)
if(file_exists(" http://www.domain.jsp")){$lines = file('http://www.domain.jsp');}else{$lines= echo $variable}<strong class="highlight">if</strong>(file_exists(" http://www.domain.jsp"))
{
$lines = file('http://www.domain.jsp');
}else{
$lines= echo $variable
}
But it keeps giving me errors...is there an alternative to if file exists?
Thanks
Last edited by chrishirst; 01-15-2010 at 10:59 AM..
|