I am very green with PHP so be gentle...
I have a page that runs fine on our dev server (offsite)
but when I try to run it on my local machine I see some (not all) of the PHP code, which is why I think it could be syntax related
Everything from <>strlen is visible on screen.
I've tested the phpInfo file and it works fine.
I'm not really sure what is happening so any suggestions are welcome.
I have a page that runs fine on our dev server (offsite)
but when I try to run it on my local machine I see some (not all) of the PHP code, which is why I think it could be syntax related
Code:
if(!$P) {
$P = 1; // start on page 1.
} else {
if(strspn($P,"0123456789")<>strlen($P)) { // make sure it's a number.
$P = 1;
} else {
if($P < 1) {
$P = 1;
}
}
}
Everything from <>strlen is visible on screen.
I've tested the phpInfo file and it works fine.
I'm not really sure what is happening so any suggestions are welcome.