php-general Digest 12 Nov 2007 14:49:50 -0000 Issue 5124

Topics (messages 264337 through 264359):

Re: Need a hint how to track an error
        264337 by: Casey
        264338 by: Chris
        264345 by: Ronald Wiplinger
        264346 by: Dave Goodchild
        264352 by: Chris
        264359 by: Bastien Koert

Re: Problems building 5.2.4 on Solaris 9 SPARC
        264339 by: Chris

Re: functions versus includes
        264340 by: Nathan Nobbe
        264341 by: Chris
        264342 by: Nathan Nobbe
        264343 by: Chris
        264351 by: Stut

PHP Programmers Needed
        264344 by: benc11.gmail.com

Re: PHP ide?
        264347 by: Peter Ford
        264348 by: Shelley Shyan

Re: explorer
        264349 by: kNish

enhanced_list_box
        264350 by: kNish

Compile - libxml2
        264353 by: Benjamin Dupuis
        264354 by: Rob Richards
        264355 by: Benjamin Dupuis

multi dimentional array sort need help
        264356 by: Jamesas

How to query google pagerank from PHP
        264357 by: mvh
        264358 by: Stut

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 ---
Wrong list! Try a Javascript list.



On Nov 11, 2007, at 6:46 PM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:

My php program is working with Firefox, but not with Internet Explorer.

I cannot see anything I did wrong, like forgotten " or > where Firefox
is more forgiving than IE.

I used the error console from Firefox combined with a lynx output to see
what line it is.

The error output in IE is:

Line: 2
Char: 104
Error: Object doesn't support this property or method
Code: 0
URL:  http://xxx.xxx.xx/mypage.php


In Firefox:
Line 225
Field has no properties
http://xxx.xxx.xx/mypage.php


Not even the same line!!!  Line 114 ~ 250 is a long comment!

Is there a tool to find the problem?

bye

Ronald

--- End Message ---
--- Begin Message ---
Ronald Wiplinger wrote:
My php program is working with Firefox, but not with Internet Explorer.

Nothing to do with php, your problem is javascript.

Is there a tool to find the problem?

For IE, try

http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en


--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
Chris wrote:
> Ronald Wiplinger wrote:
>> My php program is working with Firefox, but not with Internet Explorer.
>
> Nothing to do with php, your problem is javascript.
>
>> Is there a tool to find the problem?
>
> For IE, try
>
> http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
>
>

Why do you guys assume javascript

I am disappointed that after switching totally from XP to Ubuntu to
suggest me a Windows tool! I installed in a VirtualBox XP again and
above tool helped me to find the mistake:

<?php echo "$S_VALUE<p>xxxx</FONT";
}
?>
<form ..... >

The tool helped me to find the missing ``>'' after </FONT   since it
showed me no value for the submit buttons.

Is there no other tool available that can find such errors?     tool
<webpage > error.list

bye

Ronald

--- End Message ---
--- Begin Message ---
Start by coding proper semantic xhtml and you will have less headaches
too - that code looks very ugly.

On Nov 12, 2007 8:38 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Ronald Wiplinger wrote:
> >> My php program is working with Firefox, but not with Internet Explorer.
> >
> > Nothing to do with php, your problem is javascript.
> >
> >> Is there a tool to find the problem?
> >
> > For IE, try
> >
> > http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
> >
> >
>
> Why do you guys assume javascript
>
> I am disappointed that after switching totally from XP to Ubuntu to
> suggest me a Windows tool! I installed in a VirtualBox XP again and
> above tool helped me to find the mistake:
>
> <?php echo "$S_VALUE<p>xxxx</FONT";
> }
> ?>
> <form ..... >
>
> The tool helped me to find the missing ``>'' after </FONT   since it
> showed me no value for the submit buttons.
>
> Is there no other tool available that can find such errors?     tool
> <webpage > error.list
>
> bye
>
> Ronald
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Nov 12, 2007 7:38 PM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Ronald Wiplinger wrote:
> >> My php program is working with Firefox, but not with Internet Explorer.
> >
> > Nothing to do with php, your problem is javascript.
> >
> >> Is there a tool to find the problem?
> >
> > For IE, try
> >
> > http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
> >
> >
>
> Why do you guys assume javascript

