Sending Mails Without Using Scheduled Tasks (crone Jobs)
Can we set up a mail program that the mail can sent frequently..ie may be daily or weekly or monthly... with out using scheduled tasks or crone jobs.
for eg .. can we create a page that works like the scheduled tasks page( there we can set up the time at which time the program will execute )..that means we have options in our webpage to set up the time at which the mail will sent. for eg..every monday.. can we set up this in the program without using scheduled tasks or crone jobs. can we run our page frequently without using crone jobs .
View Complete Forum Thread with Replies
Related Forum Messages:
Cron/scheduled Tasks
Im running my site on a web server, and want to add something so that every hour the variable $gold = $gold*($workers*3.1) +($banks*30); and the way to do this is cron jobs from what ive gathered from searching google. BUT not only haven't i found a good tutorial, but I haven't found a single example taht isn't with CGI or a download.
View Replies !
Cron Jobs / Tabs / Tasks And More
I'm building a site with a mySQL db behind it. There are going to be a lot of records in it with products. Now i have recently discovered cron jobs, and i thought it would be a good idea to use those to backup the database. i have a few questions: - If i back up the database, does it put the backup in an actual different db, or just in the same db but other tables? (Silly question maybe, but i'm new to this) - Can the DB still be queried bij site-visitors though it's being backed up? - Is it possible to just backup new/updated records instead of the entire db? - Imagine i backup once a month. can the cron job notice if the DB is dameged/ has errors, so it'll stop backing up so it doesn't overwrite the previous backup... or doesn't backup delete the previous backup?
View Replies !
Scheduled E-mails
I would like to create a "send out scheduled e-mails" function in my PHP application. I guess it would be hard to program this function using PHP. What ways can I implement this?
View Replies !
Automatic Scheduled E-mails
I have a website that I am building in PHP that I would like to send e-mails to users every 2 days to inform of new updates. I know how to trigger the sending of e-mails if a user enters the site, and can limit this to only happening once every 2 days, but I am interested to know if it is possible to have PHP send e-mails automatically in case no one visits the site?
View Replies !
Sending Mails
I want my site to send scheduled e-mail messages to some of the site members .. How can that be done using php ? Does mail() function perform this task ?
View Replies !
Sending Mails Though Php
How should mailto() function work. I want my site to send scheduled email messages to specific mail addresses retrieved fromt he database. Knowing that i have e-mail addresses under my domain.
View Replies !
Sending Authentication Mails
when users are register on our website, their username, encrpyted password and so on are stored in the mySQL database. Many phpbb sites though send an activation mail to the email address specified by the user. The user then needs to select a link to get his account activated. I would like to implement this process, can anyone tell me how this is done?
View Replies !
Problem Sending E-mails
When I send e-mails to users they(emails) always reach them in text format, independent of the users preferences. Also, when I send test e-mails the one that is sent as in html format contains urls next to url names, i.e. all the web addresses in href= are seen in the e-mail.
View Replies !
Mail() Sending Double E-mails...
I have the following function setup to submit some form data to a client and to myself. It works, however it sends two copies of the e-mail to each of us. Note that I'm using simply '' after the headers as '' was printing the headers in the body of the e-mail rather than apply the header.....
View Replies !
70 Characters Limit When Sending Mails
I have built a "contact us" form on my Web site and am using the PHP mail() function to send an e-mail to the Webmaster (that's me :-)) Everything works fine. What I would like to know however is whether it is always necessary to limit each line of the message to 70 characters, as is written in the documentation of the function (writing for instance $this->message = wordwrap($message, 70)). It seems to work fine without doing it in my case and the text is easier to read. I guess there must be a reason for the limit, but how to find out when it is needed?
View Replies !
Php Sending Mails To Mailing List Show Strange Headers
i need to send a mail to one mailing list address.when i sent to this the from address comes as newsletter-request@abc.com; on behalf of; ABC[abc@abc.com] where newsletter@abc.com is the mailing list id abc@abc.com is the moderator id when i change the to address to any other email address other than this mailing list, the from field works fine. i have given the mailing list, in the Bcc header.
View Replies !
Error When Trying To Run From Crone
i try to open my php file from crone, i get this while connecting to MySQL. Any ideas? File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2) Character set '#9' is not a compiled character set and is not specified in the 'NONEXISTENT/charsets/Index' file
View Replies !
PHP Tasks
some times i get this error on my script: Internal Server Error i researched very much on why this error happens and i get to: i forgot to close some php tasks in my script. now i know only mysql_close() for closing one of php tasks. what are others php tasks that need to closing?
View Replies !
How Can I Automate PHP Tasks?
I am currently running the same task multiple times a day and I'm sure there is a way to automate it. It is a simple one, but with limited PHP knowledge I'm not sure of the best way to do this. Here's what I need to do 1) log-in to a 3rd party site 2) Download the CSV 3) Upload to my db
View Replies !
Cron Tasks
I'm building an auction site which needs scripts automatically launched to scan the closing auctions. I'll use Linux's crontab. I'd prefer to avoid installing Php as a cgi and prefer to keep my apache module config. I'd also prefer to avoid the use of a browser as lynx to do this job because I fear the time-out How I can launch my scripts?
View Replies !
Background Tasks
I'm using some weather rss feeds in a web site. The feeds are updated once every hour and cached in a local file. My problem is that every time the weather report is updating I get a long wait (not that long.. 2 or 3 secs) before the page is displayed. This happens becauses the teplate engine that parses the page is waiting for the weather section to be parsed and cached. Is there a ay I can start the weather parsing as a background thread and return immediatly to the template engine to continue to parse the page? And if so How?
View Replies !
Automated Tasks
I have an auction site running. Now I want the auction to be able to automatically send a mail msg to the seller after it expires. How do I do it? Obviously there is some sort of way that I can employ so that this task does not require an operator (such as me) to run manually. This task will involve accessing the database and sending an email. Can somebody enlighten me on this?
View Replies !
Directory Tasks
Im looking to do some work with directories. Basically, there are some directories which I want my website users to access fully, and see all the files in there. My server allows index of directories automatically, where users can see all the files in the directory (unless there is an index page). Code:
View Replies !
Using PHP For Nightly Backend Tasks?
I have to develop a script to be run nightly to go through a database and send emails based on conditions. It's a large database, and there are several thousands of emails to be sent during the week everyday. The script will be run with a cron job at midnight or so. I was wondering if PHP is suitable for this, or may it be problematic, for instance would its execution abort after a certain amount of time? Or is it perfectly fine for this task?
View Replies !
How To Schedule Tasks On Website.
I am trying to figure out how to schedule tasks on my website. For example, PAGE1 should perform a different task in the morning than in the afternoon. And at the end of the day, I have to extract some data from the database and put them into a file. This should be done automatically.
View Replies !
Script In Windows Tasks
I would like to know how do i work with php in windows tasks. i developed a php web application and i would like to recieve to my email every day a certain report which will be produced by a php script.
View Replies !
PHP/mySQL Running Tasks Automatically?
I have a MySQL DB with all my client details (name, email address etc). I want to use PHP to retrieve records from the DB and email each of these clients (easy enough) BUT I want the system to automatically do this at pre-defined times. I have thought about using the UNIX/Linux CRON utility to perhaps call a PHP script that would retrieve specific records (based on a timestamp perhaps?) and then have it email based upon those records. Does this sound feasible? Are there better ways to do this?
View Replies !
Scheduled Events
possible to get php to execute a script at certain times a day ? or is the only way to have a list of set times in a db, and when each user comes to my site see if it has been done or not ? and do, or dont do accordingly?
View Replies !
Scheduled Scripts
Can anyone tell me if there is a way of having a PHP script run at a scheduled time each day? Our ISP's server is running under Linux and I was hoping to use something called CRON. However my ISP has told me this is not possible, and I will need to write the script in PERL.
View Replies !
Using Scheduled Task
I have a php code which when executed fwrites the contents into a file. That works fine. But when I use the windows task scheduler to execute it, windows a return of (0) which means no errors but the file doesn't seem to be executed. The thing is that prior to me adding the functionality in the PHP code to produce output to a file, using scheduler to run the file was fine.
View Replies !
Scheduled Task
setting up a task to run nightly? The problem at hand is, company A stores data on company B's server. Then nightly, company B creates an XML feed for them to take the updates and put them in there own database server (that I am going to set up). The website never sends updates back, the only updates from company A are from inside there office system. So, what I have to do is take this XML feed and put it in my own server. It could be a fairly large number of records (500 maybe) - So I'm not sure how fast it could realistically be parsed through and then added to the database. How do I go about this without checking each time a user visits the website? It needs to be automatic too, rather than somebody going to the specific page each night and clicking 'go'.
View Replies !
Scheduled Mysql Queries?
How do you schedule a mysql query? Like (half pseudo-code): mysql_schedule("every five minutes"); $query = mysql_query("SELECT some integer"); $int = mysql_fetch_array($query,MYSQL_NUM); $int[0] += 10; mysql_query("INSERT $int") or something along those lines...I want my users to accumulate "taxes" every turn..even when their not playing..turns will last 5 minutes.
View Replies !
OT (possibly): Scheduled Actions
I've got a dedicated server running Windows 2003, IIS, MySQL and PHP. I'm working on a web site which needs to pick data up on a semi-regular basis from a CSV file which will exist in a directory accessible to this server. The data will be put there by another server. I need to pick up this data and insert it into a MySQL table; I have three options in theory - do it on a strict schedule, do it on request by an admin user (the easy option), or have it happen automatically if a file drops into that directory. Can PHP do this, or do I need to look at something else to do this for me? I can install/setup anything I like on this server, within reason.
View Replies !
Scheduled AT Job Reports 'The Account Is Currently Not Available'
I am scheduling an AT task from a php file using sudo and user 'joe' that reports correctly when using atq from the command line. However, although the script being executed by the job runs ok from the command line I get a mail message saying 'The account is currently not available' when the job is scheduled by php? It's not an 'apache' user problem as far as I can see as the task is getting scheduled as 'joe'.
View Replies !
Running A Scheduled Task
I would like to run a simple php file that backs up my database. The file is in one of the virtual directories. I know I can do it with other ways, but I'm interested in how to do it on a windows OS, and using the windows scheduled tasks wizard - if possible. I've read that parameters need to be set up, but I don't quite understand what that means. how I can do this in a simple step by step fashion?
View Replies !
Scheduled FTP & Database Export
We currently have an online dedicated server where users can apply for jobs and attach their resumes, we have also setup a similar environment on our local machine for a system which we use to extract the applicants information and match it to the jobs we have. Everyday we get an average of about 150-200 job applications which translates to the same number of resumes. I need to be able to automate the process by which the resumes are downloaded everyday and stored on the local server and also schedule a database backup which should in essence export the database a set of sql statements which I can then run. The dedicated server has a PLESK interface which gives me access to the Cron Jobs interface, I just don't know how to proceed.
View Replies !
Scheduled Chunks Of Code
What I want to do is have a chunk of my code for my website only be accessed once a week on a set day. its basically a poll, that I want to find the highest rating for, but not all the time, I want for it to be once a week..
View Replies !
Executing PHP Tasks While Letting A User Continue To Browse?
I was wondering if someone could help me out with the following two situations. In a lot of my web apps, it seems that if i launch a PHP script that takes a long time to complete, the user is unable to browse/use the rest of the website until the tasks completes. Is there a way to avoid this? Specifically, app #1 let's a user choose which files to include in a zip file, then PHP makes the .zip file on the server and streams it to the user via fopen/fread. So, as the user is downloading a file on the side (it presents them with the open/save dialog) they are unable to browse the rest of the PHP-based site until the download completes; clicking on any links to pages does nothing, the browser just sits there until the file has been downloaded, THEN the screen advances. I am experiencing a similar thing with a PHP mail delivery system. I tried to create a work-around: a pop-up window that sends an 'exec' command to the a php-script that sends the email to a few hundred recipients. Again, even though this action is being done in a pop-up window (and via the command line, no less), the user is paralyzed in the main window until the action completes.
View Replies !
[Q] Automatic (i.e., Scheduled) Access To Another Web Page
I need to be able update my web site with info from a remote web site. At this other web site, the info I require is updated every 30 minutes, 24 hours per day. Life would be cool if a way existed by which I could "schedule" my code to run periodically so that my info could remain [reasonably] synchronized with the info on this other site. In the PHP docs / books I have I've been unable to find functions / services / examples that might permit me to implement this functionality. Do [php] services/classes exist that would meet this need? Do I need to invoke the services of my WEB server (apache on both ends)?
View Replies !
Strange Characters When Script Run By Scheduled Task
I've written a script that is run on a Windows server which gets headlines from a remote webpage, and I'm using a scheduled task to run it on a regular basis. The problem is that swedish characters (åäö) gets replaced with other characters.Example: Quote: Boverket sõger ja till ICA Maxi. v- och mp-r÷ster hotar budgetf÷rslaget. When I run the script from the web through my browser, it works fine. This only happens when I run it with a sheduled task.
View Replies !
PHP Jobs
I was wondering if any of you might have some advice. Until recently I worked for a software company and really enjoyed my job there. I moved with my wife to Colorado, and there are no software companies hiring (that I have found) in this area of Co. (I don't want to drive 1 1/2 hour to Denver each day). Do any of you have experience in freelance PHP work, is it a viable market?
View Replies !
Set Up Cron Jobs
I have to set up some cron jobs but I don't know anything about them, is there a place that someone knows of where i can learn about them? or tell me how to do them? another question, i'm also trying to set up a search for my site...how do u split up a sting so you can search for each individual word? for example if someone does a query for "billy boy", how do i split up the string so it can search for both words, "billy" and "boy", instead of just "billy boy"?
View Replies !
PHP Cron Jobs
I'm trying to set up a PHP cron job. The email i recieve to say that it's executed properly doesn't seem to like my comment codes and appears to be trying to find a file (reading the // as a file path presumably). Has anyone else had this problem? If so, how do i resolve it? Also are includes run in PHP Crons too? Perhaps this is causing my problem.
View Replies !
Cron Jobs & PHP
I am running the command: /aboslutepath/httpdocs/test3.php It tries to run the PHP as CGI. Is there a CGI command to include the PHP file? I use a simliar trick in my .shtml pages to run PHP. Any ideas?
View Replies !
Cron Jobs...?
I want to make a cronjob but am unsure how to create a cron.php script which is what the cronjob runs to perform the task. I want to make something that will email something like the number or visitors to my site, or what pages are viewed, or something like that. I guess there needs to be a script that collects data somehow, and then another to send it to me, but I dont know what to do to collect the data, I think i could figure out sending it once it's collected.
View Replies !
Cron Jobs
For a cron job would I have to use: A: <?php $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn) ?> or $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn
View Replies !
Run PHP Via Cron Jobs
I set up a bulk emailing service, but it is limited by my host. They only allow 100msg/hour. I coded a php script that will get 75 emails from database, and email them. I never worked with cron jobs, but I heard about it. If I can excecute this script once an hour, I'll be good. I was reading some stuff and no 2 of the codes I read were the same to excecute a php script every 1 hour, and they mentioned something about putting in a line to turn php into cgi.
View Replies !
Free Cron Jobs
My host does not support cron jobs, i doubt it, but is there any site that offers free cron jobs (ie: at 12:00 it will just open a page on my site)?
View Replies !
Perl, PHP, And Cron Jobs
I was told by a guy, "I may be mistaken, but I think you CAN access URLs from a perl script, so you could make a generic engine and run php programs from it". Is he mistaken? This is dealing with cron jobs. I'm not on an Apache server so I can't use the cron jobs to run php files. Only perl files, but it would be more convenient if I could just have a perl file run a bunch of php files I need rather than recoding my programs into perl format.
View Replies !
Cron Jobs Using CPanel
I use CPanel to control my site and I think cron jobs can do what I want on my site. I have a few questions: 1) How do you write a Cron Job to open a script on your website. 2) Can the script be in any language (PHP, Perl etc..) 3) If you can use PHP with it, would this script work? $selectall = mysql_query("SELECT * FROM users"); $selectall2 = mysql_fetch_array($selectall); while($selectall2){ $column1 = $selectall2['column1']+20; $column2 = $selectall2['column2']+80; $query = mysql_query("UPDATE users SET column1='$column1', column2='$column2'"); }
View Replies !
Creating Cron Jobs With PHP
I would like to set up a cron job that queries a game server every X seconds and then saves the info, so that later I can process the data to create a report of the game server. Code:
View Replies !
|