Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2009, 02:17 AM
Registered User
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to phongtv28
Default Help - Beginning PHP6 Apache MySQL Web Development

I've finished configuring Apache Apache, PHP and MySQL. But when I try to run first program, the browsers show as follows:

<html> <head> <title> My First PHP Program </ title> </ head> <body> <? Php echo "I'ma lumberjack.";? > </ Body> </ html>

Could someone explain this error to me? How to correct?

Last edited by phongtv28; June 22nd, 2009 at 02:23 AM..
 
Old June 22nd, 2009, 11:10 AM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, to ensure your setup is all working fine, run a test.php file with nothing but the following codes:

<?php
phpinfo();
?>

if you see a list of php functions/settings/variables, it means your server is talking to php. next scroll through the list and you should be able to find a section for mysql if its talking to mysql.

otherwise, you have to review your installations.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with easyphp3 and Beginning PHP, Apache, MySQL Web Development Rooibos BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 10th, 2009 06:42 AM
Chapter 16 Beginning php5, apache, mysql, web dev charlie2450 Beginning PHP 1 September 13th, 2008 02:07 AM
Beginning PHP, Apache, MySQL® Web Development beolay2k BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 29th, 2008 07:32 PM
Beginning PHP, Apache, MySQL Web Development rich_m BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 January 7th, 2007 01:16 PM
Chapter 9 - Apache, PHP and Mysql Development AMP_Engineer Beginning PHP 1 September 25th, 2004 11:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.