Web Hosting Talk







View Full Version : PHP Secrets?


volize
04-22-2003, 12:42 PM
Hi,

Do you know of any PHP secret functions, tips or advanced functions like error_reporting(15); , it`s not very secret, but was not in my Beginning with PHP book... :D

ub3r
04-22-2003, 01:38 PM
hmmm.....

system() is pretty nifty, it can be used to execute shell commands via the apache nobody user. I have yet to test it out, but I believe if the server is on windows, that you can reboot the machine.

I think i'll try that now...

Rich2k
04-22-2003, 02:08 PM
Well assuming safe_mode isn't enabled you can... or the host hasn't blocked system() in php.ini

inkhead
04-22-2003, 02:53 PM
Not if your servers are setup right.

harmonic
04-22-2003, 05:18 PM
sleep(); - good for security