WEB-NES-BAY

Learn Tips and tricks on Linux, Hacking, linux, PHP, Perl, Web, Hardware

bookmark bookmark
Posted by WEBNESBAY ADD COMMENTS

Most of the websites use this alternating color to tables which will make the user readability of table content. We can use any of the colors you want.
I am writing php code which will print the data present in the mysql table in a alternating color format.
<?php
//Database Connection inputs
$host=”localhost”; // Host name
$username=””; // Mysql username
$password=””; // Mysql password
$database=”mydb”; // Database name
$table=”mytable”; // Table name
// Connect to server and select databse
mysql_connect(“$host”, “$username”, “$password”)or die(“cannot connect”);
mysql_select_db(“$mydb”)or die(“cannot select DB”);
$sql=”SELECT * FROM $mytable”;
$result=mysql_query($sql);
// [...]

Categories: PHP
Posted by WEBNESBAY 6 COMMENTS

I am searching for a keylogger for Ubuntu Linux. Finally I found it in sourceforge.net. Here are the simple steps for keylogger in ubuntu
What is Keylogger?
Keystroke logger is the practice of noting (or logging) the keys struck on a keyboard, typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored. There are numerous keylogging methods, ranging from hardware- and software-based to electromagnetic and acoustic analysis.
keylogger in Linux
We have an opensource [...]

Categories: Hacking, Linux
Posted by WEBNESBAY Comments Off

Implementing an AJAX feed data to a PHP script, and usually by sending data via GET, it had not experienced major problems, however this time the number of bytes far exceed the limited capacity of the GET. Before proceeding further, to clarify this point that we have reference …
Do limit the number of characters that can be passed by GET ($ _GET)?
In mid-1998 was published the HTTP protocol specification, a fairly complete, but inaccurate in [...]

Categories: PHP
Posted by WEBNESBAY ADD COMMENTS

Perl is renowned for being a language where you can express complicated commands in a very small amount of space. In this article, following up from my last Perl article, we’ll explore a little bit about how this is possible.
We’ll start with the simplest of programs, which simply reads in characters from the keyboard and repeats them back to the console. In Perl you might write this like so:
while ($line = <STDIN>) {
print $line;
}
Even to start [...]

Categories: Perl
Posted by WEBNESBAY 2 COMMENTS

Perl provides support for the socket API natively. Although the interface is not that bad anyway, there is also a very convenient module, IO::Socket that works like a wrapper on the native API and provides a simpler and easier way to deal with sockets. We’ll use IO::Socket in this tutorial to demonstrate writing two simple programs that communicate with sockets.
The Receiver
The first thing we [...]

Categories: Perl
Posted by WEBNESBAY ADD COMMENTS

This is a script I use whenever I need to do search and replace in a bunch of files. It was meant as a quick hack, but since I does exactly what I need, I continue to use it (always make a backup of the original files in case something goes wrong).
#!/usr/bin/perl -w
#
# More scripts and tips can be found at
# http://www.edlin.org/
#
# Search and replace in several files
#
# I throw this file [...]

Categories: Perl