PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
yogimaster
New Member
New Member


Joined: Feb 12, 2005
Posts: 3

PostPosted: Mon Feb 14, 2005 4:04 pm Reply with quote Back to top

Love it! It's so convenient to send out forum's posting to subscribers.

Question: is there a way to automate this process (through cron?) to allow it to send out newsletter every day at midnight?

thanks.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Feb 14, 2005 5:29 pm Reply with quote Back to top

Wow, new ideas come at us every day! Never thought of this one. The difficulty with supporting cron is the PHP-factor (how do you kick off a PHP script from a cron job). Try checking out the following thread for possible ideas:

Only registered users can see links on this board!
Get registered or login to the forums!


Based on how the tool is written right now, you have to be logged in as Admin, so I am not sure off the top of my head how you could automate that (again, as currently written). I'll add it to our Workboad over at
Only registered users can see links on this board!
Get registered or login to the forums!
as something to look into.

I am using phpMySQLAutoBackup to do a back-up each night. I was able to schedule a task in Windows XP to fire up Internet Explore and pass it the needed URL. I wouldn't know how to get it to pass the URL string to an already opened browser window -- i.e., one that is already logged in to your admin account.

PHP really needs to have something built in for this! There are alot of things that I would like to be able to submit through cron. I really don't like the approaches for relying on web site usage (users clicking pages) to kick things off: 1) you have to have a very active web site, and 2) depending on what is being "kicked off", it could impact the user experience (i.e., long running processes).

Regards,
montego
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Mon Feb 14, 2005 5:52 pm Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!

Its not a total solution maybe but it is another tool.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Feb 14, 2005 8:37 pm Reply with quote Back to top

Six,
Sure wish I had command line access to my hosted server. I see this tool requires both PHP to be run as a CGI (all the web hosts I have worked with lately compiled it as an Apache module) and server command line access to get it set up initially.

Just some things for others to keep in mind as well. Might work for some, but not very many of us "shared plan" folks...

Regards,
montego
View user's profile Send private message Visit poster's website
mangaman
New Member
New Member


Joined: Sep 13, 2004
Posts: 16

PostPosted: Tue Feb 15, 2005 12:57 am Reply with quote Back to top

You might try phpJobScheduler
Only registered users can see links on this board!
Get registered or login to the forums!
. I found it once on another forum, I have never tried it though. What it does is you put a include at the end of a php file (i.e. index.php ) and every time that file is visited it checks to see if there is a php script that you have setup to run at that time. So if you don't get alot of traffic it might not work, BUT Like montego said:
Quote:

I was able to schedule a task in Windows XP to fire up Internet Explore and pass it the needed URL.

which might work in this case also.

It is somethig for montego and I to look at.

EDIT:
I just noticed the montego said he didn't like this type of scheduler, BUT I still think that it might work if you can automate a visit to you site at around the time you want you script to go off. hummmm maybe I will play with it to check and see.
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Tue Feb 15, 2005 6:56 am Reply with quote Back to top

Actually, mangaman, I think you may be on to something. If site activity is low, this could certainly be used couple with a PC sheduled to hit a certain page. So, why not make that page only submitted via this specially scheduled page hit.

We have to change the HNL to be "batch submittable". I.e., under a specially crafted new function or script, make it configurable for "hands-off" building of the newsletter and sending.

I like it!
montego
View user's profile Send private message Visit poster's website
ecvej
Hangin' Around


Joined: Oct 10, 2004
Posts: 45
Location: Northampton, UK

PostPosted: Wed Feb 16, 2005 8:04 am Reply with quote Back to top

if you have c-panel it's easy to run a php script from the cron tab
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum