 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPClasses.org Blog: Locating addresses on Google Maps embedded in PHP generated Web forms
by Chris Cornutt November 04, 2009 @ 12:45:51
On the PHPClasses.org blog there's a new tutorial showing how to use the goe-location support the Google Maps API offers to search for and find an address.
Sometimes it is necessary to get the coordinates of a location on the map. The map location plug-in lets the user point to any location by clicking on the map. [...] However, when the user does not know exactly where is the location he is looking for, it may be painful to find it just by zooming and looking around the map. The latest release of this plug-in makes possible for the users to type the address or name of the city you are looking for and search for the location without further effort.
He uses the form creation package to set up a simple address form (address and country) and a call to its connect() method to link Javascript to the form. When submitted, the new features of the class get to work and ask the Google API for the location and a map is generated with a marker on the spot requested.
voice your opinion now!
form googleapi googlemaps address search class
DevShed: Validating IP Addresses with Filters in PHP 5
by Chris Cornutt August 26, 2009 @ 15:52:05
DevShed has posted the seventh part of their "validator" series today. This time they look at validating IP addresses with the filter_var function.
You can surely appreciate this functionality when developing modules, classes, plug-ins, etc. that must perform some kind of strong validation on incoming data. The filter extension comes armed with another handy filter, though, that permits you to check some common things, such as the IP addresses of client machines.
The give an example of using the FILTER_VALIDATE_IP constant to check the IP address format and include the optional FILTER_FLAG_IPV4 check for the IPv4 format.
voice your opinion now!
validate filter ip address tutorial
NETTUTS.com: Mimicking Apple's Address Book for the Web
by Chris Cornutt December 02, 2008 @ 11:16:19
The NETTUTS blog has this new tutorial posted (including a screencast) showing how to make a web application similar to the Address Book on Apple's OS X operating system.
As we all know, WordPress is so extensive that you can use it for nearly anything. There are even articles on sites with crazy titles such as 101 alternative uses for WordPress. So I thought, hey, why not? I bet a lot of people want to create their own Web Apps, and essentially WordPress can do that for you. In this video tutorial, we're going to make an online Address Book.
Building on a WordPress base and including jQuery and a Live Search Plugin, they create the multi-pane look and feel, styled largely with CSS. The end result shows your address groups, the members of that group and the selected member's information in the far right pane.
As always, the complete source can be downloaded.
voice your opinion now!
address book apple osx tutorial wordpress livesearch plugin jquery css
Knut Urdalen's Blog: Washing emails
by Chris Cornutt November 27, 2008 @ 14:42:56
Knut Urdalen has posted a new blog item about something he calls "washing emails":
In this tutorial I'll show you how to create a simple PHP script to cleanup a list of email addresses. As a web developer you have probably been asked to wash a list of emails from a manager or marketer some times. Here's the ultimate solution.
His script does a few things - removes duplicates, validates that the email address exists, uses pipes for communication and is as flexible as possible to work on most PHP distributions. You can download the simple script here.
voice your opinion now!
washing email script duplicate valid address pipe flexible
Gareth Heyes' Blog: Faking the unexpected
by Chris Cornutt December 04, 2007 @ 08:36:04
Gareth Heyes has an example of yet another way he's seen developers incorrectly handle incoming connections and the information inside. This time, he focuses on the remote IP coming from the client.
Developers place too much trust in everything, they assume that certain data cannot be faked and therefore these pieces of data can be used as a Trojan horse. Lets take the REMOTE IP of a user, it seems a trusted source because of the TCP/IP connection between the user and the server.
He points out the difference between HTTP_X_FORWARDED_FOR and REMOTE_ADDR and how, despite them being the same almost all of the time, shouldn't be trusted since they could be spoofed. He even includes an example script showing how it could be done (and how a bit of Javascript can even be inserted).
voice your opinion now!
remoteaddr httpxforwardedfor remote ip address exploit remoteaddr httpxforwardedfor remote ip address exploit
PHPBuilder.com: AJAX and PHP Part 3 - Post vs. Get Requests
by Chris Cornutt August 01, 2007 @ 09:27:00
PHPBuilder.com has posted part three of their series looking at building a simple site using PHP and Ajax - this time with a focus on using the POST method instead of GET to push the data back and forth from client to server.
The advantage of this is primarily security, however you often can send larger amounts of data with the POST method as well (but that is dependent on your server configuration rather it be Apache/PHP, Microsoft/IIS, or Java/J2EE, etc). The primary advantage of POST is again, the security of the communication, because often log files on the web server will log the AJAX GET request data because that data is part of a URL in the request. This does not occur with the AJAX POST request.
They start with a simple example of the POST request type, pulling data from a form (address/city/state/etc) and pushing it to the backend script. They follow this by picking it apart, explaining each of the sections of code for a better understanding.
voice your opinion now!
ajax tutorial post get request address ajax tutorial post get request address
|
Community Events
Don't see your event here? Let us know!
|