Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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 August 6th, 2004, 10:34 AM
Registered User
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems now with PHP

I was writing a few days ago about a mySQL problem, that I never resolved, I think now that that was related to my present PHP problem.

I have just started to go through "Beginning PHP, Apache, MySQL Web Development" I have installed Apache, PHP and mySQL on my computer. I get a positive response for the test files, index.html and phptest.php "If this works we did it" and "If this works we really did it".

Going on to chapter 2 I have no problems with the section, 'using PHP within HTML'. However, when getting on to 'Using URL Variables' either writing out the code myself or pasting in the code downloaded from Wrox, I can't get it to work. i.e. when you have the file, movie1.php displayed in the browser, and "click here to see information about my favorite movie!" I get "page cannot be found". The address bar reads http://localhost/moviesite.php?favmovie=

I read the part about register_globles and I have tried it both with that 'On and Off' I've tried many other things too but to no avail.

Any ideas?

Regards, Henry

 
Old August 6th, 2004, 11:41 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I'm not sure you'll be able to find help in this forum, as I don't think any of us answering questions own that book.

Try the book's forum, I've seen most, if not all of that book's authors hanging around over there.
http://p2p.wrox.com/book-asp-net-website-programming-problem-design-solution-23/0

HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old August 10th, 2004, 01:27 AM
Registered User
 
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
I found the examples are working fine at my system.
Please reconfirm the given values:

1. register_globals = Off
2. allow_call_time_pass_reference = Off
3. error_reporting = E_ALL
4. log_errors = On
5. register_argc_argv = Off
6. session.auto_start = 0
7. session.bug_compat_42 = 0

with the corresponding values in your php.ini file at "C:\Program Files\Apache Group\Apache2\bin"

Try this and let me know if u succeed.

Regards,
Sharad
 
Old August 10th, 2004, 06:41 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

if that .php files is not passing PHPSESSID; u may put
{ session.auto_start = 1 } on ur localhost
( not suggested by php for deployment servers )

some files (not properly written) will get2work when we set
{ output_buffering = On }

if these not work; try2modify settings of %cookies% also u can compare and check values of php.ini u've probalbly h've in a php installation archieve (.zip) on ur hdd
check for browscap.ini path also there in php.ini

4getting more involved (lastly) u can open problematic .php files in a homesite or dreamweaver (code-coloring!) etc. and try2understand and follow the php code they've written
 
Old August 11th, 2004, 08:31 AM
Registered User
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sharad and anshul,
Thank-you both for your interest and help. And help you did. I can now run all of the PHP scripts that are in the first part of the book 'Beginning AMP'. As I made all of the changes at once though I'm not sure which change in the php.ini file did the trick but perhaps a combination anyway.

However the problem I was having earlier see http://p2p.wrox.com/topic.asp?TOPIC_ID=16918
 has not been solved (I really thought both things would be related and fixed at the same time)The program works on my web site but I cannot get it to work locally. Maybe some changes to my mySQL configuration files are needed?

 Thanks again for all your help.
 Cheers, Henry






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with PHP !! Super_Man BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 November 9th, 2008 12:21 PM
PHP & IE 6 Problems rdmapes PHP How-To 0 February 22nd, 2007 12:04 PM
php mail() problems Morrislgn Beginning PHP 1 August 9th, 2004 03:55 PM
PHP PROBLEMS sedetti Beginning PHP 2 May 13th, 2004 12:26 PM
hit_counter1.php problems Jams30 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 7 October 15th, 2003 12:17 PM





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