RE: [PHP] Security Issue

From: Date: Wed, 05 Sep 2007 22:27:28 +0000
Subject: RE: [PHP] Security Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261757@lists.php.net to get a copy of this message
It was able to call up external includes using the below code which resulted that the server was used to send out spam. How can I protect the code?
Is ../inc/ in the web path? $_SERVER['DOCUMENT_ROOT'] If so, then what do you mean by "external includes"? You need to move inc/ to a path unreachable by a browser yet reachable by PHP. _________________________________________________________________ Test your celebrity IQ.  Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2

« previous php.general (#261757) next »