Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 9th, 2003, 07:58 AM
Registered User
 
Join Date: Jul 2003
Location: Worland, WY, USA.
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
Reply With Quote
  #2 (permalink)  
Old July 9th, 2003, 09:32 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
:::::::::::::::::::::::::::::::::
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:54 PM.


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