php-general Digest 13 Nov 2008 06:59:22 -0000 Issue 5787

Topics (messages 283213 through 283236):

Re: PHP Startup: Unable to load dynamic library
        283213 by: Stut
        283214 by: Thiago H. Pojda
        283215 by: Stut
        283216 by: Thiago H. Pojda
        283217 by: Thodoris
        283218 by: Thiago H. Pojda
        283219 by: Micah Gersten

Missing DLLs
        283220 by: ceo.l-i-e.com
        283221 by: Thiago H. Pojda
        283222 by: Stut
        283223 by: Thodoris
        283224 by: Thodoris

pdt-2.0 error
        283225 by: András Csányi
        283226 by: Maciek Sokolewicz
        283227 by: Micah Gersten
        283228 by: Micah Gersten

Re: building an admin tree with varying node types
        283229 by: Rene Veerman
        283230 by: Rene Veerman
        283233 by: Boyd, Todd M.
        283234 by: Rene Veerman

PECL HTTP Extension
        283231 by: Rui Quelhas
        283232 by: Micah Gersten
        283235 by: Jochem Maas

Recursive Static Method
        283236 by: Craige Leeder

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 ---
On 12 Nov 2008, at 16:53, Thiago H. Pojda wrote:
I switched PCs and now when I load PHP I get this weird error. It claims it can't find the specified library, but in the lib is in the path given by the
message.

Any ideas?

My extension_dir is okay (it has spaces, but has "") and I gave "Everyone"
access to it.

Which extension? This message usually indicates that it can't find a DLL the extension depends upon.

-Stut

--
http://stut.net/

--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2008 at 1:56 PM, Thiago H. Pojda <[EMAIL PROTECTED]>wrote:

> On Wed, Nov 12, 2008 at 1:54 PM, Stut <[EMAIL PROTECTED]> wrote:
>
>> On 12 Nov 2008, at 16:53, Thiago H. Pojda wrote:
>>
>>> I switched PCs and now when I load PHP I get this weird error. It claims
>>> it
>>> can't find the specified library, but in the lib is in the path given by
>>> the
>>> message.
>>>
>>> Any ideas?
>>>
>>> My extension_dir is okay (it has spaces, but has "") and I gave
>>> "Everyone"
>>> access to it.
>>>
>>
>> Which extension? This message usually indicates that it can't find a DLL
>> the extension depends upon.
>>  <http://stut.net/>
>>
>
> I removed all of them and let only php_mysql.dll and still get this error.
>
> Does this extension depend on anything?
>
> --
> Thiago Henrique Pojda
>

CC'ing php-general...

--- End Message ---
--- Begin Message ---
On 12 Nov 2008, at 16:58, Thiago H. Pojda wrote:
On Wed, Nov 12, 2008 at 1:56 PM, Thiago H. Pojda <[EMAIL PROTECTED] >wrote:
On Wed, Nov 12, 2008 at 1:54 PM, Stut <[EMAIL PROTECTED]> wrote:
On 12 Nov 2008, at 16:53, Thiago H. Pojda wrote:
I switched PCs and now when I load PHP I get this weird error. It claims
it
can't find the specified library, but in the lib is in the path given by
the
message.

Any ideas?

My extension_dir is okay (it has spaces, but has "") and I gave
"Everyone"
access to it.


Which extension? This message usually indicates that it can't find a DLL
the extension depends upon.
<http://stut.net/>


I removed all of them and let only php_mysql.dll and still get this error.

Does this extension depend on anything?



It's pretty useless without libmysql.dll.

-Stut

--
http://stut.net/

--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2008 at 2:03 PM, Stut <[EMAIL PROTECTED]> wrote:

> On 12 Nov 2008, at 16:58, Thiago H. Pojda wrote:
>
>>
>>>  I switched PCs and now when I load PHP I get this weird error. It claims
>>>>> it
>>>>> can't find the specified library, but in the lib is in the path given
>>>>> by
>>>>> the
>>>>> message.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> My extension_dir is okay (it has spaces, but has "") and I gave
>>>>> "Everyone"
>>>>> access to it.
>>>>>
>>>>>
>>>> Which extension? This message usually indicates that it can't find a DLL
>>>> the extension depends upon.
>>>> <http://stut.net/>
>>>>
>>>>
>>> I removed all of them and let only php_mysql.dll and still get this
>>> error.
>>>
>>> Does this extension depend on anything?
>>>
>>>
>
> It's pretty useless without libmysql.dll.
>
> -Stut
>
> --
> http://stut.net/
>

Yeah, I just found this out.

Strange the win32 installer didn't add this.


The error message could be clearer :)

Thanks Stut!
-- 
Thiago Henrique Pojda

--- End Message ---
--- Begin Message ---

On Wed, Nov 12, 2008 at 2:03 PM, Stut <[EMAIL PROTECTED]> wrote:

On 12 Nov 2008, at 16:58, Thiago H. Pojda wrote:

 I switched PCs and now when I load PHP I get this weird error. It claims
it
can't find the specified library, but in the lib is in the path given
by
the
message.

Any ideas?

My extension_dir is okay (it has spaces, but has "") and I gave
"Everyone"
access to it.


Which extension? This message usually indicates that it can't find a DLL
the extension depends upon.
<http://stut.net/>


I removed all of them and let only php_mysql.dll and still get this
error.

Does this extension depend on anything?


It's pretty useless without libmysql.dll.

-Stut

--
http://stut.net/


Yeah, I just found this out.

Strange the win32 installer didn't add this.


The error message could be clearer :)

Thanks Stut!
Although I don't develop under windows and I should say that this OS has been "developing" my allergies I would suggest to use WAMP. Which is Windows-Apache-MySQL-PHP enviroment that you might find very useful and it might make things easier for you.

--
Thodoris


--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2008 at 2:21 PM, Thodoris <[EMAIL PROTECTED]> wrote:

>
>  Although I don't develop under windows and I should say that this OS has
> been "developing" my allergies I would suggest to use WAMP. Which is
> Windows-Apache-MySQL-PHP enviroment that you might find very useful and it
> might make things easier for you.
>
> --
> Thodoris
>
>
Thodoris,

I don't like developing on windows either, but I find it to be worse when
using WAMP. When I first started developing PHP I used to use WAMP and also
tried EasyPHP. Although things were easier at first, IMO they add too much
stuff in conf files that make things confuse when you need to make some
specific changes.

Thanks for your suggestion :)
-- 
Thiago Henrique Pojda

--- End Message ---
--- Begin Message ---
Thiago H. Pojda wrote:
> On Wed, Nov 12, 2008 at 2:21 PM, Thodoris <[EMAIL PROTECTED]> wrote:
>
>   
>>  Although I don't develop under windows and I should say that this OS has
>> been "developing" my allergies I would suggest to use WAMP. Which is
>> Windows-Apache-MySQL-PHP enviroment that you might find very useful and it
>> might make things easier for you.
>>
>> --
>> Thodoris
>>
>>
>>     
> Thodoris,
>
> I don't like developing on windows either, but I find it to be worse when
> using WAMP. When I first started developing PHP I used to use WAMP and also
> tried EasyPHP. Although things were easier at first, IMO they add too much
> stuff in conf files that make things confuse when you need to make some
> specific changes.
>
> Thanks for your suggestion :)
>   

You should try Xampp then.  http://apachefriends.org
They've segregated the apache config files to make things easier.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com





--- End Message ---
--- Begin Message ---
So, that error message about a missing DLL, when it's really a "sub" DLL that 
is missing...



Is that something in PHP source that could be fixed to specify WHICH dll is 
really missing?



Or is that just Windows being stupid?



Mr. Spock has calculated that a quick hack change to that error message to be 
more specific would save approximately 3,141.59 man-hours per week...



:-)



I'm happy to put it in bugs.php.net as a feature request, if it's actually IN 
php, but don't want to waste the resources to mark it as junk if there's no way 
PHP could do that.



Richard "someday I'll re-learn C and download PHP source and start hacking" 
Lynch



--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2008 at 2:31 PM, <[EMAIL PROTECTED]> wrote:

>
> So, that error message about a missing DLL, when it's really a "sub" DLL
> that is missing...
>
> Is that something in PHP source that could be fixed to specify WHICH dll is
> really missing?
>
> Or is that just Windows being stupid?
>
> Mr. Spock has calculated that a quick hack change to that error message to
> be more specific would save approximately 3,141.59 man-hours per week...
>
> :-)
>
> I'm happy to put it in bugs.php.net as a feature request, if it's actually
> IN php, but don't want to waste the resources to mark it as junk if there's
> no way PHP could do that.
>
>
I haven't seen such stuff in Linux, so maybe it's just Windows throwing
weird messages. But hopefully someone with more experience will answer to
this :)

