IT Community - Software Programming, Web Development and Technical Support

How do I run a php script from the command line

This is a discussion on How do I run a php script from the command line within the PHP Programming forums, part of the Web Development category; Hi all...... Can anyone tell me, How do I run a php script from the command line. Thanks in advance.........


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-11-2007, 12:47 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default How do I run a php script from the command line

Hi all......

Can anyone tell me, How do I run a php script from the command line.

Thanks in advance......
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-11-2007, 03:06 AM
ragavraj ragavraj is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 92
ragavraj is on a distinguished road
Default Re: How do I run a php script from the command line

Hi

if Apache installation path like this '/home/www/bin/php' you can use following command /home/www/bin/php filename.php

Thanks
R.Rajan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I execute a PHP script using command line? sundarraja PHP Programming 0 01-28-2008 02:53 AM
Using PHP from Command Line Sabari PHP Programming 4 12-18-2007 06:42 AM
How do I access command-line arguments? prasath C and C++ Programming 1 08-17-2007 11:46 PM
How do I read command-line arguments with Perl? sivaramakrishnan Perl 1 07-23-2007 04:50 AM
Some tips of using Mysql Commands in Command Line Murali Database Support 0 07-05-2007 12:09 PM


All times are GMT -7. The time now is 04:13 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0