|
-
Sep 18th, 2004, 07:33 AM
#1
Thread Starter
Hyperactive Member
How to retrieve file
Hello!
i tried to retrieve a file...it all was okay but i failed to get the 3 things out of the file...
"some text" between the <title>some text</title tags.
the description of the meta description tag etc. can anyone help me get this information ?
thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 18th, 2004, 08:06 PM
#2
Stuck in the 80s
That's really vague. How are you "retrieving" the file?
-
Sep 20th, 2004, 01:02 AM
#3
Thread Starter
Hyperactive Member
hi!
I am using fopen thing...!
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 20th, 2004, 08:58 AM
#4
Stuck in the 80s
I'm still not following your problem. What is the exact code you're using and what's an example of the input?
Is it getting all data except the title and meta tags?
-
Sep 21st, 2004, 01:53 AM
#5
Thread Starter
Hyperactive Member
Hi!
I am getting the full source of th4e webpage...here i am using this particular code to retrieve the source code of the webpage.
PHP Code:
<?php
$handle = fopen("http://www.example.com/", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
?>
Hope this helps!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 24th, 2004, 11:01 AM
#6
Fanatic Member
hmm
I just tested your php code on my website
and it loads all of the source perfectly
perhaps you need to check and see if there are meta tags at the file you are trying to load?
or are you asking how to aquire that info out of the file you loaded?
-
Sep 27th, 2004, 02:18 AM
#7
Thread Starter
Hyperactive Member
Hi!
Yes i know that code works...and also the meta tags are also there...i am just unable to seperate them from rest of the code retrieved. Any help would be appericiated.
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|