Page 1 of 1

phpversion

PostPosted: 04. January 2011 23:29
by michaelk46
I am having a problem running the phpversion command from my computer.

I get a blank page on execution and when I look at the page source, it shows this...

Code: Select all

<?php

phpversion();

?>

Every other PHP script I run on the computer works great and under normal circumstances I wouldn't care, but i have a script that is supposed to run a certain piece of code if the version is 5.3 or later. I think the fact that it can't pull up the info is the cause of the error I am getting. Any ideas why this is happening?

I have Windows 7 64-bit ultimate running on the computer.

Re: phpversion

PostPosted: 04. January 2011 23:41
by michaelk46
Nevermind... it needed the echo command...

Re: phpversion

PostPosted: 04. January 2011 23:44
by Altrea
But that can't be the reason that you get the opening and close php Tags displayed in your Browser sourcecodeview.