Re: Writing static file from dynamic PHP page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, January 18, 2005 2:42 pm, Chris Bruce said:
> This is a great solution, except I cannot get PHP to exec the file that
> has the 'wget' command in it.
>
> What I have done is to create a file (wget.php) into the directory that
> I want to wget the page into. I then chmod -R the directory to make
> everything in it executable. here is what is written to the file:
> /usr/bin/wget -d http://path/to/file/index.html
>
put this at the begining of wget.php
#!/bin/sh

HTH
-R'twick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux