Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

HOWTO create php function list

I have tried to use php reflections with no success to examine php class.
After that i found phpdoc which creates full list of methods etc just in a second.
It was really easy against expectation. And now I can see php function list nice formated

$ phpdoc -o HTML:frames:earthli -d -myclasses -t docs

and result looks like



Enjoy!

mysql errno 1251 Client does not support authentication protocol requested by server

mysql errno 1251 Client does not support authentication protocol requested by server
OR
unable to connect database server in my php 4.4.9 script.

I have spent some time before found out that php 4.4 isn't compatible any more with mysqld 5.1
Some thought you can find here. Solution of the problem is simple. You must correct user's password and save it in old style.


mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

Enjoy!

notepad++ 5.9, php and functionlist plugin

Notepad++ 5.9.4, PHP and FunctionList plugin collaborate with each other without any issues or troubles.
After update notepad++ will always move FunctionList plugin into \Notepad++\plugins\disabled\ folder and you need to copy FunctionList.dll back into \Notepad++\plugins\ directory.

After new start function list appears again.
Enjoy!


Asterisk AST_SORCERY function

 AST_SORCERY gets a field from a sorcery object. Sorcery is always created for PJSIP aors, endpoints and identifies in asterisk. It allows y...