Reply to How to tell if Mime type matches contents

Your name:

Reply:


Posted by Ed Eichman on 12/29/05 16:18

Hi Everyone,

Before I write the script myself, I'm looking for PHP code that checks
that a link's content type matches it's contents. I need this for my
"broken link" checker script, which fails to spot the "broken" links
http://www.awin1.com/show.php?mid=1014&linkid=36515&aid=49007 and
http://www.awin1.com/awclick.php?mid=1014&linkid=36515&id=49007. Any
ideas?

BTW, in case the links get fixed before you read the message, the first
link is a GIF MIME that returns
-----------------------
The image
"http://www.awin1.com/show.php?mid=1014&linkid=36515&aid=49007"
cannot be displayed, because it contains errors.
-----------------------

The second is a text/html that returns
-----------------------
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index
30 in /home/sites/site3/web/awclick.php on line 51

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in /home/sites/site3/web/linkdeliveryfunctions.inc.php
on line 178

Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /home/sites/site3/web/linkdeliveryfunctions.inc.php on line
478

Warning: Cannot modify header information - headers already sent by
(output started at /home/sites/site3/web/awclick.php:51) in
/home/sites/site3/web/linkdeliveryfunctions.inc.php on line 462

Warning: Cannot modify header information - headers already sent by
(output started at /home/sites/site3/web/awclick.php:51) in
/home/sites/site3/web/awclick.php on line 235
-------------------------------------------------------

Thanks,
Ed

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация