rivate_no_expire') can get rid of the Expires
header as well, but it doesn't seem to be an issue here. It could
still be relevant for other reasons though.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a user. A client can still open multiple HTTP
connections to the same host even when using keepalive.
Furthermore we would like the session to survive the smallest hickups
(e.g. disconnects, TCP RSTs, ...).
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
ng.
> I don't really fault Firefox for abiding by the no-store directive, nor
> do I fault Internet Explorer for ignoring it.
Agreed. Furthermore, the change in cache_limiter makes very good sense
in this context and doesn't seem like "just a hack".
> Hope that help
nd that would reduce the number of requests and
make Firefox use the cached page (or cache the page in the first place).
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
TF-8 is a charset, not a Content-type.
A quick test shows that the HTTP header output from Apache would
contain:
Content-Type: UTF-8
The correct way - if one wants utf-8 as charset - is:
header("Content-Type: index/html; charset=utf-8");
--
- Peter Brodersen
--
PHP General Mailing List (h
he latter case a lot of assumptions could cause
damage. Poorly implemented high security could be worse than moderate,
application based security.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t step
should be (more) imprecision. Maybe read /proc/cpuinfo and perform n
steps of simple loop where n is calculated from the cpu type, mhz and
current load. Maybe a PEAR project?
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 26 May 2005 21:32:27 +0200, in php.general [EMAIL PROTECTED] (Peter
Brodersen) wrote:
>A phpinfo() only shows that $_SERVER['HTTPS'] has been set to "on".
>The mod_ssl-refrence shows though that a lot of other environment
>variables should be present:
&g
ss might still be the one of a network interface
Try to create a page on the second web site (that you want to access
thorugh fopen() ) that outputs the client's IP address. You'll
probably see that your source IP address is not 127.0.0.1.
--
- Peter Brodersen
--
PHP General Mailing Li
On Thu, 26 May 2005 21:32:27 +0200, in php.general [EMAIL PROTECTED] (Peter
Brodersen) wrote:
>I have searched the web, in php.general and comp.lang.php without
>success. The closest info was a reply from Christ Shiflett:
>http://marc.theaimsgroup.com/?l=php-general&m=10382868382882
Shiflett:
http://marc.theaimsgroup.com/?l=php-general&m=103828683828825&w=2
Notice that it is my own site that is running under SSL. I am not
trying to connect to a SSL-enabled site using PHP; my users are
connecting to my site (with their browsers and certificates). I don't
think the opens
day on this list, for posts
regarding mysql.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nother dirty method include using a 404-document for handling
requests to files that do not exist:
ErrorDocument 404 /404handler.php
(one could still set a 200 OK-returncode)
.. but all this is out of PHP-scope.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
ributes']['VALUE'];
// or, out of curiousity:
var_dump($array);
?>
(and why preg_replace? $1 wouldn't even be set since no capturing
parenthesises are used)
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'foo
.. as user_name.
In that case the attacker could login as other_user.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to 31. october
For $i ==3, you are setting the date to 31. november => 1. december
For $i ==4, you are setting the date to 31. december
.. and so on.
Since you only look at the month, you would get october, october,
december, december, etc.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ly working in /, so it's looking for "text.inc" in:
>/text.inc and in all include-paths.
... it would also check /var/www/html/scripts/text.inc
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t "";
print "";
var_dump($array);
print "";
?>
But look at $array[0]['attributes']['HREF'] for the link.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
string(1) "b"
[6]=>
string(1) "a"
[7]=>
string(1) "r"
[8]=>
string(0) ""
[9]=>
string(0) ""
[10]=>
string(1) "b"
[11]=>
string(1) "a"
[12]=>
string(1) "z"
[13]=>
string(0) ""
}
I would still suggest str_split() if available, otherwise
preg_split().
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://php.net/preg_split - example 2.
Or, a possible faster method, using str_split() (only available in
PHP5): http://php.net/str_split
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d I can see that you
have grown stronger since our last encounter!"
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;s incorrect. An MD5 is a hexadecimal number.
Ah, damn you, parenthesis :)
I read it as:
md5(uniqid(rand()), true);
My bad - sorry!
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> ought to be sufficient - and works with PHP4 :)
>Using entropy with uniqid() simply returns a more unique value to md5(),
>so what's the difference.
Err... the only difference is that I removed the second argument,
making md5() return a simple hex-encoded string.
--
- Pete
eby messing up the form.
$token = md5(uniqid(rand() ));
ought to be sufficient - and works with PHP4 :)
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 17 Aug 2004 12:40:00 -0700 (PDT), in php.general you wrote:
>I didn't have to look much further than this. You have a class that was
>designed in PHP3 and suddenly you're wondering why it work in PHP5?
Actually, I too would wonder why it worked :)
--
- Peter Brodersen
ture), I do think some Apache mailing lists would be
of more help for you.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
number of times possible, follow the quantifier with a
"?". Note that the meanings don't change, just the
"greediness":
There really is a common mix-up between these two words, as you have
just proved :)
(I'm pretty sure that we all agree of the actual behaviou
that quantifiers actually are used
:)
So, the "greedy"-terminology simply relates to quantifiers.
--
- Peter Brodersen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ge of matches should be
expanded to as long as possible, e.g.:
pattern: /<.*>/
string: one two three
.. wil match " two " and not just "".
.*? on the other hand (or the U pattern modifier) makes the capture
ungreedy.
... just trying to clear up a common mix-up in terms
Hi,
On Mon, 9 Aug 2004 18:12:42 +, in php.general you wrote:
>* Thus wrote Jonathan Haddad:
>> The only problem there is when you group the LEFT JOIN pictures that
>> have a count of 0 return a count of 1. Unfortunately there's no single
>> query that I figured out when I did this same pro
On Thu, 01 Jul 2004 06:55:38 -0700, [EMAIL PROTECTED] (Bob Hockney)
wrote:
>What I am concerned about is a local user on the server machine, not access through
>the web server. It sounds like it can be done if there is a separate user or group
>for the
>web server process, but this site specif
31 matches
Mail list logo