[S] Can you run a PHP script without launching the browser?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
bradsteele
Forum Newbie
Posts: 15
Joined: Fri Jun 17, 2005 10:27 am

[S] Can you run a PHP script without launching the browser?

Post by bradsteele »

Trying to run a PHP script without launching the browser...is this possible?

Thanks,

Brad
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes.
bradsteele
Forum Newbie
Posts: 15
Joined: Fri Jun 17, 2005 10:27 am

How???

Post by bradsteele »

How???

Thanks,

Brad
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

search this forum for cron jobs
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

where are you trying to run it?

On your local machine, you can use the PHP-CLI:

Code: Select all

/feyd@home/>php -v
PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
On the server, you can do it through cron or through other php scripts.. the variants for this are pretty large.
bradsteele
Forum Newbie
Posts: 15
Joined: Fri Jun 17, 2005 10:27 am

Post by bradsteele »

I am running on a WINDOWS 2003 server, and to my knowledge Task scheduler won't let me run a script every 15 minutes.....any suggestions.....yes its running on the server.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

There wasn't a need to make a new thread.

viewtopic.php?t=36722
Locked