php-general Digest 12 Nov 2008 16:53:21 -0000 Issue 5786

2008-11-12 Thread php-general-digest-help

php-general Digest 12 Nov 2008 16:53:21 - Issue 5786

Topics (messages 283209 through 283212):

Re: Darn mail servers...
283209 by: Daniel Brown

Re: PCRE regex result is different between Linux  Windows.
283210 by: ClapClap
283211 by: ClapClap

PHP Startup: Unable to load dynamic library
283212 by: Thiago H. Pojda

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]


--
---BeginMessage---
On Tue, Nov 11, 2008 at 8:04 PM, Jim Lucas [EMAIL PROTECTED] wrote:
 Hope this works...

No such luck, I'm still seeing you.

-- 
/Daniel P. Brown
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
---End Message---
---BeginMessage---
ClapClap 2000ans at free.fr writes:

 My versions of PCRE :
 - Linux 7.4 2007-09-21 (PHP 5.2.4-2ubuntu5.3)
 - Windows XP 7.2 2007-06-19 (PHP 5.2.4)


And :
- Windows 2000  7.6 2008-01-28 (PHP 5.2.6)

It works fine under Windows with PCRE 7.2  7.6.
I do not know why

---End Message---
---BeginMessage---
ClapClap 2000ans at free.fr writes:

 
 ClapClap 2000ans at free.fr writes:
 
  My versions of PCRE :
  - Linux 7.4 2007-09-21 (PHP 5.2.4-2ubuntu5.3)
  - Windows XP 7.2 2007-06-19 (PHP 5.2.4)
 
 
 And :
 - Windows 20007.6 2008-01-28 (PHP 5.2.6)
 
 It works fine under Windows with PCRE 7.2  7.6.
 I do not know why
 

Again and again...
I've found the mistake.

It's the string encoding conversion to UTF-8 which make regex differences.
On Linux, it uses Glibc 2.7 while on Windows, it's libiconv 1.11.
According to PHP manual http://docs.php.net/manual/en/intro.iconv.php :
We have to use libiconv to play with encoding, it's better than Glibc.

Damned !

---End Message---
---BeginMessage---
Guys,

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.

I'm in WinXP using apache 2.2.


Thanks,
-- 
Thiago Henrique Pojda
---End Message---


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

2008-11-12 Thread php-general-digest-help

php-general Digest 13 Nov 2008 06:59:22 - 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]


--
---BeginMessage---

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---
---BeginMessage---
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---
---BeginMessage---

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---
---BeginMessage---
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---
---BeginMessage---



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 

[PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Thiago H. Pojda
Guys,

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.

I'm in WinXP using apache 2.2.


Thanks,
-- 
Thiago Henrique Pojda


Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Stut

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/

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



Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Thiago H. Pojda
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...


Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Stut

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/

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



Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Thiago H. Pojda
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


[PHP] Re: PCRE regex result is different between Linux Windows.

2008-11-12 Thread ClapClap
ClapClap 2000ans at free.fr writes:

 My versions of PCRE :
 - Linux 7.4 2007-09-21 (PHP 5.2.4-2ubuntu5.3)
 - Windows XP 7.2 2007-06-19 (PHP 5.2.4)


And :
- Windows 2000  7.6 2008-01-28 (PHP 5.2.6)

It works fine under Windows with PCRE 7.2  7.6.
I do not know why


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



Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Thodoris



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



Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Thiago H. Pojda
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


Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Micah Gersten
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





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



[PHP] Missing DLLs

2008-11-12 Thread ceo

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



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



Re: [PHP] Missing DLLs

2008-11-12 Thread Thiago H. Pojda
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


Re: [PHP] Missing DLLs

2008-11-12 Thread Stut

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/

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



Re: [PHP] Missing DLLs

2008-11-12 Thread Thodoris



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


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



[PHP] pdt-2.0 error

2008-11-12 Thread András Csányi
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


Re: [PHP] Missing DLLs

2008-11-12 Thread Thodoris





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


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



[PHP] Re: pdt-2.0 error

2008-11-12 Thread Maciek Sokolewicz

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

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



Re: [PHP] pdt-2.0 error

2008-11-12 Thread Micah Gersten
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

   

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



Re: [PHP] Re: pdt-2.0 error

2008-11-12 Thread Micah Gersten
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





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



Re: [PHP] building an admin tree with varying node types

2008-11-12 Thread Rene Veerman

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 ;)


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



[PHP] PECL HTTP Extension

2008-11-12 Thread Rui Quelhas
 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

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



Re: [PHP] PECL HTTP Extension

2008-11-12 Thread Micah Gersten


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


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



RE: [PHP] building an admin tree with varying node types

2008-11-12 Thread Boyd, Todd M.
 -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





[PHP] Re: PCRE regex result is different between Linux Windows.

2008-11-12 Thread ClapClap
ClapClap 2000ans at free.fr writes:

 
 ClapClap 2000ans at free.fr writes:
 
  My versions of PCRE :
  - Linux 7.4 2007-09-21 (PHP 5.2.4-2ubuntu5.3)
  - Windows XP 7.2 2007-06-19 (PHP 5.2.4)
 
 
 And :
 - Windows 20007.6 2008-01-28 (PHP 5.2.6)
 
 It works fine under Windows with PCRE 7.2  7.6.
 I do not know why
 

Again and again...
I've found the mistake.

It's the string encoding conversion to UTF-8 which make regex differences.
On Linux, it uses Glibc 2.7 while on Windows, it's libiconv 1.11.
According to PHP manual http://docs.php.net/manual/en/intro.iconv.php :
We have to use libiconv to play with encoding, it's better than Glibc.

Damned !


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



Re: [PHP] building an admin tree with varying node types

2008-11-12 Thread Rene Veerman

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


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



Re: [PHP] building an admin tree with varying node types

2008-11-12 Thread Rene Veerman

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/ 



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



Re: [PHP] PECL HTTP Extension

2008-11-12 Thread Jochem Maas
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!

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



[PHP] Recursive Static Method

2008-11-12 Thread Craige Leeder

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

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



Re: [PHP] Recursive Static Method

2008-11-12 Thread Yeti
Some code would be quite helpful here. But your scenario should not
make any problem.

EXAMPLE:
?
class foo {
static function test() {
static $count;
$count++;
echo Call {$count}br /;
include_once('test.php');
}
}
foo::test();
?

EXAMPLE (@file: test.php):
?php
if (class_exists('foo')) {
foo::test();
}
exit();
?

OUTPUT:
Call 1br /Call 2br /

//A yeti

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