PHP: How to exec 'svn up' in Linux -


i want visit url via http://xxxxx.php server update automatically

i try many way use php execute "svn update" on server like:

system('./svn.sh', $retval);   //svn.sh contain svn .... system('svn .', $retval); system('/usr/bin/svn --username xxx --password --- /my_path', $retval); 

ps :i don not want use third party php extension subversion !!!

i wouldn't use php type of task. rather use ssh publish localhost remote host bring server date

ssh my_user@my_host.com "/usr/bin/svn /my_path" 

this more secure , more suited system level task.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -