| | |
PHP and Shell Commands
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 19
Reputation:
Solved Threads: 0
Can anyone tell me how to write a PHP script to update this shell command?
/usr/local/psa/bin/domain.sh -u domain.com -passwd password
I am trying to update FTP passwords using a PHP script, in place of logging into Plesk everyday to change an FTP password. I have a web based tool that holds all my customers FTP info (UN, PW, etc...). I want to update my tool, then have it update the Plesk FTP password automatically using a PHP script with a shell command.
/usr/local/psa/bin/domain.sh -u domain.com -passwd password
I am trying to update FTP passwords using a PHP script, in place of logging into Plesk everyday to change an FTP password. I have a web based tool that holds all my customers FTP info (UN, PW, etc...). I want to update my tool, then have it update the Plesk FTP password automatically using a PHP script with a shell command.
If that doesn't work, you can use shell_exec. Here's a fun tutorial that uses it.
http://www.sitepoint.com/article/take-command-ajax/2
http://www.sitepoint.com/article/take-command-ajax/2
![]() |
Similar Threads
- download pdf file, convert to html, in PHP since working in Linux (PHP)
- PHP Templates (PHP)
- wget into php (PHP)
- request help :listing directories with php >> changing to use shell commands: how to? (PHP)
- How to execute shell command form Java servlet? (Java)
- Running PHP scripts in backround (PHP)
- Linux shell commands on Windows (IT Professionals' Lounge)
- PHP Forums Warning: New Strain Santy Worm Attacks (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP recursive step through mysql table.
- Next Thread: creating a search form with multiple options, like the search form used on this site?
Views: 806 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem query radio random recursion regex remote script search select seo server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web webdesign xml youtube





