php-general Digest 25 Jun 2009 10:03:17 - Issue 6194
Topics (messages 294543 through 294569):
Re: CSV file
294543 by: Richard Heyes
294545 by: Eddie Drapkin
294554 by: Jonathan Tapicer
294568 by: Richard Heyes
Re: I've some doubts if I should go with 5.2 or
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 used. I think so because when i try to enable MySQL it
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 used. I think so because when i try to enable MySQL
Sorry for double posting
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'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
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.
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 nos...@mckenzies.net wrote in message
news:ee.3d.36467.c0261...@pb1.pair.com...
Parham Doustdar wrote:
Hi there,
I
[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:
?php
set_include_path('/usr/share/php');
require_once
[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'
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
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:
?php
set_include_path('/usr/share/php');
On Thu, Jun 25, 2009 at 07:26,
ste.paole...@tiscali.itste.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
On Wed, Jun 24, 2009 at 8:32 AM, Tirtirsa...@yandex.ru 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
On Wed, Jun 24, 2009 at 09:47, Tirtirsa...@yandex.ru 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
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
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
Hi all,
Kindly help me out
Ramesh
On Thu, Jun 25, 2009 at 9:48 AM, Raj rameshs...@gmail.com 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
2009/6/25 tedd tedd.sperl...@gmail.com:
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
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
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
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
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
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
On Thu, Jun 25, 2009 at 10:29 AM, Stuartstut...@gmail.com wrote:
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
At 8:30 AM +0100 6/25/09, Colin Guthrie wrote:
'Twas brillig, and tedd at
On Thu, Jun 25, 2009 at 10:00 AM, Bob McConnellr...@cbord.com 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
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 10:29 AM, Stuartstut...@gmail.com wrote:
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
At 8:30 AM +0100 6/25/09, Colin
On Thu, Jun 25, 2009 at 10:32 AM, Eddie Drapkinoorza...@gmail.com wrote:
On Thu, Jun 25, 2009 at 10:29 AM, Stuartstut...@gmail.com wrote:
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
At 8:30
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 know,
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
-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, Tirtirsa...@yandex.ru wrote:
When i installed PHP, I had written to my
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
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 phps...@gmail.com ???/ ? ?:
news:d7b6cab70906250611l538e38ecr3849c5d4b6ab2...@mail.gmail.com...
On Wed, Jun 24, 2009 at 8:32 AM,
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
On Thu, Jun 25, 2009 at 12:31,
ste.paole...@tiscali.itste.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
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
On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koertphps...@gmail.com wrote:
On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Petersmpet...@mac.com 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
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://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 oorza...@gmail.com wrote:
On Thu, Jun 25, 2009 at 12:52 PM, Bastien
On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Petersmpet...@mac.com 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 in a
From: Bastien Koert
On Thu, Jun 25, 2009 at 10:00 AM, Bob McConnellr...@cbord.com 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
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
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
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
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 ( [company_name]
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:
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 (pointers
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
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 Giddingsmcgid...@svsu.edu wrote:
Thanks for taking the time to provide an
-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, and it
On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddingsmcgid...@svsu.edu 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
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
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
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;
--$if;
On Thu, Jun 25, 2009 at 4:21 PM, Andrew Ballardaball...@gmail.com wrote:
On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddingsmcgid...@svsu.edu 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
On Thu, Jun 25, 2009 at 5:00 PM, Ashley
Sheridana...@ashleysheridan.co.uk 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(
Eddie Drapkin wrote:
On Thu, Jun 25, 2009 at 5:00 PM, Ashley
Sheridana...@ashleysheridan.co.uk 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] == '' )
{
On Thu, 2009-06-25 at 17:18 -0400, Eddie Drapkin wrote:
On Thu, Jun 25, 2009 at 5:00 PM, Ashley
Sheridana...@ashleysheridan.co.uk 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)
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:
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 example:
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 will look like
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 use for this.
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,
PHP doesn't support threading.
On Thu, Jun 25, 2009 at 10:59 PM, WenDong Zhangzwd2...@gmail.com 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
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 .
66 matches
Mail list logo