If it's not possible to tell exacly what's wrong, maybe just adding a "or
one of it's depencies" would help.


Thanks,
-- 
Thiago Henrique Pojda

--- End Message ---
--- Begin Message ---
On 12 Nov 2008, at 17:31, [EMAIL PROTECTED] wrote:
So, that error message about a missing DLL, when it's really a "sub" DLL that is missing...

Is that something in PHP source that could be fixed to specify WHICH dll is really missing?

Or is that just Windows being stupid?

Mr. Spock has calculated that a quick hack change to that error message to be more specific would save approximately 3,141.59 man- hours per week...

:-)

I'm happy to put it in bugs.php.net as a feature request, if it's actually IN php, but don't want to waste the resources to mark it as junk if there's no way PHP could do that.

It's been a while since I've done Windows development, but IIRC PHP will only be able to tell that the DLL could not be loaded, I don't believe Windows exposes exactly what the problem was. It could probably be done by examining the external symbols on the DLL and manually checking for the presence of those DLLs in the path, but that seems like overkill.

While the accuracy of this error message is not great there's enough info out there for it to be a short-lived issue for most people making the effort required to improve it better spent on other problems.

-Stut

--
http://stut.net/

--- End Message ---
--- Begin Message ---

On 12 Nov 2008, at 17:31, [EMAIL PROTECTED] wrote:
So, that error message about a missing DLL, when it's really a "sub" DLL that is missing...

Is that something in PHP source that could be fixed to specify WHICH dll is really missing?

Or is that just Windows being stupid?

Mr. Spock has calculated that a quick hack change to that error message to be more specific would save approximately 3,141.59 man-hours per week...

:-)

I'm happy to put it in bugs.php.net as a feature request, if it's actually IN php, but don't want to waste the resources to mark it as junk if there's no way PHP could do that.

It's been a while since I've done Windows development, but IIRC PHP will only be able to tell that the DLL could not be loaded, I don't believe Windows exposes exactly what the problem was. It could probably be done by examining the external symbols on the DLL and manually checking for the presence of those DLLs in the path, but that seems like overkill.

So I must add "long live unix logging system"...

While actually I doesn't seems like an overkill but it really is.


While the accuracy of this error message is not great there's enough info out there for it to be a short-lived issue for most people making the effort required to improve it better spent on other problems.

-Stut


In this case at least. Because I can recall other times that you got the urge to hit your head on the keyboard multiple times (or perhaps the keyboard on the screen) in order to get over the fact that the problem that caused the error was so ...king obvious. On the other hand windowz in the same situation were logging what happened to the last episode in the Clone Wars (animated series).

So I will stick to my LAMP server for the moment until I start feeling that that my masochism side is coming on top. In that case I might deleop something using Microsoft's magnificent OS.

--
Thodoris


--- End Message ---
--- Begin Message ---


On 12 Nov 2008, at 17:31, [EMAIL PROTECTED] wrote:
So, that error message about a missing DLL, when it's really a "sub" DLL that is missing...

Is that something in PHP source that could be fixed to specify WHICH dll is really missing?

Or is that just Windows being stupid?

Mr. Spock has calculated that a quick hack change to that error message to be more specific would save approximately 3,141.59 man-hours per week...

:-)

I'm happy to put it in bugs.php.net as a feature request, if it's actually IN php, but don't want to waste the resources to mark it as junk if there's no way PHP could do that.

It's been a while since I've done Windows development, but IIRC PHP will only be able to tell that the DLL could not be loaded, I don't believe Windows exposes exactly what the problem was. It could probably be done by examining the external symbols on the DLL and manually checking for the presence of those DLLs in the path, but that seems like overkill.

So I must add "long live unix logging system"...

While actually I doesn't seems like an overkill but it really is.


While the accuracy of this error message is not great there's enough info out there for it to be a short-lived issue for most people making the effort required to improve it better spent on other problems.

-Stut


