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 01-28-2004, 10:48 AM   #1
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
PHP Question...

why the hell, is it when I have an error in the coding and I upload it and go to the page, it shows up completely BLANK/WHITE and says nothing... If I go to view source, it shows some html tags and that is it...

Awhile back, it used to say what type of error, and on what line it is on... but now, if I forget a semi colon for example, it doesn't say anything, its just completely blank..

is there a code to turn the error display back on or some shit?

thx
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:50 AM   #2
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
Try putting this at the top of your script(s)

PHP Code:
@ini_set('display_errors''1');
error_reporting(E_ERROR E_WARNING E_PARSE); 
That will limit the type of errors it displays... you can also do this one to report ALL errors.

PHP Code:
error_reporting(E_ALL); 
If you have access to the php.ini it is better to change display_errors to '1' instead of doing @ini_set('display_errors', '1');
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:55 AM   #3
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by JSA Matt
Try putting this at the top of your script(s)

PHP Code:
@ini_set('display_errors''1');
error_reporting(E_ERROR E_WARNING E_PARSE); 
That will limit the type of errors it displays... you can also do this one to report ALL errors.

PHP Code:
error_reporting(E_ALL); 
If you have access to the php.ini it is better to change display_errors to '1' instead of doing @ini_set('display_errors', '1');
thanks for the effort man, but its STILL doing the same thing i tried both of them...
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:56 AM   #4
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
Is the code you are running php only or is it html + php, are you parsing .php extension, or something else like .html for php?
__________________

Take Luck!
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:57 AM   #5
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
If you take out the @ before ini_set does it return an error? : )

Do you have access to the php.ini file?
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:58 AM   #6
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by liquidmoe
Is the code you are running php only or is it html + php, are you parsing .php extension, or something else like .html for php?
it is HTML + php...

its the standard .php extension.
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 10:59 AM   #7
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by JSA Matt
If you take out the @ before ini_set does it return an error? : )

Do you have access to the php.ini file?
no, and no.
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:02 AM   #8
block
Confirmed User
 
Join Date: Jan 2004
Location: Winnipeg, Canada - *cough* check sig *cough*
Posts: 1,258
I had some problems like this one time and it was because in my echo I had used "" instead of ' '.
__________________

ICQ - 19961769
block is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:02 AM   #9
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
Quote:
Originally posted by galleryseek


no, and no.
Make a seperate file and put nothing but this code in it:

PHP Code:
info.php

<?php
phpinfo
();
?>
Run that script from your server and tell me if the variable 'display_errors' is set to 'Off'
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:04 AM   #10
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
You may want to turn on error notices while debugging this, also does the HTML come up or is it completely blank?
__________________

Take Luck!
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:04 AM   #11
Nysus
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 7,817
Quote:
Originally posted by JSA Matt
Run that script from your server and tell me if the variable 'display_errors' is set to 'Off'
It's so annoying not having access to everything.

Good luck.

Cheers,
Matt
Nysus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:05 AM   #12
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Try running the browser WITHOUT Call of Duty going in a background window.
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:09 AM   #13
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by JSA Matt


Make a seperate file and put nothing but this code in it:

PHP Code:
info.php

<?php
phpinfo
();
?>
Run that script from your server and tell me if the variable 'display_errors' is set to 'Off'
display_errors are both set to On (for local and master value)

display_startup_errors are both set to off

error_reporting are both set to "81"

html_errors On On

ignore_repeated_errors Off Off
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:11 AM   #14
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by liquidmoe
You may want to turn on error notices while debugging this, also does the HTML come up or is it completely blank?
i've tried turning on the errors from what people suggested in this thread...

and only the very initial HTML coding is displayed...
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:12 AM   #15
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
Quote:
Originally posted by galleryseek


display_errors are both set to On (for local and master value)

display_startup_errors are both set to off

error_reporting are both set to "81"

html_errors On On

ignore_repeated_errors Off Off
I'm all out of ideas man... i've had this problem many times but the first code I posted always fixed it.

Trying contacting your host and ask them about it.

The error_reporting on my server is set to '2047'.... not sure if that will help you at all
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:12 AM   #16
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by gornyhuy
Try running the browser WITHOUT Call of Duty going in a background window.
lol, i tried deleting it man.. that only lasted for 2 days... wanna play?
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:13 AM   #17
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally posted by JSA Matt


I'm all out of ideas man... i've had this problem many times but the first code I posted always fixed it.

Trying contacting your host and ask them about it.

The error_reporting on my server is set to '2047'.... not sure if that will help you at all
yeah, thanks for the help though.
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 11:13 AM   #18
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
Make it:

html

php

html

See if the php is returning any results and if the second chunk of html is being displayed, also make sure that you have ErrorLog enabled for the domain in your httpd.conf and tail -f the errorlog to see if apache is having issues parsing something or if its a more critical error than just a php coding issue.
__________________

Take Luck!
liquidmoe 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.