Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- newbie: only simple PHP scripts executed
December 5, 2007, 8:38 am
rate this thread
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
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!
- » =?ISO-2022-JP?B?GyRCIighehsoQmJ1eSBjaGVhcCBuaWtlIHNob3ggTlogT1ogUjIgUjMgUjQgUjUgVE4gUklGVC...
- — Next thread in » PHP Scripting Forum