script to carry out task in cpanel

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eltonpiko
Forum Commoner
Posts: 31
Joined: Wed Apr 01, 2009 2:19 pm

script to carry out task in cpanel

Post by eltonpiko »

hi

ive got a bit of had time try to figure this out i have a repetitive job i do soooooooooooooooooooooooooooooooooo may times im thinking if theres no simplest way of doing it.here is how it goes

add domain on server, create database ,paste sql predefine code in phpmy admin in newly created database, got file manager copy all content from a folder on the server to another folder name of my new add domain edit config.php to define new domain folder and new database.

how can i go about creating a script to carry out this job how about something like a form that i just put the database name to be created and automatically it create the database and paste the code for the table inside.next i name the folder on server for new content to be copied to it and also on the form i can directly edit the config.php to add domain and database name and other stuff. or i can declare them at first in a variable and after the content is copied to the new folder it will automatically edit the config.php and insert the proper code on the proper line hope you understand what im trying to say.since in need to edit some value in the database table maybe on the form i could have field that will update the tables needed.but that not a problem .


my biggest challenge is were to start to make the script connect to my cpanel and from there how do i go about.


hope someone can realy help me out thanks.
Post Reply