Using shell access.
The next version of PhP will not include Safe Mode, and if your webhost updates to it you will have shell access. Most servers now use Apache, or at least a server that is on a 'nix ( linux, Unix, BSD ) host so you will have access to the BASH shell and other shells. Even Mac has the BASH shell, so if you have a home server you may have access now. There are several ways to call the shell with php, they differ slightly.
One of my favorite shell apps is 'while read' it just reads a text file line by line and executes whatever you tell it for that line. So you just make up a simple list with the last line empty. You write a script with the code you want run and you use your list as the input for the script. Simple to use, gives you complete control over what is happening, nice for use on a server.
Here's a nice page which gives a good summary of the BASH commands.
|All times are GMT +1. The time now is 01:59 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.