newbie: only simple PHP scripts executed

newbie: only simple PHP scripts executed

am 05.12.2007 09:38:31 von r_ahimsa_m

Hello,
I started learning PHP5. I use Windows XP Proffesional. I installed Apache
2.0.59, PHP 5.1.6, and EasyEclipse for PHP.
When I wrote very simple script HelloWorld.php with single 'echo' command
inside , I could see the result: Hello, world! text in a browser. I
can also see result of phpinfo - here you have header:
System Windows NT PC 5.1 build 2600
Build Date Aug 23 2006 16:31:18
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13,
string.toupper, string.tolower, string.strip_tags, convert.*, consumed,
zlib.*


The problem is that when I wrote a little more complicated script
(containing 'if's and 'include's) the .php script was not executed - I could
see source PHP commands in browser (menu > View > Source). I mean I could
see sections when peeking source of page. As I understand .... ?> sections where not processed.
I don't know why, and how to solve the problem. Please help!
/RAM/

Re: newbie: only simple PHP scripts executed

am 05.12.2007 09:56:47 von luiheidsgoeroe

On Wed, 05 Dec 2007 09:38:31 +0100, R.A.M.
wrote:
> The problem is that when I wrote a little more complicated script
> (containing 'if's and 'include's) the .php script was not executed - I
> could
> see source PHP commands in browser (menu > View > Source). I mean I could
> see sections when peeking source of page. As I understand
> > ... ?> sections where not processed.
> I don't know why, and how to solve the problem. Please help!

Only *.php files are parsed by default, so check your filename. Also, it
could be php is off in that directory (check with formentioned working
script wether it's working there).
--
Rik Wasmus