Because you sent us javascript errors.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
try firebug for firefox, excellent tool
 
bastien 
> Date: Mon, 12 Nov 2007 13:53:55 +1100> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: [EMAIL PROTECTED]> Subject: Re: [PHP] Need a hint how to 
> track an error> > Ronald Wiplinger wrote:> > My php program is working with 
> Firefox, but not with Internet Explorer.> > Nothing to do with php, your 
> problem is javascript.> > > Is there a tool to find the problem?> > For IE, 
> try> > 
> http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en>
>  > > -- > Postgresql & php tutorials> http://www.designmagick.com/> > -- > 
> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: 
> http://www.php.net/unsub.php> 
_________________________________________________________________
R U Ready for Windows Live Messenger Beta 8.5? Try it today!
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger

--- End Message ---
--- Begin Message ---
Khyron wrote:
I have tried this for weeks with no success, so I am asking for help
with this.  Something seems really off with the PHP 5.2.4 build
process.

You might get more help on the php-install list rather than this one.

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
On Nov 11, 2007 9:32 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:

> On Mon, 2007-11-12 at 11:27 +1100, Chris wrote:
> > Frank Lopes wrote:
> > > I just started using PHP and got to think...
> > >
> > > Without getting into the discussion of "best practices", strictly from
> > > a performance perspective,
> > > what is faster: a function or an include?
> > >
> > > For example I have a block of text that needs to appear mutliple times
> > > throughout the site.
> > >
> > > Will I be better off creating a function with its contents and then
> > > later just calling the function or,
> > > will it be faster (from an execution perspective) for me to create an
> > > .inc file that gets included later on?
> >
> > Micro-optimization is pretty useless. I seriously doubt you would notice
> > any difference in performance.
> >
> > This comes under the other discussions like about which is faster - a
> > foreach/while/for loop.
> >
> > You'll find other bottlenecks (eg changing a regex to do an str_replace)
> > which will make a bigger difference.
>
> Actually, if you're going to use a comparison between using regex and
> string replacement as an example of lower hanging optimization fruit, I
> think you'll find the difference between invoking a function and
> including a file to be on par. The function is by far the better
> solution when considering speed.
>

rob is right.  i said screw it and wrote out a series of test scripts; just
got
curious.  so, there is one file which includes an external script that
operates
on a variable in global scope; then there is a script which defines a
function
internally; then there is a script which includes another script with that
function
defined in it.
the last one won each time; quite to my surprise.

