GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Mar-2005, 05:26
Lucnets Lucnets is offline
New Member
 
Join Date: Mar 2005
Posts: 4
Lucnets is on a distinguished road

Error 404 script error, help needed


I am trying to use the 404 error script from here http://www.gidforums.com/t-1398.html It works fine on sending me an error, but it is displaying a error on line 67.

Here is the error: Warning: Cannot modify header information - headers already sent by (output started at /home/lucnets/public_html/functions_err.inc.php:101) in /home/lucnets/public_html/functions_err.inc.php on line 67


What can I do about this?

Also I have displayed the code that I copied from that page. I only changed the two things it said to.
Last edited by admin : 21-Mar-2005 at 05:46. Reason: Please insert your PHP code between [php] & [/php] tags
  #2  
Old 21-Mar-2005, 05:50
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 731
admin will become famous soon enough
The output STARTED at line number 101 inside the functions_err.inc.php file. Line no. 101 is the end of the file!

What probably happened is that when you copied the example code for the functions_err.inc.php file off the forum message, you also included a space right in the bit just after ?>. Look closely to see if there is indeed a space after that and remove it before saving the file again.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 21-Mar-2005, 15:31
Lucnets Lucnets is offline
New Member
 
Join Date: Mar 2005
Posts: 4
Lucnets is on a distinguished road
Seems to be fine. I don't see a space after it. Any idea on what else it could be? I did not add any html to the script. Would that be a problem? I just left as is when I copied.
  #4  
Old 23-Mar-2005, 05:02
Lucnets Lucnets is offline
New Member
 
Join Date: Mar 2005
Posts: 4
Lucnets is on a distinguished road
Yeap you where right, I was looking in wrong spot. Thanks
  #5  
Old 23-Mar-2005, 19:52
Lucnets Lucnets is offline
New Member
 
Join Date: Mar 2005
Posts: 4
Lucnets is on a distinguished road
How hard would it be to get this to write to a log file. Like one called error.txt oe errorscript.txt or what ever a person wants to make it. The I can just check each day or something like that.
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
150MB space, 1.5GB Bandwidth, CPanel, FTP, Mysql, Script Installs ClansHosting Free Web Hosting 1 15-Jun-2005 18:15
NOT sure what is wrong with script fscanf jenmaz C Programming Language 14 29-Oct-2004 14:53
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 09:35
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
Script needed for letting user input a few days of data for tracking and analysis. tradertt MySQL / PHP Forum 3 06-Mar-2003 02:54

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:37.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.