Re: PHP modules (pecl) and PHP codes (pear)
| From: | Alexey Zakhlestin | Date: | Thu, 29 Oct 2009 11:03:13 +0000 |
| Subject: | Re: PHP modules (pecl) and PHP codes (pear) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45897@lists.php.net to get a copy of this message | ||
On 29.10.2009, at 12:34, Samuel ROZE wrote:
Hi, I'll have to develop a function like "parse_url", but "parse_referrer" which provides informations about the URL (the referrer): provider, keywords, type of search (search, cache, translation, ...), real page url... I don't really know how I'll do that: using a .ini file like "get_browser" ? I think it will be too complicated and difficult to build.. but maybe it is a good idea ? Or create it in C as an extension... I want to know if compiled extensions in C are really faster than an PHP function ?Usually, it is a good idea to write it in PHP at first and then port to C, if performance is poor