command
running php file from linux shell vi editor and command line php for non http based files
Submitted by inder on Wed, 11/19/2008 - 14:48.
for creating and executing a php file from ssh you need to PHP installed as binary (CGI) and add something like at top of shell script
[root:inderweb.com]!/usr/bin/php -q
.This is to tell the shell interprator(kernal) that we are using php from bin directory for executing lines of code in script.To get started with a simple php code in shell do following steps:-
- Open shell prompt and go to your directory . e.g [root:inderweb.com ~]
what is shell script and how to use it? starting commands and scripts in linux
Submitted by inder on Wed, 11/19/2008 - 13:36.
"Shell Script is series of linux command written in plain text file . Shell script is just like batch file is MS-DOS but have more power than the MS-DOS batch file e.g it can have the fully programming functionality in it."
log in mysql from command prompt windows to access database and change passwords grant privialiges
Submitted by inder on Fri, 11/07/2008 - 17:28.
First of all you should know how you can add users in mysql databases:-
- Using CREATE USER and/or GRANT commands
- Inserting a new record into the mysql.user table
First let's see how to use the CREATE USER command:-
CREATE USER user [IDENTIFIED BY [PASSWORD] 'password']
e.g
![Validate my RSS feed [Valid RSS]](http://feedvalidator.org/images/valid-rss.png)