[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php
mainWInclude.php
10
totalTime: 0.001057
[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php
mainWFunction.php
10
totalTime: 0.000642
[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php
mainWExternalFunction.php
10
totalTime: 0.000604


ill show the code if anyone wants it.

-nathan

--- End Message ---
--- Begin Message ---
Nathan Nobbe wrote:


On Nov 11, 2007 9:32 PM, Robert Cummings <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    On Mon, 2007-11-12 at 11:27 +1100, Chris wrote:
     > Frank Lopes wrote:
     > > I just started using PHP and got to think...
     > >
     > > Without getting into the discussion of "best practices",
    strictly from
     > > a performance perspective,
     > > what is faster: a function or an include?
     > >
     > > For example I have a block of text that needs to appear
    mutliple times
     > > throughout the site.
     > >
     > > Will I be better off creating a function with its contents and then
     > > later just calling the function or,
     > > will it be faster (from an execution perspective) for me to
    create an
     > > .inc file that gets included later on?
     >
     > Micro-optimization is pretty useless. I seriously doubt you would
    notice
     > any difference in performance.
     >
     > This comes under the other discussions like about which is faster
    - a
     > foreach/while/for loop.
     >
     > You'll find other bottlenecks (eg changing a regex to do an
    str_replace)
     > which will make a bigger difference.

    Actually, if you're going to use a comparison between using regex and
    string replacement as an example of lower hanging optimization fruit, I
    think you'll find the difference between invoking a function and
    including a file to be on par. The function is by far the better
    solution when considering speed.


rob is right. i said screw it and wrote out a series of test scripts; just got curious. so, there is one file which includes an external script that operates on a variable in global scope; then there is a script which defines a function internally; then there is a script which includes another script with that function
defined in it.
the last one won each time; quite to my surprise.

[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php mainWInclude.php
10
totalTime: 0.001057
[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php mainWFunction.php
10
totalTime: 0.000642
[EMAIL PROTECTED] ~/working/www/phpExperiments/functionVsInclude $ php mainWExternalFunction.php
10
totalTime: 0.000604

As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference over 10 iterations - wow ;)

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
On Nov 11, 2007 11:52 PM, Chris <[EMAIL PROTECTED]> wrote:

> As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference
> over 10 iterations - wow ;)
>

actually it was just one iteration; the output isnt very clear, but thats
the
value of a variable.
anyway, i was surprised to see the function was faster at all.  i though the
include would be faster.
so not only is the function faster (if only but a bit) its also cleaner as
well.
i think a decision between the 2 approaches no-brainer.

-nathan

--- End Message ---
--- Begin Message ---
Nathan Nobbe wrote:
On Nov 11, 2007 11:52 PM, Chris <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference
    over 10 iterations - wow ;)


actually it was just one iteration; the output isnt very clear, but thats the
value of a variable.
anyway, i was surprised to see the function was faster at all.  i though the
include would be faster.
so not only is the function faster (if only but a bit) its also cleaner as well.
i think a decision between the 2 approaches no-brainer.

I'd go for the approach that makes more sense in the application regardless of the milliseconds involved. If that's an include that's what I'll use.

In the scheme of the whole app it won't make any difference.

You'll waste so much time on "optimizing" crap like this when fixing a bad database query will actually make a noticable difference, or instead of calling a function inside a loop 50 times, you call it once and pass all the data in through an array.

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
Frank Lopes wrote:
No takers on this topic?

The question is not one of performance since while it will be quicker to call a function than include a file the difference is going to be inconsequential.

If you were to use a function where would you put it? You imply it needs to be used from multiple scripts, so it would need to be in an included file anyway which makes the question kinda pointless.

Whether to use a function should then be based on how you need to use this "block of text". Will it be used more than once in any given script? If yes then you want a function so you only need to include the file once. If not then it really doesn't matter whether you use a function in the external file.

When you're thinking about possible performance issues there are two things you need to ensure...

1) You're not spending time optimising the wrong bit (this would be an example of that). You can check that by writing a quick performance test as someone did later in this thread. 90% of the time you'll find that the performance difference between two options is negligible.

2) The architecture and maintainability of your code is more important than most performance issues you can imagine.

Performance optimisation should be driven by performance problems. Write your app, test it, find bottlenecks and then optimise those. Time spent saving 0.001 seconds per request is better spent elsewhere.

-Stut

--
http://stut.net/

""Frank Lopes"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I just started using PHP and got to think...

Without getting into the discussion of "best practices", strictly from a performance perspective,
what is faster: a function or an include?

For example I have a block of text that needs to appear mutliple times throughout the site.

Will I be better off creating a function with its contents and then later just calling the function or, will it be faster (from an execution perspective) for me to create an .inc file that gets included later on?

Thanks for the your thoughts.


--- End Message ---
--- Begin Message ---
I am looking to hire PHP programmers to help me in various projects I have
going on.  They all involve PHP, MySQL extensive knowledge and JavaScript
would be a plus.  Please email me if you're interested.  Please include
references for people you've done jobs for in the past, work history,
knowledge of PHP & MySQL & JavaScript, desired compensation.  This
opportunity could result in full-time work if we are successful and it's
something you're looking for.  Please let me know ASAP.

Thanks,

Ben

--- End Message ---
--- Begin Message ---
I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one
has no Subversion support and no SSH support for deploying to the server
properly. The debugging support worked well on the windows version, but I
couldn't get it to work from Linux (with the same web server...)
And the look and feel is so crowded and over-complicated.
Yuck.

Quanta+ can do this (mostly) right, although I have had some trouble with
debugging.....



