Re: Action link
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Action link

From: Carl Vondrick <usenet@carlsoft.net>
Date: Thu Apr 13 2006 - 18:51:59 CEST

Mark Towner wrote:
> - I would like a PHP script to execute an action before a user clicks
> on a link (updating the value of a variable, for instance).

What do you mean? A PHP script is only executed when it is told to so by
eihter Apache (via the user), a cron job, or some other method.

What are you trying to accomplish? If you want to just update a variable,
put it at the top of the script.

> Is there an easy way to do this?

A few:
- Just put it at the top of the script
- Cron jobs (scheduled tasks)
- Ajax/JS

Carl

> Thanks,
> Mark

-- 
Carl Vondrick
Web-Engineer
www.carlsoft.net
Received on Mon May 1 02:55:30 2006