Sorry, I apologize. Although you were curt I should not have been so in
reply.
I used to manage development of a reasonably popular open source
project, and if one of our developers had ever said something like that,
it would have greatly annoyed me. You never really lose that.
Although I
Really? I've used this pseudonym for years and years, dozens and dozens
of places. I've got a patch checked into Mozilla using it. I've
communicated with other developers in a wide variety of places...
I cannot recall anyone saying it was rude of me to use such a name. In
fact, most
It sounds like you have register_globals off, which is a good thing imho.
You are trying $HTTP_RAW_POST_DATA but my recollection tells me it is
$_SERVER['HTTP_RAW_POST_DATA']. Does the latter work?
Anyway, reading from php://input is more correct and doesn't depend on
PHP settings as much,
hours ago which
should fix the problem. Feel free to test a current snapshot.
johannes
On Sun, 2007-05-06 at 11:34 -0700, Unknown W. Brackets wrote:
It sounds like you have register_globals off, which is a good thing imho.
You are trying $HTTP_RAW_POST_DATA but my recollection tells me
For what it's worth, this would be very nice. I always use my own
custom HTTP handling for this reason (and related reasons, such as
keep-alive.)
However, it's also very complicated; the cached data has to be managed,
has to be stored somewhere... and at what point do you add cookie
I've always assumed it was for security.
Imagine something like:
input type=file name=upload[tmp_name] /
Realistically, if you tried to access the value as a string, you would
get Array either way. But I still wouldn't want users to be able to
pollute $_FILES for people who were assuming a
Shouldn't you use...
header('HTTP/1.0 301 Moved Permanently');
header('Location: http://...');
That is what I've always used and it's worked for me. Additionally, the
method you have suggested does not work for me.
-[Unknown]
Original Message
Someone on the php-general
Is it at all possible to determine in a cross-platform way:
1. The current stack position (e.g. SP, except on all architectures.)
2. The maximum stack size.
I realize this is a naive question, but given the above - worst-case, an
option (like memory_limit) could be added which tracks recursion
What about Transfer-Encoding, as mentioned in another post? I didn't
think PHP provides that one.
-[Unknown]
Original Message
I believe you could use $_SERVER/$_ENV['CONTENT_LENGTH'] in CGI, I don't
know about the IIS ISAPI module though.
Arpad
--
PHP Internals - PHP
In the past, many softwares have used an error handler function to
provide the following cases:
1. Log the error in a more complicated way than PHP does by default.
2. Send off an email, if necessary, or communicate with another service.
3. Show a generic (e.g. a 500) error message to the
How is that? You can't get any feedback from PHP (except, now, by
installing/writing an extension) about how far along the upload is - no
matter how much JavaScript you use. And the browser won't tell you.
Some people have scanned the /tmp directory for possible PHP uploads,
but this
I had thought that was only for extensions; is there something in the
userspace too (without writing/installing an extension)?
Thanks,
-[Unknown]
Original Message
The patch to support this is in PHP 5.2 CVS now.
Unknown W. Brackets wrote:
How is that? You can't get any
Fair enough. I was under the (now obviously wrong) impression that
setting post_max_size to 0 wouldn't let me get to the post data.
But that's still setting you dependent on it being Apache. I would need
(if I were to add this feature to any of my software) to write this in
code that can
The __set() method is called when a property of a class is set, __get()
when a property is retrieved.
An array is simple a way of listing things; the array itself is a piece
of data. When you set a key in that array, you are not setting the
array. It may help to think of it like this:
$t
If you're having that problem that a request variable is being reported
as an integer, I suggest using var_dump(). That function will tell you
the type and contents of a variable. For example:
$bool = true;
$int = 1;
$float = 1.0;
$str = 'abc';
$array = array();
var_dump($bool, $int,
If you include a file within a function, that file will be loaded in
that function's scope. Example:
?php
function test()
{
include 'a.inc.php';
}
test();
echo isset($a) ? '$a is set' : '$a is not set', .\n;
include 'a.inc.php';
echo isset($a) ? '$a is set' : '$a is not set', .\n;
?
16 matches
Mail list logo