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 October 15th, 2007, 03:00 PM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Initial setup PHP5

I'm trying to work my way through the "Beginning PHP5, Apache, MySql Web Development" book by Elizabeth Naramore, et. al. -- i.e. a newbie. I'm having trouble getting Apache to recognize my php code files on my HP Windows XP machine. It has service pack 2 and is current with updates.

I followed the examples in the book and added a DocumentRoot line and a directory line to the httpd.conf file. The index.html file worked witin IE7 but not with Fire Fox when I used the http://localhost URL. Next I created the second check which had me create a php testing file phptest.php in the same directory as the index.html file. Which included the following code: --

<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
<BODY>
<?php
echo "If this works, we <i>really<-i> did it!";
?>
</BODY>
</HTML>

When I used the http://localhost/phptest.php a 404 url not found message resulted. Can any one help me.

RJD (bob daniels)
 
Old October 16th, 2007, 05:11 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

what directory is phptest.php in? It should be inside /htdocs directory if you have Apache 2.2 installed.

www.crmpicco.co.uk
www.ie7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
The ConnectionString property has not been initial mar0364 ASP.NET 1.0 and 1.1 Basics 6 March 17th, 2006 11:24 PM
Re-Initial variable to zero akibaMaila VB.NET 2002/2003 Basics 3 July 12th, 2005 01:41 PM
Initial Apache setup fahrionm BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 June 7th, 2004 03:02 PM
Unable to Initial COM Object jonty_11 Visual C++ 1 April 22nd, 2004 05:17 PM





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