'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
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
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
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
[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
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
[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='
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
> -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,
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
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
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?
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
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;
>
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
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,
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
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
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
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
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
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
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 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
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 .
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
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
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
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' =>
-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
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
68 matches
Mail list logo