[EMAIL PROTECTED] wrote:
> Andrew Peterson wrote:
>> I'll try installed it again with none of the other nonsense.
> 
> PDT has the so called ALL-IN-ONE thing, however I don't really trust it.
> 
> I would suggest the following -
> 
> a) Be sure you have the latest Java.
> 
> b) Get the normal, traditional Eclipse.
> 
> c) Update it (Help > Software updates > Find and install > Search for
> updates of the currently installed features). Repeat if needed.
> 
> d) Go to Help > Software updates > Find and install > Search for new
> features to install and add the PDT site
> (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site and
> the Europa Discovery Site and click Finish (I haven't done it for a
> while, so could be something has changed there). When you get the
> result, the Update manager might complain that PDT depends on something.
> In this case unfold the Europa Discovery Site result (by clicking the +,
> if you do not unfold it the next step might not work) and click the
> Select Required button. This should select the minimum you need. Let me
> know if you run into a trouble and I'll try to send you reproducible steps.
> 
> And again, Eclipse is Java, so you need a decent machine.
> 
> Iv

--- End Message ---
--- Begin Message ---
It has, but you should install them manually...

Try help-> Software updates -> Find and install...


Regards,
Shelley

-----Original Message-----
From: Peter Ford [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 5:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP ide?

I've tried to use Eclipse PDT, and it's just generally horrible - the 
All-in-one has no Subversion support and no SSH support for deploying to the 
server properly. The debugging support worked well on the windows version, but 
I couldn't get it to work from Linux (with the same web server...) And the look 
and feel is so crowded and over-complicated.
Yuck.

Quanta+ can do this (mostly) right, although I have had some trouble
Quanta+ with
debugging.....



[EMAIL PROTECTED] wrote:
> Andrew Peterson wrote:
>> I'll try installed it again with none of the other nonsense.
>
> PDT has the so called ALL-IN-ONE thing, however I don't really trust it.
>
> I would suggest the following -
>
> a) Be sure you have the latest Java.
>
> b) Get the normal, traditional Eclipse.
>
> c) Update it (Help > Software updates > Find and install > Search for
> updates of the currently installed features). Repeat if needed.
>
> d) Go to Help > Software updates > Find and install > Search for new
> features to install and add the PDT site
> (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site
> and the Europa Discovery Site and click Finish (I haven't done it for
> a while, so could be something has changed there). When you get the
> result, the Update manager might complain that PDT depends on something.
> In this case unfold the Europa Discovery Site result (by clicking the
> +, if you do not unfold it the next step might not work) and click the
> Select Required button. This should select the minimum you need. Let
> me know if you run into a trouble and I'll try to send you reproducible steps.
>
> And again, Eclipse is Java, so you need a decent machine.
>
> Iv

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: 
http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Hi,

        I am a newB to php.  When a user clicks a button on the client
side, it will open a windows explorer with the path to a folder from
the server machine. Is it possible.

Lets say my server is machine x and client is machine y. from y is it
possible using php to open a path from x (X:\folder1\folder2\)

I am using

<p><a href="<?php exec($click_Folder); ?>"><?php echo "Sequence Path";
?> </a></p><br />. Alternatively, I used system instead of exec. It
shows the path but upto two subfolders not all.

BRgds,

kNish

On 11/10/07, kNish <[EMAIL PROTECTED]> wrote:
> Hi,
>
>           How if, it is possible to open a windows explorer with a
> path specified in it, thru a php script.
>
>  BRgds,
>
> kNish
>

--- End Message ---
--- Begin Message ---
Hi,

           I am using this function enhanced_list_box. This works
fine. Except the return value is None. How is it possible for it to
return a proper value. It reads a list from a data base.

Brgds,

kNish

          <?php
                $db_artist = mysql_connect("ENG-3", "Any", "")or 
die(mysql_error());
                mysql_select_db("daily",$db_artist)or die(mysql_error());
          ?>
          <?php
          $options = mysql_query("SELECT artist_name FROM artist");
          $options=mysql_fetch_array($options);
          echo '<td>';
           $test = enhanced_list_box_05(array(
                'table' => 'artist',
                'value_field' => 'artist_name',
                'highlight_id' => 1));
                echo "$test";
                function enhanced_list_box_05($options){
                        $sql = "select " . $options['value_field'];
                        $sql .= " from " . $options['table'];
                        $result = mysql_query($sql)or die("error in SQL");
                        echo '<select name="', $options['value_field'],'" 
size="1">';
                        while ($row = mysql_fetch_array($result, MYSQL_NUM))
                        {
                                if($row[0] == $options['highlight_id']) {
                                        echo '<option value="' . $row[0] . 
'"SELECTED>' . $row[0] . '</option>';
                                } else {
                                        echo '<option value="' . $row[0] . '">' 
. $row[0] . '</option>';
                                        echo $row[0];
                                }
                        }
                        echo '</select>';
                        return $row[0];
                }
          echo '</td>';
          mysql_close($db_artist);
        ?>
      </tr>

--- End Message ---
--- Begin Message ---
I've opened a bug report on bug.php.net,
Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5)

