Hello,
I need to start a php-based socket server that doesn't die if the client
closes their browser window.
Is there another (maybe cleaner) method to accomplish this, other than
exec('bash -c exec nohup setsid php server.php /dev/null 21 ');
?
Thanks
--
PHP General Mailing List
How about simply:
echo
SCRIPT
window.top.main.location= 'http://localhost/phase1/report.php'';
/SCRIPT;
?
Geoffrey Thompson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I was only able to find one reference to targeting a named frame on a
redirection, in the MySQL Cookbook
machine (finite
state automaton). Try to search google for more theory. For ex.
http://en.wikipedia.org/wiki/Finite_state_automaton
Martin Helie wrote:
Hello,
I'm writing a routine that recursively reads an HTML document, looking
for
special tags. It's a template system, but contrary
Since you mention mysql, why not just add
ORDER BY number DESC to your query? The database will do the work for you.
Dave Carrera [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi List,
How can I sort a while loop or do something before it to achieve the
following?
I have a
Not sure I understand, but it sounds like you'd want to do something like:
$dir = yourdir/;
$d = dir( $dir );
while (false !== ($file = $d-read())) {
if( substr( $file, 0, 1 ) == . ) {
continue;
}
$fp = fopen( $dir . $file, r );
$contentArray = split( !--[a-z ]--, fread(
Hello,
I'm writing a routine that recursively reads an HTML document, looking for
special tags. It's a template system, but contrary to what I've seen out
there so far, no template engines allow for any kind of customization from
within the document; they only seem to be variable replacement
Here's a quick one:
has anyone found a way to keep a resource handle alive between page loads?
For example, I open a socket with fsockopen, and I'd like the handle to
survive page loads. As you know, there's not much point storing it in a
session (or its parent object)...
Any ideas?
Tx,
Hi Chris,
no, unfortunately, that doesn't work; it creates a permanent socket on the
server, but between page reads, php still loses its resource id, and can't
communicate with the socket...
Martin
Chris Hayes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At 16:09 10-11-03, you
Hi Chris,
yes, that's precisely my problem (I had read the notes).
This seems like something people would want to do, so I'm surprised no one's
found some workaround.
Any other ideas?
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Martin Helie [EMAIL PROTECTED
Hi Dan,
sounds like a good idea. How does 'gateway' actually listen in on the
website session?
Is it simply invoked by the website with specific arguments?
Tx,
Martin
Dan Joseph [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Quick answer: as others before me have also
Great! Thanks Dan.
I'll be making a php version of something similar.
Martin
Dan Joseph [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
sounds like a good idea. How does 'gateway' actually listen in on the
website session?
Is it simply invoked by the website with
]
You'll probably
still want to get libjpeg and libpng, and link against them with the proper
configure options.
What is the correct syntax to do all of the suggestions?
Todd
Martin Helie wrote:
Well, not necessarily, since gd is included with php 4.3.x. You'll probably
still want to get libjpeg
again, the current function call executes all the way through to echoing
I'm here.
I would've thought current execution would be terminated as soon as the
function is called again, and that I'd get I'm here only once we're out of
the loop (ie, $i == 10).
Thanks for any pointers.
Martin Helie
Why? The I'm here line is outside the conditional. The function will
still complete independent of the conditional. If $i is greater than ten,
the pointer just skips the contents of the if/then and continues on the
next line after it. Here's a better illustration:
In my test() function, I
Hi Steve,
yes, I am familiar with these concepts; I am just starting to experiment
with recursive functions and static variables. Thanks for explaining that
once the function is called and completed, the rest of the first call
continues executing normally. That is what surprised me.
Martin
No.
PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At 00:27 31.05.2003, Martin Helie said:
[snip]
yes, I am familiar with these concepts; I am just starting to experiment
with recursive functions and static variables. Thanks for explaining that
once
Well, not necessarily, since gd is included with php 4.3.x. You'll probably
still want to get libjpeg and libpng, and link against them with the proper
configure options.
Ef [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--with-gd and of oucrce you need the GD library.
Todd Cary
Well, I don't know if this might be it, but a while back, I had problems
with apache + php (forget which version) and a bug in php that cause memory
problems.
I was using an array to store fairly large amounts of data. What would
happen is something similar to what you describe. Modifying the
]]
Sent: Tuesday, August 28, 2001 04:07
To: Martin Helie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] zlib1.1.3 and ob_gzhandler
Were you using output compression with previous versions of PHP? Did it
work with images in these versions?
Also, are you seeing any errors in your Web server's error log?
Zeev
Hello everyone,
I'm a newbie here, so please forgive me if this topic has been discussed
previously (I could find no mention of it).
I recently compiled PHP4.0.6 with gd1.8.4 and zlib 1.1.3 and experienced no
problems --except! If you use ob_gzhandler as your output handler, you'll
want to make
Hello everyone,
I am stumped with ImageColorTransparent and Netscape.
In Explorer, everything seems fine with this function, but in Netscape,
there is no effect whatsoever.
I am using ImagePNG with GD1.8 and PHP4.0.4. Is this another Netscape
limitation?
Tx,
Martin
--
PHP General Mailing
21 matches
Mail list logo