GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP Question... (https://gfy.com/showthread.php?t=227326)

galleryseek 01-28-2004 10:48 AM

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

JSA Matt 01-28-2004 10:50 AM

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');

galleryseek 01-28-2004 10:55 AM

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...

liquidmoe 01-28-2004 10:56 AM

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?

JSA Matt 01-28-2004 10:57 AM

If you take out the @ before ini_set does it return an error? : )

Do you have access to the php.ini file?

galleryseek 01-28-2004 10:58 AM

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 01-28-2004 10:59 AM

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. :winkwink:

block 01-28-2004 11:02 AM

I had some problems like this one time and it was because in my echo I had used "" instead of ' '.

JSA Matt 01-28-2004 11:02 AM

Quote:

Originally posted by galleryseek


no, and no. :winkwink:

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' :)

liquidmoe 01-28-2004 11:04 AM

You may want to turn on error notices while debugging this, also does the HTML come up or is it completely blank?

Nysus 01-28-2004 11:04 AM

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

gornyhuy 01-28-2004 11:05 AM

Try running the browser WITHOUT Call of Duty going in a background window. :Graucho

galleryseek 01-28-2004 11:09 AM

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 01-28-2004 11:11 AM

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...

JSA Matt 01-28-2004 11:12 AM

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 :)

galleryseek 01-28-2004 11:12 AM

Quote:

Originally posted by gornyhuy
Try running the browser WITHOUT Call of Duty going in a background window. :Graucho
lol, i tried deleting it man.. that only lasted for 2 days... wanna play? :(

galleryseek 01-28-2004 11:13 AM

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.

liquidmoe 01-28-2004 11:13 AM

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.


All times are GMT -7. The time now is 08:26 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123