Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56736 invoked from network); 29 Oct 2009 11:03:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2009 11:03:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.219.216 mail-ew0-f216.google.com Received: from [209.85.219.216] ([209.85.219.216:53986] helo=mail-ew0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/1E-12066-77679EA4 for ; Thu, 29 Oct 2009 06:03:20 -0500 Received: by ewy12 with SMTP id 12so377014ewy.24 for ; Thu, 29 Oct 2009 04:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=/Co53LFYPRNlKQCDFv8rgBTqQ6+LQk4NqtOabZLs8iM=; b=rcN/aD6ANpK/e9uDppnBei5CyuXvhHmpCflgDDlRqFU7lbKmUIh295i7aB1YiD/fAl hDiU1/1LA0byRjSr48Pe/RUiZJA4tGYKvTlsvvL/FxZ01XE/6N4tHE+536zQmJUj+lFF 6Mh+JCv6GoklZh6QDVNZBoBN+jKpcK47tQAp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=C775eJ+tzkFaXD9YC8eNTeKLEJv6onZHpZLqvz8wIYhvfblELyxzqFtmvYS4x/4lo7 6oDrRvZjFna2ufuZEnC868HAvxtwmT7LsbviIkahSJNOW5t0MGBQzC4yBBSk7bIfR3IF SlEPOrPAl4xb77PkXbGOG+xnY6bjcSq+KioxQ= Received: by 10.211.132.33 with SMTP id j33mr2301274ebn.20.1256814196950; Thu, 29 Oct 2009 04:03:16 -0700 (PDT) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id 10sm5439426eyz.3.2009.10.29.04.03.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 04:03:15 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes In-Reply-To: <1256808892.22624.32.camel@samuel-laptop> Date: Thu, 29 Oct 2009 14:03:13 +0300 Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: References: <1256808892.22624.32.camel@samuel-laptop> To: Samuel ROZE X-Mailer: Apple Mail (2.1076) Subject: Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear) From: indeyets@gmail.com (Alexey Zakhlestin) 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