It’s important to do form validation for obvious reasons. This is an implementation of an email checker that uses php regular expressions, and a little bet if pizzaz with asynchronous javascript and xml, or AJAX.
The data is transfered asynchronously (without refreshing the page) to the server
The server checks to see if the email is valid or invalid
If it’s valid it tells you so, as well as if it’s not
The guts of the script are here: if (eregi("^[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-_.]+$",$email)) { //return confirmation that it worked } else { //return that it didn't work }
Okay, truth told, I’m completely bored, so I’m going to write a quick tutorial on how to install and set up the Snort IDS on a Debian Sarge System (although it should work on other distros as well).
Download and Install Snort apt-get install snort-mysql
Enter values in the following screen, but forget about the part about the database cd /usr/share/doc/snort-mysql mysqladmin -u -p create zcat create_mysql.gz | mysql -u -p
Basically what this does is let you enter a domain or page or whatever and it redirects you to the page. On top of just redirecting you, it logs all of the redirections along with the request date, and requester ip address.
If you have a need for this, you’ll most likely know how to implement it. If not, feel free, as always, to email me (howe -dot- jon -at- gmail -dot- com), and I’d be happy to help you out to the best of my abilities.
I’ve been wanting to make a script in PHP that handles downloads for a while. Last night I was bored, so I made one.
DISCLAIMER: This is a very basic example, but if you have any use for this, I’m sure that you can figure out how to use it. If not, I’ll probably work more with it in the future anyways.
I’m going to assume that you’re using Linux (and that you are not a complete noob at it) for this tutorial. I will assume that you’re using a Sony Clie.
Here’s an overview of what we’re going to do:
Rip dvd using DVD:Rip
Convert ripped movie into a clie compatible format
Download and install TCPMP (free media player)
(optional) Install Memory Stick Pro fix
Copy Movie to the Memory Stick
Step 1: Download and Install Files apt-get install dvdrip apt-get install pilot-link Download TCMP (for palm) Download all attachments