[PHP] Re: idea? add set_trace_handler() to PHP

2009-12-24 Thread Rene Veerman
already thought of a small improvement: function traceHandler ( $file = string;fullpath, $lineNumber = integer, $functionName = string, $eventIsStartOfFunction=boolean, // false = being called at exit of the function $arguments = array( '[&]$argumentVar

[PHP] idea? add set_trace_handler() to PHP

2009-12-24 Thread Rene Veerman
Hi, I would like the opinion of the readers of this list on whether or not they agree on the usefullness of adding some new functions to the core of PHP. Background Info: I want more debug-information from my scripts. And I want to perform lengthy operations in a more robust way. And I want to m

Re: [PHP] Tracking file download progress

2009-12-24 Thread kranthi
Just out of curiosity. Can you please tell me how you initiated the download? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: strtotime - assumptions about default formatting of dates

2009-12-24 Thread Angus Mann
I wrote a little AJAX gadget which sent the string typed to a PHP backend which parsed it using strtotime and then formatting it out again as something unamiguous (like 2 January 2009). Then every time the date entry field is changed by the user (with an onKeyUp event), this AJAX call is trigge

Re: [PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread Bastien Koert
On Thu, Dec 24, 2009 at 9:12 AM, tedd wrote: > At 10:20 PM +1000 12/24/09, Angus Mann wrote: >> >> Hi all. I need to allow users to enter dates and times, and for a while >> now I've been forcing them to use javascript date/time pickers so I can be >> absolutely sure the formatting is correct. >>

Re: [PHP] Form validation issue

2009-12-24 Thread tedd
At 3:10 PM +0530 12/24/09, kranthi wrote: The javascript function formValidator() must return false if any errors are formed. The PHP only runs if the fields are set by testing using 'isset". You should definitely have a better validation than that. Remember that all users dont have javascript

Re: [PHP] Form validation issue

2009-12-24 Thread tedd
At 2:22 AM -0800 12/24/09, Allen McCabe wrote: Tedd, If you are using a post method using $_SERVER['PHP_SELF'], then values are present in the POST array, hence, you would write your html with interspersed php like so: id="username" /> No, I wouldn't do it that way. First, a "post method

Re: [PHP] Tracking file download progress

2009-12-24 Thread tedd
At 5:28 PM +1000 12/24/09, STEEL wrote: Hi all! Here is the problem: i have PHP script that takes URL of file from client and downloads it to my server. But when file is downloading, clients see blank page. How can I track file download progress on the server side(easier) and send resul

Re: [PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread tedd
At 10:20 PM +1000 12/24/09, Angus Mann wrote: Hi all. I need to allow users to enter dates and times, and for a while now I've been forcing them to use javascript date/time pickers so I can be absolutely sure the formatting is correct. Some users are requesting to be able to type the entries t

Re: [PHP] DailyWTF - Maybe I Needing Later

2009-12-24 Thread tedd
At 11:17 AM -0800 12/23/09, Adam Randall wrote: Unfortunately, this is how government works too. About 10 years ago while maintaining the Golden Gate website I had to post contracts to their site. These would be for things like seismic retrofits, etc. Contractors would bid on the contracts, and w

Re: [PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread Daniel Egeberg
On Thu, Dec 24, 2009 at 13:20, Angus Mann wrote: > Hi all. I need to allow users to enter dates and times, and for a while now > I've been forcing them to use javascript date/time pickers so I can be > absolutely sure the formatting is correct. > > Some users are requesting to be able to type th

[PHP] Re: strtotime - assumptions about default formatting of dates

2009-12-24 Thread Pete Ford
On 24/12/09 12:20, Angus Mann wrote: Hi all. I need to allow users to enter dates and times, and for a while now I've been forcing them to use javascript date/time pickers so I can be absolutely sure the formatting is correct. Some users are requesting to be able to type the entries themselves

[PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread Angus Mann
Hi all. I need to allow users to enter dates and times, and for a while now I've been forcing them to use javascript date/time pickers so I can be absolutely sure the formatting is correct. Some users are requesting to be able to type the entries themselves so I've decided to allow this. I'm i

[PHP] PHP/SWFUpload progress

2009-12-24 Thread German Geek
Hi all, Wishing you a merry xmas! As a gift to you a little thing that I figured out through long googling and trial and error: We are using the swfupload (flash) upload tool to upload files to a php script. For a rather cryptic reason on some clients the progress would show too quickly when AVG

Re: [PHP] Tracking file download progress

2009-12-24 Thread STEEL
> On Thu, Dec 24, 2009 at 09:55, STEEL wrote: >> Thanks for response, but seems you haven't understood: takes URL of file from client  and  downloads  it  to  my server. >> User  don't download it at the downloading time to server, server gets >> it thru PHP script and stores on itself! >>

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
On Thu, Dec 24, 2009 at 09:55, STEEL wrote: > Thanks for response, but seems you haven't understood: >>> takes URL of file from client  and  downloads  it  to  my server. > User  don't download it at the downloading time to server, server gets > it thru PHP script and stores on itself! > ONly  i w

Re: [PHP] Form validation issue

2009-12-24 Thread Allen McCabe
Tedd, If you are using a post method using $_SERVER['PHP_SELF'], then values are present in the POST array, hence, you would write your html with interspersed php like so: I sometimes use a function for the echoing of these values if I use the same form for first time (ie. registration) and edi

Re: [PHP] Form validation issue

2009-12-24 Thread kranthi
The javascript function formValidator() must return false if any errors are formed. >>The PHP only runs if the fields are set by testing using ‘isset”. You should definitely have a better validation than that. Remember that all users dont have javascript enabled. Moreover it is very easy to modify

Re: [PHP] Tracking file download progress

2009-12-24 Thread kranthi
I dont think the problem in discussion has a solution. Your idea can probably work but I could not understand how $_REQUEST['compleated'] variable is populated. However it suffers from 2 problems. 1. It consumes a lot of unnecessary bandwidth. 2. How are you going to initiate the download ? That

Re: [PHP] Tracking file download progress

2009-12-24 Thread STEEL
> 2009/12/24 STEEL : >> Hi all! >> Here  is  the  problem: i have PHP script that takes URL of file from >> client  and  downloads  it  to  my server. But when file is downloading, >> clients  see blank page. How can I track file download progress on the >> server  side(easier) and send result to c

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
2009/12/24 STEEL : > Hi all! > Here  is  the  problem: i have PHP script that takes URL of file from > client  and  downloads  it  to  my server. But when file is downloading, > clients  see blank page. How can I track file download progress on the > server  side(easier) and send result to client l