want to join us? register, it's easy | help

browse by tag: back ticks

sort by

newest, oldest, most popular

category icon

Execute Linux commands in PHP by using backticks

in PHP added by rvdavid, on 1/8/2008 back ticks command line linux

You can execute linux commands within a php script - all you have to do is put the command line in backticks (`). Recently, I had to upload an archive to a server which did not allow ssh. For files that I need to transfer, I just package them up in a neat archive and transfer the archive file via scp. Not having ssh access however, I uploaded the archive file via ftp and created a script which extracts the file the file looks like the following:

comment save report