LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Closed Thread
 
Search this Thread
Old 09-13-2003, 08:34 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, 03:03 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Please do NOT crossposte !
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:08 PM
PHP Configuration Kronux Linux - Software 3 02-25-2005 06:28 PM
Apache PHP configuration varunbihani Linux - Newbie 2 01-18-2005 03:49 AM
PHP configuration problem mithras Linux - Newbie 2 09-14-2003 03: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 08:50 AM


All times are GMT -5. The time now is 04:45 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration