Quick PHP Tip
#1
Posted 13 November 2005 - 04:55 PM
http://php.net/functionname
For example:
http://php.net/echo shows info on the echo function.
It's better to post in the forums for help, rather than PMing the staff.
Follow me


#2
Posted 14 November 2005 - 12:14 AM
Microsoft: Most Intelligent Customers Realize Our Software Only Fools Teenagers
"Anything can be made to sound credible by putting it in quotes and attributing it a famous person" -Albert Einstein.



Join our whatpulse team. See this thread. Also join our Uptime-Project League; details here
Already got Firefox? Help spread the word
Mozy: Free Automatic Online Backup (Use this link and we both get 256 more megs of storage)
#3
Posted 18 November 2005 - 09:25 PM
error_reporting(E_ALL); is your friend
#5
Posted 27 November 2005 - 09:58 PM
it makes PHP show all errors. normally everything below warning level is ignored, with E_ALL on PHP for instance also shows mistyped variables
#6
Posted 27 November 2005 - 10:27 PM
#7
Posted 17 November 2008 - 09:38 PM
(:Dargs Network main site
ISTA docs
#8
Posted 09 March 2009 - 12:24 PM
I have got alot of information about functions from this
Thanx for Sharing
#9
Posted 17 October 2009 - 01:37 AM
#10
Posted 29 October 2009 - 01:46 AM
#11
Posted 30 October 2009 - 05:39 PM
Also, please keep on topic.
It's better to post in the forums for help, rather than PMing the staff.
Follow me


#12
Posted 17 December 2009 - 11:31 AM
#13
Posted 02 January 2010 - 05:28 PM
Xdebug - http://www.xdebug.org
DBG - http://dd.cron.ru/dbg
APD - http://pecl.php.net/apd
#14
Posted 16 January 2010 - 10:05 AM
I'll see if I can find the original article.
#15
Posted 05 May 2010 - 09:16 AM
- Disable register_globals and don’t rely on it in your code:
register_globals = Off
- Disable magic quotes and don’t rely on it in your code:
magic_quotes_gpc = Off
- Disable error reporting:
display_errors = Off
This is for production deployment, otherwise achievable runtime by error_reporting(0). For development and debugging, make sure you turn on the full error reporting in your code by error_reporting(E_ALL) so that you get a full grip of what’s going on with your application.
- Enable error logging and save the log file to a directory below webroot:
log_errors = On ignore_repeated_errors = On html_errors = Off error_log = /path/below/webroot/logs/php_error_log
Normally the errors will be displayed to the users / crackers when something goes wrong thus disclosing internal information about your application. Now that we have disallowed them to display publicly, enabling error logging helps capture all PHP errors and store them somewhere the users / crackers cannot access yet we can retrieve and analyze when necessary.
- Store session data below webroot:
session.save_path = /path/below/webroot/sessions
In most cases, you don’t have to worry about more than just the error logging part because the most up-to-date version of PHP has been well optimized in security by default. For example, register_globals and magic_quotes_gpc are turned off as factory settings, and session data is automatically stored outside of webroot. Other than these, feel free to override things by the ini_set() function when you feel obligated to.

Help



Promote to Article





















