This is fixed in PHP 5.4 by completely dropping support for the TZ
environment variable. PHP will always use UTC unless you explicitly set
it to something. It won't matter which timezone the system is running
in. This is the only reliable way to always have consistent behaviour
across all
On Fri, May 6, 2011 at 12:57 PM, Jeremy Greene jer...@zeevee.com wrote:
Then I find out that sem_acquire() actually returns **OK** when the
underlying semop call gets an EINTR!!! Holy cow. How can a php system
call loose an error?! That's just crazy.
Generally you don't care about an EINTR
On 8/4/10 10:27 AM, Alex Major wrote:
-Original Message-
From: Tontonq Tontonq [mailto:root...@gmail.com]
Sent: 04 August 2010 18:21
To: PHP General Mailing List
Subject: [PHP] multi thread work?
Hi
how to make a script multi task based like this
?
for($i=1;$i=100;$i++)
{
On 7/27/10 7:04 AM, Ümit CAN wrote:
I use PHP socket programming and I wish multithreading operation of
the socket .
When I have many requests on this socket , before the first one request is
anwered , the second request is not aswered till the first one is finished.
How can both
On 7/28/10 11:26 PM, Larry Garfield wrote:
- Those driving PHP development itself (vis, writing the engine) don't seem
to
comprehend the idea of someone running a web site who isn't also a C
developer, sysadmin, and performance specialist. If you don't have root
then
we don't care
if there is any API in PHP that serves this
requirement [read/write to given file descriptor]
Please let me know if I need to provide more information.
Thanks,
Naga Kiran
On Thu, Apr 15, 2010 at 7:33 PM, Rasmus Lerdorf ras...@lerdorf.comwrote:
On 04/15/2010 06:52 AM, Naga Kiran K wrote:
Hi
Aras wrote:
First of all, Happy New Year for everyone in the list. I wish 2007 brings
all us happiness, health and peace.
I want to read your advises at a point i am stuck within, i have an
application that serves downloads to clients. For some reason i am limiting
total open slot for some
Roger Thomas wrote:
I have been serving my community with Invision Power Board (IPB) v1.3.1
Final. Things are working well with PHP 4.3.8 and Apache 1.3.29.
Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word
attachments with IPB. Whenever I click on those
You did more than just turn register_globals off. You also changed your
error warning level. You have turned notices on. Set the same error
warning level in your PHP 4 setup and you will see exactly the same
messages.
To be notice-free, your code should look like this:
$action =
Google Kreme wrote:
On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote:
Content-type: image/
the browser expects only the image to output to the screen and no HTML
As if should.
Save the image in a temporary location and then send html that include
and img ... / tag
You don't need to
Christian Heinrich wrote:
Hey all,
I've just examined the latest Change-Log for Version 5.2.0 (see
http://www.php.net/ChangeLog-5.php for details).
Seems to be fine, but I couldn't figure out one point.
The changelog talks about
Added RFC1867 fileupload processing hook. (Stefan E.)
Beauford wrote:
Does the PHP list not monitor spam or filter out viruses? I am getting a lot
of this junk coming through the list. I am also getting some directly to
this address, but obviously that is out of the lists control.
We filter 1000's of spam messages every day. But a few do get
Daevid Vincent wrote:
-Original Message-
From: Ed Lazor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 12:05 PM
Cc: Daevid Vincent; PHP General
Subject: Re: [PHP] Microsoft Partners With Zend
ps... I wonder if .NET will ever support PHP *GRIN*
I guess that's
Rasmus Lerdorf wrote:
The only slight negative as far as you are concerned could be that they
may divert some Zend resources to work on Windows issues that aren't
interesting to you. But consider that there are 1133 people with PHP
cvs accounts. Only 11 work for Zend, and out of those 11
$str is 10 bytes
then you repeat it 200 times
That gives you 2000 bytes. That's 20M not 10M
-Rasmus
Cabbar Duzayak wrote:
Hi,
I have written a simple test program to see how php allocates memory.
Test code allocates ~10 Meg of RAM in an array within a loop till it
runs out of
Sean Pringle wrote:
The Caching systems such as Zend Cache (not the Optimizer), MMCache,
APC, etc are expressly designed to store the tokenized version of the
PHP script to be executed.
Note that their REAL performance savings is actually in loading from
the hard drive into RAM, not actually
Jochem Maas wrote:
Eric wrote:
Stut wrote:
Eric wrote:
When I create a socket/stream that connects to a news sever and try
to recv data from the socket when there is nothing there (Like if the
server sends one line and I call recv twice) the socket freezes. I
assume this is because using
Kevin Wilcox wrote:
I have a feeling this may be the wrong group to ask this question, but
I thought that if it is, someone can point me in the right direction.
I'm working on a application written in C that needs to parse and
understand php arrays that have been serialized and stored in a
Joseph Cheng wrote:
Is anyone using a reliable Linux/Apache/MySQL/PHP benchmarking suite?
There are benchmark software for individual pieces but I hope there is
one tool or several small tools that act together to give a picture of
how long a request takes from entering Apache, to PHP, to MySQL
For any of you folks in the Bay Area, don't miss the open Hack Day at
Yahoo next Friday/Saturday. It is completely free and the density of
web experts will be higher than at most conferences.
More info on it at the following links:
http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/
It's a pecl extension, so it is with all the other pecl extensions for
Windows at http://pecl4win.php.net/
-Rasmus
steve wrote:
Yeah, sorry, it is missing from a test version of PHP 5.2. In the test
version, it is not available, nor is it on snaps. Likely doesn't work.
On 8/23/06, Alex
Artzi, Yoav (Yoav) wrote:
I have the following in my php.ini:
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
The following PHP code prints nothing:
?php
$webroot = $_SERVER['DOCUMENT_ROOT'];
$server = $_SERVER[HOST];
tedd wrote:
At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote:
By the way, everyone should be setting a charset. If you don't set
it, IE will look at the first 4k of the body of the page and take a
wild guess.
-Rasmus
-Rasmus:
Ok, but why doesn't w3c use it?
http://validator.w3.org
IE doesn't actually support XHTML, so if your primary target for
something is IE, you really shouldn't be using XHTML. Even IE7 doesn't
fully support it.
Setting the charset in the response header like you did is the best
approach. You can do it for all your pages in your php.ini file with:
John Taylor-Johnston wrote:
Is there something already created to open an rss file, parse it, and
include() the useful stuff into an html file?
Not all my students have an rss reader.
http://jtjohnston.ca/jtjohnston.rss
RSS is just XML. Use SimpleXML to map it to a PHP object and just print
Kevin Murphy wrote:
I was just wondering if there was any thought one way or another on the
best practice for doing this.
Lets say I have 10 functions that I want to reuse on my site. Not every
page needs every function. So I move the function to an external page
and then require it for the
weetat wrote:
Hi Thomas,
Yes. I read the manual regarding the connection handling.
However ,in my php program , the execution did not stop , because i
have logger which log sql statement INSERT statement when inserted
data to database is ok .
When i close the browser , the sql execution
Martin Alterisio wrote:
You're right about ++ operator not to be considered a math operator, my
mistake. What I should have said is that the usual connotation and expected
behaviour of ++ and the comparison operators is to give iteration
capabilities to a certain data type, as used in a for
Shu Chow wrote:
Is there any way to alter the header of DomDocument's load/loadHTMLFile
request? I have a file that will display certain content for certain
user agents. I'd like to be able to spoof the UA of the request.
Ah, a good question the answer to which demonstrates the magic of PHP
Richard Lynch wrote:
On Mon, June 5, 2006 9:00 pm, tedd wrote:
Does that make more sense?
Maybe to you, but not me.
a
b
c
.
.
.
x
y
tedd wrote:
For example, the Unicode issue was raised during this discussion -- if php
doesn't consider the numeric relationship of characters, then I see a big
problem waiting in the wings. Because if we're having these types of
discussions with just considering 00-7F characters, then I can
tedd wrote:
Hi gang:
Here's your opportunity to pound me again for not knowing the basics of php.
I vaguely remember something like this being discussed a while back, but can't
find the reference.
In any event, if one uses --
for ($i=a; $iz; $i++)
{
echo($i);
}
-- it stops at y
Martin Alterisio wrote:
2006/6/4, Rasmus Lerdorf [EMAIL PROTECTED]:
tedd wrote:
Hi gang:
Here's your opportunity to pound me again for not knowing the basics of
php.
I vaguely remember something like this being discussed a while back,
but
can't find the reference.
In any event, if one
tedd wrote:
But, what brothers me about the routine, is that is DOES print z where it is supposed
to. In other words, the characters a-z are output before continuing with aa and so on. The
operation doesn't end with z.
Your condition for the loop to continue is $i=z.
When $i = y it will
Martin Alterisio wrote:
Still:
anything ++anything
should be true, or at least that's what they taught me on abstract data
types design, and I think they're right (at least this time)
In loosely typed languages that is not always true. Operators have to
guess at the type and try to do what
Martin Alterisio wrote:
I still don't see why this functionality should be a native operator of
the language.
It doesn't seem natural that ++ operator understands that the string
could be an enumeration of some kind. I believe that such things should
be left to the coder who knows what the
tedd wrote:
At 12:27 PM -0700 6/4/06, Rasmus Lerdorf wrote:
tedd wrote:
But, what brothers me about the routine, is that is DOES print z where it is supposed
to. In other words, the characters a-z are output before continuing with aa and so on. The
operation doesn't end with z.
Your
tedd wrote:
At 1:09 PM -0700 6/4/06, Rasmus Lerdorf wrote:
I agree with [1] and [2], but [3] is where we part company. You see, if you are right, then
aaa would also be less than z, but that doesn't appear so.
Of course it is.
php -r 'echo aaa z;'
1
You missed the point, why does
Larry Garfield wrote:
On Sunday 04 June 2006 15:04, tedd wrote:
Yes, it is my contention that strings are numerical -- you don't store A
in memory, you store 0100 001, or ASCII DEC 65.
In a low-level language like C, that matters. One doesn't have strings, one
has numbers that happen to
Are you actually hitting this race condition in the real world? With a
decently long maxlifetime setting I can't really see this being a
realistic problem. Remember the timer is reset on every access.
-Rasmus
BNR - IT Department wrote:
Hi,
Here is a simple script:
? // BEGIN OF A SCRIPT
Jochem Maas wrote:
I understand the point you made below - you have made this argument before
and I, for one, accepted it as valid when I first read the discussion
on internals - which is why I avoided ranting about that (and changes
like it)
But you didn't avoid it, you used it as an example
[EMAIL PROTECTED] wrote:
If it ain't broke, don't fix it works for a while, but if there are easier
and/or better ways to do things in PHP5, I want in! So someone sell me on this from the
point of view of someone who's upgraded and has learned the joys of PHP5. So far what
I've found
tedd wrote:
At 9:00 AM -0700 6/2/06, Rasmus Lerdorf wrote:
[EMAIL PROTECTED] wrote:
-snip- (a bunch of things over my head)
I thought I kept the examples pretty simple actually. If you have
specific questions on them I would be happy to explain them in more detail.
-Rasmus
--
PHP
Robert Cummings wrote:
Well there was a segfault, but that's fixed now, now the warning is
thrown because of some purist attitude that says it's incorrect to pass
a literal to a reference expecting parameter... I can see how that's an
issue in C with pointers, or in a strongly type language
Ross wrote:
Not so good with the string functions but I want to remove the last 15
characters from a query. Thought this would work.
echo the query is.rtrim($query, 15);
echo the query is.substr($query,0,-15);
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
John Hicks wrote:
Spam has suddenly swamped the PHP mailing lists.
(Some of you may have better filters than I and not noticed it.)
Apparently the list had been moved to a new server and it hasn't been
configured properly yet.
I fear many will unsubscribe and the list will lose much of its
Suhas wrote:
Hello,
I have a project that deals with the date time stamps since 1900 (and
past), any suggestions about a good class that handles Date Time
Format before 1970. I really like date() function and want something
similar.
date() uses Unix timestamps which on most Unix platforms
tedd wrote:
Here is an example Wez wrote years ago:
-snip code -
Years ago?
stream_socket_client() is php5.
How long ago did php5 launch?
The first beta was in June 2003. But the streams code was written well
before that.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To
Richard Lynch wrote:
On Mon, April 10, 2006 10:24 pm, Rasmus Lerdorf wrote:
You could volunteer to help maintain the user notes.
I've just spent five/ten minutes with Google and php.net trying to
find the best way to volunteer to do just that...
Admittedly not a LOT of effort, but...
Where
Martin Alterisio wrote:
Maybe you can read the contents of the feeds using fsockopen() and
stream_set_timeout() to adjust the timeout, or stream_set_blocking()
to read it asynchronously, and then load the xml with
simplexml_load_string().
PS: I forgot to reply to all and mention you'll have to
Richard Lynch wrote:
On Mon, April 10, 2006 6:17 pm, Rasmus Lerdorf wrote:
Martin Alterisio wrote:
Maybe you can read the contents of the feeds using fsockopen() and
stream_set_timeout() to adjust the timeout, or stream_set_blocking()
to read it asynchronously, and then load the xml
Richard Lynch wrote:
It would be REALLY NIFTY if fopen and friends which understand all
those protocols of HTTP FTP HTTPS and so on, allowed one to set a
timeout for URLs, but they don't and nobody with the skills to change
that (not me) seems even mildly interested. :-( :-( :-(
Because it is
Richard Lynch wrote:
On Mon, April 10, 2006 4:46 pm, darren kirby wrote:
quoth the Robert Cummings:
Why do you do this on every request? Why not have a cron job
retrieve an
update every 20 minutes or whatnot and stuff it into a database
table
for your page to access? Then if the cron fails to
Robert Cummings wrote:
On Mon, 2006-04-10 at 23:11, Richard Lynch wrote:
On Mon, April 10, 2006 9:59 pm, Rasmus Lerdorf wrote:
Richard Lynch wrote:
It would be REALLY NIFTY if fopen and friends which understand all
those protocols of HTTP FTP HTTPS and so on, allowed one to set a
timeout
Robert Cummings wrote:
On Mon, 2006-04-10 at 23:24, Rasmus Lerdorf wrote:
Robert Cummings wrote:
On Mon, 2006-04-10 at 23:11, Richard Lynch wrote:
On Mon, April 10, 2006 9:59 pm, Rasmus Lerdorf wrote:
Richard Lynch wrote:
It would be REALLY NIFTY if fopen and friends which understand all
Satyam wrote:
Timestamps are stored as seconds from a certain date. The base date
differ depending on the platform, Windows use 1/1/1980 the rest
1/1/1970, but still seconds. 7 days are 7*24*60*60. Just add that much
to a timestamp. It helps having a constant such as:
define
Rasmus Lerdorf wrote:
?php
if(!empty($_POST['loc'])) {
$src =
http://api.local.yahoo.com/MapsService/V1/mapImage?appid=YahooDemo;;
$src.= location=.urlencode($_GET['loc']).
output=phpimage_width=300image_height=300zoom=7;
header(Content-type: application/x-json);
echo
Mace Eliason wrote:
Hi,
I am having troubles adding 7 days to the current date. I have been
reading through php.net date() and this is what I have come up with but
it doesn't work
$today = date('m/d/Y');
$nextweek = date('m/d/Y',mktime(date(m), date(d)+7, date(Y)));
if I echo the above
Rasmus Lerdorf wrote:
Mace Eliason wrote:
Hi,
I am having troubles adding 7 days to the current date. I have been
reading through php.net date() and this is what I have come up with
but it doesn't work
$today = date('m/d/Y');
$nextweek = date('m/d/Y',mktime(date(m), date(d)+7, date(Y
Ryan A wrote:
Just been googleing and trying out different AJAX frameworks..:
From PEAR HTML_AJAX
Gauva
My-Bic
AjaxAC
and quite a few moreand it happened, I confused myself :-(
For some reason HTML_AJAX is not working on my local machine (windows based,
I am getting runtime errors with
Mariano Guadagnini wrote:
Hei guys,
I´m parsing some xml's and fetching nodes using xpath, and the PHP 5.0
DOM. Unfortunately, some documents have white spaces in the beginning or
some missing tags. In some situations, the script just skips that xml,
or even crashes without notice. I tried
Ruben Rubio Rey wrote:
The best and simplest for me is prototype.js
Is much more than ajax ! 100% cross browser! ang GPL!
http://www.sergiopereira.com/articles/prototype.js.html
Note that quite a few people who know a lot about Javascript really
don't like the fact that prototype.js extends
Philip Thompson wrote:
On Mar 28, 2006, at 10:23 AM, Jochem Maas wrote:
Jarratt Ingram wrote:
Hi,
I have a little unusual question, we are currently looking into the
new PDO
extension with PHP5.1. We are currently use Mysql, InnoDB and
transactions.
What we would like to know if we use the
Ray Hauge wrote:
Still right on with the pre-compiling though ;) I find that the Optimizer has
value. If you wanted to cache on top of that you could probably speed it up
even further with cached responses (APC or I think Zend has one too)
Without an opcode cache, using the optimizer is
Andy wrote:
Hi to all,
We are developing a multilanguage application, and slowly it seems that the Latin1(ISO 5589 1) encoding is not enough.
I tried simply to convert the database and the encoding of the php to UTF-8, but I'm getting some problems.
If I make an echo 'möbel, Belgien' the
Brady Mitchell wrote:
Why there is no newline afer pHello World/p ?
Is it a PHP bug or the tutorial should be updated?
The tutorial is fine.
The sample code mentioned:
html
head
titlePHP Test/title
/head
body
?php echo 'pHello World/p'; ?
/body
/html
Contains a line break after the
Adrian wrote:
Is there a way to circumvent this?
My template engine compiles templates to PHP files and this feature
makes the output html code look awful sometimes.
Nope. Put in an extra newline after ? if you need them, or put a \n at
the end of the last echo inside the PHP block.
Rostislav Krasny wrote:
On Sat, 18 Mar 2006 13:49:19 -0800
[EMAIL PROTECTED] (Jim Lucas) wrote:
put a space after the ? and you will retain the line feed
It also adds that space before the retained line feed, but so it looks
better anyway. Excellent suggestion, thank you! Could it be added
Manuel Lemos wrote:
Hello,
on 03/11/2006 09:39 AM Merlin said the following:
I am running php 4.x on a suse 9.x machine. There is a php script which
resides
on a webapp that is responsible for sending e-mail to myself in case of
errors like db-errors or similar. Called error.php
This script
Jens Kleikamp wrote:
steve wrote:
Thanks for that! It meant that I should look in other directions which
helped me figure out the problem. Can you try again with:
apc.optimization=1
Your script also seems to work on my sytem with optimization=1.
The optimizer doesn't work very well at
steve wrote:
I can't get APC 3.0.8 to work on anything, at all. On Windows, it
crashes the server, and on Linux, it can't handle objects. For
example:
?php
class abc {
}
$a = new abc;
var_dump($a);
?
Gives:
NULL
Any idea on what is going on?
Use the CVS version. I need to push a new
steve wrote:
OK, will try. Does this work in the CVS version?
?php
error_reporting(E_ALL);
class A
{
public $_t = 'something';
public function __get($name)
{
$getter='get'.$name;
if(method_exists($this,$getter))
{
steve wrote:
OK, got it and installed it (checked the output of phpinfo to
confirm), and I get this on both the first load (uncached) and later
loads (cached):
NULL
Test $one-getTest():
With an error in the error log telling me I'm a dope for dereferencing
a null object.
Why does the weird
Ben Miller wrote:
If anyone has an answer for this, I would be greatly appreciative.
I was trying to compare two values, the first is the total cost of products
to be refunded, and the second is the original order total. To the naked
eye, they both were coming out as 102.85, yet an
Khai wrote:
In my development environment I have Zend Debugger / Zend Studio
installed. I like to put all the directives for this into studio.ini,
and include this file into the main php.ini somehow. Is this possible?
Also can I put php directives into the apache httpd.conf file?
No, you
Filing a bug against APC with a gdb backtrace from one of these crashes would
be useful.
See http://pecl.php.net/bugs/report.php?package=APC
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A very similar question was asked recently on this list. You might like
to consider caching whatever you create from those result sets rather
than the result sets themselves, but APC [1] is worth looking at as I
believe it can cache (some?) PHP vars without serialisation, using
Kevin Wang wrote:
My php5 web application needs to parse/marshall a bunch of large xml files
into
php5 objects at the beginning of handling each request. These xml files are
static across all the requests and it is really time consuming to
parse/marshall them into php5 objects.
What sort
I guess to only way to solve my problem is to write my own extension to
initialize my objects in my own memory (even can keep them in local memory, as
long as they are persistent across requests). You mentioned to write a MINIT
hook; could you give some more details? Is there any
Graham Anderson wrote:
?php
$quote = \;
$xml = '';
$xml .= '?xml version=1.0?'.\n;
$xml .= '?quicktime type=application/x-qtskin?'.\n;
$xml .= 'skin'.\n;
$xml .= 'movie src=' . $quote. ../../fonovisa.mov . $quote.
'/'.\n;
$xml .= 'contentregion src=' .$quote. ../images/mask.gif .
Graham Anderson wrote:
Thanks Rasmus :)
that is an incredibly cool tip: EOB
Surprised I did not see you at the Digital Rights [hollywood digital]
conference in LA early this week.
Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types
and sales folk
when I access a
Graham Anderson wrote:
Ok, I think I figured it out .
I had to convert my BBedit text editor file to plain text and then
copy/paste that text directly into a new server text file
So, I guess my $100+ text editor is screwing up the file ?
Is there some way to prevent this ?
Tell your
[EMAIL PROTECTED] wrote:
You're telling me. That's why I think php or apache kills it.
I didn't really follow this, but typically you can debug exec problems
from the command line by switching to the web server user id and running
the exact same command.
-Rasmus
--
PHP General Mailing List
Lester Caine wrote:
This type of code is used in a few places, so I'd like a little help
converting it to 'good code' under the new rules ;)
Get the key from an array ( fails because key(array) )
if( $pId == key( $this-getFunc() ) ) {
In getFunc()
return (
Michael Sims wrote:
Jochem Maas wrote:
foo($a = 5);
by definition the expression is evaluated _before_ the function is
called - so the expression is not passed to the function, the result
of the expression is passed ... I was under the impression that the
the expression evaluates to a
Vizion wrote:
Notice: Only variable references should be returned by reference
in /usr2/virtualwebs/forumkatrina.org/wiki/includes/ObjectCache.php on line
369
Notice: Only variable references should be returned by reference
in
Vizion wrote:
function setupTemplate( $classname, $repository=false,
$cache_dir=false ) {
return new $classname();
^^
}
Is that really all they have in that function? It seems rather useless
to me. Why call a function just
Robert Cummings wrote:
On Wed, 2005-09-21 at 00:58, Rasmus Lerdorf wrote:
And for PHP5 you can just drop all references related to objects and it
will do the right thing.
Eeeek, that's not entirely true. Sometimes you want a real reference to
an object even in PHP5 :/
$a = new foo
Robert Cummings wrote:
I think you mean novice use. There are certainly times when assigning an
object to a variable I want all the values currently referring to that
object to see the update and not just the variable being assigned to. I
understand that objects in PHP5 are passed by reference
Stephen Leaf wrote:
$this-urlArr[0] = array_pop($arr = explode(,$this-urlArr[0]));
I still have to scratch my head as to why I *need* that $arr =
prior to 5.0.5 this was not needed.
$this-urlArr[0] = array_pop(explode(,$this-urlArr[0]));
This is a much misunderstood issue. And we are
Robert Cummings wrote:
On Fri, 2005-09-16 at 10:28, Rasmus Lerdorf wrote:
Stephen Leaf wrote:
$this-urlArr[0] = array_pop($arr = explode(,$this-urlArr[0]));
I still have to scratch my head as to why I *need* that $arr =
prior to 5.0.5 this was not needed.
$this-urlArr[0] = array_pop(explode
Chris Shiflett wrote:
3. Chris's modified test script:
header('Location: http://www.php.net/');
$fp = fopen('/tmp/log.txt', 'w');
for ($i = 0; $i 30; $i++)
{
$str = Count $i\n;
echo str_repeat($str, 1000);
fputs($fp, $str);
sleep(1);
flush();
}
This redirects
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
This redirects right away for me. Try it:
http://lerdorf.com/cs.php
Code at: http://lerdorf.com/cs.phps
Thanks, that works. :-)
For reference, here's mine (temporary URL, of course):
http://shiflett.org/cs.php
http://shiflett.org
Michelle Konzack wrote:
Hi Rory,
Am 2005-09-03 17:04:19, schrieb Rory Browne:
I'm not totally sure on the format of the passwords in /etc/shadow,
but can you do anything with php's md5 function? If not, then perhaps
the mcrypt extension may do something for you.
Unfortunatly not,
Michelle Konzack wrote:
Hello Jason,
Am 2005-09-03 10:42:27, schrieb Jason Boerner:
My server was upgraded to php 5 and now nothing runs because of undefined
index errors all over the place.. How can I save myself from recoding for
hours and hours ??
I have tried tu upgrade my Server
Graham Anderson wrote:
I would like the gd library to handle the vector image format, PCT.
GD is installed on my shared server and, unfortunately, ImageMagick is
not :(
ImageMagick CAN export PCT files.
Can I get GD to do this too ?
Not as far as I know, no.
-Rasmus
--
PHP General
)
) {
php_error_docref(NULL TSRMLS_CC, E_WARNING,Unable to
start TLS: %s, ldap_err2string(rc));
RETURN_FALSE;
} else {
RETURN_TRUE;
}
}
/* }}} */
#endif
On Fri, 2 Sep 2005, Rasmus Lerdorf wrote:
Brian A. Seklecki wrote
Dan Trainor wrote:
Dan Trainor wrote:
Hello, all -
This is a question that could depend on a completely different (yet,
relayed) subject, so I'm sending this email to both php-general@ and
[EMAIL PROTECTED] I thank you in advance for your understanding.
I am currently generating some
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
That's a bit misleading. The HTTP response headers are sent a soon
as you output something from your script (calling header() or
setcookie() doesn't count as output, so you can set all the headers
and cookies you want).
They're sent to Apache
Chris Shiflett wrote:
Chris Shiflett wrote:
And the browsers tend to redirect right away once they get this
header.
I would find that very surprising. Maybe I'll experiment.
I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of
them request the new URL before
1 - 100 of 1546 matches
Mail list logo