In this case at least. Because I can recall other times that you got the urge to hit your head on the keyboard multiple times (or perhaps the keyboard on the screen) in order to get over the fact that the problem that caused the error was so ...king obvious. On the other hand windowz in the same situation were logging what happened to the last episode in the Clone Wars (animated series).

So I will stick to my LAMP server for the moment until I start feeling that that my masochism side is coming on top. In that case I might deleop something using Microsoft's magnificent OS.



I have actually saw what I've posted so forgive my poor english. I hope that I will get better some day and stop torturing people that read what I write.

--
Thodoris


--- End Message ---
--- Begin Message ---
Hi all!

I don't know which is the right place to make an bugreport.
I installed on my linux desktop the pdt-2.0 all-in-one but i have a
nice, big exception. :(

So, my question is, where can I send an bugreport?

Thank you for help and patience!

András

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell

--- End Message ---
--- Begin Message ---
András Csányi wrote:
Hi all!

I don't know which is the right place to make an bugreport.
I installed on my linux desktop the pdt-2.0 all-in-one but i have a
nice, big exception. :(

So, my question is, where can I send an bugreport?

Thank you for help and patience!

András


I've never heard of "pdt" whatever it is. It's definitly not a part of the PHP project, so to answer your question: not here.

So, where you ask? tried to google it yet ? That's where...

- Tul

--- End Message ---
--- Begin Message ---
Try the zend list:
[EMAIL PROTECTED]

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



András Csányi wrote:
> Hi all!
>
> I don't know which is the right place to make an bugreport.
> I installed on my linux desktop the pdt-2.0 all-in-one but i have a
> nice, big exception. :(
>
> So, my question is, where can I send an bugreport?
>
> Thank you for help and patience!
>
> András
>
>   

--- End Message ---
--- Begin Message ---
Maciek Sokolewicz wrote:
> András Csányi wrote:
>> Hi all!
>>
>> I don't know which is the right place to make an bugreport.
>> I installed on my linux desktop the pdt-2.0 all-in-one but i have a
>> nice, big exception. :(
>>
>> So, my question is, where can I send an bugreport?
>>
>> Thank you for help and patience!
>>
>> András
>>
>
> I've never heard of "pdt" whatever it is. It's definitly not a part of
> the PHP project, so to answer your question: not here.
>
> So, where you ask? tried to google it yet ? That's where...
>
> - Tul
>
>

PDT is a plugin for the Eclipse Platform.  The Zend people made a
special PDT 2.0 All-in-one build, that's why I said the zend list.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com





--- End Message ---
--- Begin Message ---
Eric Butera wrote:
I cheat and just keep the normal parentId column and regenerate the
tree based on changes on that.  I had spent a little bit looking at
the different update/delete methods and there wasn't a lot of good
information/examples as you've stated.  I had found some but there
were always edge cases that busted them.


Just found this;
http://en.wikipedia.org/wiki/AVL_tree

interesting read so far, havent found any opensource classes that implement it yet, am tempted to write one ;)
--- End Message ---
--- Begin Message ---
Rene Veerman wrote:
Eric Butera wrote:
I cheat and just keep the normal parentId column and regenerate the
tree based on changes on that.  I had spent a little bit looking at
the different update/delete methods and there wasn't a lot of good
information/examples as you've stated.  I had found some but there
were always edge cases that busted them.


Just found this;
http://en.wikipedia.org/wiki/AVL_tree

interesting read so far, havent found any opensource classes that implement it yet, am tempted to write one ;)

java visualization of an AVL tree, this is so much fun, i dont even understand it yet and it's cool.
http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.htm


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Rene Veerman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 12, 2008 3:50 PM
> To: Eric Butera
> Cc: [EMAIL PROTECTED]; php php
> Subject: Re: [PHP] building an admin tree with varying node types
> 
> Rene Veerman wrote:
> > Eric Butera wrote:
> >> I cheat and just keep the normal parentId column and regenerate the
> >> tree based on changes on that.  I had spent a little bit looking at
> >> the different update/delete methods and there wasn't a lot of good
> >> information/examples as you've stated.  I had found some but there
> >> were always edge cases that busted them.
> >>
> >>
> >
> > Just found this;
> > http://en.wikipedia.org/wiki/AVL_tree
> >
> > interesting read so far, havent found any opensource classes that
> > implement it yet, am tempted to write one ;)
> >
> java visualization of an AVL tree, this is so much fun, i dont even
> understand it yet and it's cool.
> http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.ht
> m

...had to make one of these in my Advanced Programming & Algorithms class. 
Self-balancing trees are a pretty interesting beast to learn about/work with, 
but a beast nonetheless. :)