but developpers say me that's not a bug : I must use XML2_DIR instead of 
XML_DIR,

But when using configure, it say me : use libxml-dir for libxml2
using libxml2-dir is not working, in 5.2.2 and 5.2.4
using libxml-dir is working in 5.2.2 but no 5.2.4

libxml2-dir isn't an existing variable in the configuration script.


Best regards,


http://bugs.php.net/bug.php?id=43212

Description:
------------
Compilation work with PHP 5.2.2 but not 5.2.4

In 5.2.2 :
checking libxml2 install dir...
checking for xml2-config path... (cached)
/opt/freeware/libxml2/libxml2/bin/xml2-config
checking whether libxml build works... (cached) yes

In 5.2.4 :
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2
installation.

My xml2-config is in /opt/freeware/libxml2/2.6.30/bin

Reproduce code:
---------------
[EMAIL PROTECTED] more .envcommun
LADATE=$(date +%Y%m%d%H%M)

PATH=/opt/freeware/gcc/gcc/bin:${PATH}
export PATH

ZLIB_VERSION=1.2.3
CURL_VERSION=7.17.1
MYSQL_VERSION=4.1.18
OPENSSL_VERSION=0.9.8g
OPENLDAP_VERSION=2.3.39
APACHE_VERSION=2.0.61
FREETYPE_VERSION=2.3.5
GD_VERSION=2.0.35
JPEG_VERSION=6b
PNG_VERSION=1.2.22
XML_VERSION=2.6.30
PHP_VERSION=5.2.2

ZLIB_DIR=/opt/freeware/zlib/${ZLIB_VERSION}
CURL_DIR=/opt/freeware/curl/${CURL_VERSION}
MYSQL_DIR=/ibp/uti/msq/${MYSQL_VERSION}
OPENSSL_DIR=/opt/freeware/openssl/${OPENSSL_VERSION}
OPENLDAP_DIR=/opt/freeware/openldap/${OPENLDAP_VERSION}
APACHE_DIR=/opt/freeware/apache/${APACHE_VERSION}
FREETYPE_DIR=/opt/freeware/freetype2/${FREETYPE_VERSION}
GD_DIR=/opt/freeware/gd/${GD_VERSION}
JPEG_DIR=/opt/freeware/jpeg/${JPEG_VERSION}
PNG_DIR=/opt/freeware/libpng/${PNG_VERSION}
XML_DIR=/opt/freeware/libxml2/${XML_VERSION}
PHP_DIR=/ibp/uti/php/${PHP_VERSION}
DATADIRECT_DIR=/ibp/uti/ddt/datadirect

#####

cd php-${PHP_VERSION}

LDFLAGS="-L${FREETYPE_DIR}/lib"
CPPFLAGS="-I${DATADIRECT_DIR}/include -I${FREETYPE_DIR}/include"
CUSTOM_ODBC_LIBS="-L${DATADIRECT_DIR}/lib -lodbc -lodbcinst"
PATH=/opt/freeware/freetype2/freetype2/bin:${PATH}
export LDFLAGS CPPFLAGS CUSTOM_ODBC_LIBS PATH

