Re: cron jobs in PHP admin to run a PHP file



JRough wrote:
On May 27, 12:44 pm, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
JRough wrote:
On May 27, 11:32 am, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
JRough wrote:
I want to run a php script every day. The page goes to a directory
and
parses a file and adds data to the database. Where it says
"command" in cron jobs I don't know what it is looking for? Can I
put the name of my php file?
This is what I have:
Minute Hour Day Month Weekday
Command 1 8 1-7 1-31
* myPage.php
The reason I am asking is I don't have a clue what PHPadmin wants
in the command box. All I want to do is run the php script.
Thanks,
janis
usually you would put the path to the php interpreter followed by any
required options followed by the script file name
SO the php interpreter would be normally be in my http docs somewhere
under where I installed php
but this server is web hosted so I'm assuming it is the url I use to
run the scirpt in my browser.
thanks,
You assume incorrectly. Your hosting company should tell you what the path
is (it is usually the path that BravoFoxtrot mentioned). They may have it in
a faq somewhere.

Okay, I checked around for the full url but all I can see is what I
see in PHPAdmin files. In phpAdmin
it says I am at the home/userName and the rest is where the pages are
stored.
home/userName/myWebSiteName/myDatabasename/myPage.php

Where do I put in "bin/php" as suggested above or is that for a
command line interface?Would it be
home/userName/myWebSiteName/myDatabaseName/bin/php/myPage.phg? Or do
I leave the /bin/php out of it.
I am trying to figure out how to send email to the tech support.

You're still thinking the php executable is in your web directory. It is not. It is in something like /usr/bin/php - nowhere near your root directory. But you need to ask tech support. Additionally, you have to have permission to execute it.

And yes, it is for a command line interface. That's what cron jobs are - command line jobs, executed by the system.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: IIS 6.0 on Windows Server 2003
    ... >If PHP insists on using CMD.EXE to execute the shell ... command on the ... caused by PHP. ... >since IIS directly executes the web page, ...
    (microsoft.public.inetserver.misc)
  • Desperate: php exec - works in one case, but not other
    ... I am trying to use the php exec function to execute 2 programs, ... call the exec command twice. ... if the php is run via a webpage. ...
    (php.general)
  • Re: cron jobs in PHP admin to run a PHP file
    ... Where it says "command" ... in cron jobs I don't know what it is looking for? ... All I want to do is run the php script. ...
    (comp.lang.php)
  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)
  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... command if already running. ... it fires off the netstat command for you, sending the results from that to ... another file which your PHP process can access. ... requires administator access we are get file permison problems - ANY IDEAS ...
    (microsoft.public.windowsmedia.server)