Todd Boyd
Web Programmer




--- End Message ---
--- Begin Message ---
Boyd, Todd M. wrote:
...had to make one of these in my Advanced Programming & Algorithms class. 
Self-balancing trees are a pretty interesting beast to learn about/work with, but a 
beast nonetheless. :)


i'm still trying to get my head around how the operations are done. sometimes i see that java app re-arrange large parts of the tree, and i wonder if it's still the same tree i'm looking at :)


--
--------------------------------------------------------------
Rene Veerman, creator of web2.5 CMS http://mediabeez.ws/
--- End Message ---
--- Begin Message --- Hi guys. I'm running PHP 5.2.6 (cli) on Mac OS X 10.5.5 and i've tried to install and configure the http pecl extension like the tutorial in your web site, i've used pecl to install it, i've also tried to compile it manually. Everything got installed correctly, there is the http.so file in the extensions dir ("/usr/lib/php/ extensions/no-debug-non-zts-20060613/"), the path is loaded by php/ apache and i've added the line "extension=http.so" in "php.ini" file. However the extension isn't loaded by php. I've wrote a simple script that uses "extension_loaded('http')" function and i get a false response. I need to use desperatly functions like http_request(...) for a college project so i would appreciate a quick response from you.

If you could just provide me with a more specific Leopard tutorial tha would be great.

 Giving an antecipated "thank you" for any kind of answer.

 Regards, and keep up the good work!

 Rui Quelhas

--- End Message ---
--- Begin Message ---

Rui Quelhas wrote:
>  Hi guys. I'm running PHP 5.2.6 (cli) on Mac OS X 10.5.5 and i've
> tried to install and configure the http pecl extension like the
> tutorial in your web site, i've used pecl to install it, i've also
> tried to compile it manually. Everything got installed correctly,
> there is the http.so file in the extensions dir
> ("/usr/lib/php/extensions/no-debug-non-zts-20060613/"), the path is
> loaded by php/apache and i've added the line "extension=http.so" in
> "php.ini" file. However the extension isn't loaded by php. I've wrote
> a simple script  that uses "extension_loaded('http')" function and i
> get a false response. I need to use desperatly functions like
> http_request(...) for a college project so i would appreciate a quick
> response from you.
>
>  If you could just provide me with a more specific Leopard tutorial
> tha would be great.
>
>  Giving an antecipated "thank you" for any kind of answer.
>
>  Regards, and keep up the good work!
>
>  Rui Quelhas
>

Is that extensions directory in your path in php.ini?

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com


--- End Message ---
--- Begin Message ---
Rui Quelhas schreef:
>  Hi guys. I'm running PHP 5.2.6 (cli) on Mac OS X 10.5.5 and i've tried
> to install and configure the http pecl extension like the tutorial in
> your web site, i've used pecl to install it, i've also tried to compile
> it manually. Everything got installed correctly, there is the http.so
> file in the extensions dir
> ("/usr/lib/php/extensions/no-debug-non-zts-20060613/"), the path is
> loaded by php/apache and i've added the line "extension=http.so" in
> "php.ini" file. However the extension isn't loaded by php. I've wrote a
> simple script  that uses "extension_loaded('http')" function and i get a
> false response. I need to use desperatly functions like
> http_request(...) for a college project so i would appreciate a quick
> response from you.

try the full path like so:

extension=/usr/lib/php/extensions/no-debug-non-zts-20060613/http.so

> 
>  If you could just provide me with a more specific Leopard tutorial tha
> would be great.
> 
>  Giving an antecipated "thank you" for any kind of answer.
> 
>  Regards, and keep up the good work!

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

Quick question: can a static method in PHP be recursive, or is there some sort of weird law against this? Ihave my method setPrereq that can essentially call itself (well, it includes a file which may call the setPrereq method, so essentially it is recursive).

I've done some tests, and it seems my setPrereq method is only getting called once. I'm not getting any errors under E_STRICT

Regards,
- Craige

--- End Message ---

Reply via email to