Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

IT Discussion in a Milist: Script PHP for Blocking IP Addresses

Greetings,

I want to ask, whether or not if we develop or use a simple web (e.g. Joomla, etc) then  we could setup some specific public IP addresses to not access our website?
If getting traced or ping-ed it seems to be normal.

If someone could help,  I greatly thank you.


regards
-------------------------------------------------

PHP to Detect Mobile Phones

If you have  a website and may want your website to automatically detect the user agents whether it is a mobile or iphone or pc. then you can use the scripts created by Andi Moore. It is a PHP script.

Andy Moore is a  dotMobi Certified Mobile Web Developer and you can visit his website at: http://www.andymoore.info/.

The PHP script to detect mobile phones can be reached at http://www.andymoore.info/php-to-detect-mobile-phones/ or you can download here.


Also you can subscribe to andymore's RSS feed to keep updated of changes to this script at:
http://andymoore.info/feed/

Arrays

You can create an array using either the array() function or the array operator [].The array() function is usually used when you want to create a new array and populate it with more than one element, all in one fell swoop. The array operator is often used when you want to create a new array with just one element at the outset, or when you want to add to an existing array element.
The following code snippet shows how to create an array called $rainbow using the array() function, containing all its various colors:
$rainbow = array("red", "orange", "yellow", "green", "blue", "indigo", "violet");

Google Maps Api

This class has been made by Sven Weih from Germany and can be used to present world maps using Google Maps API in other sites.

It allows defining several details of the maps to be displayed like: markers pointing to given addresses, dragable markers, location points, several types of controls, the zoom level, map center coordinates, width and height of the map in the page.

Excel Stream

Xlsstream is a stream wrapper to read and write MS Excel files
This class has been made by Ignatius Teo, from australia.
This class implements a stream handler interface to read and write Microsoft Excel spreadsheet files in the XLS format.

Easy Google Map

EasyGoogleMap is a php-class-package which has a functionality to display world locations using Google maps. This package has been made by Mitchelle Pascual, a blogger from Philippines.

This class can generate the necessary HTML and Javascript to create a map display on a web page with optinal locations be marked with special icons.

Blog Integration

BloggerIntegration has functionality to import a blog from blogger.com to another site.

The classes in this package can process one or more blogs parsing the blog to extract posts, comments, images, etc.
The processed blogs pages can be rendered and published into another site with a different template. This package can also integrate imported blogs with a site published with osCommerce.