Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Frank Arensmeier
6 mar 2008 kl. 06.10 skrev Zareef Ahmed: HI Chirs, On 3/6/08, Chris <[EMAIL PROTECTED]> wrote: Zareef Ahmed wrote: Hi Chris, Thanks for such quick response. quite good suggestion, but my application is using a framework and lots of includes and even autoloads of classes are being done,

Re: [PHP] Re: imagettftext and utf-8 (swedish characters)

2008-03-05 Thread David Sveningsson
tedd skrev: At 2:17 AM + 2/29/08, Nathan Rixham wrote: Nathan Rixham wrote: try changing: imagettftext( $im, $title_size, 0, 50, 50, $white, $font, $title ); to: imagettftext($im, $title_size, 0, 50, 50, $white, $font, utf8_decode($title)); Both statements work for me. -- see here: htt

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Zareef Ahmed
Hi Chris, Thanks for such quick response. quite good suggestion, but my application is using a framework and lots of includes and even autoloads of classes are being done, so using break point approach is not possible for me. Well, trying to do something so I can call my memory usage function

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Zareef Ahmed
HI Chirs, On 3/6/08, Chris <[EMAIL PROTECTED]> wrote: > > Zareef Ahmed wrote: > > Hi Chris, > > > > Thanks for such quick response. > > > > quite good suggestion, but my application is using a framework and lots > > of includes and even autoloads of classes are being done, so using break > > poi

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Chris
Zareef Ahmed wrote: Hi Chris, Thanks for such quick response. quite good suggestion, but my application is using a framework and lots of includes and even autoloads of classes are being done, so using break point approach is not possible for me. Why not? It just means the files are spread

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Chris
Zareef Ahmed wrote: Hi All, I am looking into the concepts behind memory management in PHP. Which kind of approach will be best to measure memory leakage or usage in a PHP script? I can measure my apache process but is there any way by which I can know which exact part of script is consuming

[PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Zareef Ahmed
Hi All, I am looking into the concepts behind memory management in PHP. Which kind of approach will be best to measure memory leakage or usage in a PHP script? I can measure my apache process but is there any way by which I can know which exact part of script is consuming how much memory? --

[PHP] Re: Alternative to Quickforms - Not Use Tables

2008-03-05 Thread Shawn McKenzie
Manuel Lemos wrote: > Hello, > > on 03/05/2008 08:22 PM Stephen said the following: >> Subject says it. >> >> Is there an open source class for forms that provides for the use of CSS >> for the layout of forms? > > You may want to try this forms generation and validation class. It comes > with a

[PHP] Re: Alternative to Quickforms - Not Use Tables

2008-03-05 Thread Manuel Lemos
Hello, on 03/05/2008 08:22 PM Stephen said the following: > Subject says it. > > Is there an open source class for forms that provides for the use of CSS > for the layout of forms? You may want to try this forms generation and validation class. It comes with a vertical layout plug-in. By defaul

[PHP] SOAP PHP 5.2.5 and Outside WSDL's

2008-03-05 Thread Jonathan Pitcher
I am connecting to a Third Party WSDL that needs me to turn return an Array of results to them. I do and PHP returns this ... en 50d3c78a0213b3e083ce7b6c7fa760a299798246fb6bbf1dc2dc81 12a841454d5bcb9cb752b18e299cd9be84214175b6c971065d8df08b52283408b925dd8541

[PHP] Alternative to Quickforms - Not Use Tables

2008-03-05 Thread Stephen
Subject says it. Is there an open source class for forms that provides for the use of CSS for the layout of forms? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array questions...

2008-03-05 Thread Jim Lucas
I won't address the main issue of your question, since it looks like that has been solved. But I want to point out a few other things that might help you. Follow along below... Jason Pruim wrote: So for some reason, arrays always mess me up... I don't know what it is, but it just hasn't click

[PHP] Open Source Software Recomendation

2008-03-05 Thread Joey
Hey All, Can you guys tell me of a good open source package which does things like craiglist/backpage etc? Also has anyone had good success with PHPcalendar? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen
Shawn McKenzie wrote: sudo pear install HTML_QuickForm That was so easy. Thank you! Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Shawn McKenzie
Stephen wrote: > Wolf wrote: > >> Open a terminal window on the server >> at the prompt type: >> locate QuickForm.php >> >> If it comes back with the path/file, make sure the path to the file is >> in the include folder >> >> If it comes back to just a regular terminal prompt right away, then >>

Re: [PHP] Re: Preserving URL after redirect?

2008-03-05 Thread Shawn McKenzie
Skip Evans wrote: > (Apologies to Shawn for sending this directly to him and not the entire > list, that was an accident. Here it is for the list.) > > Shawn McKenzie wrote: > >> >> Rewrite rule would look something like: >> >> >> RewriteEngine On >> RewriteCond %{REQUEST_FILENAME} !-d >

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen
Wolf wrote: Open a terminal window on the server at the prompt type: locate QuickForm.php If it comes back with the path/file, make sure the path to the file is in the include folder If it comes back to just a regular terminal prompt right away, then you need to install it. The following i

RES: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Thiago Pojda
At 10:45 AM -0500 3/5/08, Jason Pruim wrote: >Me personally, I'm on Wife 1.0 (Still working out a few bugs before >1.1 is released) But I do have Son 1.20 and in a few months Son 2.0 >will be released into the wild.. The only problem I have found with >wife 1.0 and son 1.20 is my bank account whi

Re: [PHP] Universaly Accepted Naming Conventions..?

2008-03-05 Thread Eric Butera
On Wed, Mar 5, 2008 at 2:06 PM, John Papas <[EMAIL PROTECTED]> wrote: > Are there any in PHP? > > It seems like there are those that draw upon the C/unix naming > conventions and those that follow the Java/OO style. > > Even PHP's native syntax (like function names pre/post v5) are not > consis

Re: [PHP] Re: Preserving URL after redirect?

2008-03-05 Thread Skip Evans
(Apologies to Shawn for sending this directly to him and not the entire list, that was an accident. Here it is for the list.) Shawn McKenzie wrote: Rewrite rule would look something like: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Wolf
> > [snip!] > >> But there is no /usr/share/pear directory. > >> > >> I have a /usr/share/php/PEAR and it has things that look like > >> installation files. > > [snip!] > >> Can anyone help me figure out how to get the installation fixed? > > > > Update your php.ini to add /usr/share/php/P

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen
Daniel Brown wrote: On Wed, Mar 5, 2008 at 12:59 PM, Stephen <[EMAIL PROTECTED]> wrote: My LAMP is on Ubuntu 7.10 [snip!] Fatal error: require_once() [function.require]: Failed opening required 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/stephen/www/rois

[PHP] Universaly Accepted Naming Conventions..?

2008-03-05 Thread John Papas
Are there any in PHP? It seems like there are those that draw upon the C/unix naming conventions and those that follow the Java/OO style. Even PHP's native syntax (like function names pre/post v5) are not consistent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Logging session timeout in DB

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 3:08 AM, Angelo Zanetti <[EMAIL PROTECTED]> wrote: [snip!] > No what I would like to know is how can I record when a user closes the > browser or the session expires? There is no action for these items. So what > would the best way be to keep a record of this? Would the us

[PHP] Re: Preserving URL after redirect?

2008-03-05 Thread Shawn McKenzie
Skip Evans wrote: > Hey all, > > I have a weird issue that's got me pretty stumped, and I'm not sure I > can do what the client is asking, or at least not how I'm trying to do it. > > I have a code base of my own I'm building sites on, fully AJAX enabled > so that once the site loads it never ful

[PHP] Re: imagettftext and utf-8 (swedish characters)

2008-03-05 Thread tedd
At 2:17 AM + 2/29/08, Nathan Rixham wrote: Nathan Rixham wrote: try changing: imagettftext( $im, $title_size, 0, 50, 50, $white, $font, $title ); to: imagettftext($im, $title_size, 0, 50, 50, $white, $font, utf8_decode($title)); Both statements work for me. -- see here: http://www.webby

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Ray Hauge
Richard Heyes wrote: So, my question is how would I do that, and I strongly suspect if it's possible at all an .htaccess file with the proper entries would be the way to do it, not using PHP code to redirect as I am now. Is this the case? You would need to use mod_rewrite. You might also

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 12:59 PM, Stephen <[EMAIL PROTECTED]> wrote: > My LAMP is on Ubuntu 7.10 [snip!] > Fatal error: require_once() [function.require]: Failed opening required > 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear') > in /home/stephen/www/roissy.ca/public_html/

[PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen
My LAMP is on Ubuntu 7.10 I am trying to use PEAR, for the first time, and get an error about the include file not being found. It is not there. phpinfo() has include_path set to .:/usr/share/php:/usr/share/pear Here is my error: Warning: require_once(HTML/QuickForm.php) [function.require-o

[PHP] Re: regular expressions question

2008-03-05 Thread Al
ctype_alpha ( string $text ) Adil Drissi wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted.

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Skip Evans
Wolf wrote: Why does is redirect back to the beginning? Seems to me that is where your issue is arising from. The client wants /wi/madison to be in the URl, so you have a few things to do... Stop redirecting to the root and leave it in the /wi/madison folder, then do stuff it needs to do

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Richard Heyes
So, my question is how would I do that, and I strongly suspect if it's possible at all an .htaccess file with the proper entries would be the way to do it, not using PHP code to redirect as I am now. Is this the case? You would need to use mod_rewrite. -- Richard Heyes Employ me: http://www.

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Wolf
Skip Evans <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a weird issue that's got me pretty stumped, > and I'm not sure I can do what the client is > asking, or at least not how I'm trying to do it. > > I have a code base of my own I'm building sites > on, fully AJAX enabled so that

[PHP] Preserving URL after redirect?

2008-03-05 Thread Skip Evans
Hey all, I have a weird issue that's got me pretty stumped, and I'm not sure I can do what the client is asking, or at least not how I'm trying to do it. I have a code base of my own I'm building sites on, fully AJAX enabled so that once the site loads it never fully refreshes a page, but A

RES: [PHP] PHP performance

2008-03-05 Thread Thiago Pojda
De: Richard Lynch [mailto:[EMAIL PROTECTED] #1 Get the code, install it on a box in the closet, run valgrind --callgrind This will give you a stack trace of what gets called the MOST in your application. Look for "tall" trees in the call graph, and fix those first. #2 You can use 'ab' (apach

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 11:19 AM, tedd <[EMAIL PROTECTED]> wrote: > At 10:45 AM -0500 3/5/08, Jason Pruim wrote: > >Me personally, I'm on Wife 1.0 (Still working out a few bugs before > >1.1 is released) But I do have Son 1.20 and in a few months Son 2.0 > >will be released into the wild.. The on

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread tedd
At 10:45 AM -0500 3/5/08, Jason Pruim wrote: Me personally, I'm on Wife 1.0 (Still working out a few bugs before 1.1 is released) But I do have Son 1.20 and in a few months Son 2.0 will be released into the wild.. The only problem I have found with wife 1.0 and son 1.20 is my bank account which

Re: [PHP] Variable post as array

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 4:58 AM, Pieter du Toit <[EMAIL PROTECTED]> wrote: And unless you have your (Apache|IIS|etc.) web server set to disable direct-access and/or web serving of *.inc files, you should change these to *.php or *.inc.php files ASAP. Especially the first. You're looking at a p

Re: [PHP] validating mysql bound date

2008-03-05 Thread Daniel Brown
On Tue, Mar 4, 2008 at 8:16 PM, Larry Brown <[EMAIL PROTECTED]> wrote: > Does anyone know if there is a builtin function for checking the > formatting of an incoming date to verify it is /MM/DD. I know how > to convert between formats but want a quick way to check an incoming > variable to

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:53 -0500, Jason Pruim wrote: > On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote: > > > > I think you want the following after performing a very cursory look at > > your sample. > > > > > > > $NumArray > >= isset( $_POST['txtNumArray'] ) > >? $_POST['txtNumArray'

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Zoltán Németh
2008. 03. 5, szerda keltezéssel 13.42-kor Pieter du Toit ezt írta: > This is line 49 > > $txtPhotoData = addslashes(fread(fopen($txtPhoto, "r"), > filesize($txtPhoto))); add this before: $txtPhoto = $_FILES['txtPhoto']['tmp_name']; and don't use addslashes but rather mysql_real_escape_string or

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Jim Lucas
Pieter du Toit wrote: Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it tells The above reference is wrong. 'temp_name' should be 'tmp_name' me that temp_name is also an array, but when i echo $_FILES['txtPhoto']['name'] it gives me the correct name. Also with a vardump

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote: I think you want the following after performing a very cursory look at your sample. Mind if I ask why setting it that way would be bettter? Other then the fact that it looks like it might possibly handle some of the errors I'm getting

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote: On 05 March 2008 15:34, Jason Pruim advised: Okay so I'm replying to my own post... And top posting to boot! :P Amazing what happens when you pull a few [] off for completness: $NumArray = Array($_POST['txtNumArray']); works as I wanted :)

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:39 AM, Zoltán Németh wrote: 2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta: tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a min

RE: [PHP] Array questions...

2008-03-05 Thread Ford, Mike
On 05 March 2008 15:34, Jason Pruim advised: > Okay so I'm replying to my own post... And top posting to boot! :P > > Amazing what happens when you pull a few [] off for completness: > > $NumArray = Array($_POST['txtNumArray']); > > works as I wanted :) Are you sure?? Looks a bit suspect t

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Zoltán Németh
2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta: > tedd wrote: > > At 12:15 PM -0500 3/4/08, Daniel Brown wrote: > >> Amazingly, I do get all of my stuff done. Granted, I'm in front > >> of a computer seven days per week, and usually a minimum of 10-12 > >> hours per day, but wh

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:28 -0500, Jason Pruim wrote: > So for some reason, arrays always mess me up... I don't know what it > is, but it just hasn't clicked yet... So I'm sure this is a simple > question for someone who knows and understands arrays :) > > So with that being said here's the c

Re: [PHP] Array questions...

2008-03-05 Thread Jason Pruim
Okay so I'm replying to my own post... And top posting to boot! :P Amazing what happens when you pull a few [] off for completness: $NumArray = Array($_POST['txtNumArray']); works as I wanted :) Anyone have any texts that could help me get a better grasp on arrays though? :) On Mar 5,

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Zoltán Németh
2008. 03. 4, kedd keltezéssel 12.15-kor Daniel Brown ezt írta: > but what else would I do? Spend time with the > pre-wife? sure that's what you should :) greets, Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array questions...

2008-03-05 Thread Jason Pruim
So for some reason, arrays always mess me up... I don't know what it is, but it just hasn't clicked yet... So I'm sure this is a simple question for someone who knows and understands arrays :) So with that being said here's the code I'm using: $self = $_SERVER['PHP_SELF']; $i

Re: [PHP] regular expressions question

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 07:13 -0800, It Maq wrote: > Hi, > > I am using that right now and i have don't know how to include blank fields. > For example if a user does not fill a field in a form i want to accept it. I > tried the code you posted, for now it is blocking blank fields. > > Thank you

Re: [PHP] regular expressions question

2008-03-05 Thread It Maq
Hi, I am using that right now and i have don't know how to include blank fields. For example if a user does not fill a field in a form i want to accept it. I tried the code you posted, for now it is blocking blank fields. Thank you - Original Message From: Richard Lynch <[EMAIL PROTEC

Re: [PHP] Re: Variable post as array

2008-03-05 Thread M. Sokolewicz
And you don't do: $txtPhotoData = addslashes(fread(fopen($_FILES['txtPhoto']['tmp_name'], "r"), filesize($_FILES['txtPhoto']['tmp_name']))); because ? - Tul P.S. if you want more readable code (PHP >= 4.3.0, which you should have anyway) use: $txtPhotoData = file_get_contents($_FILES['

[PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
Thanks Colin this will help me, like i said im just trying to help its not my code and i dont work with photos like this, but i Do appreciate your patience with me. "Colin Guthrie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pieter du Toit wrote: >> That is the problem, i can s

[PHP] Re: Variable post as array

2008-03-05 Thread Colin Guthrie
Pieter du Toit wrote: > That is the problem, i can see the name of the file with $txtPhoto['name'] > but when i use the same with temp_name, i get nothing, one weird thing is > this [error] => 0 [size] => 17008 , what is that? > > this is the code that is giving the problem > $txtPhotoData = ad

[PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
That is the problem, i can see the name of the file with $txtPhoto['name'] but when i use the same with temp_name, i get nothing, one weird thing is this [error] => 0 [size] => 17008 , what is that? this is the code that is giving the problem $txtPhotoData = addslashes(fread(fopen($txtPhoto, "r

[PHP] Re: Variable post as array

2008-03-05 Thread Colin Guthrie
Pieter du Toit wrote: > This is my problem > > Warning: fopen() expects parameter 1 to be string, array given in > /usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49 Dude, just as a general observation, when you are asking for help, don't just describe what you do, post th

[PHP] Re: Variable post as array

2008-03-05 Thread Colin Guthrie
Pieter du Toit wrote: > I ran a print_r on it and this is the results > > Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg > [tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) ) > > The image received here must be inserted into a database as binary it looks > like i

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
Well check what the value is. I think you must do more testing yourself instead of just posting here because then you will not learn and also if you trouble shoot it yourself it will allow you to fix errors in the future. -Original Message- From: Pieter du Toit [mailto:[EMAIL PROTECTED]

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
This is line 49 $txtPhotoData = addslashes(fread(fopen($txtPhoto, "r"), filesize($txtPhoto))); the $txtPhoto is the parameter ""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is on line 49? > > What variable are you passing as the parameter? > > > > -Or

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
What is on line 49? What variable are you passing as the parameter? -Original Message- From: Pieter du Toit [mailto:[EMAIL PROTECTED] Sent: 05 March 2008 13:36 To: php-general@lists.php.net Subject: [PHP] Re: Variable post as array This is my problem Warning: fopen() expects paramete

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
This is my problem Warning: fopen() expects parameter 1 to be string, array given in /usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49 ""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have you tried print_r($_FILES); to see all the values

[PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
This is my problem Warning: fopen() expects parameter 1 to be string, array given in /usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49 "Colin Guthrie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pieter du Toit wrote: >> Hi >> >> I have this weird proble

[PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
I ran a print_r on it and this is the results Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg [tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) ) The image received here must be inserted into a database as binary it looks like it. "Colin Guthrie" <[EMAIL PROTECTED

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
I ran it, and here is the output Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg [tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) ) ""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have you tried print_r($_FILES); to see all the va

[PHP] Re: Variable post as array

2008-03-05 Thread Colin Guthrie
Pieter du Toit wrote: > Hi > > I have this weird problem, when i select a file to upload, the variable > arrives as an array at the action php file, this is the code, and the > variable name is txtPhoto I'd give a shorter example. People don't want to read through all your code.. Also you shou

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
Have you tried print_r($_FILES); to see all the values in the variable? Its difficult to see whats going on as you posted your whole file. -Original Message- From: Pieter du Toit [mailto:[EMAIL PROTECTED] Sent: 05 March 2008 12:38 To: php-general@lists.php.net Subject: [PHP] Re: Variab

[PHP] Logging session timeout in DB

2008-03-05 Thread Angelo Zanetti
Hi all, I am implementing a system where when a user is logged in and out that a date time is set in a database for each action for each used. We can then trace who logged in a and when. No what I would like to know is how can I record when a user closes the browser or the session expires? The