Hi,
I mentioned this a week or so ago, but had no response.
I have in mind a function that can work something like this:
$options = array(
0 = array(pipe, r) // Stdin for new proc will be a pipe
1 = array(pipe, w) // Stdout for new proc will be a pipe
2 = null, // Stderr will
I don't think it is a good idea to drop all form data from an
enctype=multipart/form-data POST when file uploads are turned off. I
think it makes more sense only to drop the uploaded file.
A simple test script:
form action=form.php enctype=multipart/form-data method=POST
input type=text
Hi,
I have problems with logging events in PHP. When some user write example
script from PHP.NET:
$fd = fopen (/tmp/nonexists.txt, r);
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
And when the file not exists, it run 30 seconds and the ended, but my
Your code is simply broken. You have to make sure $fd is a
proper file handle before you try to use it:
if ($fd = @fopen($filename, 'r')) {
while(!feof($fd)) {
...
}
fclose($fd);
}
Btw, next time please ask on php-general@
- Markus
On Fri, Mar
I know it, but we're freewebhosting with 10.000 users... and when do users
it?
Sorry, I will write to general!
JP
- Original Message -
From: Markus Fischer [EMAIL PROTECTED]
To: Jan Pavlík [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, March 29, 2002 10:18 AM
Subject: Re:
On Fri, Mar 29, 2002 at 10:30:18AM +0100, Jan Pavlík wrote :
I know it, but we're freewebhosting with 10.000 users... and when do users
it?
That's a general problem of vhosting and allowing user to
write/execute arbitrary code if any kind of language.
(I *have* a reason not being
That not help to me ;)
I will rewrite PHP to log only ONE error when the next errors are the same.
But I ask only, PHP developers think, that will be better make it as
standart.
I will send the patch here for PHP 4.1.2...
JP
Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku
[EMAIL
On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote :
That not help to me ;)
I will rewrite PHP to log only ONE error when the next errors are the same.
But I ask only, PHP developers think, that will be better make it as
standart.
I will send the patch here for PHP 4.1.2...
Sure :)
JP
Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote :
That not help to me ;)
I will rewrite PHP to log only ONE error when the next errors are the
same.
But I ask
On 2002-03-29 10:43:17, Jan Pavlík wrote:
I will rewrite PHP to log only ONE error when the next errors are the same.
Maybe you can try logging errors to syslog, not to a file. Many syslog
daemons seem to have some logic to detect repeating messages and only
log something like last message
As in the Engine 2 overloaded classes don't necessarily have a class entry
we have to check out what needs to be done here.
I haven't had time to look at the code but I'll check it out when I get
back from vacation.
Andi
At 23:47 26/03/2002 +0100, Emmanuel FAIVRE wrote:
Hi all,
i'm currently
On Thu, 28 Mar 2002, Andi Gutmans wrote:
At 14:40 28/03/2002 +0100, Alexander Wirtz wrote:
Ok, this is maybe neither exactly the right place nor very important, but
I've noticed a topic that I find wanting in PHP: Error handling in classes.
When you have a class, that is used in different
Hi,
I'm a bit confused about the ongoing projects aiming towards a
standard for database abstraction in PHP. There is DBA
[ http://php.net/dba ], PEAR DB and a project by l0t3k (and
many, many more).
So what is going to be the standard in PHP's future?
I think l0t3k is working on a C based
Hi silly me,
DBA [ http://php.net/dba ] [..]
I meant DBX http://php.net/dbx
Daniel
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
how much thread-safe is PHP on linux when compiled with
--enable-experimental-zts ? When I a set up a callback
handler for a 3rd library which uses threads and in this (C)
callback I call call_user_function() (to provide custom
callbacks) - bang , I get a segfault.
At 10:43 29.03.2002, Jan Pavlík wrote:
That not help to me ;)
I will rewrite PHP to log only ONE error when the next errors are the same.
But I ask only, PHP developers think, that will be better make it as
standart.
But please configureable with default to current behaviour. I host myself
and
By the way, this didn't work at all in 4.1.2. Any
Sorry but I cannot reproduce this. The _REQUEST array is filled here. The
only strange thing is that phpinfo doesn't show it... But var_dump and
print_r do...
Stefan
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit:
At 13:17 29.03.2002, you wrote:
Okay, I think for that... but one error message 1000times? :))
The difference between you and me is that i do the faults my own
and can act directly. Whereas you have given users the possibility
to code their own php and do stupid things. Therefor i like your
idea
Folks,
I'm new to PHP and am looking for a function that
will allow me to pass it a URL, and it will return
a string which is the HTML code found at the given URL.
I want to write some plugins for Geeklog which will
harvest stock data from financial websites.
thanks,
-alan
--
PHP Development
So have we discussed this enough, can I just apply it and be done with it?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
Alan McKay wrote:
Folks,
I'm new to PHP and am looking for a function that
will allow me to pass it a URL, and it will return
a string which is the HTML code found at the given URL.
I want to write some plugins for Geeklog which will
harvest stock data from financial websites.
thanks,
On Fri, 29 Mar 2002 [EMAIL PROTECTED] wrote:
So have we discussed this enough, can I just apply it and be done with it?
+1
Derick
---
PHP: Scripting the Web - [EMAIL PROTECTED]
All your
--- [EMAIL PROTECTED] wrote:
On Fri, 29 Mar 2002 [EMAIL PROTECTED] wrote:
So have we discussed this enough, can I just apply it and be done with it?
+1
+1
/* Brad */
__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for
+ 3.14159
Stefan
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
Did you turn off file_uploads in your php.ini before testing? I just
double-checked in the 4.2 branch and turning off file_uploads makes the
variable disappear for me.
-R
On Fri, 29 Mar 2002, Stefan Esser wrote:
By the way, this didn't work at all in 4.1.2. Any
Sorry but I cannot
Hi,
Did you turn off file_uploads in your php.ini before testing? I just
double-checked in the 4.2 branch and turning off file_uploads makes the
variable disappear for me.
Ahhh then I misunderstood your mail. I thought you mean in 4.1.2 if you do
not
upload a file (only fill the input
Done.
On 2002.03.28 19:55 Joseph Tate wrote:
Here it is. Will someone with karma please commit it?
Thanks,
Joseph
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Development Mailing List http://www.php.net/
To unsubscribe,
Right, that is what I am seeing at least on the Debian package of 4.1.2,
and in 4.2 and HEAD this is fixed but we still have the issue of dropping
form fields when file uploads are turned off. I need to build another
4.1.2 to see if I can reproduce what I am seeing in the Debian build.
-Rasmus
Hrm, you are right, I can't repeat it in the current 4.1 branch. Am I
seeing things on Debian? Anybody else have a Debian woody server with
4.1.2 from the Debian package running?
If so, please test this script:
form action=form.php enctype=multipart/form-data method=POST
input type=text
Markus Fischer wrote:
Hi,
how much thread-safe is PHP on linux when compiled with
--enable-experimental-zts ? When I a set up a callback
handler for a 3rd library which uses threads and in this (C)
callback I call call_user_function() (to provide custom
callbacks)
On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote :
Markus Fischer wrote:
Hi,
how much thread-safe is PHP on linux when compiled with
--enable-experimental-zts ? When I a set up a callback
handler for a 3rd library which uses threads and in this (C)
Markus Fischer wrote:
On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote :
Markus Fischer wrote:
Hi,
how much thread-safe is PHP on linux when compiled with
--enable-experimental-zts ? When I a set up a callback
handler for a 3rd library which uses threads and in this
[EMAIL PROTECTED] wrote:
So have we discussed this enough, can I just apply it and be done with it?
+1
--
Yasuo Ohgaki
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
function get_file($url)
{
return implode('', file($url));
}
Have fun with it ;)
It works great!
But now I'm having a quirky problem with strings.
I'm stripping stock prices from globeinvestor.com, and everything
is going well except for this quirk. I pull down the web page
with your
Hi,
I can see you pretty busy here, so I'll be brief:
I'm trying toget inside the PHP source, but I'm not an expert in C.
The flex.skl file states:
#define YY_INPUT(buf,result,max_size) \
%% fread()/read() definition of YY_INPUT goes here unless we're doing C++
%+ C++ definition
Note the
On Fri, Mar 29, 2002 at 02:10:45AM +0100, Marcus Börger wrote :
At 01:57 29.03.2002, Markus Fischer wrote:
On Fri, Mar 29, 2002 at 01:39:52AM +0100, Marcus Börger wrote :
At 01:33 29.03.2002, you wrote:
On Fri, Mar 29, 2002 at 01:00:47AM +0100, Marcus Börger wrote :
The difference to
It should work, it's using exactly the same thread safe code as the one
under Windows...
Zeev
At 14:14 29/03/2002, Markus Fischer wrote:
Hi,
how much thread-safe is PHP on linux when compiled with
--enable-experimental-zts ? When I a set up a callback
handler for a 3rd
rootshell Fri Mar 29 23:13:29 2002 CET
Modified files:
/php4/main/main.c
Log:
lot of same errors are logged as one, cleans errorlog
Index: php4/main/main.c
diff -u php4/main/main.c:1.404.2.5 php4/main/main.c:1.404.2.6
--- php4/main/main.c:1.404.2.5 Mon Dec 17 22:19:51 2001
+++
Rasmus Lerdorf wrote:
By the way, this didn't work at all in 4.1.2. Any
I guess Jani fixed this in HEAD, doesn't?
Or is this different issue?
enctype=multipart/form-data form without an actual file uploaded at the
same time would drop all the extra data fields. Probably serious enough
to
Ladies and gentlemen,
as of today, the CVS HEAD version (4.3.0-dev) of PHP finally
supports --with-apxs building out of the box on Mac OS X.
This means that the canonical
./configure --with-apxs=/usr/sbin/apxs ; make ; make install
installation method is now possible. We need as much eyes as
40 matches
Mail list logo