Re: triggering php scripts...
| From: | Travis Low | Date: | Mon, 31 May 2004 05:19:19 +0000 |
| Subject: | Re: triggering php scripts... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187260@lists.php.net to get a copy of this message | ||
Chris Wagner wrote:
i am wondering if there is a good way to trigger a php script from a web page *without* sending the user to a new page or opening a new browser windows. for instance, suppose you wanted to make a button/link on a web page that, when clicked, would cause a database entry to be decremented. however, you do not want to refresh the page or open a popup window or any stinky little tricks like that.Use a virtual include to call the php script.
or, if this is not possible, does anyone know how to trigger a php script when someone accesses a particular file from an apache server? or if a file from a particular directory is downloaded...I don't think you can do that unless the php script is used to access the file or perform the download you speak of. cheers, Travis -- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>