newbie: only simple PHP scripts executed

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 <body>, 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,  

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 <?php ... ?> sections when peeking source of page. As I understand <?php  
... ?> sections where not processed.
I don't know why, and how to solve the problem. Please help!

Re: newbie: only simple PHP scripts executed

Quoted text here. Click to load it

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

Site Timeline