![]() |
Need Help with RegEx
I'm trying to code something that parses content the following content:
PHP Code:
PHP Code:
|
Something like this, perhaps?
php Code:
You can then find it in $aMatches[1]. |
that worked! thanks alot wildhoney!
*edit* is this example faster than using CURL to get the website content? |
I'd say so, yes. Although
file_get_contents isn't as in-depth as cURL, for something like that, it's better to stick to the simplicity side than calling a group of functions that are somewhat overkill for what you require. |
Generally speaking it will be dependent on the website that you are trying to open but generally speaking, while cURL may take a bit longer to implement its by FAR faster than file_get_contents in the long run....
Quote:
|
If you were to have asked me before-hand about which I thought was faster, FGC or cURL, I would have been more inclined to have said FGC. I was under the false impression that it was a right little light-weight in comparison to cURL! Seems cURL is actually the master of both speed and functionality.
|
Quote:
$aMatches[0]. |
| All times are GMT. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0