Skip to content

Instantly share code, notes, and snippets.

Dian Ariyanto dianariyanto

Block or report user

Report or block dianariyanto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Rss
<?php
header("Content-Type: application/rss+xml; charset=ISO-8859-1");
DEFINE ('DB_USER', 'my_username');
DEFINE ('DB_PASSWORD', 'my_password');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'my_database');
$rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>';
$rssfeed .= '<rss version="2.0">';
View sitemap-siteindex.php
<?php
/**
*
* This is a quick way to turn a simple text file
* with a very long list of urls in a text file (sitemap-urls.txt)
* Where "very long" is an expected url number greater than 10,000
* If loaded without a valid query parameter "page" it will load a
* Site Index site map, otherwise load the individual XML site map
* 10,000 urls into a valid XML Sitemap:
* http://en.wikipedia.org/wiki/Sitemaps
@dianariyanto
dianariyanto / sitemap.xml.php
Created Jan 27, 2017 — forked from artlung/sitemap.xml.php
Generate XML sitemap from list of urls
View sitemap.xml.php
<?php
/**
*
* This is a quick way to turn a simple text file
* with a list of urls in a text file (sitemap-urls.txt)
* into a valid XML Sitemap:
* http://en.wikipedia.org/wiki/Sitemaps
* Put this file sitemap.xml.php and sitemap-urls.txt at
* the webroot http://example.com/sitemap.xml.php
@dianariyanto
dianariyanto / Related Music Wapka
Created Jul 7, 2015
Related Music Post on Wapka
View Related Music Wapka
View Kode Form Pencarian Wapka
<form action="/site_IDSitus.xhtml" method="get"> <input type="text" name="get-keyword" size="15" style="background:url(/img/4754/4754894_4faa88ad9f.png) no-repeat right center #fff; padding-right:17px;" /> <select name="get-dir"> <option value="Image">Image</option> <option value="Music">Music</option> <option value="Ringtone">Ringtone</option> <option value="Video">Video</option> <option value="Theme">Theme</option> <option value="Software">Software</option> <option value="Game">Game</option> <option value="Animation">Animation</option> </select>:admin-hash-input: <input type="submit" value="Search"></input></form>
You can’t perform that action at this time.