[PHP] Re: point me to functions to parse the URL? (best one for *this*job?)

2009-06-25 Thread Nisse Engström
On Thu, 25 Jun 2009 18:20:36 -0500, Shawn McKenzie wrote: > Shawn McKenzie wrote: >> Govinda wrote: >>> I need to parse those URLs and set the value of $myfolder to as follows: >>> >>> domain.com/unix/asdfsdf.html >>> $myfolder=unix >>> domain.com/macos/khsdfg.html >>> $myfolder=macos >>> >>> BUT

RE: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Arno Kuhl
-Original Message- From: Tir [mailto:tirsa...@yandex.ru] Sent: 25 June 2009 08:48 PM To: php-general@lists.php.net Subject: Re: [PHP] PHP doesn't see php.ini > Presume you did restart apache after making the change? Of course > Is there anything in your phpinfo output that relates to your

Fwd: [PHP] What does this mean?

2009-06-25 Thread Eddie Drapkin
Just getting this back on the list >.> -- Forwarded message -- From: Eddie Drapkin Date: Fri, Jun 26, 2009 at 2:36 AM Subject: Re: [PHP] What does this mean? To: Jason Carson It's used in key value combinations in several places. When building an array: $foo = array('key' =>

[PHP] What does this mean?

2009-06-25 Thread Jason Carson
Hey all, I'm new to the list and I have a question... What does => mean? The book I am reading is called Programming PHP published by O'Reilly. I haven't read the whole book yet. I was flipping through the pages and in the book there is mention of <= (less than or equal) and >= (greater than or e

[PHP] This Friday's OT Thread

2009-06-25 Thread Björn Bartels
Hello fellow coders... THE 'KING OF POP' IS DEAD ! Tonight (here in Germany), Mr. Michael Joseph Jackson, also known as 'the king of pop', died on heart failure in the age of 50. I just want to express my condolences to his family and friends and all the people who loved him and his music

RE: [PHP] Does php have multithread, shared object(like jsp application)

2009-06-25 Thread HallMarc Websites
No, it doesn't at this time. Have you looked into Quercus? > -Original Message- > From: Eddie Drapkin [mailto:oorza...@gmail.com] > Sent: Thursday, June 25, 2009 11:42 PM > To: WenDong Zhang > Cc: php-general@lists.php.net > Subject: Re: [PHP] Does php have multithread, shared object(lik

[PHP] Regarding Accesing mp3 with php

2009-06-25 Thread Gautam Bhatia
hello all, Is there anyway in php by which i can get the total play time of a mp3 , I found some information while doing the google thing using some 3rd party plug ins like getID3 but without any luck, Any help in this case would be helpful. Thank you. Regards, Gautam Bhatia .

Re: [PHP] Does php have multithread, shared object(like jsp application)

2009-06-25 Thread Eddie Drapkin
PHP doesn't support threading. On Thu, Jun 25, 2009 at 10:59 PM, WenDong Zhang wrote: > Hi guys: > > Now days I want to develop a web application like a chat room. the requests > per seconds maybe very large, so I want to save some common info into to > memory (quick access). > > So, I want to kno

[PHP] Does php have multithread, shared object(like jsp application)

2009-06-25 Thread WenDong Zhang
Hi guys: Now days I want to develop a web application like a chat room. the requests per seconds maybe very large, so I want to save some common info into to memory (quick access). So, I want to know does php have the follow features or implement them in other ways. 1. server scope objects, mostl

[PHP] Re: point me to functions to parse the URL? (best one for *this*job?)

2009-06-25 Thread Shawn McKenzie
Shawn McKenzie wrote: > Shawn McKenzie wrote: >> Govinda wrote: >>> Hi all, >>> >>> (PHP newbie here. Newbie-level task to match.) >>> >>> I am RTFM and working on this.. but I am also under deadline, so, I ask >>> you in case you can point me quick where to read... what functions I >>> need to

