IT Community - Software Programming, Web Development and Technical Support

Common PHP errors to identify

This is a discussion on Common PHP errors to identify within the PHP Programming forums, part of the Web Development category; * Parse error: parse error in xxxx - This error message refers to an error in the PHP syntax. You probably forgot ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-07-2007, 06:24 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Common PHP errors to identify

* Parse error: parse error in xxxx - This error message refers to an error in the PHP syntax. You probably forgot to end a line with ; or you have too many brackets opened or closed ({).
* Fatal error: Call to unsupported/undefined function ... in xxxx - This error means that the function your script was going to use isn't defined in the current PHP version with modules, or if you're using user-defined functions that your function hasn't been defined yet (this is usually caused if you forgot to include the function definition).
* Warning: Wrong parameter ... for ... in xxxx on line 8 - you have handed over too many (or the wrong) parameters to the function. If it's a built-in php-function, check the manual; to see if it's a user-defined function, then recheck your code.
* Warning: Cannot add header information - header was already sent ... in xxxx - you had some text output first (e.g. the doctype declaration or <html>) and called the function header() afterwards. This is most often the case when using cookie stuff. Remember you can not use header() twice!
* Parse error: parser stack overflow in xxxx - PHP is out of memory - this usually happens if you built an eternal loop, especially when using include statements.
* Warning: fopen("file.txt","r+") - No such file or directory - the requested file or directory doesn't exist. Check the spelling (accuracy counts here).
* SAFE MODE Restriction in effect. The script whose uid is 531 is not allowed to access... - The safe mode is switched on. Some functions in the upload systems can't be used. Usually your webhost has put safe mode in place (often not correctly configured). Try switching silly_safe_mode on.

xxxx - denotes PHP file path e.g C:\Apache\htdocs\index.php
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2007, 07:14 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: Common PHP errors to identify

hi all,

If u want more,

You can get from in my posts....click here
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
TFS Errors arjkhanna Server Management 46 09-29-2008 06:01 AM
What are the different types of errors in php? sundarraja PHP Programming 6 01-29-2008 05:36 PM
Oracle Errors kingmaker Database Support 21 11-14-2007 02:33 AM
Classification of Errors by Severity vadivelanvaidyanathan Software Testing 0 04-02-2007 03:24 AM
Most common software errors vadivelanvaidyanathan Software Testing 0 03-23-2007 01:20 AM


All times are GMT -7. The time now is 02:28 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0