[thelist] Running php scripts from an email

Dunstan Orchard dunstan at 1976design.com
Mon Oct 13 12:34:35 CDT 2003


> > Dunstan wrote:
> >
> > When someone posts a comment to my blog (not that that happens very often)
> > my php scripts send me an email alerting me of the event.
> > 
> > If the comment is spam I'd like to be able to reply to the email and have my
> > server run another php script to delete that record from my mysql db.

> Marek Kilimajer wrote:
> 
> You don't need any of those, just working php. In your alert email 
> provide yourself a link that will point to a php script on your site 
> that will delete the offending post:
> 
> http://yoursite.net/delete_post?post_id=2234&secret_string=asdui34238d
>
> The secret string can be just one for all posts all for added security 
> generate new one for each post.
> 
> If you have admin interface you might not need to do even that, jast 
> mail yourself the same link that is in the admin interface.

*slap forehead*

oh yes, that's a much simpler solution, thanks Marek.

I think I got a bit carried away with technology :o)

Still, if anyone could answer my question, for future reference, I'd be
interested. If not then no worries.

Cheers - Dunstan

---------------------------
Dorset, England
http://www.1976design.com/
http://www.1976design.com/blog/


More information about the thelist mailing list