LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP configuration problem (https://www.linuxquestions.org/questions/linux-newbie-8/php-configuration-problem-92500/)

mithras 09-13-2003 07:39 PM

PHP configuration problem
 
Hello. Im having problems displaying php files on my server, when I run a php file, for example an email form it kinda run the php file but look what it posts:

'; #=========================================================== # Check for Settings #=========================================================== header("Cache-control: private"); if ($settings) if (!eregi('http://',$settings)) include($settings); if(!$settings) { if ($icons) $icons = ''; exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' No settings were found for this form.
--------------------------------------------------------------------------------
'); } #=========================================================== # Check Referer of the Sent Information #=========================================================== if ($referer and !$refresh) { if ($icons) $icons = ''; if ($_SERVER['HTTP_REFERER'] != $referer) exit($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' This site is not authorized to use this script.
--------------------------------------------------------------------------------
'); } #=========================================================== # Check User's IP Address and Last Submission #=========================================================== if ($flood_control) { if ($icons) $icons = ''; $user_ip = $_SERVER['REMOTE_ADDR']; $stamp = mktime(); $secs = $interval * 60; $get=fopen($floodfile_name,'r'); flock($get, LOCK_SH); while (!feof($get)) { $tmp=fgets($get,998); if(stristr($tmp,$user_ip)){ $tmp = substr($tmp, -11); if ($stamp - $tmp < $secs) exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' Recent entry. New submissions are allowed every ' . $interval . ' minute(s).
--------------------------------------------------------------------------------
'); } } flock($get,LOCK_UN); fclose($get); } #=========================================================== # Check if User's IP Address is Allowed #=========================================================== if ($ip_block) { $read=fopen($ipfile_name,'r'); flock($read,LOCK_SH); $data=fread($read,filesize($ipfile_name)); flock($read,LOCK_UN); fclose($read); if ($icons) $icons = ''; $user_ip = $_SERVER['REMOTE_ADDR']; if(stristr($data,$user_ip)) exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' Your IP has been blocked.
--------------------------------------------------------------------------------

.
.
.
.
.
.




Have any idea of what is occuring? Thanks

markus1982 09-14-2003 02:02 AM

Have you enabled PHP in your webserver's configuration file and restarted the service afterwards ?

markus1982 09-14-2003 02:03 AM

Please do NOT crossposte!


All times are GMT -5. The time now is 04:01 PM.