 |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6  | This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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
|
|
|
|

June 30th, 2004, 03:19 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Need help with Apache and PHP
I am new to Apache and PHP. I completely installed both Apache and PHP into my win XP. I followed the look wrote a test program to do the test. It worked fine. But the problem started when i wrote second PHP page, when i tried to test the second PHP page, the output of the page is blank.( I am sure the syntax is correct).
Problem 2. I modified the content of the first test program.( Let say the content of the first test program is " it works fine", then I modified the content to " I modified the content") When i opened the test program, the content of the page is still "it works fine".
Problem 3. I deleted all the files in the localhost folder, when I typed in http://localhost/firsttest.php in the browser, the " it works fine" text display on the web page. Is it supposed not to be displayed on the web page? because i deleted it already.
Please help me findout what went wrong. Thanks
|
|

June 30th, 2004, 04:59 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
What does your test code for the second page look like? Post a snip of it here.
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
|
|

July 3rd, 2004, 12:18 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The Test Code looks like it:
<html>
<head>
<title>testing</title>
</head>
<body>
<?php
echo " I wish this times works ";
?>
</body>
</html>
Why the ouput is blank?
|
|

July 3rd, 2004, 01:29 PM
|
|
Authorized User
|
|
Join Date: May 2004
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Your page is probably just cached. Hit refresh in your browser and the page should reload with the current contents.
If your page is still blank when you load it and refresh it, then perhaps Apache does not recognize .php files as PHP. You'll need to open httpd.conf and make sure this line contains ".php":
Code:
AddType application/x-httpd-php .php .php3 .phtml .php4
Michael K. Glass
Author, Beginning PHP, Apache, MySQL Web Development
|
|

July 9th, 2004, 10:31 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i ahve the same exact problem and for some odd reason when i load the module:
LoadModule php4_module c:/php/sapi/php4apache.dll
it either freezes or doesn't load at all an i have seen the test coding still in texteditor format rather than php
????
|
|

July 11th, 2004, 05:33 PM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problem fixed and i don't have a clue probably needed to restart it.
|
|

July 30th, 2004, 03:18 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am new to PHP and am following the "Beginning PHP, etc..." book. I have followed the directions on pps 15-16, and in Appendix I regarding the Apache install.
I get the success page when entering 127.0.0.1, but that is all I get. I have added the test/index, and still the success page, not the index.html page. When I installed Apache I accepted the defaults for server and domain name info (which were correct). When I attempt to monitor the server I cannot, but do get an error message when I restart the server which states, "Cannot load D:/php/sapi/php4apache2.dll; specified module cannot be found." I have two hard drives and I have installed apache on D.
Any clues as to what I have done wrong?
|
|

July 30th, 2004, 10:59 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Almost forgot to mention...
I read the above posts, and wanted to add that when I customized the installation per page 15 I entered:
AddType application/x-httpd-php .php .php3
(and added .phtml .php4 to the end of the above per BuzzLY's post. Of course I have made sure to add LoadModule php4_module D:/php/sapi/php4apache.dll. I have also used the refresh to no avail. The HTML looks like Yaluyahee's. Hope that the additional info helps because I am baffled.
|
|

July 30th, 2004, 11:05 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
LoadModule php4_module D:/php/sapi/php4apache2.dll (I double checked...I did added the php4_module like this, not LoadModule php4_module D:/php/sapi/php4apache.dll. Sorry.
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Php/Apache |
blackout |
PHP How-To |
1 |
August 22nd, 2006 08:16 AM |
| PHP 5.0 and Apache |
SeniorNSU |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 |
1 |
January 4th, 2006 10:26 PM |
| which is best :php with iis or php with apache? |
fromheavenz |
Beginning PHP |
4 |
September 7th, 2005 01:47 AM |
| Getting PHP and Apache to work together. |
russell_lacy |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 |
4 |
June 7th, 2004 03:00 PM |
| Apache - PHP conflict |
dpchambe |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 |
2 |
April 23rd, 2004 10:36 AM |
|
 |