Hello, I was trying to change a script I have. To install the script you have to manually change the database.php and the functions.php and send the mySQL manually to phpmyadmin. So could anyone tell me of a good tutorial or explain how this is done? I know this are just replacement comments but I don't know which one to use and I don't have a clue how to send in the mySQL auto. If someone could teach me this I can give him something for his trouble regards,
What you could do is make a single config.php file make this writable and than code the install.php such that it writes the variables as per the instructiions entered in the install.php .. we cant give u the code as we donno how ur script works..
Hello and thanks for the quick reply Okey, the config.php file is written like this: define( "DOMAIN", "http://www.domain.com" ); Code (markup): So what the install file needs to do is change the domain: define( "DOMAIN", "[COLOR="Red"]http://www.domain.com[/COLOR]" ); Code (markup): So how would I change the code so the domain would become a variable? and how would the command be in the install.php file? Thanks for your time and help, regards,
Hello Orokusaki, Yes I'm fully aware of that. In the second one I'm highlighting the text that needs to be changed. regards,
dont think this can be done because when you define something it becomes a Constant , and cannot be be change hence "Constant", and u can work out that a variable >> varies but im not 100% on that.