Logo 
Search:

PHP Forum

Ask Question   UnAnswered
Home » Forum » PHP       RSS Feeds

file_get_contents(blockip.txt): failed to open stream: No such file or directory in /home/adop

  Asked By: Erica    Date: Aug 22    Category: PHP    Views: 2837
  

I am working on at form at
http://www.adopthomestudyserv.com/getinfo.html


that give me this error. Warning: file_get_contents(blockip.txt):
failed to open stream: No such file or directory
in /home/adopt/adopthomestudyserv-www/form2mailAHS.php on line 50

Warning: Cannot modify header information - headers already sent by
(output started at /home/adopt/adopthomestudyserv-
www/form2mailAHS.php:50) in /home/adopt/adopthomestudyserv-
www/form2mailAHS.php on line 136

What the heck is going on?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Riley-jack Johnson     Answered On: Aug 22

1. file_get_contents supports only php  versions (PHP 4 >= 4.3.0, PHP 5)
Difference in versions may cause errors.Otherwise please check the
path of the file  "blockip.txt".Some times that may wrong.

2.Second error(Cannot modify  header information  - headers already sent
by (output started  at
/home/adopt/adopthomestudyserv-www/form2mailAHS.php:50))

Are you using header  and echo in this file?Header and echo will
not work at a time.If you are not using echo in that page.Please write
'ob_start();' at the begining of the page

 
Answer #2    Answered By: Kawthar Malik     Answered On: Aug 22

first warning  comes according to unavailability of blockip.txt
file. be sure to existance of file  and you may try include
("filename"); also.

send warning is about a problem in session. be sure that session
start is at top of the file content. refer
http://www.phplabsindia.com/info