HTTP request failed! HTTP/1.1 404 Not Found

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

HTTP request failed! HTTP/1.1 404 Not Found

Post 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
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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?
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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
Post Reply