CascadiaPHP 2024

Fonctions PS

Contact Information

Si vous avez des commentaires, résolutions de bogues, améliorations pour soit cette extension ou pslib alors laissez moi un message à » Toute aide est la bienvenue.


add a note

User Contributed Notes 3 notes

mattwheaton at hotmail dot com
17 years ago
I also was not able to install ps using PEAR. Here are the steps I took to getting it installed:

1. you may need to install the perl module XML::Parser ( to get pslib to install
2. install pslib (
3. install ps ( using the instructions from (
4. copy the file created by to the php extensions directory (not automatically done)
5. edit php.ini to include the ps extension (not automatically done)

If you are running FreeBSD, this link may help you with problems installing pslib (

Note that pslib (the library) and ps (the php extension) are not the same.
billy dot diehl at us dot army dot mil
18 years ago
OK, OK, the previous note helped get me started, but really, it took me most of the day to figure out how to get this "pear install ps" to work. At first, it seemed geared for PHP4. Hopefully, I can save someone the day I just spent. (Don't get me wrong, I learned something new).

If the above statement doesn't work try this because it worked for me using PHP5 and Apache.

1. Forget the "pear install ps", it doesn't work. Whoever wrote that should get punched.
2. Make sure you've got PHP5 and Apache working as you like.
3. Go to and download the latest release.
4. Decompress the contents into its own directory somewhere.
5. Read which tells you what to do with what you just decompressed.
6. Move the final result (a shared object file) into the directory specified by your php.ini file's "extension_dir".
7. Create an entry in you php.ini (along with other similar statements that should already be there) that says ""
8. For giggles, restart apache

Worked for me, hope it works for you...
norbert at hipersonik dot com
18 years ago
For everybody who is frustrated by the not working of 'pear install ps' command under most likely SuSE, at is a possible way to get it working. It is also possible to use these instructions under other distributions.
If 'pear install ps' works fine from the start (pslib etc is installed), but ps does not work yet, use dl(''); This will save you a lot of time.
To Top