[PHP] Re: point me to functions to parse the URL? (best one for *this*job?)

2009-06-25 Thread Shawn McKenzie
Shawn McKenzie wrote: > Govinda wrote: >> Hi all, >> >> (PHP newbie here. Newbie-level task to match.) >> >> I am RTFM and working on this.. but I am also under deadline, so, I ask >> you in case you can point me quick where to read... what functions I >> need to use for this. >> >> Incoming URL

[PHP] Re: point me to functions to parse the URL? (best one for *this* job?)

2009-06-25 Thread Shawn McKenzie
Govinda wrote: > Hi all, > > (PHP newbie here. Newbie-level task to match.) > > I am RTFM and working on this.. but I am also under deadline, so, I ask > you in case you can point me quick where to read... what functions I > need to use for this. > > Incoming URL will look like these, for exa

[PHP] point me to functions to parse the URL? (best one for *this* job?)

2009-06-25 Thread Govinda
Hi all, (PHP newbie here. Newbie-level task to match.) I am RTFM and working on this.. but I am also under deadline, so, I ask you in case you can point me quick where to read... what functions I need to use for this. Incoming URL will look like these, for example: domain.com/unix/asdf

Re: [PHP] Removing empty values from array

2009-06-25 Thread Ashley Sheridan
On Thu, 2009-06-25 at 17:18 -0400, Eddie Drapkin wrote: > On Thu, Jun 25, 2009 at 5:00 PM, Ashley > Sheridan wrote: > > On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: > >> Hi all > >> > >> I have this in a simple routine... > >> > >> for($i=0, $if=count($array); $i<$if; ++$i) > >> if

Re: [PHP] Removing empty values from array

