Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-22-2006, 05:33 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
:stoned PHP guru needed

What's the code I need to put in the top of my page I want to debug to see the errors ?

<?
ini_set("error_reporting", E_YOUR_ERROR_LEVEL);
echo ini_get("error_reporting");
?>


and

error_reporting(E_ALL);
error_reporting(E_PARSE);

doesn't works ...
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2006, 05:43 PM   #2
montythestrange
Confirmed User
 
Join Date: Jun 2005
Location: NoCal
Posts: 184
error_reporting(E_ALL); will work However, that will only show you parsing errors or using variables that are not set, and things like that. It will not show you logic errors -- that you need to debug yourself, usually by outputting variables in your script. I recommend using http://www.php.net/var_dump
__________________
If you put instant coffee in the microwave, do you go back in time?



DatingGold Rocks!
montythestrange is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2006, 05:45 PM   #3
kaktusan
Confirmed User
 
kaktusan's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Pornblogspace.com
Posts: 334
try this:

ini_set('display_errors',E_ALL);
ini_set('display_startup_errors',1);

and make sure somewhere down the line in your script you are not turning off the debugging..
kaktusan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.