Converts the NASA SRTM-Data in .hgt-Format to ASCII .csv in the Format lat;lon;ele for easier import into databases. All .hgt-files are expected to be in a subdirectory relative to the script named "hgt". Save as converthgt.php, then run in console / command line: php converthgt.php > srtm.csv This will produce a large csv-file from all the .hgt-files in the hgt-subdirectory. The data is grouped by filename with a two-line grouping header.
none for now
This snippet uses cURL to get a graphic and display a thumbnail image on the page without saving it.
A easy way to create simple INSERT / UPDATE query's to MySql In the scrip change the value for $url, $dbuser and $pwrd
search text with format "@format" and convert it to link
scope of isAjax function is to check whether request is done via ajax or not.
A hitcounter with images: [IMG]http://ionut.net63.net/IMG/0.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/1.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/2.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/3.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/4.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/5.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/6.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/7.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/8.bmp[/IMG] [IMG]http://ionut.net63.net/IMG/9.bmp[/IMG] Copy all in a folder called IMG and put the folder in the same directory as the script you also need to create a file called "counter.txt" and put it into the same directori with the script (NOT in IMG)
This will display the files size, instead of displaying the size in bytes, why not display GB, MB, KB or bytes as well.
This is just an array of true web colors, it will be able to convert them from "AQUA" for example to "#00FFFF".
This is based on php's isset() function. So instead of doing like this if (($var1 != "") && ($var2 != "") && ($var3 != "") && ($var4 != "")) we can use if (!empty_str($var1,$var2,$var3,$var4))
The scope of this function is to encode the data with the status in JSON format.
status = 1
error is not generated while encoding data
key 'data' holds the data
status = 0
error is generated while encoding data
key 'msg' holds the error message and the error-code
Implode on an array's keys instead of its values.
Scope of isProxy is to determine whether client is under Proxy or not.
Take an image, and put a water mark on top of it.
This simple function allows you to automatically generate breadcrumbs! Notice that it is important to follow the example given as a comment I mean: - array(URL, TEXT, BOOLEAN) : "TRUE" makes the link active
Return strings that are between two start and stop positions.
Code choose 6 numbers between 1 and 42 , sort them and choose a reserve number between 1 and 42 , then display it in the browser.
This function will check a string to see if it contains any HTML in it.
Get the ID number of a auto incremented field when inserting a value into the database.