2009-06-25 Thread Robert Cummings
Eddie Drapkin wrote: On Thu, Jun 25, 2009 at 5:00 PM, Ashley Sheridan wrote: On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: Hi all I have this in a simple routine... for($i=0, $if=count($array); $i<$if; ++$i) if( $array[$i] == '' ) { array_splice( $array, $i

Re: [PHP] Removing empty values from array

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 5:00 PM, Ashley Sheridan wrote: > On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: >> Hi all >> >> I have this in a simple routine... >> >> for($i=0, $if=count($array); $i<$if; ++$i) >>       if( $array[$i] == '' ) >>       { >>               array_splice( $array, $i,

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Andrew Ballard
On Thu, Jun 25, 2009 at 4:21 PM, Andrew Ballard wrote: > On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddings wrote: >> I know this is the off topic (sorry), but it is a php project that I'm >> working on!  I need some pointers on how to pivot a mysql column (containing >> comma delimited data) into an e

Re: [PHP] Removing empty values from array

2009-06-25 Thread Ashley Sheridan
On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: > Hi all > > I have this in a simple routine... > > for($i=0, $if=count($array); $i<$if; ++$i) > if( $array[$i] == '' ) > { > array_splice( $array, $i, 1); > > --$i; >

Re: [PHP] Removing empty values from array

2009-06-25 Thread Robert Cummings
Martin Scotta wrote: Hi all I have this in a simple routine... for($i=0, $if=count($array); $i<$if; ++$i) if( $array[$i] == '' ) { array_splice( $array, $i, 1); --$i; --$if; } My question: is this t

[PHP] Removing empty values from array

2009-06-25 Thread Martin Scotta
Hi all I have this in a simple routine... for($i=0, $if=count($array); $i<$if; ++$i) if( $array[$i] == '' ) { array_splice( $array, $i, 1); --$i; --$if; } My question: is this the better way to do it?

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Ashley Sheridan
On Thu, 2009-06-25 at 16:17 -0400, Eddie Drapkin wrote: > You'd be much, much better off creating a query by concatenating ", > ($uid, $groups[$i])" into one huge insert query. > > YOU SHOULD NEVER, EVER EVER EVER EVER RUN QUERIES IN A LOOP! > > > On Thu, Jun 25, 2009 at 4:11 PM, Matt Giddings w

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Andrew Ballard
On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddings wrote: > I know this is the off topic (sorry), but it is a php project that I'm > working on!  I need some pointers on how to pivot a mysql column (containing > comma delimited data) into an equal number of rows (see example).  Any > direction (pointer

RE: [PHP] Re: mounting folder shares WAS: Progressbar

2009-06-25 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: Thursday, June 25, 2009 9:59 AM > To: php-general@lists.php.net; Michael A. Peters > Subject: Re: [PHP] Re: Progressbar > > At 8:51 AM -0700 6/25/09, Michael A. Peters wrote: > > While I've tried using Eclipse,

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Eddie Drapkin
You'd be much, much better off creating a query by concatenating ", ($uid, $groups[$i])" into one huge insert query. YOU SHOULD NEVER, EVER EVER EVER EVER RUN QUERIES IN A LOOP! On Thu, Jun 25, 2009 at 4:11 PM, Matt Giddings wrote: > Thanks for taking the time to provide an example.  I'm going t

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Matt Giddings
Thanks for taking the time to provide an example. I'm going to take the advice given by you and others and simply do this in php instead of looking for a fancy mysql solution. ; ) Dang, and I was really wanting to wow myself today... Thanks again! Matt On Thu, Jun 25, 2009 at 3:51 PM, Ashley Sh

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Ashley Sheridan
On Thu, 2009-06-25 at 15:20 -0400, Matt Giddings wrote: > I know this is the off topic (sorry), but it is a php project that I'm > working on! I need some pointers on how to pivot a mysql column (containing > comma delimited data) into an equal number of rows (see example). Any > direction (point

Re: [PHP] Re: Progressbar

2009-06-25 Thread Michael A. Peters
Lenin wrote: @Peters you probably didnt understand the thread at all. Then the prudent thing to do would be to explain it. That's what lists are for. As far as the *real thread* before the IDE tangent, I'm the only one who posted real demonstratively working code that provides a working non

[PHP] OT mysql pivot table problem

2009-06-25 Thread Matt Giddings
I know this is the off topic (sorry), but it is a php project that I'm working on! I need some pointers on how to pivot a mysql column (containing comma delimited data) into an equal number of rows (see example). Any direction (pointers to links, etc. would be appreciated). >From this: user.tab

Re: [PHP] How to sort a two-D ARRAY

2009-06-25 Thread Ashley Sheridan
On Wed, 2009-06-24 at 15:23 -0700, salmarayan wrote: > Can Anyone tell me how to sort two D Array in Descending Order > for example like this one based on the gain > Array ( [0] => Array ( [company_name] =>X [gain] => 0.2 ) [1] => Array ( > [company_name] => y[gain] => 0.34 )[2]1] => Array ( [compa

Re: [PHP] Re: Progressbar

2009-06-25 Thread Michael A. Peters
tedd wrote: At 8:51 AM -0700 6/25/09, Michael A. Peters wrote: On a Mac - bbedit for everything. I never knew that I could use BBEdit to edit/save files to a server -- thanks. I don't know if you can either, I use to use MacOS almost exclusively but then they came out with OS X which worke

Re: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Tir
> Presume you did restart apache after making the change? Of course > Is there anything in your phpinfo output that relates to your php.ini? I think there must be a mention of MySQL because i've enabled it. But it isn't there. > Maybe some error near the beginning of php.ini causes php to stop l

[PHP] Does anyone know how gettext works under the hood?

2009-06-25 Thread Michael Shadle
I'm wondering if there is a way to save some processing time, and I could totally be off my rocker, or violating the pre-mature optimization rule... But my assumption is when you ask gettext in PHP to load up a .po file, it has to convert that into bytecode. That takes some overhead, especially on

Re: [PHP] Re: Progressbar

2009-06-25 Thread Igor Escobar
http://www.ajaxload.info/ Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Thu, Jun 25, 2009 at 2:03 PM, Eddie Drapkin wrote: > On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koert wrote: > > On Th

[PHP] Re: Re:Re:Re:require_once failure

2009-06-25 Thread ste.paole...@tiscali.it
Running php /usr/share/php/PHPUnit/Extensions/Database/Testcase.php there is no output Con Tutto Incluso chiami e navighi senza limiti a soli 14,95 euro al mese. Gratis la Sim Tiscali Mobile con 50 euro di traffico! L’offerta è valida solo se attivi entro il 25/06/09 http://abbonati.tiscali.i

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koert wrote: > On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Peters wrote: >> Martin Scotta wrote: >>> >>> I found extremely un-productive editors or IDEs like Eclipse or Zend >>> Studio. >>> >>> I use SciTE. >>> >>> It don't has any feature you are talking

Re: [PHP] Re: Progressbar

2009-06-25 Thread tedd
At 8:51 AM -0700 6/25/09, Michael A. Peters wrote: On a Mac - bbedit for everything. I never knew that I could use BBEdit to edit/save files to a server -- thanks. Now if BBEdit would only keep track of projects, such as what files have been changed and automatically upload those files to the

RE: [PHP] Unit test platform

2009-06-25 Thread Bob McConnell
From: Bastien Koert > On Thu, Jun 25, 2009 at 10:00 AM, Bob McConnell wrote: >> I need some guidance. I have looked over the PHP site and don't see any >> hints about using PHP interpreters for unit testing. I would like to >> know if this idea has any chance of working. >> >> I want to set up the

Re: [PHP] Re: Progressbar

2009-06-25 Thread Bastien Koert
On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Peters wrote: > Martin Scotta wrote: >> >> I found extremely un-productive editors or IDEs like Eclipse or Zend >> Studio. >> >> I use SciTE. >> >> It don't has any feature you are talking about... >> >> but it.. >>  # do not eat all you ram >>  # starts

Re: [PHP] Re:Re:require_once failure

2009-06-25 Thread Daniel Brown
On Thu, Jun 25, 2009 at 12:31, ste.paole...@tiscali.it wrote: > The file I wanna include exist and is in the corrent location: > > > s...@debian:~$ ll /usr/share/php/PHPUnit/Extensions/Database/TestCase. > php > -rw-r--r-- 1 root root 8818 31 mar 23:35 What is the output when running the targe

[PHP] Re:Re:require_once failure

2009-06-25 Thread ste.paole...@tiscali.it
The file I wanna include exist and is in the corrent location: s...@debian:~$ ll /usr/share/php/PHPUnit/Extensions/Database/TestCase. php -rw-r--r-- 1 root root 8818 31 mar 23:35 /usr/share/php/PHPUnit/Extensions/Database/TestCase.php If in my script omit line 2 (so I dont' explicity set the i

Re: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Tir
No, i haven't used an installer when i installed PHP. And no, I haven't another version of PHP on my computer. "Bastien Koert" ???/ ? ?: news:d7b6cab70906250611l538e38ecr3849c5d4b6ab2...@mail.gmail.com... > On Wed, Jun 24, 2009 at 8:32 AM, Tir wrote: > > > Did you u

Re: [PHP] Re: Progressbar

2009-06-25 Thread Michael A. Peters
Martin Scotta wrote: I found extremely un-productive editors or IDEs like Eclipse or Zend Studio. I use SciTE. It don't has any feature you are talking about... but it.. # do not eat all you ram # starts in a microsecond # opens any type of file # paints the code in pretty colors. # has a

RE: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Arno Kuhl
-Original Message- From: Bastien Koert [mailto:phps...@gmail.com] Sent: 25 June 2009 03:11 PM To: Tir Cc: php-general@lists.php.net Subject: Re: [PHP] PHP doesn't see php.ini On Wed, Jun 24, 2009 at 8:32 AM, Tir wrote: > When i installed PHP, I had written to my httpd.conf PHPIniDir > "c

Re: [PHP] Re: Progressbar

2009-06-25 Thread Martin Scotta
I found extremely un-productive editors or IDEs like Eclipse or Zend Studio. I use SciTE. It don't has any feature you are talking about... but it.. # do not eat all you ram # starts in a microsecond # opens any type of file # paints the code in pretty colors. # has a little intellisense us

Re: [PHP] CSV file

2009-06-25 Thread Shawn McKenzie
Jonathan Tapicer wrote: > Hi, > > I don't say that reading the whole file into memory is the best > option, I just say that your approach goes to the disk twice, if you > have a 100MB file, you are reading 200MB from disk (unless there are > some pages cached in physical memory, but you never can

Re: [PHP] Re: Progressbar

2009-06-25 Thread Andrew Ballard
On Thu, Jun 25, 2009 at 10:32 AM, Eddie Drapkin wrote: > On Thu, Jun 25, 2009 at 10:29 AM, Stuart wrote: >> 2009/6/25 Eddie Drapkin : >>> On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: 2009/6/25 tedd : > At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >> >> 'Twas brillig, and tedd a

Re: [PHP] Re: Progressbar

2009-06-25 Thread Stuart
2009/6/25 Eddie Drapkin : > On Thu, Jun 25, 2009 at 10:29 AM, Stuart wrote: >> 2009/6/25 Eddie Drapkin : >>> On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: 2009/6/25 tedd : > At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >> >> 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and

Re: [PHP] Unit test platform

2009-06-25 Thread Bastien Koert
On Thu, Jun 25, 2009 at 10:00 AM, Bob McConnell wrote: > I need some guidance. I have looked over the PHP site and don't see any > hints about using PHP interpreters for unit testing. I would like to > know if this idea has any chance of working. > > I want to set up the development and build machi

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 10:29 AM, Stuart wrote: > 2009/6/25 Eddie Drapkin : >> On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: >>> 2009/6/25 tedd : At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: > > 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: >> >> The biggest

Re: [PHP] Re: Progressbar

2009-06-25 Thread Stuart
2009/6/25 Eddie Drapkin : > On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: >> 2009/6/25 tedd : >>> At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: > > The biggest problem in uploading a file is figuring out how large it

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: > 2009/6/25 tedd : >> At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >>> >>> 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out

[PHP] Unit test platform

2009-06-25 Thread Bob McConnell
I need some guidance. I have looked over the PHP site and don't see any hints about using PHP interpreters for unit testing. I would like to know if this idea has any chance of working. I want to set up the development and build machines with PHP interpreters to do automated unit tests. Because we

Re: [PHP] Re: Progressbar

2009-06-25 Thread Stuart
2009/6/25 tedd : > At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >> >> 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: >>> >>> The biggest problem in uploading a file is figuring out how large it is. >>> You can't find that out in php >> >> Well you can find it out with the uploadpr

[PHP] Re: Unable to load dynamic php_oci8.dll

2009-06-25 Thread Raj
Hi all, Kindly help me out Ramesh On Thu, Jun 25, 2009 at 9:48 AM, Raj wrote: > Hi, > > I get the following error when i start the Apache Server. > > PHP Startup: Unable to load dynamic library > 'F:\\Apps\\PHP\\ext\\php_oci8.dll' - The specified procedure could not > be found.\r\n in Unknown

[PHP] Re: Progressbar

2009-06-25 Thread tedd
At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out in php Well you can find it out with the uploadprogress or APC PECL extensions. If you

RE: [PHP] Re: idiot proofing

2009-06-25 Thread tedd
At 6:39 AM -0500 6/25/09, Jay Blanchard wrote: [snip] ...stuff... [/snip] I had to LOL at the subject line for the potential irony :) Me too, but for a different reason -- I fear it's too late. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] PHP doesn't use php.ini

2009-06-25 Thread Daniel Brown
On Wed, Jun 24, 2009 at 09:47, Tir wrote: > When i installed PHP, I had written to my httpd.conf PHPIniDir "c:/php". But > phpinfo() returns "C:\WINDOWS" in "Configuration File (php.ini) Path" row > and right path to my php.ini in "Loaded Configuration File". It looks like > php.ini really isn't us

Re: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Bastien Koert
On Wed, Jun 24, 2009 at 8:32 AM, Tir wrote: > When i installed PHP, I had written to my httpd.conf PHPIniDir "c:/php". But > phpinfo() returns "C:\WINDOWS" in "Configuration File (php.ini) Path" row > and right path to my php.ini in "Loaded Configuration File". It looks like > php.ini really isn't

Re: [PHP] require_once failure

2009-06-25 Thread Daniel Brown
On Thu, Jun 25, 2009 at 07:26, ste.paole...@tiscali.it wrote: > > Someone can help me? Why on Mac Os there are no problems? Start by making sure that the file is there and is readable by the user as which you are logged in. Execute the command: ls -l /usr/share/php/PHPUnit/Extensions

Re: [PHP] require_once failure

2009-06-25 Thread Michael A. Peters
ste.paole...@tiscali.it wrote: Hi all, I'm a php programmer an I found an anomaly.. it could be a bug. On Mac Os all goes right but on debian enviroment there are some problems: Suppose I've the file /home/ste/test.php containing the following line: also suppose that file /usr/share/php/PHPU

Re: [PHP] CSV file

2009-06-25 Thread Jonathan Tapicer
Hi, I don't say that reading the whole file into memory is the best option, I just say that your approach goes to the disk twice, if you have a 100MB file, you are reading 200MB from disk (unless there are some pages cached in physical memory, but you never can know, in the best case all the pages

RE: [PHP] require_once failure

2009-06-25 Thread Jay Blanchard
[snip] s...@debian:~$ php test.php Warning: require_once (PHPUnit/Extensions/Database/Testcase.php): failed to open stream: No such file or directory in /home/ste/test.php on line 3 Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/Testcase.php' (include_path='

[PHP] require_once failure

2009-06-25 Thread ste.paole...@tiscali.it
Hi all, I'm a php programmer an I found an anomaly.. it could be a bug. On Mac Os all goes right but on debian enviroment there are some problems: Suppose I've the file /home/ste/test.php containing the following line: http://abbonati.tiscali.it/promo/tuttoincluso/ -- PHP General Mailing List

RE: [PHP] Re: idiot proofing

2009-06-25 Thread Jay Blanchard
[snip] ...stuff... [/snip] I had to LOL at the subject line for the potential irony :) Typically we set applications to submit to central processing code for a number of reasons, maintainability being the highest among these. So you get... Form->Central Processing->Output Typically this

[PHP] Re: Deleting a file after download/upload

2009-06-25 Thread Parham Doustdar
Hi there Shawn, Thank you for your help. That works. -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMail dot com "Shawn McKenzie" wrote in message news:ee.3d.36467.c0261...@pb1.pair.com... > Parham Doustdar wrote: >> Hi there, >> I am writing a PH

Re: [PHP] Re: Progressbar

2009-06-25 Thread Michael A. Peters
Colin Guthrie wrote: 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out in php Well you can find it out with the uploadprogress or APC PECL extensions. http://www.clfsrpm.net/upprogre

Re: [PHP] CSV file

2009-06-25 Thread Richard Heyes
Hi, > Well, you are reading the whole file there (and throwing the data you > read not assigning the fgets result to anything), and then to store it > in the database you need to read it again, so you read the file twice. > It will probably better to store the data you read the first time in > an

[PHP] Re: Progressbar

2009-06-25 Thread Colin Guthrie
'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out in php Well you can find it out with the uploadprogress or APC PECL extensions. If you use Zend Framework then it has a progress bar f