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 July 9th, 2003, 07:58 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eoffshore
Default Works fine on web server, not on dev machine

I have some PHP applications (mostly php3) that works fine on a public web server, but not on my development machine. Looks like the web server is PHP Version 4.2.3, while the test machine is running PHP Version 4.3.2.

Files with the *.PHP3 extension appear to not process at all. If I change the extension to *.PHP, at least some processing happens, although I get a few "Undefined variable" errors. Suggestions?

The Meek Shall Inherit the Gulag
 
Old July 9th, 2003, 09:32 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

As for your undefined variables this is a php.ini error. Under the 'error_reporting' line modify it to say the following:

error_reporting =E_ALL & ~E_NOTICE

If you don't have access to the php.ini file in this case, you might be able to modify error_reporting at runtime.

Here's a look at ini_set() which will change ini values at runtime.
http://www.php.net/manual/en/function.ini-set.php

The .php3 error is coming up because your web server is not configured to have php parse .php3 extensions. You would need a .htaccess file which will work depending on your server os. After configuring one of those you'll be able to have php parse any extension you want. Check with your ISP technical support for OS requirements. They should be able to tell you exactly what you need.

hth,
: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
import to simplexml works fine, but cannot output jjk2 Beginning PHP 0 March 22nd, 2008 08:36 PM
zxml.js exception in Firefox but works fine in IE lgarc BOOK: Professional Ajax ISBN: 978-0-471-77778-6 6 January 29th, 2007 05:25 AM
Javascript Works Fine in Aspx page but... vivek_inos Javascript 0 June 14th, 2006 01:57 AM
Appletviewer can't find class...but IE works fine dperry BOOK: Beginning Java 2, JDK 5 Edition 0 July 7th, 2005 10:44 AM
setting up asp web project on a dev server ak ASP.NET 1.0 and 1.1 Basics 13 March 10th, 2004 08:47 AM





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