[PHP] Script execution after window close

2012-03-04 Thread Nibin V M
Hello, I need to run a few commands when a user close the browser tab. That is, I have a php page ( index.php ) and it will create a temporary file to track some stuffs. That temporary file should be removed, when the user close the browser tab. Is there any way to achieve this? Thank you, --

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:49 +0530, Nibin V M wrote: Hello, I need to run a few commands when a user close the browser tab. That is, I have a php page ( index.php ) and it will create a temporary file to track some stuffs. That temporary file should be removed, when the user close the

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( On Sun, Mar 4, 2012 at 9:01 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: ** On Sun, 2012-03-04

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( Fine, so delete it after a period of inactivity -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Script execution after window close

2012-03-04 Thread Stuart Dallas
On 4 Mar 2012, at 15:31, Nibin V M wrote: in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( Ash is right in that this is exactly what sessions are used

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..I have script which will run based on some values in user's homedir. In fact I have tried to run the script from a various locations; but it didn't work as expected like it run from each users homedir. So, when the user access the page, it will copy the actual script to the user's homedir

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( Fine, so delete it after a period of inactivity ok..I have script which will run based on some

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 11:29 -0500, Govinda wrote: in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that file alone for ever in the user disk space! :( Fine, so delete it after a period of

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..thanks guys...I will check further then. thanks for your inputs :) On Sun, Mar 4, 2012 at 9:59 PM, Govinda govinda.webdnat...@gmail.comwrote: in factI really need to remove the file ( which will be created for every access - making a copy from another location ). I can't leave that

Re: [PHP] Script execution

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 01:23, Paul M Foster pa...@quillandmouse.com wrote: (Dan, make the check out to... ;-) Paul I prefer PayPal. Thanks to the Postal Service, the cost of a stamp is probably more than a bribery or endorsement payment. :-\ -- /Daniel P. Brown

[PHP] Script execution

2009-03-09 Thread George Larson
Hi everybody. The problem that I'm having is probably because I've got more of a Windows background -- and it isn't so much a problem as a point of curiosity. I've recently noticed that when I write a script that they seem to have different permissions when executed at the command line. Two

Re: [PHP] Script execution

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 16:59 -0400, George Larson wrote: Hi everybody. The problem that I'm having is probably because I've got more of a Windows background -- and it isn't so much a problem as a point of curiosity. I've recently noticed that when I write a script that they seem to have

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 16:59, George Larson george.g.lar...@gmail.com wrote: Am I imagining things?  If not, how would I properly make them able to run through a browser? You're not imagining things. In general, unless set up with SuExec privileges, Apache (which is probably the HTTP

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:04 PM, Daniel Brown danbr...@php.net wrote: On Mon, Mar 9, 2009 at 16:59, George Larson george.g.lar...@gmail.com wrote: Am I imagining things?  If not, how would I properly make them able to run through a browser?    You're not imagining things.  In general, unless

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:17, haliphax halip...@gmail.com wrote: OP is a Windows user. I am assuming that they are using Windows. Re-read the context of that first paragraph from the OP and you'll see why I presume (as opposed to *ass*ume) that, despite his experience with Windows, this is

Re: [PHP] Script execution

2009-03-09 Thread George Larson
Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data from a database and

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:21, Daniel Brown paras...@gmail.com wrote:    Re-read the context of that first paragraph from the OP and you'll see why I presume (as opposed to *ass*ume) that, despite his experience with Windows, this is a *NIX-like setup. DISCLAIMER: This was supposed to be

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:28 PM, Daniel Brown paras...@gmail.com wrote: On Mon, Mar 9, 2009 at 17:21, Daniel Brown paras...@gmail.com wrote:    Re-read the context of that first paragraph from the OP and you'll see why I presume (as opposed to *ass*ume) that, despite his experience with

Re: [PHP] Script execution

2009-03-09 Thread George Larson
That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) On Mon, Mar 9, 2009 at 5:28 PM, Daniel Brown paras...@gmail.com wrote: On Mon, Mar 9, 2009 at 17:21, Daniel Brown

Re: [PHP] Script execution

2009-03-09 Thread Michael A. Peters
George Larson wrote: Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:36 PM, George Larson george.g.lar...@gmail.com wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile.  :) In a word, I think familiarity sums

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes. That's what my name tag says. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes. That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham nrix...@gmail.com wrote: Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes.    That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! Yep.

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
George Larson wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) may be something to do with the fact 95% of posts here could be covered by: - a 5 question

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham nrix...@gmail.com wrote: Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes. That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad

Re: [PHP] Script execution

2009-03-09 Thread Ray
On Monday 09 March 2009 15:38:37 Michael A. Peters wrote: George Larson wrote: Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred

Re: [PHP] Script execution

2009-03-09 Thread Paul M Foster
On Mon, Mar 09, 2009 at 05:36:05PM -0400, George Larson wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) Wow! This list is pretty cordial. I've been on

RE: [PHP] Script Execution Time

