Pagina 1 din 1

post horoscop/stiri automat

Scris: 11-Iul-2007, 10:44:13
de onutzu
Salut ! .. am mai vazut pe undeva pe un forum..un fel de robot care posteaza horoscopul/ stiri in diferite sectiuni ale forumului? cum se face >?

Scris: 11-Iul-2007, 10:47:09
de seelview

Scris: 11-Iul-2007, 12:07:56
de onutzu
ok.. mersi de link... dar .. mai intai m-am uitat pe instructiuni si la pasul asta .. cum fac ? am forumul pe 110mb.com

Cod: Selectaţi tot

Step 4  :  Finally, set up an automated task to run the news insert automatically.
##
##                     LINUX SYSTEMS
##                     -------------
##                          Set up a cron job (I use a quarter daily cron job) containing the following...
##                              (if anyone knows a better way of doing this, please let me know!)
##
##                          get all      - GET http://www.YOURDOMAIN.com/YOURFORUMS/news_insert.php > /dev/null
##                          get 1        - GET http://www.YOURDOMAIN.com/YOURFORUMS/news_insert.php?n=1 > /dev/null
##                          get multiple - GET http://www.YOURDOMAIN.com/YOURFORUMS/news_insert.php?n=1,2,3 > /dev/null
##
##                          beginners guide to cron - http://www.unixgeeks.org/security/newbie/unix/cron-1.html
##                          
##
##                     WINDOWS SYSTEMS
##                     ---------------
##                          Create a batch (.bat) file containging the following...
##                          
##                          YOUR_PATH_TO_PHP -q YOUR_PATH_TO_NEWS_INSERT.php
##
##                          Set up a windows system task as follows...
##
##                              [*] open Windows Task Scheduler 
##                              [*] create a new task 
##                              [*] enter YOUR_PATH_BAT_FILE (with the quotes!)
##                              [*] give it a scheduled time to run 
##                              [*] on the settings tab, check the Stop the task box and set the value to 0 hrs 1 minute 
##                                  (this should be plenty long enough and is probably longer than your php timeout setting).
##