RE: [PHP] Re: PHP doesnt work!
| From: | Warren Vail | Date: | Sun, 04 Jul 2004 19:13:06 +0000 |
| Subject: | RE: [PHP] Re: PHP doesnt work! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189672@lists.php.net to get a copy of this message | ||
PHP relies on a server side interpreter that normally runs under an apache
web server and you reference those files by having your browser fetch those
files through a URL that maps to your PHP files, beginning with something
like http://hostname.com/program.php. If you opened
the files directly with
your browser, you have bypassed the apache server and PHP interpreter, which
of course, would not allow the PHP code to actually be executed. Not real
sure this is what you might have done, but it's a common mistake.
good luck,
Warren Vail
warren@vailtech.net
-----Original Message-----
From: Jason Barnett [mailto:jasbarne@indiana.edu]
Sent: Saturday, July 03, 2004 9:13 PM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP doesnt work!
Gmo Baez wrote:
> Hello, I have a Freebsd server 5.2.1 with Apache 2.0.48 and PHP 4.3.4.
>
> After the installation everything looks normal, but after i created some
PHP
> web files to test it, I found that PHP is not working.
> When i open de PHP document with the browser i only receive a blank page.
> But if i check the source code, all the PHP code is in there.
What kind of code are you using to test the script? Not every script
outputs html... have you tried phpinfo()? It is unclear what your
problem may be from what you've given us.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php