View Single Post
  #15  
Old 06-04-2005, 07:22 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

OK, this problem was fixed by putting a bash script at server root (below public_html):
Create a file with the correct paths and call it html_catalog.sh
Code:
cd /home/your/path/to/admin /usr/local/bin/php -q -f html_catalog.php mv /home/user_account_here/public_html/*.html /home/user_account_here/public_html/dir_for_store/
Now you just need to create the cron job. In cPanel this is easy: Cron jobs/Advanced (UNIX Style)

Enter the time to run the job and the script: /bin/sh /home/user_account_here/html_catalog.sh

Now, html catalog is created automatically at whatever time you choose. The previous posts create the modification in the html_catalog.php and this just moves the files from root to the dir. of the store. If you want them in root, that's OK, just skip the bash script. - Mike
__________________
4.1.9
Reply With Quote