[PHP] Re: Command line include path?

2004-04-14 Thread Justin Patrin
Mike Zornek wrote: I'm getting started with PEAR's DB_DataObject and am trying to follow along with the tutorial: http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p hp It tells me to create the ini file (which I did) and then run createTables.php from the command line to

Re: [PHP] Re: Command line output

2003-11-19 Thread Curt Zirzow
* Thus wrote Shawn McKenzie ([EMAIL PROTECTED]): > Guess no ones has a clue. I didnt get a RTFM or anything. Try running php like so: php -doutput_buffering=0 phpfile.php Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General

Re: [PHP] Re: Command line output

2003-11-18 Thread Jason Wong
On Wednesday 19 November 2003 06:54, Shawn McKenzie wrote: > hey great thanks :( > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > O.K. I am just now experimenting with the CLI PHP and have another > > question. With the following code, none of the echo outp

[PHP] Re: Command line output

2003-11-18 Thread Shawn McKenzie
Guess no ones has a clue. I didnt get a RTFM or anything. -Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > O.K. I am just now experimenting with the CLI PHP and have another > question. With the following code, none of the echo output is seen until > the sc

[PHP] Re: Command line output

2003-11-18 Thread Shawn McKenzie
hey great thanks :( "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > O.K. I am just now experimenting with the CLI PHP and have another > question. With the following code, none of the echo output is seen until > the script completes. I even tried adding a flush()

[PHP] Re: command line argument vs. urlencode ?

2002-08-31 Thread Renato Lins
\+ does not work too, php treat command line arguments as a POST/GET , so I should urlencode/urldecode, I would like to know if there is a alway to turn this behavior off. Thanks any way. Renato Richard Lynch wrote: >> Any one know why the "+" (plus sign) is not passed as argument to >>$argv

[PHP] Re: command line argument vs. urlencode ?

2002-08-30 Thread Richard Lynch
> Any one know why the "+" (plus sign) is not passed as argument to >$argv when calling a php script from linux shell ? > >php test.php 123 xxx+ Best guess is + is a special character in the shell, so you need: php test.php 123 "xxx+" Or maybe even so far as: php test.php 123 "xxx\

Re: [PHP] Re: Command Line

2002-08-27 Thread Adam Williams
if you just wanna delete everything from the tables you can do DELETE FROM table_name; for each table. or you can do DROP table_name; for each one but then you have to re-create each table that you drop with CREATe TABLE ( stuff here ); Only use DROP table_name; if you know the structure of ea

[PHP] Re: Command Line

2002-08-27 Thread Gerald R. Jensen
Trevor ... Do you want to drop the tables, or simply delete the data in them and retain the table structure? To delete data ... USE databasename; DELETE * FROM tablename; To drop tables ... DROP TABLE [IF EXISTS] tablename1 [, tablename2,...] [RESTRICT | CASCADE] If you drop a tabl

[PHP] Re: Command Line

2002-08-27 Thread Trevor Tregoweth
Hi I am very new to mysql, so any help please how to drop tables from a database from the command line i have 6 tables in there, and need to be able to flush all the data out, (of 2 tables only) so there might be another way Thanks Trevor -- PHP General Mailing List (http://www.php.net

[PHP] Re: command line parser

2001-09-05 Thread Franklin van Velthuizen
> Does anyone know if there's a php command line parser, > that lets you run php-scripts from the command prompt instead of running > them over http. (much like perl) Make sure you compiled php as a binary.. and then start your script with: #!/path/to/php -q Then simply perform a chmod 755 or

[PHP] Re: command line parser

2001-09-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Robert Lindgren) wrote: > Does anyone know if there's a php command line parser, > that lets you run php-scripts from the command prompt instead of running > them over http. (much like perl) http://php.net/manual/en/install.commandline.php --

[PHP] Re: Command line args HELP!!!

2001-07-18 Thread Paul A. Procacci
That is not the problem! Read below. This issue was resolved. It _is_ a bug, and is on the todo list for the php programmers. :) Elias wrote: > > argv > Array of arguments passed to the script. When the script is run on the > command line, this gives C-style access to the command line parame

[PHP] Re: Command line args HELP!!!

2001-07-18 Thread elias
argv Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string. argc Contains the number of command line parameters passed to the script (if run

[PHP] Re: Command line args HELP!!!

2001-07-18 Thread Martin Harm
The whole string "Paul A. Procacci" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey all, > I tried passing an argument to a php script that had a plus sign (+) > in one of the arguments. Observe the following: > > > http://altavista.com/sites/se