| | |
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?
| Thread Tools | Search this Thread |
ajax apache api array basics beginner binary broken cakephp checkbox class cms code codingproblem combobox cron curl database date display domain dynamic echo email error file files folder form format forms function functions google href htaccess html image include insert interactive ip java javascript joomla js limit link load login mail malfunctioning menu mlm mobile multiple mysql nodes oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion reference remote return script search server sessions sms source space sql syntax system table tutorial unset up-to-date update upload url validation validator variable video web webapplications websitecontactform youtube





