Apache Fancy Indexes

Apache Fancy Indexes

Now that I have to support a cpanel server again, I have to dabble in apache confs. Sometimes you want apache to show an index of the files in a directory for simplicity, for this we use Apache Module mod_autoindex. Which gives a bare basics index mode and a fancier index mode with better layout,…

PHP PDO Mysql 101
| | |

PHP PDO Mysql 101

PHP PDO MySQL Needed to make a simple php script with mysql in it, so I decided to use PDO because… well peer pressure 😐 so heres a basic PHP PDO MYsql script. The idea is I have a table called table with a field called field in a database called somedatabase. We have 1000…

secure copy ( SCP ) howto 102
|

secure copy ( SCP ) howto 102

Secure Copy (SCP) provides a secure and authenticated method for copying files between hosts. SCP relies on Secure Shell (SSH). Copy the file “somefile.txt” from a remote host to the local host scp [email protected]:somefile.txt /some/local/directory Copy the file “somefile.txt” from the local host to a remote host scp somefile.txt [email protected]:/some/remote/directory Copy the directory “somedir” from…