php-windows Digest 9 Dec 2002 21:33:27 -0000 Issue 1479
Topics (messages 17355 through 17364):
curl dll
17355 by: Jean-Philippe Palha
17358 by: Luis Ferro
17359 by: Jean-Philippe Palha
Re: How do I access a mysql result array?
17356 by: Svensson, B.A.T. (HKG)
17357 by: Radovan Radic
17363 by: Matt Babineau
Re: PHP compiler
17360 by: Asendorf, John
17361 by: Manuel Lemos
Re: DOCUMENT_ROOT on Apache
17362 by: Dash McElroy
[PHP-DB] mssql_next_result and stored procedures
17364 by: Gene Dymarskiy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi folks,
i'm trying to use the php_curl.dll but i have a
"unable to load dynamic library" message!
someone could help?
thanks,
Jean-Philippe PALHA ([EMAIL PROTECTED])
IMA'DIFF - 13, rue Damesme - 75013 Paris FRANCE
Tel : 33 1 53 80 89 89 - Fax : 33 1 53 80 89 81
Web : http://www.imadiff.com
---------------------------------------------------------------
Webmail, agenda et newsgroups sur Messagerie.net
http://www.messagerie.net
---------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Curl has bindings to the php version... try to use another version of
php and/or make sure that the curl version that you are using is
tailored for the version of php in use.
In a server where i needed to install curl, the downgrade of one build
in php was enought for the curl dll that i had to work correctly...
Cheers,
Luis Ferro
Teladigital.net
Jean-Philippe Palha wrote:
Hi folks,
i'm trying to use the php_curl.dll but i have a
"unable to load dynamic library" message!
someone could help?
thanks,
Jean-Philippe PALHA ([EMAIL PROTECTED])
IMA'DIFF - 13, rue Damesme - 75013 Paris FRANCE
Tel : 33 1 53 80 89 89 - Fax : 33 1 53 80 89 81
Web : http://www.imadiff.com
---------------------------------------------------------------
Webmail, agenda et newsgroups sur Messagerie.net
http://www.messagerie.net
---------------------------------------------------------------
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
Thank you Luis,
so i'm waiting for the next release (4.30) because i have the 4.23
[EMAIL PROTECTED] a écrit:
>Curl has bindings to the php version... try to use another version of
>php and/or make sure that the curl version that you are using is
>tailored for the version of php in use.
>
>In a server where i needed to install curl, the downgrade of one build
>in php was enought for the curl dll that i had to work correctly...
>
>Cheers,
>Luis Ferro
>Teladigital.net
>
>Jean-Philippe Palha wrote:
>
>>Hi folks,
>>
>>i'm trying to use the php_curl.dll but i have a
>>"unable to load dynamic library" message!
>>
>>someone could help?
>>
>>thanks,
>>
>>Jean-Philippe PALHA ([EMAIL PROTECTED])
>>IMA'DIFF - 13, rue Damesme - 75013 Paris FRANCE
>>Tel : 33 1 53 80 89 89 - Fax : 33 1 53 80 89 81
>>Web : http://www.imadiff.com
>>---------------------------------------------------------------
>>Webmail, agenda et newsgroups sur Messagerie.net
>>http://www.messagerie.net
>>---------------------------------------------------------------
>>
>>
>>
>>
>
>
>---
>[This E-mail scanned for viruses by Declude Virus]
>
Jean-Philippe PALHA ([EMAIL PROTECTED])
IMA'DIFF - 13, rue Damesme - 75013 Paris FRANCE
Tel : 33 1 53 80 89 89 - Fax : 33 1 53 80 89 81
Web : http://www.imadiff.com
---------------------------------------------------------------
Webmail, agenda et newsgroups sur Messagerie.net
http://www.messagerie.net
---------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Result sets are row based, not column based. Hence you need to
itterate through the entire resultset and load it into a index
array of proper type in order to do that.
-----Original Message-----
From: Matt Babineau
To: [EMAIL PROTECTED]
Sent: 9-12-02 2:17
Subject: [PHP-WIN] How do I access a mysql result array?
How can I access a mysql result array numerically?
Like:
$result[0][0];
$result[1][0];
I want to be able to access one whole column at a time.
Any ideas?
Thx-
Matt
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
002c01c29f20$cf908500$1a10a8c0@webdevx">news:002c01c29f20$cf908500$1a10a8c0@webdevx...
> How can I access a mysql result array numerically?
>
> Like:
>
> $result[0][0];
> $result[1][0];
>
> I want to be able to access one whole column at a time.
>
> Any ideas?
>
> Thx-
> Matt
-why dont use
mysql_result($query_result,16,12)
-where mysql_result is
mixed mysql_result ( resource result, int row [, mixed field ] )
See explanation in the manual
HTH,
Radovan
--- End Message ---
--- Begin Message ---
I manage to get a solution, I put all the data into an array, then
looped the array how I needed to access the data.
Thanks for the help-
Matt
-----Original Message-----
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 3:40 PM
To: Matt Babineau
Subject: Re: [PHP-WIN] Re: How do I access a mysql result array?
----- Original Message -----
From: "Matt Babineau" <[EMAIL PROTECTED]>
To: "'Hugh Bothwell'" <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 8:29 PM
Subject: RE: [PHP-WIN] Re: How do I access a mysql result array?
> Pretty much exactly that.
>
> I want to get a result set into an array that I can access in a weird
> order.
>
> I know the mysql results are in some sort of array format, but
> couldn't access it.
Almost always, a MySQL connection is buffered - that is,
it *does* have the data you need stored internally. But it
is possible to have an unbuffered connection. For this reason, the data
is only accessible serially.
You could retrieve the next row you want manually using
mysql_data_seek(), but I would expect this to be much slower, and I
really wouldn't recommend it.
Again, what exactly are you trying to accomplish? ie,
*why* do you need to access the rows in a "weird" order?
Is there some way to presort the data so MySQL returns it
in the order you need - then you can just cycle through
it as usual?
--- End Message ---
--- Begin Message ---
www.zend.com
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: mst [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 08, 2002 5:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP compiler
>
>
> Sometimes I found info about PHP compiler. Tell me where I
> can read about
> it, please.
>
> mst
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello,
On 12/08/2002 08:37 AM, Mst wrote:
Sometimes I found info about PHP compiler. Tell me where I can read about
it, please.
http://pear.php.net/bcompiler
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
echo $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']
You can also use the following for PHP_SELF:
$_SERVER['REQUEST_URI'] <- has GET string as well
$_SERVER['SCRIPT_NAME'] <- haven't used this one yet
You could also use $_SERVER['SERVER_NAME'] instead of HTTP_HOST, but
HTTP_HOST is what the user typed in the URL.
-Dash
Answers to Last Fortune's Questions:
(1) None. (Moses didn't have an ark).
(2) Your mother, by the pigeonhole principle.
(3) I don't know.
(4) Who cares?
(5) 6 (or maybe 4, or else 3). Mr. Alfred J. Duncan of Podunk,
Montana, submitted an interesting solution to Problem 5.
(6) There is an interesting solution to this problem on page 1029 of my
book, which you can pick up for $23.95 at finer bookstores and
bathroom supply outlets (or 99 cents at the table in front of
Papyrus Books).
On Fri, 6 Dec 2002, Radovan Radic wrote:
> Ok,
> what should i do ot get
> http://localhost/test
> I need this do make a link to homepage (i got same app on more servers and i
> dont want to hard-code in every page )
>
> Radovan
>
> "Erythros" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > because your asking for the document root, ie: the directory root.
> >
> > "Radovan Radic" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi
> > >
> > > I installed Apache 1.3.27 on w2k, after using IIS.
> > > When i try to output
> > > print "<A HREF=\"$DOCUMENT_ROOT\">Home</A>;
> > > it gives me A HREF="c:/inetpub/wwwroot/test/"
> > > instead of
> > > http://localhost/test
> > > Why is that?
> > >
> > > Radovan
> > >
> > >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
It appears that mssql_next_result does not work with stored procedures.
I was able to use the function with PHP side queries. However when a stored proc
returns multiple result sets I am able to grab only first set and get the following
warning:
Warning: mssql_execute: multiple recordsets from a stored procedure not supported yet!
(Skipping...)
I run PHP 4.2.0
Is there a work around for this limitation? Perhaps it was solved in the later
releases of PHP?
thank you
gd
--- End Message ---