LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2003, 07:39 PM   #1
mithras
Member
 
Registered: Jun 2003
Location: El Paso, TX
Posts: 45

Rep: Reputation: 15
Unhappy 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
 
Old 09-14-2003, 02:02 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Have you enabled PHP in your webserver's configuration file and restarted the service afterwards ?
 
Old 09-14-2003, 02:03 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Please do NOT crossposte!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql 4.1 and PHP configuration? sikandar Linux - Software 2 05-30-2005 10:08 PM
PHP Configuration Kronux Linux - Software 3 02-25-2005 05:28 PM
Apache PHP configuration varunbihani Linux - Newbie 2 01-18-2005 02:49 AM
PHP configuration problem mithras Linux - Software 1 09-14-2003 02:03 AM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration