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

browse by tag: command line

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
category icon

PHP on the Command Line - Part 1

in PHP added by goodphptutorials, on 6/9/2007 advanced tutorials command line scripting shell

We all know PHP is a great language for building Web applications with but we all also know there's a lot more to running a serious Website than just the user interface.

comment save report
category icon

PHP on the Command Line - Part 2

in PHP added by goodphptutorials, on 7/9/2007 advanced tutorials command line shell

In Part 1 of this tutorial, we had a look at PHP's command line SAPI (server API). In this article, we'll take things a step further, and see how you can hook up a command line PHP script with existing command line tools provided by your operating system.

comment save report