[PHP-DEV] Parsing an external URL

2002-05-03 Thread Miva Guy
I'm in the process of rewriting a site in PHP (as I learn it) to make it more robust. One of the functions I regularly use is calling an external URL, parsing out the data I need and saving that data for use on my site. (Don't worry, we've made arrangements with these companies!) I'm unsure which

Re[2]: [PHP-DEV] Parsing File Names

2002-03-03 Thread Daniel Lorch
hi, > $handle=opendir('/path/to/files'); > while (false !== ($file = readdir($handle))) { > if (preg_match("/(.*) - (.*).mp3/i", $file, $matches)) { > $artist = $matches[1]; > $song = $matches[2]; > // insert into db > } > } ?>> I'd suggest to write it like t

RE: [PHP-DEV] Parsing File Names

2002-02-28 Thread Chris Newbill
lto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Parsing File Names I am trying to create a script that will crawl through a directory, take each file name, and parse it to get information from the filename. This is going to be used to place ar

[PHP-DEV] Parsing File Names

2002-02-28 Thread Jason Dubya
I am trying to create a script that will crawl through a directory, take each file name, and parse it to get information from the filename. This is going to be used to place artists and song names into a database. The filenames are all in the following format: artist - songname.mp3 Is there an

Re: [PHP-DEV] parsing

2001-09-21 Thread Markus Fischer
On Fri, Sep 21, 2001 at 01:09:49AM +0200, Dries Plessers wrote : > Hello, [suuport question skipped] This is not a support forum, try asking on [EMAIL PROTECTED] . - Markus -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP-DEV] parsing

2001-09-20 Thread Dries Plessers
Hello, Below you will see some html code, my question is how can I parse everything between the tags and and put the results in an array ? i know i should use preg_match_all but can't figure it out. Thanks ! this is the html needed to be parsend: Motor Racing's Strangest Races TIMBAL

[PHP-DEV] Parsing speed difference between " and '

2001-05-24 Thread Olivier Cahagne
Hi, I believe this is the correct list to talk about that as it's Zend/parser-related. I'd like to know if there's a difference between parsing: require ('foo.inc'); and require ("foo.inc"); If so, which one would be faster and why ? I didn't find many references about this in the FAQ or the do