make clean
../configure \
--prefix=${PHP_DIR} \
--with-config-file-path=${PHP_DIR} \
--with-apxs2=${APACHE_DIR}/bin/apxs \
--enable-safe-mode \
--enable-mbstring=all \
--enable-mbstr-enc-trans \
--enable-mbregex \
--disable-ipv6 \
--enable-libgcc \
--with-openssl=shared,${OPENSSL_DIR} \
--with-openssl-dir=${OPENSSL_DIR} \
--with-zlib=shared,${ZLIB_DIR} \
--with-zlib-dir=${ZLIB_DIR} \
--with-ldap=shared,${OPENLDAP_DIR} \
--with-libxml-dir=${XML2_DIR} \
--with-custom-odbc=${DATADIRECT_DIR} \
--enable-simplexml \
--enable-bcmath \
--enable-calendar=shared \
--enable-ctype \
--enable-tokenizer \
--enable-session \
--with-ldap=${OPENLDAP_DIR} \
--with-curl=${CURL_DIR} \
--with-mysql=${MYSQL_DIR} \
--with-mysqli=${MYSQL_DIR}/bin/mysql_config \
--enable-ftp \
--with-jpeg-dir=${JPEG_DIR} \
--with-png-dir=${PNG_DIR} \
--with-gd=shared \
--enable-gd-native-ttf \
--with-freetype-dir=${FREETYPE_DIR}

--- End Message ---
--- Begin Message ---
Hi Benjamin,

You really need to read the response more carefully.


Benjamin Dupuis wrote:
I've opened a bug report on bug.php.net,
Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5)

but developpers say me that's not a bug : I must use XML2_DIR instead of 
XML_DIR,

But when using configure, it say me : use libxml-dir for libxml2
using libxml2-dir is not working, in 5.2.2 and 5.2.4
using libxml-dir is working in 5.2.2 but no 5.2.4

libxml2-dir isn't an existing variable in the configuration script.

XML_DIR=/opt/freeware/libxml2/${XML_VERSION}

That's what's defined.

--with-libxml-dir=${XML2_DIR} \

That's what your using.

Where is XML2_DIR coming from? Your path only shows XML_DIR being defined.

Rob

--- End Message ---
--- Begin Message ---
DOH ! :/

Thanks !
But why php5.2.2 doesn't cry ?!! (and XML working)

Best regards

----- Message d'origine -----
De: Rob Richards <[EMAIL PROTECTED]>
Date: Mon, 12 Nov 2007 07:32:26 -0500
Sujet: [PHP] Re: Compile - libxml2
À: Benjamin Dupuis <[EMAIL PROTECTED]>
Cc: PHP-General <[EMAIL PROTECTED]>

