here docs
| From: | Bjorn Sodergren | Date: | Mon, 26 Jun 2000 07:22:20 +0000 |
| Subject: | here docs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3079@lists.php.net to get a copy of this message | ||
using php 4.0.0, saw the here doc thing, thought id try it out isntead of
having 20 echo statements,
but i get en error on the first line.
------------------------------------------------
echo <<< OPTIONS
you forgot something.
usage is:$argv[0] -i [ip] -d [domain] -u [user] [OPTIONS]
These are required fields...
-i Valid IP address. Will later incorprate checking into
the script, but for now please use one that isnt taken
-d Valid Domain name.
-u Username.
Options are as follows..
-p Password. Id rather have it prompt for a password,
must be at least 6 characters
-t Test Mode. This prints the output to screen
instead of writing to file (i hope)
-t 1 enables test mode
-q User quota in megabytes. Default is 0 (unlimited)
-n Specify an alternate Name Server
Default is $ns
not implemented.
-f Install frontpage extensions YN. Default is No
-m add MySQL database options
OPTIONS;
this is a command line based script, not designed (maybe in the future) to
be a web-based script (those come later).