Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2003, 07:53 AM
Authorized User
 
Join Date: Oct 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to phpsharma Send a message via Yahoo to phpsharma
Default 13. how can i execute a php script using command l

I came across with a word command line. What exactly word "command line" and how can i run this?. please explain.:)

God Knows better than US
__________________
God Knows better than US
 
Old October 29th, 2003, 01:51 PM
Authorized User
 
Join Date: Jul 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe they were referring to the DOS window? If you're MS Windows:
Start -> All Programs -> Accessories -> Command Prompt

On second thought, your subject is "how to execute a php script", so that must mean you need to enter the something.php script in the Address bar (where the URL usually goes) with the appropriate directory tree so the server can find it.

I keep forgetting that my memory is slipping.
 
Old October 29th, 2003, 06:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Using windows, you can run PHP scripts from your command prompt in your DOS window. php.exe is the executable application version of the interpreter.

php -q your_file.php

The "-q" option prevents PHP from generating the default HTTP headers (Content-Type and X-Powered-By).


In linux/unix/bsd/etc... the command line refers to your command prompt for your login shell. The executable is just named "php" (no file extension).

More info:
  http://www.php.net/features.commandline


Take care,

Nik
http://www.bigaction.org/
 
Old October 31st, 2003, 05:27 AM
Authorized User
 
Join Date: Oct 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to phpsharma Send a message via Yahoo to phpsharma
Default

:)thank you nik

God Knows better than US





Similar Threads
Thread Thread Starter Forum Replies Last Post
connection.execute and command.execute difference vinod_yadav1919 Classic ASP Databases 0 September 28th, 2005 06:34 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
execute external command in asp s80ts0465 Classic ASP Basics 4 August 3rd, 2004 01:55 PM
Execute command lines from ASP???? MAtkins Classic ASP Basics 4 December 4th, 2003 11:53 AM
command object and objconn.execute... kyootepuffy Classic ASP Databases 1 October 3rd, 2003 02:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.