2003-07-29 Thread Ow Mun Heng
Message- From: Jeff Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:17 AM To: Petya A Shushpanov Cc: Radek Zajkowski; PHP GENERAL Subject: Re: [PHP] Script Execution Time On Jul 29, 2003, Petya A Shushpanov claimed that: |? |class jTimer { |[snip] | |$timer-stop(); |echo

[PHP] Script Execution Time

2003-07-28 Thread Radek Zajkowski
Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP engine performance problems and I need to send them the figures. Thanks in advance R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Script Execution Time

2003-07-28 Thread Brad Pauly
Radek Zajkowski wrote: Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP engine performance problems and I need to send them the figures. Check out the user contributed notes on php.net for microtime().

Re: [PHP] Script Execution Time

2003-07-28 Thread Curt Zirzow
* Thus wrote Radek Zajkowski ([EMAIL PROTECTED]): Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP engine performance problems and I need to send them the figures. So I'm suppose to take my timeout and

Re: [PHP] Script Execution Time

2003-07-28 Thread Ryan A
Hi Radek, This has been posted before...around once every 2 weeks I guess :-)...check the archive or you will/may get flamed. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script Execution Time

2003-07-28 Thread Petya A Shushpanov
- From: Radek Zajkowski [EMAIL PROTECTED] To: PHP GENERAL [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 1:09 AM Subject: [PHP] Script Execution Time Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP

RE: [PHP] Script Execution Time

2003-07-28 Thread Chris W. Parker
Petya A Shushpanov mailto:[EMAIL PROTECTED] on Monday, July 28, 2003 3:41 PM said: ? class jTimer { [snip] } $timer = new jTimer; $timer-start(); #your code here $timer-stop(); echo round($timer-elapsed(),5); You could one up this class by creating another method that

Re: [PHP] Script Execution Time

2003-07-28 Thread Petya A Shushpanov
Tnx. I`ve it fixed jet. - Original Message - From: Chris W. Parker [EMAIL PROTECTED] To: Petya A Shushpanov [EMAIL PROTECTED]; Radek Zajkowski [EMAIL PROTECTED]; PHP GENERAL [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 3:50 AM Subject: RE: [PHP] Script Execution Time Petya

Re: [PHP] Script Execution Time

2003-07-28 Thread Jeff Harris
On Jul 29, 2003, Petya A Shushpanov claimed that: |? |class jTimer { |[snip] | |$timer-stop(); |echo round($timer-elapsed(),5); |? | |-- |Petya A Shushpanov | Or, you could use http://pear.php.net/package-info.php?package=Benchmark -- Registered Linux user #304026. lynx -source

[PHP] php script execution by linux automated task

2003-03-21 Thread Nenad Djordjevic
Hello, I have some web application which is on some rented server. I have not root privilege just FTP access to application web folder. OS is Linux, web server Apache/1.3.27 and PHP version is 4.3.1 I need to define Linux task which will, in defined time, execute some PHP

[PHP] Re: php script execution by linux automated task

2003-03-21 Thread Brian McGarvie
look up cron Nenad Djordjevic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have some web application which is on some rented server. I have not root privilege just FTP access to application web folder. OS is Linux, web server Apache/1.3.27 and PHP version is

Re: [PHP] Script Execution via URL

2002-09-01 Thread Justin French
This would work if the script you wished to call was default.php / index.php / etc etc... what I mean to say is site.com/index.php?var=foo is the same as site.com/?var=foo, as long as your server works that way. leaving out PHP_SELF will give different results if the script you wish to call

[PHP] Script Execution via URL

2002-08-31 Thread Sascha Braun
Hi everybody, i wrote a script which will be executed by HREF's. If a command is going to be executed by a click on a link the page reloads itself and jumps in the part of the script, which should be executed. Normaly I wrote some like this for doing this: echo 'a

[PHP] script execution stops after mail()

2001-08-16 Thread Vincent
Hi, I've been skipping a night over this strange error: after execution of a mail() command, de rest of the script just gets ignored and my browser displays a Cannot find server or DNS Error page instead. Ideas about how to make this baby work would be very welcome; thanks in advance. I'm

Re: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
Hi, Well the PHP script is timing out after it executes a no. of (or all the mail() commands). So what you got todo is either set the PHP's timeout limit to 0 or infinite. set_time_limit(0); Or you could invoke another program in the background disconnect PHP (terminal) from it, and voila. But

RE: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
]] Sent: donderdag 16 augustus 2001 13:57 To: Vincent; [EMAIL PROTECTED] Subject: Re: [PHP] script execution stops after mail() Hi, Well the PHP script is timing out after it executes a no. of (or all the mail() commands). So what you got todo is either set the PHP's timeout limit to 0

Re: [PHP] Script Execution Time

2001-07-19 Thread Jome
I have a php script that returns about 1.5Mb of data in text format to the user. I am wondering if there is a way for php to display the time it took to execute the script at the end of the file. Put this at the top of the script: code function getmicrotime(){ list($usec, $sec) =

Re: [PHP] Script execution Speed

2001-01-12 Thread Cynic
depends on the underlying FS - you might find yourself bitten by disk hits that could've been avoided... How about writing a small test suite and benching the server? At 00:29 13.1. 2001, Randy Johnson wrote the following: -- Is it