Posts Tagged ‘connection’

PHP is able to communicate with PostgreSQL databases using some relatively simple calls. In a similar manner to other database systems, the script needs to do the following: connect to the database using pg_connect execute queries using pg_query and pg_free_result close the database connection using pg_close For example, consider the following script: <?PHP // database […]

This is an asy one. Let’s say, for instance, you’re living in Japan and connect to the internet via PPPoE. Your service provider informs you that you need to set your MTU to 1454, but when you connect you see it’s set to 1492. You can change this using ifconfig like so: sudo ifconfig ppp0 […]