Click to See Complete Forum and Search --> : a simple echo script gives error message


statusquo
04-14-2007, 07:55 PM
Hi,

I installed php5 and apache webserver on a winxp platform.

I wrote a simple script to put a few lines of text on a page.... code is below.

At first, I got error messages about various dll's not being loaded (namely, libmysql.dll, php_pdo.dll, & php_sqlite.dll), but after I clicked ok after each message, the page would display the text in my echo statement.

I copied each dll into my windows directory and the messages dissapeared one by one. After putting the 3rd dll file into my windows directort, the page refused to load correctly and I got the following error message in my web browser :

PHP.EXE "C:\PROGRAM FILES\apache\htdocs\INDEX.PHP" returned nothing

The code for index.php looks like this:

<?
echo "This is a test page";
?>

Has anyone ever seen this and/or know what could cause this.... and what I can do to fix this? Any help is greatly appreciated.

Piranha
04-14-2007, 08:17 PM
To get PHP and Apache to work together you should look at this (http://se.php.net/manual/en/install.windows.apache2.php) manual page. Chose to install as an Apache module.

About the code you should not use short tags, in other words that code should look like this:

<?php
echo "This is a test page";
?>