Mencari Uang Tambahan dari Blog Anda

Satu lagi untuk mendapatkan penghasilan tambahan berupa $ (dollar) walaupun banyak program-program yang menambahkan penghasilan Anda. PTC (Pay per Click) yang penulis tawarkan adalah dari

Analisa Squid dengan Calamaris

Ini merupakan report dari squid, ini saya terapkan sudah lama, untuk mereport warnet. Semoga dapat membantu Download calamaris di http://cord.de/tools/squid/calamaris/calamaris-2.99.4.0.tar.gz #cd /home # wget http://cord.de/tools/squid/calamaris/calamaris-2.99.4.0.tar.gz

Basic Syntax PHP – Part 2

Escaping from HTML

There are four ways of escaping from HTML and entering “PHP code mode”:

1. <? echo (“this is the simplest, an SGML processing instruction\n”); ?>

2. <?php echo(“if you want to serve XHTML or XML documents, do like this\n”); ?>

3. <script language=”php”>

echo (“some editors (like FrontPage) don’t

like processing instructions”);

</script>

4. <% echo (“You may optionally use ASP-style tags”); %>

<%= $variable; # This is a shortcut for “<%echo ..” %>

The first way is only available if short tags have been enabled. This can be done by enabling the short_open_tag configuration setting in the PHP config file, or by compiling PHP with the –enable-short-tags option to configure.

The second way is the generally preferred method, as it allows for the next generation of XHTML to be easily implemented with PHP.

The fourth way is only available if ASP-style tags have been enabled using the asp_tags configuration setting.

Note: Support for ASP-style tags was added in 3.0.4.

The closing tag for the block will include the immediately trailing newline if one is present.

Basic PHP – Part 1

What is PHP?

PHP (officially “PHP: Hypertext Preprocessor”) is a server-side HTML-embedded scripting language.

Simple answer, but what does that mean? An example:

Example 1-1. An introductory example

<html>

<head>

<title>Example</title>

</head>

<body>

<?php

echo “Hi, I’m a PHP script!”;

?>

</body>

</html>

Notice how this is different from a CGI script written in other languages like Perl or C — instead of writing a program with lots of commands to output HTML, you write an HTML script with a some embedded code to do something (in this case, output some text). The PHP code is enclosed in special start and end tags that allow you to jump into and out of PHP mode.

What distinguishes PHP from something like client-side Javascript is that the code is executed on the server. If you were to have a script similar to the above on your server, the client would receive the results of running that script, with no way of determining what the underlying code may be. You can even configure your web server to process all your HTML files with PHP, and then there’s really no way that users can tell what you have up your sleeve.

Pidgin Smile Yahoo di Windows

Smua pada tau kalo icon smile bawaan dari Pidgin tidak begitu enak dilihat seperti ini: untuk itu gimana kalo kita menambahkan Yahoo! Smile di Pidgin

Wget – Tool Download di Linux

Wget

Siapa sih yang gak kenal dengan perintah ini. Ya betul ini tool untuk download. Banyak fitur-fitur yang belum kita tau termasuk saya yang nulis ini hehhe….

Instal wget

Jika Anda menggunakan versi RPM:

# rpm -ivh wget-*.rpm

Dasar Penggunaan

  • Mengambil URL dengan wget

    # wget http://situs.com

    wget untuk mengambil sebuah URL http://situs.com. Wget akan menyimpan ini di file index.html. Wget akan berusaha mencari alamat situs.com, melakukan koneksi ke server tersebut, lalu mengirim request HTTP untuk meminta URI / ke host situs.com.

Redirect Mikrotik ke Squidbox Linux

Banyak persoalan yg sering dialami pada web proxy di mikrotik, yaitu diantaranya tidak bisa di opreknya squid di mikrotik ini. Disini saya akan mencoba berbagi

SQUID USER ACCESS REPORT DENGAN LIGHTSQUID

Banyak sekali source-source yang digunakan untuk melihat report squid server kita, disini penulis akan memberikan tutorial installasi lightsquid dengan Fedora Core 4. Lightsquid tidak memakan