[PHP-WIN] Ampersand before function name

2004-05-25 Thread Ross Honniball
Just curious about what the apmersand does in this context: function & funcname ($parm) {} (Can't find it in the manual for some reason) . . Ross Honniball. JCU Bookshop Cairns, Qld, Australia. . -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Ampersand before function name

2004-05-25 Thread Jeroen Serpieters
On Tue, 25 May 2004, Ross Honniball wrote: > > function & funcname ($parm) {} > With the ampersand you return a reference to a variable instead of the value. -- Jeroen Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. --

[PHP-WIN] Re: Ampersand before function name

2004-05-25 Thread Jason Barnett
Ross Honniball wrote: Just curious about what the apmersand does in this context: function & funcname ($parm) {} This means the function is supposed to return a reference by default instead of a value. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP-WIN] Re: tgz files

2004-05-25 Thread Jason Barnett
I've found an incredibly useful compression utility for windows called 7-zip. It handles zip, tar/gzip, bzip, and a specialized 7-zip utility that can compress even more (by using a larger library). I don't use the 7-zip compression itself all that much, but the utility itself is a nice (and

[PHP-WIN] MS SQL Query question

2004-05-25 Thread Ron.Herhuth
When I run a query the syntax looks like this: $result = mssql_query($query); $numRows = mssql_num_rows($result); for($i=0; $i<$numRows; $i++) { $row = mssql_fetch_array($result); } but if I go to try and loop through the resultset again it wont work unless I run this line again "$result = mssq

RE: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Derrick Hermanson
try something like this $result = mssql_query ($query); if ($result) { while ($template_args = msssql_fetch_array ($res)) { //what ever you want to do with the data } } Derrick Hermanson Programmer/Analyst I Acton International LTD. 402.470.5816 mailto:[EMAIL PROTE

RE: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Gryffyn, Trevor
What's happening is the pointer on the results is advancing until it hits the end of the result set. When you run it again, the pointer is still at the end of the result set and therefore sees nothing 'ahead' of it. The same thing can happen with arrays. I'm not sure if you have to do it still,

RE: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Ron.Herhuth
Trevor, That is the key!!! You rock...cut my page load time in half. Thanks my good man! Ron >From: Gryffyn, Trevor >To: Derrick Hermanson; Herhuth, Ron; [EMAIL PROTECTED] >Sent: 05/25/2004 3:11 PM >What's happening is the pointer on the results is advancing until it >hits the end of the result

[PHP-WIN] GTK - why not?

2004-05-25 Thread CBQ - GMX.at
hi @ all quick question: ready? here it is! WHY IS PHP - GTK not webbased? sorry, may i am wrong, but i am looking for someone, who is responsable for GTK. cz, some programmers (including myself) thinking loud about, what could be the reason why PHP-GTK is not webbased. that would be high-e

RE: [PHP-WIN] GTK - why not?

2004-05-25 Thread Vail, Warren
At first the question intrigued me, now I'm not so sure. What becomes apparent is a somewhat foggy term "web based". I assume that you want to get at the powerful widgets of GTK in your "web based" applications. First concern is the client machine running a web browser only, which to keep your m

AW: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Dr. Robert Probst
IN MY (not MS) SQL I would try mysql_data_seek ($result, 0); to move the internal pointer to the first data row I dont know at the moment if there is a similar function in the ms area. maybe it helps robert > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL P