Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-26-2012, 06:03 PM   PM User | #1
Itsjustmeman
New to the CF scene

 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Itsjustmeman is an unknown quantity at this point
Difficulty of small project

I'm not very good with PHP, but a forum I help out when I can needs an off-site hosted script through PHP.

It's job will be to make a task where every x minutes to scan through the most recent x entries of posts that has members being quoted from posts table then insert notification in the notifications table.

Translation: When someone is quoted they get a notifcation via PM.

We don't have root/DB access and Ajax isn't possible, so i'm wondering how difficult this would be for someone like me who doesn't know much about PHP
Itsjustmeman is offline   Reply With Quote
Old 07-26-2012, 06:59 PM   PM User | #2
Keleth
Senior Coder

 
Join Date: Jun 2008
Location: New Jersey
Posts: 2,354
Thanks: 45
Thanked 247 Times in 244 Posts
Keleth is on a distinguished road
I'd say this is on the mid end... to run something every few minutes requires something called a cron job. It requires having access to the server to setup.

After that, the actual script would be pretty easy as long as you have the access information for the database and the database allows foreign connections (a lot of databases don't allow connections from outside the server they reside on). If your DB doesn't allow foreign connections, there are other methods, but more convoluted.

Why not edit the code that sends the PM? I can understand concerns about upgrades, but as long as you keep track of what you're doing, it may the best way if you don't have a great deal of access to the server.
Keleth is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:00 AM.


Advertisement
Log in to turn off these ads.