Script Modification 27.09.08
Ok I require a standalone php script created, this would be a duplicate of a existing php file script within
an existing system of which I am the copyright owner designer.
The system is a mysql based gateway page generator, ill start by a breif description of the system.
The system can create the gateway pages on the local domain or on any external domain but I have the interface just using the ftp
style for local and external domains
In the gateway generator you set up a profile for each gateway page project in which you add keywords/phrases into different fields
these are saved to mysql when the project is saved, the gateway pages are created via template using insertion variables through
the template where when the gateway pages are generated the script replaces the insertion variables with the keywords from mysql.
each project i usually generate about 1000 gateway pages. Once a gateway project profile is setup you go to the profiles list which
lists all created profiles. next to each profile is a button “change” to edit that profile “delete” to delete that profile and “generate” to
actually generate/create the profile/projects gateway pages.
In the profiles list there is usually anywhere from a few up to 100 or so profiles, at the moment each profile in the list gets generated
one at a time if for instance there is an edit to the base template and the gateway pages require regenerating.
so as you can imagine with a list of say 100 profiles you have to sit there pushing the generate button one at a time wait untill its
generated the gateway pages for that profile then (eg: 20 seconds or so) then move to the next profile in the list and hit its generate button.
it generates as per the database id for that profile
eg /gatewaygenerator/generatepages.php?ID=118
Frustrating and time consuming having to generate each profile one at a time.
what I want is a script which is a modified generatepages.php that when called it queries the database gets all the existing profiles id’s
then generates all those id’s one after the other, it would be better generated one after the other rather than all at the same time so that it
doesnt overload server resources all at once if there are alot of profiles.
I would like it to output to browser a simple confirmation screen
example:
generating profile ID 1 …………….. Success
generating profile ID 2 …………….. Success
generating profile ID 3 …………….. Success
generating profile ID 4 …………….. Success
generating profile ID 5 …………….. Success
All profiles have been successfully Generated.
The new modified script would be standalone it doesnt need to interfere with any existing scripts/files it will be called
generateprofiles.php and will draw the mysql details (host, User, Dbase, Pass) from the config.php file.
So in effect on the profiles list page there would be a new link/button at the top of the page “Generae All profiles”
once clicked then all profiles would be generated one after another.
In my view this is kind of how it would work
When generateprofiles.php is activated the script would query mysql database, create an array of all existing profile ID’s
EG: id 1, id 2, id 3 etc etc etc then it would do a loop generating the profile for each ID in the array.
This loop could either utilize the pages generating routine or alternatively by calling the existing generatepages.php file
on the completion of each loop it would output to browser generating profile ID 1 …………….. Success
once all ids in the array have been generated it would then output to browser All profiles have been successfully Generated.
and exit
While it takes a bit for me to explain from scratch it isnt all that complexed as all the generate pages routing is there and fully functional.
I will setup a test domain and setup a fresh copy of this system to be worked on then you can play and experiment with the system as required
I will encrypt most system files except those needed to do the project like generatepages.php so as to protect the integrity of my system as this
is a commercial system that i have developed over a long period of time and it hasnt been released publicly at this stage so represents a lot of work
and a substantial investment.
I have no probs paying into escrow so you know you will be paid properly on completion, I am a genuine webmaster developer and always pay promptly
for work I have done. I do always expect top quality bug free coding and efficient logic/routines so as to minimise server load etc.


















