<?php
function get_search_phrase($referer){
$key_start = 0;
$search_phrase = “”;
// used by google, msn, alta vista, ask jeeves, all the web, teoma, wisenut, search.com
if (strpos($referer, ‘q=’) !== false) $key_start = strpos($referer, ‘q=’) + 2;
// if present, get the search phrase from the referer
if ($key_start > 0){
if (strpos($referer, ‘&’, $key_start) !== false){
$search_phrase = substr($referer, $key_start, (strpos($referer, ‘&’, $key_start) - […]
The usage of quotation mark in script PHP very often we meet, maybe can be every script that we make existed the usage of quotation mark referred.
This function randomizes the order of the elements in an array also used together with srand() function.
shuffle() example:
Anda bisa mengatur Squid untuk menanyakan para pemakai untuk satu username dan password. Squid datang dengan satu program yang disebut ncsa_auth yang membaca NCSA-compliant apapun meng-enkripsi file password. Anda bisa menggunakan program htpasswd yang datang meng-install dengan Apache untuk menciptakan password anda. Berikut cara membuatnya:
It is possible to limit HTTP Internet access to only the Squid server without having to modify the browser settings on your client PCs. This called a transparent proxy configuration. It is usually achieved by configuring a firewall between the client PCs and the Internet to redirect all HTTP (TCP port 80) traffic to the […]
In this tutorial it will be analized how can be controlled the playhead of a MovieClip using ActionScript play() and stop() methods.
This tutorial is about how to move an object using the LEFT, RIGHT, UP and DOWN heys in Adobe Flash 8. 1. Create a new Flash8 document with 400×300 dimensions. Save it as flash8keys.fla.
2. Insert a new layer. Rename layers actions and object like in the picture below:
PHP merupakan bahasa pemrograman yang sangat cepat, namun masih banyak cara mengoptimasi PHP tidak hanya sekedar seberapa cepat eksekusi kode.
Platform : OpenSuSE 10.2
1. Buat File di /usr/local/src/webstr
isinya :
/etc/init.d/apache2 start
2. Buat File /usr/local/src/auto-start.sh
isinya :
#!/bin/sh
: ${run=/usr/local/src/webstr}
: ${pidfile:=/var/run/httpd2.pid}
echo “checking server”
if [ ! -f $pidfile -a -f $pidfile.rpmsave ]; then mv $pidfile.rpmsave $pidfile; fi
if ! [ -f $pidfile ]; then
$run
fi
sleep 6
/usr/local/src/auto-start.sh &
3. Jalankan Program auto-start.sh
#/usr/local/src/auto-start.sh
Ket :
1. auto-start.sh = Command untuk melihat kondisi apache, jika apache mati/down maka apache […]
untuk membuat website tampak lebih dinamis maka tampilan pada website tersebut lebih baik dpat berubah sewaktu - waktu, salah satu trik untuk membuat website anda tampak dinamis adalah menampilkan gambar yang berubah - ubah, berikut ini script untuk dapat menampilkan gambar secara acak