RE: [PHP] handling large files w/readfile

2005-01-02 Thread Robin Getz
Rasmus Lerdorf wrote: $buff = 0; while (!feof($fp)) { $buff = fread($fp, 4096); print $buff; } unset($buff); fclose ($fp); Well, the above code does not use more than 4K of ram plus a bit of overhead. So if something is

[PHP] Date-development stalled?

2005-01-02 Thread tmp
It seems that development of Pear::Date has stalled. The package does has some major bugs when used with php5 - both in the main Date class and in Date_Span. There has been filled a bug report as early as september 2004, but no fix has been made yet and no response from a developer, other than

[PHP] Re: Date-development stalled?

2005-01-02 Thread Matthew Weier O'Phinney
* Tmp [EMAIL PROTECTED]: It seems that development of Pear::Date has stalled. The package does has some major bugs when used with php5 - both in the main Date class and in Date_Span. There has been filled a bug report as early as september 2004, but no fix has been made yet and no response

[PHP] critique this code please

2005-01-02 Thread Sebastian
i have this small function for a template system (if you want to call it that ;) my idea was having something simple to separate html code from php and i think using something like smarty is too big for me and i really dont have time to learn to use it. so i have this code here:

[PHP] Re: critique this code please

2005-01-02 Thread M. Sokolewicz
Sebastian wrote: i have this small function for a template system (if you want to call it that ;) my idea was having something simple to separate html code from php and i think using something like smarty is too big for me and i really dont have time to learn to use it. so i have this code here:

[PHP] function problem

2005-01-02 Thread Viktor Popov
Hi, I'm trying to do the following but I don't have any success. Could you help me here... I have this code in mu page: ?php include script/functions.php; require 'script/common.inc'; $valid = TRUE; if (isset ($_POST['submit'])) { foreach($_POST as $key=$value) { $$key = $value; }

Re: [PHP] function problem

2005-01-02 Thread Ligaya Turmelle
Are you getting an error? If so what does it say. Also in your code you have nothing to tell you if something is going wrong. Use echo statements - say something if the connection or the query doesn't go through. Also noticed that when you made the connection to the DB you didn't assign it

[PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Aaron Paulley
The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: ./configure --with-mysql --with-apxs=/www/bin/apxs --with-xml --enable-ftp --with-gd --enable-magic-quotes

[PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Dan Eloff
My single biggest beef with PHP is the fact that it silently fails when I use a variable that has never been declared. Like if($sumbit) will always be false because the variable was really named $submit. My only clue that this is happening is whe the program fails to work as intended and I waste

[PHP] How to enable ftp in php5?

2005-01-02 Thread Jerry Swanson
How I can enable php in FTP 5? What I should change in PHP.INI file? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Comex
Is there any way at all to control this? I went into my PHP.ini file, but my errors are set to E_ALL E_STRICT which seems to be the highest level I can set. That error generates an E_NOTICE. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Rory Browne
Unless I'm mistaken, which is quite possible considering that its been years since I set my error_level, to anything other than E_ALL, but I think you need to 'bitwise or' the error_levels instead of 'bitwise and' them. The default setting IIRC is E_ALL ~E_NOTICE, which means all errors except

Re: [PHP] How to enable ftp in php5?

2005-01-02 Thread Rory Browne
depends on where you got PHP. If you compiled from source then you need to add --with-ftp or --enable-ftp in your ./configure command. Do a ./configure --help to find out more, ie which one. If you got it with an RPM based linux distro, then you probably need to install a php-ftp rpm. Oh, and

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Dan Eloff
I knew I missed something when I configured php 5 on my pc. I forgot to set the errors to be printed instead of logged. And you're right, I should have used bitwise or to combine the flags. Thanks, you guys saved me a lot of aggravation. -Dan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Rasmus Lerdorf
Aaron Paulley wrote: The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: ./configure --with-mysql --with-apxs=/www/bin/apxs --with-xml --enable-ftp --with-gd

Re: [PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Jason Wong
On Monday 03 January 2005 08:18, Aaron Paulley wrote: The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: Assuming that you have installed it in a fairly standard

Re: [PHP] Re: critique this code please

2005-01-02 Thread Rory Browne
Nothing too serious, but saying as you did ask for a critique, I'll tell you things I'd have done differently. That DOES NOT necessarly mean that my way is better than yours, but may be something you need to take into consideration. // TEMPLATE function

Re: [PHP] php vs java....

2005-01-02 Thread GH
Can you please explain Threads to me? On Sat, 1 Jan 2005 14:38:50 -0600, Greg Donald [EMAIL PROTECTED] wrote: On Sat, 1 Jan 2005 10:07:20 -0800 (PST), Lewis LaCook [EMAIL PROTECTED] wrote: ...just looking for opinions: will PHP eclipse (IS PHP eclipsing) Java? I'd like to see threads

Re: [PHP] critique this code please

2005-01-02 Thread Curt Zirzow
* Thus wrote Sebastian: i have this small function for a template system (if you want to call it that ;) my idea was having something simple to separate html code from php and i think using something like smarty is too big for me and i really dont have time to learn to use it. so i have

Re: [PHP] critique this code please

2005-01-02 Thread Nigel Jones
I personally don't see anything wrong with it. It's actually better than any of my attempts to do templating. BTW Curt: Check your clock/s, it seems to be a day out. On Sun, 2 Jan 2005 02:46:40 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Sebastian: i have this small function

Re: [PHP] critique this code please

2005-01-02 Thread Curt Zirzow
* Thus wrote Nigel Jones: I personally don't see anything wrong with it. It's actually better than any of my attempts to do templating. There are a lot of things with the system, imo, i just stopped at the point where I read: eval('echo '. template($foo) . ')'); all that evaluates to is a

[PHP] Using SSL

2005-01-02 Thread Daniel Lahey
I've posted about this before, and I guess I'm just thick, but I'm just not getting it. I need to implement secure transactions for a client, but I just can't figure out how to open a page with an https prefix. The server has mod-ssl and OpenSSL compiled into it: Apache/1.3.33 (Unix)

[PHP] unable to write a text file larger than 10Mb

2005-01-02 Thread Sagar C Nannapaneni
Hello All, This is very imp and urgent for me. I've a very large db on my remote website. I want to get a backup of that db. phpmyadmin is installed on the server..but if failed to create the backup (may b coz of the time outs). so i wrote my own class to get the backup. Its working fine

[PHP] Re: function problem

2005-01-02 Thread Greg Beaver
Hi Viktor, Viktor Popov wrote: Hi, I'm trying to do the following but I don't have any success. Could you help me here... I have this code in mu page: ?php include script/functions.php; require 'script/common.inc'; $valid = TRUE; if (isset ($_POST['submit'])) { foreach($_POST as $key=$value) {