[PHP] Child PID exit signal Illegal instruction (4)

2008-07-16 Thread Schiz0
Hey,

I'm running PHP 5.2.6 on FreeBSD 7.0-RELEASE-p2, using apache 2.2.9. I
have a PHP script that is valid code (I tested it on another server
and it worked fine). The problem is, it keeps killing the httpd
processes and outputting nothing.

I get this message in my apache error logs each time the php script is called:
[Wed Jul 16 20:10:18 2008] [notice] child pid 70553 exit signal
Illegal instruction (4)

And same thing in /var/log/messages:
kernel: pid 70649 (httpd), uid 80: exited on signal 4

I read that it has to do with PCRE, so I tried commenting out all the
preg and ereg functions, but that also didn't work.

Here's a list of the modules I'm using:
[PHP Modules]
bz2
date
dom
filter
gd
geoip
hash
iconv
libxml
mbstring
mcrypt
memcache
mysql
mysqli
pcre
Reflection
session
SimpleXML
sockets
SPL
standard
xml
zip
zlib

This is really frustrating me. I'm about to switch over to Lighttpd to
see if it would help :-\

Any suggestions/ideas/comments/solutions would greatly be appreciated.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Schiz0
On Fri, Jul 18, 2008 at 8:53 AM, Manoj Singh <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am developing the web site in PHP using MYSQL database.
>
> Can you please provide me some tips to write the optimized code.
>
> Best Regards,
> Manoj Kumar Singh
>

A opcode cacher helped me a lot on my site. I got the forums loading
in more than half the time previously.

Quick Description:
Every time a php script is called, the CPU compiles that script into
executable code, then runs it. An opcode cacher caches that executable
code, so the CPU doesn't need to compile it again over and over.

Personally, I'm using XCache. http://xcache.lighttpd.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] geolocation

2008-09-02 Thread Schiz0
On Tue, Sep 2, 2008 at 9:05 AM, clive <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Have any developed a site that determines a users location based on IP
>  address, Im not looking for accurate locations, just what country they are
> coming from.
>
> I know I could possible get a list of IP blocks allocated to countries or
> make use of some web server to get the information, I just want to know how
> others are doing this?
>
> If are using a specific method and know it to be robust and up to date
> please let me know.
>
> Thanks
>
> clive
>
>

I use the GeoIP libraries. They work perfectly. YOu just need to
install the pecl-GeoIP package, then make sure you keep the binary
database up-to-date (from www.maxmind.com).

http://php.net/geoip

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Google Auth Scripts

2008-09-04 Thread Schiz0
On Thu, Sep 4, 2008 at 11:09 AM, Ian <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am looking for a script that can authenticate a user against the
> gmail database - except what I need back is the name of the person
> thats doing it automagically, as well as if they have an avatar set
> etc. Does anyone know of any scripts that do this?
>
> I have done some googling for this and only really come up with
> scripts that import your contacts - which is great - but not really
> what I need.
>
> Thanks in advance,
> Ian
>

Maybe the code for GMail-Lite/libgmailer would help you out?

http://gmail-lite.sourceforge.net/wordpress/index.php/about/libgmailer/

http://gmail-lite.sourceforge.net/wordpress/index.php/about/gmail-lite/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php