Help Finding Errors (PHP error messages off)

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

#error

2 replies · 2,143 views · started 17 years ago · 1 min read

something else Fellow · 2,296 posts #1

Heres A Little Script To enable You to find Errors When Php error messages are turned off

(when you just see a blank screen)

<?php
 /*
 save as error.php
 usage: type in your browser http://domain.com/error.php?page=index.php
 replace domain.com with your domain
 and index.php with the page you wish to find errors on
 */
 $page = $_GET["page"];
 error_reporting *(E_ALL);
 ini_set ('display_errors', true);
 include("$page");
 ?>
 

😛

something else Fellow · 2,296 posts #2
  1. Never register globals on
  2. If you have php error messages off....* it prevents hackers from crashing your sql to get field names etc they need to inject sql*
  3. penguins can fly but only if you give them a can of redbull*
  4. forget number 3*
something else Fellow · 2,296 posts #3

also a handy tip for people who get this error message:

Parse error: syntax error, unexpected $end

normal due failing to close paragraph properly with correct symbol eg: ) or }

You Can Get around this by going to your php.ini and enable short tag opening

short_open_tag = On

This should help prevent this from happening


Your Pretty When Im Drunk! And Im Pretty Fcking Drunk

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close