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

browse by tag: linux

sort by

newest, oldest, most popular


category icon

Process Forking with PHP

in PHP added by goodphptutorials, on 16/6/2010 advanced tutorials daemon linux php5

Unix supports the process of forking which allows a parent process to spawn a subprocess and continue running both processes concurrently. It is possible to do this in PHP using the PHP Process Control Functions. Note that you should never attempt to use these process control forking functions when using a webserver; you should only fork applications when using the PHP command line client.

comment save report
category icon

Survive heavy traffic with your webserver

in PHP added by goodphptutorials, on 2/10/2009 PEAR apache caching disk IO linux mysql performance

There are many things you can do to speed up your website. This article focuses on practical things that I used, without any spending money on additional hardware or commercial software.

comment save report
category icon

How to Install PHP 5 on Linux

in PHP added by goodphptutorials, on 21/12/2007 beginner tutorials installation linux php5

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all Linux-like operating systems.

comment save report
category icon

Writing a daemon in PHP

in PHP added by besx, on 22/12/2009 daemon linux php5

Many browser based games need to run processes in the background to fulfill special tasks. Think of a chatsever that handles incoming messages and broadcasts them to all connected clients. For such a purpose one cannot rely on user-executed scripts or cronjobs. We need an approach that runs a set of commands all the time as a background process on the server. This is where daemons come in handy.

comment save report
category icon

Fast PHP Tutorials, Part 3: Install PHP in Linux

in PHP added by goodphptutorials, on 17/3/2007 beginner beginner tutorials linux php setup

This Part 3 of the FAST PHP tutorial series. In this chapter, you'll learn how to install PHP in linux.

comment save report
category icon

Secure PHP installation on unix/linux systems

in PHP added by quipo, on 27/1/2007 apache howto linux php php5 security unix

Simple guide to a more secure PHP installation on unix/linux systems

comment save report
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