Page 1 of 1

HTTP request failed! HTTP/1.1 404 Not Found

Posted: Thu Dec 04, 2003 9:27 am
by kendall
Hello,

The following is code i use to pull the meta tags from an html file to display

Code: Select all

$article_file = $article_listing[1];
								$tags = get_meta_tags('http://www.onlinetnt.com/community/partywidice/articles/'.$article_file,1);
								// get meta content
								$article_id = $tags['id'];
								$article_title = $tags['title'];
								$article_description = $tags['description'];
								$article_gallery = $tags['gallery'];
								$article_alt_image = 'images/'.$article_gallery.'/'.$tags['pics'];
								// output data
								echo '<img src="'.$article_alt_image.'_alt.jpg" border="0" alt="click to visit gallery" align="left">';
								echo '<span class="title">'.$article_title.'</span><br>';
								echo '<span class="article_text">'.$article_description.'</span>';
    							echo '<a href="articles/article_driver.php?file='.$article.'">more >></a> ';
								echo '<a href="images/gallery_driver.php?gallery='.$article_gallery.'">vew gallery >></a>';
								echo '<hr noshade color="#000000" size="1px">';
								// end output data
My problem is i get the error:
HTTP request failed! HTTP/1.1 404 Not Found
now what is strange about it is that the same code is being used in another script that retrieves the same file....and its working.


http://onlinetnt.com/community/partywidice


here is the problem file
http://onlinetnt.com/community/partywi ... icles.php

both files reside in the same directory
both files call the same html file
both files are using the smae code
only difference is in one instance the file is included the other the code is embedded

would this make any difference?

Kendall

Posted: Thu Dec 04, 2003 10:28 am
by infolock
http://onlinetnt.com/community/partywid ... y=gallery1


i looked in your images directory.. you don't have a file called gallery_driver.php in it :P

perhaps you meant to have a different file or directory?

Posted: Thu Dec 04, 2003 10:56 am
by kendall
infolock,

uhmmm....that wasnt the problem...the problem was that when i try to get_meta_tags() i get an errrorrrrr.....however i have been debuggin and notice that if i include the code rather than have it embedded while having html code before it i dont get the error...doe this function have any malfunction if html is called before it?

KEndall