In the phpSecurityAdm.html document, under Installation No. 6.
How can I run 'install_db.php' from a command prompt?
I have been playing with php for about 6 months, the only way I know how to run a php script is from a browser. My procedure is to write the the script on my local machine, drag and drop the script into the proper directory on the web server (Linux box) using Frontpage, and fire up my browser go to the web page and run the script I just uploaded.
I am not a big fan of Frontpage, but the server does not have FTP for security reasons, so it is the only way I have to get my php scripts to the server. Never open a php script or a html script that contains php because Frontpage will screw with your code!
Why is it better to run the script from a command prompt than from a browser?
Thanks,
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the phpSecurityAdm.html document, under Installation No. 6.
How can I run 'install_db.php' from a command prompt?
I have been playing with php for about 6 months, the only way I know how to run a php script is from a browser. My procedure is to write the the script on my local machine, drag and drop the script into the proper directory on the web server (Linux box) using Frontpage, and fire up my browser go to the web page and run the script I just uploaded.
I am not a big fan of Frontpage, but the server does not have FTP for security reasons, so it is the only way I have to get my php scripts to the server. Never open a php script or a html script that contains php because Frontpage will screw with your code!
Why is it better to run the script from a command prompt than from a browser?
Thanks,
Steve
For information using PHP from the command line, check the php site:
http://www.php.net/manual/en/features.commandline.php
It's better to run the install script from the command line so that the script doesn't time out on your webserver.