What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [php] Get Meta Data From Page

[php] Get Meta Data From Page
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: [php] Get Meta Data From Page
never ever use fopen for files outside your webserver. (i know atleast my host and my webserver have the url wrapper turned OFF so you cant even do that anyway)
use the curl library like. (which is way better)
code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$foo = curl_exec($ch);
curl_close($ch);

and $foo will be the downloaded data

and did you even read what preg_match did? the 3rd param is a varible witch will contain the matches , so why not check that then loop through it :-/

and I dont even get why your exploding the url by the regexp?

and your last while is a never ending loop because you never increase $i.
For is alot better for looping than that last while.
http://php.net/for
[Image: dt2.0v2.png]      Happy Birthday, WDZ
10-15-2005 04:40 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[php] Get Meta Data From Page - by philo23 on 10-15-2005 at 03:14 PM
RE: [php] Get Meta Data From Page - by -dt- on 10-15-2005 at 03:42 PM
RE: [php] Get Meta Data From Page - by philo23 on 10-15-2005 at 03:59 PM
RE: [php] Get Meta Data From Page - by -dt- on 10-15-2005 at 04:40 PM
RE: [php] Get Meta Data From Page - by philo23 on 10-15-2005 at 04:42 PM
RE: [php] Get Meta Data From Page - by J-Thread on 10-15-2005 at 06:51 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On