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
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
* 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 res
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:
http://www.cstrik
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:
ht
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:
$value) {
$$key = $value;
}
$valid = $fn = checkLength($fname, 2, 50);
$ln = checkLength($family, 2, 50);
$valid = $valid && $ln;
$cm = checkLength($comp
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 t
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 --with-jpeg-di
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 lo
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
> 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: http://www.php.net/unsub
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 E
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 sho
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
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 --enable-magic-quot
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 l
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 te
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 se
* 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 hav
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 functio
* 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 i
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) mod_auth
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 except
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:
if (isset ($_POST['submit'])) {
foreach($_POST as $key=>$value) {
$$key = $value;
}
This is a huge security hole, far better is to do
24 matches
Mail list logo