Tag Archives: exec

Recommended Exec

PHP Hack – How to Run Background Processes!

Sometimes in web programming, you might need to run (or fork as they say) processes in the background so the web user doesn’t see all of the processing time plus it can potentially “freeze” the webpage on long data processing features of the site.

For that, you can always fork more processes.

The usual line I use is: exec ("/usr/bin/php proc.php >/dev/null 2<&1");

The problem I incurred with above line was that processes were forked except there was still some delay that the visitors saw.

To fix the issue so there’s absolutely no

Click Here to Read Full Article

1 Comment

Quick Twitter DIY – How to Make a ReTweetThis button for your WordPress Blog from Scratch!

Well, I’ve been messing with Twitter today, I even made a new URL shortening called U2S.Me in 2 hours, here’s how to make ReTweet This! button for your WordPress blog froms scratch:

For those of you who want to create your own “ReTweet This!” button using your favorite URL shortener, (mine is U2S.Me, which I made from scratch) you can easily implement a CURL into your single.php to make this happen on the fly.

Here’s how to do it, add the following code in your single.php (This example uses U2S.Me to shor

Click Here to Read Full Article

Leave a comment