>Hi Benjamin,
>
>You really need to read the response more carefully.
>
>
>Benjamin Dupuis wrote:
>> I've opened a bug report on bug.php.net,
>> Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 
>> 5.2.5)
>> 
>> but developpers say me that's not a bug : I must use XML2_DIR instead of 
>> XML_DIR,
>> 
>> But when using configure, it say me : use libxml-dir for libxml2
>> using libxml2-dir is not working, in 5.2.2 and 5.2.4
>> using libxml-dir is working in 5.2.2 but no 5.2.4
>> 
>> libxml2-dir isn't an existing variable in the configuration script.
>
>> XML_DIR=/opt/freeware/libxml2/${XML_VERSION}
>
>That's what's defined.
>
>> --with-libxml-dir=${XML2_DIR} \
>
>That's what your using.
>
>Where is XML2_DIR coming from? Your path only shows XML_DIR being defined.
>
>Rob
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
I have the array by the following. i want to sort the array by name and
starlevel.plz help me i am troubled for it.
Array
(
    [0] => Array
        (
            [hotelId] => 9415
            [provider] => localTgsProvider
            [name] => Sahara Hotel & Casino - DEMO
            [address] => DEMO - 2535 Las Vegas Boulevard South Las Vegas
Nevada 89109
            [rooms] => 1720
            [street] => DEMO - 2535 Las Vegas Boulevard South
            [description] => General information:
A Vegas original, the Sahara Hotel and Casino hails from the days of the Rat
Pack of Dean Martin, Frank Sinatra and Sammy Davis Jr. Dating back to 1952,
this venerable, modestly priced institution on the Strip still exudes "old
school" elegance and a little slower pace. The vintage Moroccan theme and
architectural touches are still charming, and so is the roller coaster:
Speed shoots guests right along the Sahara's marquee at more than 70 miles
an hour. 

The 80,000-square-feet casino offers table games, slots, poker, keno, race
and sports book, and low-minimum blackjack. 

Compact for easy access to all facilities and attractions, the Sahara
appeals to guests seeking moderate prices, less noise and slower pace of a
different era.

Location:
The Sahara also sits close to the Fremont Street Experience, an explosion of
more than 2 million lights and a 54,000- watt sound system that provides a
pulsating light-and- music show created to dazzle. 

Area:
At the Sahara, guests also can drive simulated race cars at the Cyber
Speedway and catch the legendary 1950s groups, the Platters, Drifters and
Coaters, in the Congo Room. Las Vegas' first true lounge, the Casbar, still
presents nightly entertainment from smooth jazz to rock. 

Recreation:
To help guests relax, the Sahara's 5,000-square-foot swimming pool is
augmented by a gazebo-covered whirlpool, poolside bar, cabana and a
15-person spa beneath a filigreed wrought-iron dome, perfect for social
soaking. 

The Sahara Hotel & Casino is proud to announce our newest show additions!
Internationally-known comic magician Amazing Johnathan.

Rooms:
Guestrooms come equipped with basic amenities and festooned with
jewel-colored fabrics. Hungry guests can chose from five restaurants,
including the House of Lords, the legendary eatery featuring steak and
seafood in a posh ambience of draped fabric, plush booths and jeweled
lighting. The NASCAR Café includes ribs, chicken, steaks, pasta and
burgers, along with race cars hanging from the ceiling.

“THE PLATTERS, Cornell Gunter’s COASTERS and Beary Hobb’s DRIFTERS”
return to the stage in the legendary Congo Room with some of the top 20 hits
from the ‘50s and ‘60s.

***All rooms must have at least one adult, 21 years of age or older, in
order to check in.***

**There is a Maximum 7 night stay year round and a Minimum 2 night stay. No
arrivals on Saturdays.***

***There is also an energy surcharge of $3.00 and a telephone surcharge of
$1 per room per night payable by guest to the hotel.***

**Please be advised that name and date changes are not permitted by the
hotel over peak dates.**

***Please be advised there are no arrivals on December 30-31, 2006.
Reservations are non-refundable for these dates as well.***



            [city] => Las Vegas
            [state] => NV
            [country] => USA
            [zip] => 89109
            [phone] => 17027372111
            [fax] => 0577971181
            [mobile] => 
            [adPhone] => 
            [image] => Array
                (
                    [0] =>
http://image1.urlforimages.com/9415/Sahara-Hotel-front.jpg
                    [1] =>
http://image1.urlforimages.com/9415/Sahara-Hotel-room.jpg
                    [2] =>
http://image1.urlforimages.com/9415/Sahara-Hotel-roller-coaster.jpg
                    [3] =>
http://image1.urlforimages.com/9415/Sahara-Rest.jpg
                    [4] =>
http://image1.urlforimages.com/9415/Sahara-Pool.jpg
                )

            [Amenity] => Array
                (
                    [0] => Bar
                    [1] => Business Center
                    [2] => Meeting/Banquet Facilities
                    [3] => Non Smoking Rooms
                    [4] => Restaurant(s)
                    [5] => Room Service
                    [6] => Safe Deposit Box
                    [7] => Laundry/Valet
                    [8] => Swimming Pool
                    [9] => 24-Hour Front Desk
                    [10] => Gift/Sundry Shop
                    [11] => Spa
                    [12] => Ice Machine
                    [13] => Parking
                    [14] => Casino
                )

            [Room] => Array
                (
                    [0] => Array
                        (
                            [name] => Standard
                            [maxGuest] => 4
                            [Facility] => Array
                                (
                                    [0] => Air Condition
                                    [1] => Cable/Satellite TV
                                    [2] => Hairdryer
                                    [3] => In-Room Pay Movies
                                    [4] => Iron & Ironing Board
                                    [5] => Private Bath
                                    [6] => Telephone + Voice Mail
                                )

                        )

                    [1] => Array
                        (
                            [name] => New Years
                            [maxGuest] => 4
                            [Facility] => Array
                                (
                                    [0] => Air Condition
                                    [1] => Cable/Satellite TV
                                    [2] => Hairdryer
                                    [3] => In-Room Pay Movies
                                    [4] => Iron & Ironing Board
                                    [5] => Private Bath
                                    [6] => Telephone + Voice Mail
                                )

                        )

                    [2] => Array
                        (
                            [name] => New Years Special
                            [maxGuest] => 4
                            [Facility] => Array
                                (
                                    [0] => Air Condition
                                    [1] => Cable/Satellite TV
                                    [2] => Hairdryer
                                    [3] => In-Room Pay Movies
                                    [4] => Iron & Ironing Board
                                    [5] => Private Bath
                                    [6] => Telephone + Voice Mail
                                )

                        )

                )

            [category] => Moderate
            [bestVal] => 1
            [thumb] =>
http://image1.urlforimages.com/9415/Sahara-Hotel-front_Thumbnailed.jpg
            [starsLevel] => 3
            [minAverPrice] => 47.39
            [desc] => DEMO - Every Night's a Party! The Sahara Hotel and
Casino is a landmark Las Vegas property having opened in 1952 on the Las
Vegas Boulevard.
            [location] => The Strip,Las Vegas,NV,US
            [currency] => 
            [brandId] => 0
            [brandName] => 
            [RoomType] => Array
                (
                    [1] => Array
                        (
                            [productId] => 9415;7728;7744
                            [name] => Standard
                            [nights] => 3
                            [startDate] => 2007-12-10T00:00:00-05:00
                            [isAvailable] => true
                            [roomId] => 3
                            [hotelRoomTypeId] => 7728
                            [Avail] => Array
                                (
                                    [0] => Array
                                        (
                                            [offset] => 0
                                            [status] => true
                                        )

                                    [1] => Array
                                        (
                                            [offset] => 1
                                            [status] => true
                                        )

                                    [2] => Array
                                        (
                                            [offset] => 2
                                            [status] => true
                                        )

                                )

                            [Occup] => Array
                                (
                                    [0] => Array
                                        (
                                            [occupId] =>
9415;7728;7744;2;2;0;2
                                            [maxAdult] => 4
                                            [maxChild] => 2
                                            [price] => 142.17
                                            [tax] => 11.73
                                            [dblBed] => false
                                            [avrNightPrice] => 47.39
                                            [Room] => Array
                                                (
                                                    [seqNum] => 1
                                                    [adultNum] => 2
                                                    [childNum] => 0
                                                )

                                            [Price] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [offset] => 0
                                                            [value] => 47.39
                                                        )

                                                    [1] => Array
                                                        (
                                                            [offset] => 1
                                                            [value] => 47.39
                                                        )

                                                )

                                        )

                                    [1] => Array
                                        (
                                            [occupId] =>
9415;7728;7744;2;2;0;1
                                            [maxAdult] => 4
                                            [maxChild] => 2
                                            [price] => 142.17
                                            [tax] => 11.73
                                            [dblBed] => true
                                            [avrNightPrice] => 47.39
                                            [Room] => Array
                                                (
                                                    [seqNum] => 1
                                                    [adultNum] => 2
                                                    [childNum] => 0
                                                )

                                            [Price] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [offset] => 0
                                                            [value] => 47.39
                                                        )

                                                    [1] => Array
                                                        (
                                                            [offset] => 1
                                                            [value] => 47.39
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [1] => Array
        (
            [hotelId] => 961
            [provider] => localTgsProvider
            [name] => Circus Circus Hotel - DEMO

-- 
View this message in context: 
http://www.nabble.com/multi-dimentional-array-sort-need-help-tf4791126.html#a13705792
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
I found some code in perl at CPAN

how to do that in PHP
anyone know ?

give a clue pls
-- 
View this message in context: 
http://www.nabble.com/How-to-query-google-pagerank-from-PHP-tf4791385.html#a13706442
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
mvh wrote:
I found some code in perl at CPAN

how to do that in PHP
anyone know ?

give a clue pls

Port the Perl code. Won't be too hard. Where's the Perl code?

-Stut

--
http://stut.net/

--- End Message ---

Reply via email to