Posted by pas805 on 09/17/05 19:40
I actually tried it but the fopen has to point to the physical
I tried it but the fopen has to point to the physical file on the
server like "/www/html/myscript.php" because if I put the url to the
file it gives me an error and if I put the physical path to the file
"/www/html/myscript.php" it simply print out the lines and that's it.
Steve wrote:
> > Steve so you want me to create a script that open's my other script and
> > execute it right???
>
> That might be one way round your problem. Going back to what you are
> trying to do - execute a PHP script via cron - the limitations of wget
> and lynx prevent you from executing it directly. Assuming you can't
> remodel your script to avoid the redirection, instead you have an
> intermediary script call the main script from cron:
>
> wget http://www.example.com/myscriptcaller.php
>
> myscriptcaller.php is the simple fopen()/fread()/fclose() script from
> earlier in this thread, set to call your main script.
>
> ---
> Steve
[Back to original message]
|