If you don't flush some output after setting the header() then the
headers won't go out until the end of the request. So do something like:
ignore_user_abort(true);
header("Location: http://whatever";);
echo "foo\n"; flush();
Then whatever comes after this should run and the browser is long gone
Hi,
I have made a webpage in php which retrieves the data from a huge MYSQL
tables as below:-
$i=0;
while ($i<=23)
{
select a, b from table where hour(time)=$i and date='' order by desc
time limit 1;
$i++;
}
then i substract the current hour output from the last hour output for
calcuating
balwant singh wrote:
Hi,
I have made a webpage in php which retrieves the data from a huge MYSQL
tables as below:-
$i=0;
while ($i<=23)
{
select a, b from table where hour(time)=$i and date='' order by desc
time limit 1;
$i++;
}
then i substract the current hour output from the last hour
> function sndReq(action) {
> http.open('get', 'rpc.php?action='+action);
> http.onreadystatechange = handleResponse;
> http.send(null);
> }
So with AJAX, the data gets sent back to the browser using GET?
Is there any way you can do it using POST?
thnx,
Chris
--
PHP General Mailing
I'm using PEAR::DB to connect to a MS SQL Server 2000.
I'm attempting to run the following query:
SELECT * FROM myTable FOR XML AUTO, ELEMENTS
When I run the above query using the Query Analyzer, I get back
the results as expected. However, when I try to run the same query
using PEAR, I get the
First of all, you want to have the two values in seperate variables.
After reading the contents from the file, do something like:
-8<-
function parseUptimeSeconds( $seconds ) {
$resultArray = Array( 'weeks' =>
Chris Boget wrote:
>>function sndReq(action) {
>>http.open('get', 'rpc.php?action='+action);
>>http.onreadystatechange = handleResponse;
>>http.send(null);
>>}
>
>
> So with AJAX, the data gets sent back to the browser using GET?
> Is there any way you can do it using POST?
The proto
On Thu, 2005-07-21 at 08:23, Marco Tabini wrote:
> We had a webcast on PHP and Ajax a while back--the recordings are still
> available for free at http://blogs.phparch.com/mt/index.php?p=49.
Nice, totally crashes Firefox in Linux.
--
s/:-[(/]/:-)/g
BrianGnuPG -> KeyID: 0x04A4F0DC | K
Hmm.. Works for me. Firefox 1.0.6 on gentoo.
On 7/23/05, Brian V Bonini <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-07-21 at 08:23, Marco Tabini wrote:
> > We had a webcast on PHP and Ajax a while back--the recordings are still
> > available for free at http://blogs.phparch.com/mt/index.php?p=49.
Hello I'm new:
I need to know how can I stop a php sentence if my db is empty, for example
I have writed a php sentence, if every fields from mmy db are full, there
is no problem, but I delete every values from the all fields in my db when
I ejecute my script mysql give me an error, Ej:
$fecha = m
I am needing to write a front end for an online application written in
Perl. Is there a way for PHP to call a module or function written in Perl?
Thanks,
Linda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
compiled without any problems but when i fired up phpinfo(); it said
linked zlib version 1.2.2, so i tried recompiling php but moved the
system ones files /usr/lib, /usr/include and placed the old ones in
their place but still it says linked zlib version is 1.2.2 within a call
to phpinfo();, i
Linda H wrote:
I am needing to write a front end for an online application written in
Perl. Is there a way for PHP to call a module or function written in Perl?
Firstly, please don't reply to existing threads with a completely new
topic. For those of us that use threaded newsreaders, your mess
Jesús Alain Rodríguez Santos wrote:
Hello I'm new:
I need to know how can I stop a php sentence if my db is empty, for example
I have writed a php sentence, if every fields from mmy db are full, there
is no problem, but I delete every values from the all fields in my db when
I ejecute my script m
On 7/23/05, Brian V Bonini <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-07-21 at 08:23, Marco Tabini wrote:
> > We had a webcast on PHP and Ajax a while back--the recordings are still
> > available for free at http://blogs.phparch.com/mt/index.php?p=49.
>
> Nice, totally crashes Firefox in Linux.
Wo
Yep, I integrated it into one of our in house apps a few weeks back
just to try it out and it worked ok. Nothing special, just allowed a
user to put in a name in a search box and the js called a php script
which did a lookup into the db and returned the results as the user
typed but worked well wi
I agree with Jasper here, you want to make it a point to optimize
your queries so that fewer trips are made to the database server. On
the topic of indexing, I'm curious as to how you did that and if your
using it as intended. In your query you are testing columns
`time`,`date` so you'll wa
As always, look for someone else's existing project and see how they
did it. ;-)
http://phpsysinfo.sourceforge.net/
Good Luck!
-Joe
On Jul 23, 2005, at 9:25 AM, André Medeiros wrote:
First of all, you want to have the two values in seperate variables.
After reading the contents from the fil
* "Chris Boget" <[EMAIL PROTECTED]>:
> I'm using PEAR::DB to connect to a MS SQL Server 2000.
> I'm attempting to run the following query:
>
> SELECT * FROM myTable FOR XML AUTO, ELEMENTS
>
> When I run the above query using the Query Analyzer, I get back
> the results as expected. However, when I
Jasper Bryant-Greene wrote:
Jesús Alain Rodríguez Santos wrote:
Hello I'm new:
I need to know how can I stop a php sentence if my db is empty, for
example
I have writed a php sentence, if every fields from mmy db are full, there
is no problem, but I delete every values from the all fields in
20 matches
Mail list logo