Socket programming


Posted on 16th Feb 2014 07:03 pm by admin

Hello all,

I have a PHP socket script. GPS trackers connect to this socket. IMEI verification takes place and if that is ok, the code is passed to a database. Also if the code contains alert-info, SMS alert is sent to mobile phones.

It works like a charm.. well almost.
My problem is that when I run the script indefinite, after some hours the processor usage exeeds to 99,9% (with top, I can see it is the PHP file which is the cause).

Now my question is: Is it possible to debug the script, so I can find the origin of the CPU usage?

Thanks,

No comments posted yet

Your Answer:

Login to answer
266 Like 42 Dislike
Previous forums Next forums
Other forums

Linux socket programming
Where can I find a good introduction to socket programming?

A problem with my GD class
Hello,

I created a nice (and simple for now) GD class.
The problem is , it works great on

Working with Global Variables
hi, I'm not really sure why the following code is returning a "Call to a member function getBan

Multi-user card game
I'm writing a batch of games and such. Lottery is finished, Poker,blackjack,etc are next. They will

Stopped working!
So I had to change some stuff, none of it major. Stuff like the extension_dir and such. BEFORE I did

this code is not working????
it says this error.. Warning: Division by zero in ..

the variables are correct, so why is th

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

Problem with Sending Mail by PHP
hello all,
I m new to php, can u plz provide me the code to send mail by php having CAPTC

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash