Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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 Complete Forum Thread with Replies

Related Forum Messages:
Dump Hundreds Of Webpages Nightly, XML? Or PHP?
I want to dump out into hundreds of webpages nightly. Is there already such a tool developed? Has anyone attempted anything and seen if its better to use an XML system rather then mysql?

Reason the database is involved at all is there will be some querying and comparisons, but i want static html for performance and easy of getting spidered.

View Replies !
PHP E-commerce Backend
I'm looking for a script and/or service that I can use to bill credit cards on the fly using PHP. Can anyone suggest some of the better packages out there?

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 !
Php CMS Backend Seperate From Frontend
I've been asked to update a (largly static) webpage and add various CMS
features. The exact features are still being discussed, but web
updateable (by certain administrators) news and calendar are a must and
there are talks about forums, photo galleries and other stuff.

Anyway I've found a number of packages with these features, but they all
seem to tie the CMS features fairly tightly to a pre packaged frontend,
and I'm not allowed to signifigantly change the look or layout of the
current page (and to be fair I think the current page works, visually).

Are there any php packages that contain only the backend stuff in a way
that can be dropped into an exsisting site. I could write it all myself
or try to rip some relevant code out of other CMS systems, but I'm
wondering if someone can recomend something that would save me time and
effort.

View Replies !
Not Seeking A Cms, Just A Backend Install...
I'm looking for a script that installs just as a backend to edit text and images in DIVs - anyone have an idea of something like this?

View Replies !
Php Backend WYSIWYG Editor
anyone know of a backend that will allow my clients to login and alter their sites? looking for something free like Opensource.

Tried Snippet Master and found its a load of crap, good idea but dosent perform simple functions like inserting an image. any ideas? or anyone know what i would look up? i have tried heaps can find a normal one...

View Replies !
Uploading A Pdf File From A Backend
Hi! Ok so im having some difficulty with this:

my boss has a pre-existing backend for his company where he can upload images and information about equipment. he wants to be able to upload a pdf file the same way.

on the forms i want to be able to do a browse button and find a pdf file and then once the form is submitted, an icon appears on the website for the users to click on and open a pdf file in a new window.

the backend is done in PHP and im new to it. I'm very confused on how to get the file to load onto the website so that its a clickable icon.

if someone could give me some guidence with this that would be amazing!

I am using dreamweaver and it does the old style of PHP (with .$HTTP_POST_VAR kinda language!)

View Replies !
On Front End And Java On Backend
Is it possible to use PHP on the front end and Java on the backend? Either using EJB or not? I know it's not common but I'm curious if anyone has done it.

View Replies !
What Is The Difference Between The Backend And Database?
What is the difference between the backend and database?

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 !
How To Execute A Tasks If The Time Is 22:30:45
crontab work every minute

How to execute a tasks if the time is 22:30:45 or 22:31:01

id | time | script
-------------------
4 | 22:31:01 | script0.php
3 | 22:31:00 | script1.php
2 | 22:30:45 | script3.php
1 | 22:30:00 | script2.php

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 !
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 !
PHP Login Problems (with MySQL Backend Database)
I run a book exchange web site based in PHP with a mysql database.
Many users have having trouble logging in.

Here is a description of the problem.

A user types in his/her username and password and hits login. The
browser thinks for a bit then the login screen comes up again and
nothing has happened (except now the username and password fields are
blank).

Here is a snippet of the code...

session_register( "email" );
session_register( "passwd" );
#setcookie( "email", $email, time()+3600*24*365 );

I commented out the setcookie function because many users use the same
computer and they were able to use the same computer with the
setcookie function in there....

View Replies !
Content Management System Using Backend Database
Can I ask some advice in regards database solutions and content management
solutions.? Do you have a philosophy on what is the best for databases -
ASP, JSP, Cold fusion, PHP, etc. My company website site is going to be
rebuilt and I am the lucky one to do this but I am unsure of the needs and
complexity of the project, and what would be the best base code. Do you
have any thoughts in this area? The site requires functionality like display
projects, archive projects, sort projects by date, project location, group
company, etc. All images and pdfs are currently uploaded through the
content management solution, however we will have to implement a new content
management solution as well. Do you know of an easy to use product that
functionally work well in content management? Do you know of any products
on the market that are like WYSIWYG database solutions?

View Replies !
Backend Document Data Merge & Conversion
I am looking for a solution to save me loads of time. A potential client has alot of forms which we wish to present to their customers at the end of an application process as a permanent record of their application. The forms are word docs.

I was hoping it were possible to easily convert these forms to an open document or pdf template such that the fields can be defined for dynamic data population on a linux server from mySQL before outputting these to the use for saving/printing/emailing etc. Code:

View Replies !
Have I Chosen The Correct Language For The Backend Of My Project?
If you are unfamiliar with the website, it is basically an archive of one kind of file, in this case .nzb files. It is also searchable, and requires login, and other various options to search the database. I plan to use MySql for this project as the database.

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 !
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 !
Creating A Backend Control Panel So That I Can Login And Update My Website
I am in need of some help with creating a backend control panel so that i can login and update my website with new news etc. Using MySQL to store login credentials is not an option therefore i want to have a script that allows me to login to the control panel on the basis that 'if the username and password entered by myself matches the username and password stored in the script' then the login attempt is successful and the control panel loads (control.php).

<?php
$username = $_POST['user'];
$password = $_POST['password'];
$self = $_SERVER['PHP_SELF'];

if( ( !$username ) or ( !$password ) ) //Attempted Presence Check


if( $username = user2007 ) and ( $password = hey2007 ) //Stored login details that i need to match
echo( "Login Succesfull!" );

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 !
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 Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved