php-general Digest 23 Jul 2005 06:49:32 -0000 Issue 3583

2005-07-23 Thread php-general-digest-help
php-general Digest 23 Jul 2005 06:49:32 - Issue 3583 Topics (messages 219235 through 219247): Re: gloabl reference behavior question? 219235 by: Surendra Singhi Re: Konqueror does not like my Website 219236 by: Rick Emery Re: Is there a way to get a variable name as a

php-general Digest 23 Jul 2005 18:57:06 -0000 Issue 3584

2005-07-23 Thread php-general-digest-help
php-general Digest 23 Jul 2005 18:57:06 - Issue 3584 Topics (messages 219248 through 219255): Re: On register_shutdown_function: What might be the problem? 219248 by: Rasmus Lerdorf speed - PHP/MYSQL 219249 by: balwant singh 219250 by: Jasper Bryant-Greene Re:

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-23 Thread Liang ZHONG
I think I did not express myself clearly. What I want is to be able to redirect user an existing page (let them get it immediately), and to close the connection actively, NOT passively by user abort, at last, to run the function in background. But the redirecting using function header() with

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-23 Thread Rasmus Lerdorf
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.

[PHP] speed - PHP/MYSQL

2005-07-23 Thread balwant singh
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

Re: [PHP] speed - PHP/MYSQL

2005-07-23 Thread Jasper Bryant-Greene
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

Re: [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-23 Thread Chris Boget
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 List

[PHP] PEAR DB issue

2005-07-23 Thread Chris Boget
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

Re: [PHP] Re: System specific information gathering

2005-07-23 Thread André Medeiros
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' =

Re: [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP]

2005-07-23 Thread Rasmus Lerdorf
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 prototype for the

Re: [PHP] AJAX PHP

2005-07-23 Thread Brian V Bonini
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 | Key

Re: [PHP] AJAX PHP

2005-07-23 Thread John Browne
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.

[PHP] Don't ejecute a sentence if a field is empty

2005-07-23 Thread Jesús Alain Rodríguez Santos
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 =

[PHP] PHP and Perl

2005-07-23 Thread Linda H
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

[PHP] zlib-1.2.3 php-4.4.0

2005-07-23 Thread JamesBenson
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

[PHP] Re: PHP and Perl

2005-07-23 Thread Jasper Bryant-Greene
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

[PHP] Re: Don't ejecute a sentence if a field is empty

2005-07-23 Thread Jasper Bryant-Greene
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

Re: [PHP] AJAX PHP

2005-07-23 Thread Greg Donald
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. Works fine

Re: [PHP] AJAX PHP

2005-07-23 Thread blackwater dev
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

Re: [PHP] speed - PHP/MYSQL

2005-07-23 Thread Joe Wollard
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

Re: [PHP] Re: System specific information gathering

2005-07-23 Thread Joe Wollard
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

[PHP] Re: PEAR DB issue

2005-07-23 Thread Matthew Weier O'Phinney
* 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 try to