Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 29th, 2003, 07:53 AM
Authorized User
 
Join Date: Oct 2003
Location: hyderabad, andhra, India.
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
Reply With Quote
  #2 (permalink)  
Old October 29th, 2003, 01:51 PM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
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.
Reply With Quote
  #3 (permalink)  
Old October 29th, 2003, 06:43 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
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/
Reply With Quote
  #4 (permalink)  
Old October 31st, 2003, 05:27 AM
Authorized User
 
Join Date: Oct 2003
Location: hyderabad, andhra, India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:21 PM.


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