tag:blogger.com,1999:blog-1090229776618304312024-03-05T18:31:11.018+07:00IT Skill is not enough...PHP tutorial, Blog tips ,Internet business and EntertainmentAndar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-109022977661830431.post-45121131525877145532010-02-19T16:04:00.007+07:002010-03-08T06:02:07.169+07:00Microworkers pay me...(with payment proof)<div class="separator" style="clear: both; text-align: center;"><a href="http://adf.ly/38233/microworkers" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhjjZchQ3JnamDOwLFWBNk5xxRSB84wP_S042YQO8LdnxUWxo2NySIxd8eEXpNBAE1Btw8PhY5kNE1hhk2VcHRpfAzaHyXeKxPjQ687PDDYZE_YxrY1KqetGmQOXKF1sng1AkBbJ7caN2j/s320/logo505.gif" title="Microworkers pay me...(with payment proof)" alt="Microworkers pay me...(with payment proof)"/></a></div><br />
Today I feel thrilled, after 2 weeks joined <a href="http://adf.ly/38233/microworkers" target="_blank">microworkers.com</a> (MW), finally... 3 days ago i receive a letter that contain PIN to verify my payment that came home through the mail. Because the PIN is already in hand, so I immediately logged into and fill <a href="http://adf.ly/38233/microworkers" target="_blank">microworkers.com</a> PIN (verification) that they've sent. And the next 3 days, i got my payment!!<br />
<br />
Here's a little explanation about microworkers. <a href="http://adf.ly/38233/microworkers" target="_blank">Microworkers</a> is a small job-jobs created by manufacturers job (Advertiser), the job is paid per task. The job is very easy, there's only comment content, sign up for certain websites even easier there are only clicking ads. Each succesful job (task) they will paid u, the amount paid depends on the job's difficulty. The minimum job's paid is $0.1<br />
<br />
Here is the payment proof :<br />
<br />
<a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://img38.imageshack.us/img38/3825/payment1w.jpg" target="_blank" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="289" src="http://img38.imageshack.us/img38/3825/payment1w.jpg" width="320" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
and the second :<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://img20.imageshack.us/img20/3167/payment2r.jpg" target="_blank" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="285" src="http://img20.imageshack.us/img20/3167/payment2r.jpg" width="320" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
So....what are you waiting for?? Join with me now...just <a href="http://adf.ly/38233/microworkers" target="_blank">click here</a>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com6tag:blogger.com,1999:blog-109022977661830431.post-72422356690720945042010-02-04T21:32:00.003+07:002010-02-04T21:35:52.639+07:00List of free domain that you should know<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/02/list-of-free-domain-that-you-should.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="List of free domain that you should know" border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZCZrgSXBPDGjdb35Uqqz6ziHS77FqKepS9u1b5aPRFKH5OJmSLW4uQRl4QExLAflKqIt54CLgFuerFothz3DmMdqS7gUhSm1Dgtp4Bu1NyO-7D38bCq16SIWBZFB-wXmXpoQTwjaXQK15/s200/free_domain.jpg" title="List of free domain that you should know" width="200" /></a></div><br />
<br />
Hi...It's been a long time i don't update my blog. Now i'm gonna write list of free domain that maybe useful for you, it's totally free and you should try it :D<br />
If you already know about this, please skip this article <br />
Here is the list, check it out!<br />
<br />
<a name='more'></a><br />
<br />
<hr /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.dot.tk/" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="List of free domain that you should know - dot.tk" border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihx7x56Dzcsdyl0_psNM_-guSxn544Re3UiYa58s_x0JLcGfY2-xk4jfKiVn7jDlvOGWWKGJHImkzpcrAFIbxrSlQC4O8DQpxyhGMwnJuaS5saEfyWrYadSm3ezw19EP0mo1be16I4xjcN/s200/dottk_logo.gif" title="List of free domain that you should know - dot.tk" width="200" /></a></div>Dot.tk has long provided a free domain service, and no longer have banner ads as before...<br />
<br />
The url address: <a href="http://www.dot.tk/" target="_blank">http://www.dot.tk</a><br />
<br />
Later your url address will be: http://www.up-to-you.tk<br />
<br />
<hr /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.smartdots.com/" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="List of free domain that you should know - smartdots.com" border="0" height="26" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBbDS7EADHCMDU9WxVpXAFYET5Qz1Hy_j0drczoFZujS06tNkj_mIpqogfqa5uzSK0JDxhuW2_KbOcyuPAwLgcmUBY-WN3JbRLhnTvQj-gJ-IhG9r8xC3-QyFXMxOM9camIzxOdyVyiS13/s200/sd_logo.gif" title="List of free domain that you should know - smartdots.com" width="200" /></a></div>Smartdots.com is service that provided a fairly featured free domain. It's free and also has many smartdots domain option, such as: net.tc,. eu.tc,. us.tc,. uk.tc,. co.uk.tc,. me.uk.tc,. org.uk.tc ,. au.tc,. com.au.tc,. pro.tc,. shop.tc,. edu.tc,. de.tc,. at.tc,. co.at.tc, and many more.<br />
<br />
Some interesting offered featured:<br />
> Free of charge forever!<br />
> No banners/no compulsory advertising!<br />
> Forwarding is possible to any URL, no matter which provider!<br />
> PathForwarding<br />
> URLCloaking<br />
> Detailed Access Statistics<br />
> Email ..@your-name.net.tc*<br />
> Search engine optimized!<br />
> Reachable with "www" or without!<br />
> Full support for your personal favicon!<br />
> Access Protection - user administration included!<br />
> MetatagGenerator<br />
> WAP-ability!<br />
<br />
for more information see <a href="http://www.smartdots.com/features/?LANG=US" target="_blank">http://www.smartdots.com/features/?LANG=US</a><br />
<br />
<hr /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.co.cc/" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="List of free domain that you should know - co.cc" border="0" height="54" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ-CelGcMUeFMBx4MAknelBBHaVNBxbC80-1H71XMENKHu8IIOmFeZASLkxThfSddR92m3Fo8bGPBaHYUEgutoqxy2NkmNCn9cqeKo9XUJ6pISQ8P0GB5a2cqyBPgvn3kHHW_Dxvpl8yFe/s200/cc_logo.gif" title="List of free domain that you should know - .co.cc" width="200" /></a></div> Many of you must already about this free domain, buy for those who didn't know, you should try it, the registration process is less than 1 hour, it's fast and easy. Visit <a href="http://www.co.cc/" target="_blank">http://www.co.cc/</a><br />
<br />
<hr /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.uni.cc/" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="List of free domain that you should know - uni.cc" border="0" height="63" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcd0lRpBE5aNKpPQw-hu0hW_kYgv_gCy2_pmERsf6GaTgtVxr-DEj8ayT9DIfFDDEJ_8HSb0eh4-X0C548ObcvVKdFkfmBuBDe709OiVy_Z7i8x_UtNlODot4zcv1wispNNScbC_B1z0Kx/s200/logo_uni.cc.gif" title="List of free domain that you should know - uni.cc" width="200" /></a></div> Uni.cc is a 100% free domain that provides the domain name registration tools and DNS setup wizard. We can point a domain to a domain to the IP address of your server or set your own DNS servers to get the maximum flexibility.<br />
<br />
The process is easy, this is some of the features :<br />
1. SiteBuilder<br />
2. Web Forwarding<br />
3. Custom HTML<br />
4. DNS<br />
<br />
If you want to try, just visit the website at <a href="http://www.uni.cc/" target="_blank">http://www.uni.cc/</a><br />
<br />
<hr /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.freedomain.co.nr/signup_basic.php" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="List of free domain that you should know - co.nr" border="0" height="94" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHOGT1pdZ350wYPl8J7hTLyiQmVPBgmFC4di_c2bdO5epXe0Ggi3A-S3M5ZY477C_wXFA1RTZoPc7bScq7d-1PlO1JgJ_03C1njfBw4Kc1hmHfnc8tycOj0MoSfXBlMkTXE8a2OqMMjqji/s200/co.nr.gif" title="List of free domain that you should know - co.nr" width="200" /></a></div>This free domain service provided for those who wish to get a cool and free domain name, free subdomain or free short URL, that looks like a real paid domain name, just like they say.<br />
<br />
If you want to register just click here : <a href="http://www.freedomain.co.nr/signup_basic.php" target="_blank">http://www.freedomain.co.nr/signup_basic.php</a><br />
Enter the domain and...next is up to you :)<br />
<br />
<hr /><br />
Please let me know if there is another free domain that not listed hereAndar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com2tag:blogger.com,1999:blog-109022977661830431.post-91731357719916420062010-01-18T10:24:00.000+07:002010-01-18T10:24:41.657+07:00How Search Engine Works - Crawling & Indexing<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimI19IFvpLv7JtWeguUVuTb6Qfy3DpXQnGkuiXXedIu7T_r5JuzcCIexjauLI7bcweTvTc7Vin0ePJbkfG8YKGclqQxNHfxAfq9PgTWI795Quqrmq1k99DFlVBpXOCKPuZsR5FOQ8otWAk/s1600-h/seo.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="153" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimI19IFvpLv7JtWeguUVuTb6Qfy3DpXQnGkuiXXedIu7T_r5JuzcCIexjauLI7bcweTvTc7Vin0ePJbkfG8YKGclqQxNHfxAfq9PgTWI795Quqrmq1k99DFlVBpXOCKPuZsR5FOQ8otWAk/s200/seo.gif" width="200" /></a><br />
</div><div style="text-align: justify;">Hi, back with me again on a sunny day this Monday.. Today we will discuss how search engines work - crawling & indexing.. May be useful for you all, and for those who already know, I apologize, because I just wanted to share :D<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">The function of the Search Engine is Spidering , Indexing, and Link Analysis. . And it will return the results of sequence based on the results website done by crawling results of the search engine spiders. The very first thing we see in the indexing is a URL (uniform resource locator).<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">So, how Search Engines find your website:<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">* Submission via web form (Google)<br />
</div><div style="text-align: justify;">* Submission via XML sitemap ( "Big 4")<br />
</div><div style="text-align: justify;">* Paid Inclusion (Yahoo)<br />
</div><div style="text-align: justify;">* Found Links (All)<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">But at this moment, put your website to search engine submission is "wasting time" you. So, how do the fastest?? One way is to make a linkback to our website. XML also is a good thing, because it gave the search engine one-stop "Change List" to updated page. Sometimes, there are a lot of mistake in using this XML sitemap, people think they can get special priority on certain pages, XML sitemap is not going to tell search engines which pages you want to prioritize<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Let us continue, we now talk about spiders & crawling .. Spiders, robots, and crawlers are the same thing, just have different names, they are sent by the software search engine to check the website. But in your website there is the intention to Follows "Robot Exclusion Protocol", where its function is to tell the search engine spider to a page which may in-check and not be in-check. After Spider do this, the Spider will keep all the information for later in the index.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Fasten your seat belts, we're more towards the technical... HTTP, Hyper Text Transfer Protocol, is part of another rule that is used by the spider, because HTTP is a secret language of a web. This is the protocol used by your web browser, which you do not realize that spiders follow the protocol. They have a HEAD Request, GET and POST Request Request. In this case, the spider sends requests to your website, and your website answered with a static code. You can check the server response using WebBug www.cyperspyder.com (tip: use HTTP/1.1 Only), Or you can see it in Firefox by using pluggin "Live HTTP Headers". This is not something you should go into, but good enough if you know a little about this.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Request that usually done by the Search Engine Spiders are usually like this:<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">* Get somepage.html<br />
</div><div style="text-align: justify;">* Host: www.YourURL.com<br />
</div><div style="text-align: justify;">* If-Modified-Since (Check Last)<br />
</div><div style="text-align: justify;">* User-Agent: (GoogleBot, etc)<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">And usually the response will be provided by our website is:<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">* 200 OK - the server sends the page<br />
</div><div style="text-align: justify;">* 301 - Moved permanently (to a new URL)<br />
</div><div style="text-align: justify;">* 302 - Found (in the URL "temporary")<br />
</div><div style="text-align: justify;">* 304 - Found (No Change, since the last in check)<br />
</div><div style="text-align: justify;">* 404 - not found / 410 Lost<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Let us move to the next topic, the parsing and indexing.. or what happens after this spider found our website. The first is the processing carried out our website:<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">* Strip out Java script<br />
</div><div style="text-align: justify;">* Strip out most formatting<br />
</div><div style="text-align: justify;">* Strip out IFRAME<br />
</div><div style="text-align: justify;">* Just look at some tags that are meaningful in the indexing process: title, meta description keywords, H1-H6, A, IMG<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Content is stored in the indexing process. Basically, the indexing process is only based on "Words", no pictures .. In the process of storing the link in your web page, all the links are duplicated and the no-follow, will not be stored in special index by search engine robots. Things you need to watch is the quality of your links, do not you have a link to the page with the status 404/410/5xx web page, because it will reduce the quality of your website.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Let us end with a few things you need to know,<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">* Search Engine does not save web pages - they index the text on all pages<br />
</div><div style="text-align: justify;">* Search Engine does not perform web searches - they just look for the web that had been by their Index<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Hopefully helpful, I am waiting for your feedback in the Comment box.. Thanks<br />
</div>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com5tag:blogger.com,1999:blog-109022977661830431.post-77444909533346034812010-01-14T22:46:00.001+07:002010-01-14T22:46:24.900+07:00The characteristics of a website that will easily indexed at Google and Yahoo<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/01/characteristics-of-website-that-will.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuJkCEYcA0QMS8qL7iuTd9RQ2iMEUvcotWeKkngjEXFCUSCcjBFotMaKsRpP6nYbxxRk4AzAhu0Z1_5a6ILlRGl0Xqfs6qw84aAiSUWmFwAhhbbpOK-4IOhL0oVN3-gfhns3pSH7nl3CGg/s200/googleyahoolike.jpg" alt="The characteristics of a website that will easily indexed at Google and Yahoo" title="The characteristics of a website that will easily indexed at Google and Yahoo" /></a><br />
</div>If previously I had give examples the types of websites that not liked Google and Yahoo, this time I wanted to share about the characteristics of a website that will easily indexed at Google and Yahoo.<br />
<br />
Login to google analytics and google webmaster tools is not enough to boost the ranking of our website at google. What kind quality of design and content are classified as good according to google search engine and yahoo? These are the characteristics :<br />
<br />
1. Website that offers unique, quality and original content.<br />
2. Prioritize web pages design that is easily digested by humans, not by the search engines.<br />
3. Website which contains useful information and can describe the overall content of the website.<br />
4. Contains a link that can be used to help other people find other things that are related to the content of the website.<br />
5. Website that offers a sitemap for visitors with a direct link to important parts of your website. If the sitemap are more than 100 links, it should be moved to a different page.<br />
6. Find the keywords that many other people looking and make sure our website containing that keyword.<br />
7. Using metadata that actually describes the content of the website.<br />
8. Website has a structure and a clear text link. Each page must be achieved at least one static link.<br />
9. Try to use text instead of images if you want to display the name, describe the contents or links. Google and Yahoo will not recognize text in the picture.<br />
10. Make sure the title tags and ALT attributes that you use is accurate and describes the website well.<br />
11. Diligently check whether there are dead links or incorrect HTML code.<br />
12. Make sure the links in your website have a rational number (not more than 100 links)<br />
13. Overall has a good design.Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com1tag:blogger.com,1999:blog-109022977661830431.post-56462293402275184222010-01-12T07:18:00.002+07:002010-01-12T08:52:01.261+07:0015 Types of Websites that not liked by Google and Yahoo<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/01/15-types-of-websites-that-are-not-liked.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjODsTtLwAxvvdrkQMPrBTTX5oXtjjR9K0aEzak93wSiTWrMA_FtqbiSAxxO_p6aoBmYPYyvFx_QaNWGjhlyimhay40mrA2fXRn3jp3Tufm4fWpvh-xg7uurRGoTobGnzlwQm3EQwb3367V/s200/googleyahoounlike.jpg" alt="15 Types of Websites that are not liked by Google and Yahoo" title="15 Types of Websites that are not liked by Google and Yahoo"/></a><br />
</div>Hi everybody, this time i will share about the types of web site that are not liked by Google and Yahoo. If these things are on your website, be careful. <br />
<br />
1. Page that can be dangerous for accuracy and relevance of search results<br />
<br />
2. The page is intentionally created to redirect to another page<br />
<br />
3. Mostly of the web pages contents is copy paste (have the same content on every page)<br />
<br />
4. Pages websites that rely only on the content or links to content created for another website, such as the contents of affiliate programs<br />
<br />
5. Website with a lot of number of virtual hostname and not important at all<br />
<br />
6. A lot of page and made automatically without the contents of value (cookie cutter page)<br />
<br />
7. Page created artificially that deliberately to influence the ranking in the search engines<br />
<br />
8. Websites that use text or hidden links and not visible to visitors<br />
<br />
9. The pages that display content for different search engines with content that is viewed by visitors (cloaking)<br />
<br />
10. Website is too often displays a link to another website (cross-linked) with the aim of popularizing the website (link schemes)<br />
<br />
11. The main purpose of the website created for search engines, which only highlights the many keywords and not related each other.<br />
<br />
12. Wearing copyright, trademark patented others.<br />
<br />
13. Website displayed too many banners, pop ups, malware or any other type of navigation disturbing visitors.<br />
<br />
14. Page that looks like a trick, cheat or hurt patrons<br />
<br />
15. Using tools or software to position the website in google search results with a variety of queries.<br />
<br />
So, is your website one of i mentioned above?Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-58754044895420575902010-01-11T05:00:00.056+07:002010-01-11T05:00:01.269+07:00Create Auto Hyperlink with PHP Script<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijW5WqmOYJP9DDqq1sJzLQ1aw6lbCsxES0ThtplEhp9drDtv1pe4ShQ7T3_SuuOK0wMwhYieZat-ChfaSmxUZxquDRzxVjvlHwhPUcnQliW03OKbe9o6uFFy1PP9NkocTQwYf0vosLL5HH/s1600-h/Hyperlink.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijW5WqmOYJP9DDqq1sJzLQ1aw6lbCsxES0ThtplEhp9drDtv1pe4ShQ7T3_SuuOK0wMwhYieZat-ChfaSmxUZxquDRzxVjvlHwhPUcnQliW03OKbe9o6uFFy1PP9NkocTQwYf0vosLL5HH/s200/Hyperlink.jpg" /></a><br />
</div>Intrigued by the question from my friend, how do I create a script to automatically display links in the post article if there is a URL using PHP? For example, suppose I wrote the following string in the form:<br />
<br />
"Hello .. always visit http://cupu-blagu.blogspot.com to get info about PHP programming" <br />
<br />
Well .. once submitted, it will automatically text 'http://blog.rosihanari.net' contained in the above string will become a link automatically without our html tags to link <a href="…"> ... </ a> on URL. To more easily, may be more comfortable if I call it with 'auto hyperlink' okay...<br />
<br />
<a name='more'></a><br />
<br />
If you are using Wordpress, then this hyperlink auto automatically occur on the comment. But, what if we want to make our own auto hyperlink? Well...it's quite easy, so...keep reading this article until the end.<br />
<br />
<span id="result_box"><span style="background-color: white;" title="Kita dapat membuat script auto hyperlink di atas dengan menggunakan PHP.">We can make the script auto hyperlink above by using PHP. </span><span title="Bagaimana dengan idenya?">What about the idea? </span><span style="background-color: white;" title="Idenya adalah langkah pertama kita pisah atau split terlebih dahulu string aslinya ke dalam substring berdasarkan karakter spasinya.">The idea is the first step we separate or split the original string prior to the substring based on the character of spaces.</span></span><br />
<br />
<span id="result_box"><span style="background-color: white;" title="Sebagai contoh, misalkan ada string berikut ini:">For example, suppose there is the following string:<br />
<br />
</span><span style="background-color: white;" title="“http://cupu-blagu.blogspot.com site is really cool.”">"http://cupu-blagu.blogspot.com site is really cool."<br />
<br />
</span><span style="background-color: white;" title="Bila kita split string tersebut ke dalam substring berdasarkan karakter spasi, maka akan kita dapatkan substring sbb:">If we split the string into the substring based on a space character, the substring will we get the following:<br />
<br />
</span><span style="background-color: white;" title="Substring ke-0 : http://cupu-blagu.blogspot.com">Substring to-0: http://cupu-blagu.blogspot.com<br />
</span><span title="Substring ke-1 : site">Substring to-1: site<br />
</span><span title="Substring ke-2 : is">Substring to-2: is<br />
</span><span title="Substring ke-3 : really">Substring to-3: really<br />
</span><span title="Substring ke-4 : cool">Substring to-4: cool<br />
<br />
Thus, in total there are 5 substring. Then, for each substring, we check that starts with 'http://'. If there substring that begins with 'http://' then the substring will be direplace with<br />
<br />
</span></span><br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<a href="substring">substring</a><br />
</td></tr>
</tbody></table><br />
Thus, the result string after replacing process complete is<br />
<br />
<div style="height: 55px; overflow: scroll; padding: 2px; width: 500px;"><table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<a href="http://cupu-blagu.blogspot.com">http://cupu-blagu.blogspot.com</a> site is really cool<br />
</td></tr>
</tbody></table></div><br />
Therefore, the replacing process should not be applied to the only pieces of 'http://' substring.<br />
<br />
You should understand now. Well ..now we can create the PHP script as the implementation of the ideas above. Here is the script :<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: red;"><?php<br />
</div><br />
<div style="color: #e69138;">// original string<br />
</div>$string = <span style="color: #cc0000;">"Example some site http://cupu-blagu.blogspot.com and http://"</span>;<br />
<br />
<div style="color: #e69138;">// splitting process to substring<br />
</div>$break = <span style="color: blue;">explode</span>(<span style="color: #cc0000;">" "</span>, $string);<br />
<br />
<div style="color: #e69138;">// replacing process<br />
</div>for ($i=<span style="color: red;">0</span>; $i<=<span style="color: blue;">sizeof</span>($break)-<span style="color: red;">1</span>; $i<span style="color: blue;">++</span>)<br />
{<br />
if ((<span style="color: blue;">substr</span>($break[$i], <span style="color: red;">0</span>, <span style="color: red;">7</span>) <span style="color: blue;">==</span> <span style="color: #cc0000;">'http://'</span>) <span style="color: blue;">&&</span> ($break[$i] <span style="color: blue;">!=</span> <span style="color: #cc0000;">'http://'</span>))<br />
$string = <span style="color: blue;">str_replace</span>($break[$i], <span style="color: #cc0000;">"<a href='"</span>.$break[$i].<span style="color: #cc0000;">"'>"</span>.$break[$i].<span style="color: #cc0000;">"</a>"</span>, $string);<br />
}<br />
<br />
<span style="color: blue;">echo</span> $string;<br />
<div style="color: red;">?><br />
</div></td></tr>
</tbody></table><br />
The results of the above script looks like below.<br />
<br />
Example some site <a href="http://cupu-blagu.blogspot.com/">http://cupu-blagu.blogspot.com</a> and http://<br />
<br />
Quite easy right? The script above is only a sample script, where the string input not included from a form. Well .. You can modify the script above, so the input string will be included from a form. Just feel free to ask. If you like this tutorial please make a comment here :DAndar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com3tag:blogger.com,1999:blog-109022977661830431.post-66380443852731082302010-01-10T10:27:00.003+07:002010-01-10T10:31:17.126+07:00The 7 Key Aspects of a Successful Blog<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/01/7-key-aspects-of-successful-blog.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="The 7 Key Aspects of a Successful Blog" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkXPU53T3Vzjt1tZ1kdfcg2itTEWbmic0XlttuGaaTPeZVQrCfSxB_UOTAyNNACTV-7b7Y3btOl2zZvJt-PUb-5uqHUcjDY3iKYZTXgbBdGvp0PDP-lydD9LlK6_COzGbPYFfxEuvFoS5O/s200/success2.jpg" title="The 7 Key Aspects of a Successful Blog" /></a><br />
</div><br />
The 7 Key Aspects of a Successful Blog include:<br />
1. Content & Copywriting<br />
2. Design<br />
3. Search Engine Optimization<br />
4. Development<br />
5. Social Media Marketing<br />
6. Digital Advertisement<br />
7. Multimedia<br />
<br />
Quality content, clean web development and engaging design are important from the birth (or rebirth) of our website. <a href="http://en.wikipedia.org/wiki/Search_engine_optimization">Search engine optimization</a> (SEO) acts as a crucial part in most central aspects, but particularly when it comes to design and content. SEO content is made in a way that lets online searchers to easily find your website thru search engines.<br />
<br />
SEO must be implemented when writing the Title, Description and Keywords Tags of your website. Every web page on your site should have an unique title and description that clearly illustrates the content of the page. This shows up as the text on a search engine results page and explains to online searchers what your website has to offer.<br />
<a name='more'></a><br />
Social Media Marketing (SMM) refers to the networks as well as blogs and use of social media blog , online communities and other internet media platforms for the purpose of sales, marketing, PR and customer relations. Popular Social Media platforms include Facebook, Myspace, Twitter, YouTube and LinkedIn.<br />
<br />
Whether you are advertising on Google, Facebook, or your local newspaper website, your Ad content and graphics must also utilize the concept of SEO to attract visitors. PPC or Pay per click advertisement is now a affordable and popular form of Internet advertisement being adopted by companies of all sizes. PPC allows the advertisement company to pay only when an online user has clicked on their ad making it an attractive advertising option.<br />
<br />
Finally, the use of web-based multimedia such as sound, video and animation can make a huge impact on a visitor’s experience. Multimedia helps to make a memorable and engaging experience for online users, which positively influences your site traffic, which includes new and returning visitors.Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com4tag:blogger.com,1999:blog-109022977661830431.post-26731138779934675982010-01-06T12:51:00.003+07:002010-01-06T13:38:07.528+07:00Formatting numbers with PHP function<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/01/formatting-numbers-with-php-function.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid2RrgiRt6VDueEpBIMfTJgi4cwFhvzSAn-GwteuL2xtLjwv4G5FMp1Za0Rte_F4L5nZAZVYx2qJ8RAshBRNkGEtI2Q-tWuQqpfYM6RonJz7iroW5OHgy6kdlb4Rk31GxkbebbGa49KMtR/s200/number.jpg" width="200" alt="Formatting numbers with PHP function" /></a><br />
</div>Hi coding freak...back with PHP tutorial again and again :D. I make this PHP tutorial inspired by a question from a friend. Suppose you have a number 123456789. And you want to display it in the format 123,456,789 (groups per thousand). Normally the number of such formats are used in display applications related to finance. How do we create one? Well .. in PHP, this is not a problem because there are function number_format () that you can use to set the format of these numbers.<br />
<br />
<br />
Want to know the details of how its use? Read this article until the end.<br />
<br />
Before I give examples how to use it, it's good to you to know the syntax number_format () first. The syntax of this function is as follows:<br />
<br />
number_format (n [, x [, y, z]);<br />
<br />
With the parameter n is the number that will be formatted (the type is float or real, may also integers), x is the number of decimal digits in the decimal point (for real numbers), y is the string as a decimal separator, and z is the string as a group separator per thousand.<br />
<br />
If only the parameter n is used, then the numbers will be formatted with no decimal places and groups of thousands separated by ",".<br />
<br />
If only the parameters n and x are used, then the numbers will be formatted with the decimal separator shape "." And the group of thousands separated by ",".<br />
<br />
And if the four parameters are used, then the numbers will be formatted with the decimal separator and the y are separated by thousands of string written according to the parameters z.<br />
<br />
Here are some examples of the use of different parameters and its appearance.<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: red;"> <?php<br />
</div><br />
$number = 123456789.12345;<br />
<br />
<div style="color: #e69138;">// display 123,456,789<br />
</div>$bil = number_format($number); <br />
echo $bil."<br>";<br />
<br />
<div style="color: #e69138;">// display 123,456,789.12<br />
</div>$bil = number_format($number, 2); <br />
echo $bil."<br>";<br />
<br />
<div style="color: #e69138;">// display 123.456.789,12<br />
</div>$bil = number_format($number, 2, ",", "."); <br />
echo $bil."<br>";<br />
<br />
<div style="color: #e69138;">// display 123#456#789-12<br />
</div>$bil = number_format($number, 2, "-", "#"); <br />
echo $bil."<br>";<br />
<br />
$bil = number_format($number, 0, ",", "."); <br />
echo "Rp. ".$bil.",-"; // display Rp. 123.456.789,-<br />
<br />
<div style="color: red;">?><br />
</div></td></tr>
</tbody></table><br />
Easy right?<br />
<br />
You can download this tutorial <a href="http://www.ziddu.com/download/8037104/FormattingNumberswithPHPfunction.pdf.html">here</a>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-76570225858377979742010-01-04T06:25:00.004+07:002010-01-06T09:05:09.408+07:00How to create simple password generator using PHP<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2010/01/how-to-create-simple-password-generator.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="How to create simple password generator using PHP" border="0" height="193" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdjpQqXG_qlVMz10kI051E2MJL0cDFzvBu6gMjWwD7zFRL8B3I2s3mHcfekg5X7LnQSEsNkVIPazQ9JSudlnriP16W8Q9VpUIr8RWehBmU_NIcZkj_5wB_dUUV0PXzpZ0YP_2MnZFCwl7S/s200/numbers.jpg" width="200" /></a><br />
</div><span id="result_box"><span style="background-color: white;" title="Hi semua.">Hi coding freak. </span><span title="Sudah lama sekali rasanya tidak bertemu.">It's been a long time no see. </span><span style="background-color: white;" title="Sebelumnya penulis minta maaf terlebih dahulu atas keterlambatan ketersediaan artikel-artikel baru tentang PHP.">Previous authors apologize in advance for late availability of new articles about PHP tutorial. </span><span style="background-color: white;" title="Sebagian besar dikarenakan kesibukan saya di dunia nyata yang membutuhkan perhatian khusus.">Mainly due to my busy in the real world that need special attention. </span><span style="background-color: white;" title="Mohon dimaklumi.">Please understandable. </span><span style="background-color: white;" title="saya juga manusia, punya rasa dan punya hati...">I am also human, have a sense and have a heart ... </span><span style="background-color: white;" title=":D">: D</span></span><br />
<br />
<span id="result_box"><span style="background-color: white;" title="Alasan mengapa saya mengangkat topik ini untuk dijadikan judul adalah, terkadang beberapa user maupun web administrator kesulitan membuat password yang cukup baik, dan kebanyakan juga mencari-cari password yang nantinya diharapkan password tersebut jauh dari kegiatan yang buruk seperti cracking password dengan metode brute force ataupun pencocokan">The reason why I raise this topic to become the title is, sometimes multiple users and web administrators have a trouble to create</span></span><br />
<a name='more'></a><span id="result_box"><span style="background-color: white;" title="Alasan mengapa saya mengangkat topik ini untuk dijadikan judul adalah, terkadang beberapa user maupun web administrator kesulitan membuat password yang cukup baik, dan kebanyakan juga mencari-cari password yang nantinya diharapkan password tersebut jauh dari kegiatan yang buruk seperti cracking password dengan metode brute force ataupun pencocokan">a good password, and most of them are also looking for a password that will expect their password away from bad activities like cracking passwords with brute-force method or matching </span><span title="password dengan metode dictionary.">password dictionary method. </span><span style="background-color: white;" title="Hal yang akan saya jelaskan disini adalah bagaimana membuat password yang aman, walaupun seperti yang pernah saya katakan sebelumnya “Tidak ada yang aman 100% dalam dunia maya.” Semua memiliki resiko tentunya.">Thing that I will explain here is how to create secure passwords, though as I have said before "There is no 100% safe in cyberspace." Everything has a risk of course. </span><span style="background-color: white;" title="Dan untuk implementasinya itu semua tergantung kreatifitas anda dalam menggunakan password generator.">And to implement it all depends on your creativity in using the password generator. Now let's begin this PHP tutorial :D</span></span><span id="result_box"><span style="background-color: white;" title=":D"> </span></span><br />
<span id="result_box"><span style="background-color: white;" title=":D"><br />
</span></span><br />
<span id="result_box"><span style="background-color: white;" title=":D">The full script as follows:</span></span><br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
// password.gen.php<br />
<br />
<div style="color: #cc0000;"><?php<br />
</div><br />
<br />
function make_password($num_chars) {<br />
if ((is_numeric($num_chars)) && ($num_chars >= 6) && (! is_null($num_chars))) {<br />
<br />
$password = "";<br />
$accepted_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYZ1234567890~!@#$%^&*+|}{:>?<";<br />
<br />
srand(((int)((double)microtime()*1000003)) );<br />
<br />
for ($i=1; $i<=$num_chars; $i++) {<br />
$random_number = rand(0, (strlen($accepted_chars) -1));<br />
$password .= $accepted_chars[$random_number] ;<br />
}<br />
<br />
return $password;<br />
}<br />
<br />
else<br />
{<br />
echo "Password must be more than 6 letters";<br />
}<br />
}<br />
<br />
<div style="color: #cc0000;">?><br />
</div><br />
<html><head><title>Password Generator</title></head><br />
<body><br />
Your password : <br><font style='BACKGROUND-COLOR:yellow'><b><br />
<span style="color: #cc0000;"><?php</span> echo make_password($_POST['size']); <span style="color: #cc0000;">?></span><br />
</b></font><br><br />
<form action="<span style="color: #cc0000;"><?php</span> echo $_SERVER['PHP_SELF']; <span style="color: #cc0000;">?></span>" method="POST"><br />
<input type="text" name="size" value="<span style="color: #cc0000;"><?php</span> echo $_POST['size']; <span style="color: #cc0000;">?></span>" ><br />
<input type="submit" name="submit" value="Create!!"><br />
</form><br />
</body><br />
</html><br />
</td></tr>
</tbody></table><br />
<br />
<br />
Now i will try to explain some of the script above<br />
<br />
<br />
<span style="color: blue;">if ((is_numeric ($ num_chars)) & & ($ num_chars> = 6) & & (! is_null ($ num_chars))) (</span><br />
If the input entered by the user is a number / numbers and numerical characters number more than 6 digits then...<br />
<br />
<span style="color: blue;">$ password = "";</span><br />
<br />
<span style="color: blue;">$ accepted_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV WYZ1234567890 ~!@#$%^&*+|}{:>?<";</span><br />
Prepare characters, numbers and special characters that will be used as a password.<br />
<br />
<span style="color: blue;">srand (((int) ((double) microtime () * 1000003)));</span><br />
Then do the randomization possibilities of characters, numbers, or special characters that later on took a part of the password.<br />
<br />
<span style="color: blue;">for ($ i = 1; $ i <= $ num_chars; $ i + +)</span><br />
<span style="color: blue;">(</span><br />
Perform as many repetitions depending from the input numbers...<br />
<br />
<span style="color: blue;">$ random_number = rand (0, (strlen ($ accepted_chars) -1))</span><br />
Create a randomized selection of characters, numbers, special characters, from a collection of characters that had been prepared earlier ...<br />
<br />
<span style="color: blue;">$ password .= $ accepted_chars [$ random_number];</span><br />
Enter the characters one by one taken into variable $ password<br />
<br />
<span style="color: blue;">)</span><br />
<br />
<br />
That's all about this PHP tutorial...quite easy right? you should try it :D<br />
<br />
If there is a question, just feel free to ask<br />
<br />
You can download this tutorial <a href="http://www.ziddu.com/download/8034555/HowtocreatesimplepasswordgeneratorusingPHP.pdf.html">here</a>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com1tag:blogger.com,1999:blog-109022977661830431.post-7830657222836678362009-12-30T07:46:00.003+07:002010-01-04T07:36:23.922+07:00Green websites, save the environment online !<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/green-websites-save-environment-online.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Green websites, save the environment online" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKG666IJvPEktrFB_gkYQ_OD2J1DJUAdVuqg2CNkdX85Y6qoI20koXvhM-1OjTicNUcz1Hlp5Kz-T0mBcPIjsfkVNVvoJ-VCP8A1RE0jsKIZdHPjbsiPaESmDtnKSDiBSqro8QDeupjsQP/s200/green-website.png" alt="Green websites, save the environment online !"/></a><br />
</div><div style="text-align: justify;">Have you ever thought how much CO2 you emit during web surfing? Every minute of thousands of visitors, spending time browsing to a website averages about 1.2kg of CO2 emitted into our atmosphere.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">At this time, maybe it's not a huge amount for an individual Web site, but imagine if you consider the amount of time you use the internet along with others, how much CO2 is the waste? Certainly be very much.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">With so many issues of global warming currently available, what can we do?<br />
</div><a name='more'></a><br />
<div style="text-align: justify;">One way is to create a Green Website. How? Simple way is like this... when we're browsing the Internet, sometimes we like to let the computer idle, either to the toilet, eating, make a phone call and other thing. When the computer idle, much energy will be wasted. To minimize the energy wasted when the computer abandoned, our website should be installed Standby Engine provided by <a href="http://www.onlineleaf.com/" rel="nofollow" target="_blank">onlineleaf.com</a>. Maybe some of you already knowing about this, but i just wanna share with everyone who didn't know about this.<br />
</div><br />
Preview:<br />
<a alt="Standby mode preview" href="http://img406.imageshack.us/i/standby.jpg/" rel="nofollow" target="_blank"><img border="0" src="http://img406.imageshack.us/img406/3394/standby.th.jpg" /></a><br />
<br />
<div style="text-align: justify;">This standby engine is to deliver a fully functional and simple way to help your website run requiring less energy to generate. It hides heavy animations, covers the window in dark colors (as these, in many cases are less energy consuming) and pauses heavily running background processes.<br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">This is an advertising? Of course not! Here, I just want to spread a good thing. I hope these small changes can make a good impact for all of us. So what are you waiting for? Make your green website now...! For more info please visit <a href="http://www.onlineleaf.com/" rel="nofollow" target="_blank">onlineleaf.com</a><br />
</div>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com6tag:blogger.com,1999:blog-109022977661830431.post-90954386238373592592009-12-26T22:45:00.002+07:002010-01-04T07:35:59.483+07:00How to create Admin page with 1 IP access<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/how-to-creating-admin-page-with-1-ip.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnyukw8R1MkIVIA5tAroL7x_H-DknYYgAxPApEOOqF103PFTrmq9ziDNwjSF-NDpmA_pYWVZ16g1UhQvWIVhwVUfF0pBUYCLoqtRNZx8dRYusx0ZAZX2BCSmY9VLomQKdnrRtKIXoH81_n/s320/admin_or_not.jpg" alt="How to create Admin page with 1 IP access"/></a><br />
</div>Hi coding freak...back again with me at php tutorial. In this php tutorial i will show you how to make out website to more secure. Each website must have the admin page. Page admin here means the web pages that are used by webmasters to manage content and web interface. Surely we would not want if the admin page is known by other parties. Using your username and password would be fine, but didn't rule out other users will break into the security log that you created.<br />
<br />
<span id="result_box"><span style="background-color: white;" title="Selain menggunakan username dan password, ada cara lain untuk mengamankan halaman admin.">In addition to using the username and password, there are other ways to secure the admin page. </span><span style="background-color: white;" title="Yaitu dengan membatasi IP Address.">Namely by limiting the IP Address. </span><span style="background-color: white;" title="Jadi hanya IP Address tertentu yang dapat membuka halaman admin ini.">So only certain IP address that can open the pages of this admin. </span><span style="background-color: white;" title="Ah, setelah cerita panjang, pastinya anda sudah tidak sabar ingin mengetahui bagaimana cara membuat halaman admin yang aman.">Ah, after a long story, of course you can not wait to find out how to create a secure admin page.<br />
<br />
</span><span style="background-color: white;" title="Pertama-tama, anda harus mengetahui IP Address anda.">First of all, you need to know your IP address. </span><span style="background-color: white;" title="Untuk mengetahuinya, anda dapat menggunakan perintah berikut :">To find out, you can use the following command:</span></span><br />
<a name='more'></a><span id="result_box"><span style="background-color: white;" title="Untuk mengetahuinya, anda dapat menggunakan perintah berikut :"></span></span><br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<span style="color: #cc0000;"><?php</span><br />
print ?Your IP : ?.$HTTP_SERVER_VARS['REMOTE_ADDR'];<br />
<span style="color: #cc0000;">?></span><br />
</td></tr>
</tbody></table><br />
<br />
If so, then in the admin section, (suppose you put in the folder? Administrator /index.php?), You type the following command at the beginning of the script:<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: #cc0000;"><?php<br />
</div> $ip = ?127.0.0.1? // <-- IP which has been noted previously<br />
if($HTTP_SERVER_VARS['REMOTE_ADDR'] != $ip) {<br />
header(?location: ../index.php);<br />
} else {<br />
Setcookie(?ip?,$ip); }<br />
<div style="color: #cc0000;">?><br />
</div></td></tr>
</tbody></table><br />
<br />
Then, for every other web page, (which is also found in the administrator folder) you add the following command:<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: #cc0000;"><? php<br />
</div> $ ip =? $ _COOKIE [? ip?];? / / Call cookies ip<br />
if ($ HTTP_SERVER_VARS [ 'REMOTE_ADDR']! = $ ip) (<br />
print? You don't have access to this page .....!!!!?;<br />
) Else (<br />
/ / Display your menu<br />
)<br />
<div style="color: #cc0000;">?><br />
</div></td></tr>
</tbody></table><br />
<br />
Don't forget to do the call or session cookies for the username and password you created.<br />
The above examples are only for calling cookies to IP Address. You can also create more than 1 IP address that can access your admin page. Of course by using the database.<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
CREATE TABLE `my_web`.`tb_admin` (<br />
`id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,<br />
`ip` VARCHAR( 30 ) NOT NULL<br />
) ENGINE = MYISAM<br />
<br />
INSERT INTO `my_web`.`tb_admin` (<br />
`id` ,<br />
`ip`<br />
)<br />
VALUES (<br />
NULL , '127.0.0.1'<br />
);<br />
<br />
<b><u>Config.php</u></b><br />
<br />
<div style="color: #cc0000;"><?php<br />
</div>$host = ?localhost?;<br />
$user = ?root?;<br />
$pass = ??;<br />
$connect = mysql_connect($host,$user,$pass) or die (?Please check your host,username or password..?);<br />
$pilih_db = mysql_select_db(?my_web?);<br />
<div style="color: #cc0000;">?><br />
</div></td></tr>
</tbody></table><br />
<br />
<br />
Then in the index.php that located in the folder administrator, type the following script:<br />
<br />
<u><b>index.php</b></u><br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: #cc0000;"><?php<br />
</div> Include(?config.php?);<br />
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];<br />
$valid_ip = mysql_query(?SELECT * FROM tb_admin WHERE ip=?$ip??);<br />
if (!= $valid_ip) {<br />
print ?You don't have access to this page !?;<br />
} else {<br />
// Display your menu<br />
}<br />
<div style="color: #cc0000;">?><br />
</div></td></tr>
</tbody></table><br />
Although in this way will not make our website 100% secure, but at least we have made efforts to secure our website.<br />
<br />
Good luck ....Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com2tag:blogger.com,1999:blog-109022977661830431.post-76075358765661293722009-12-21T23:58:00.003+07:002010-01-04T07:35:30.017+07:00How to create the best one possible blog<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/how-to-create-best-one-possible-blog.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT4zw8hyyEkgSHzOqxTqNvGfo0b7c8cYotVKDIauobTL3t1Gu3eXH_MMobkAiDCm0fPJ-O_IaPCylIRAgihNVgLpB9yo8M_UWX0T9qWMqMvN_LZ4l2Kqb7FKSxxtHhk9Cy92xxAWVlHakF/s200/blog.jpg" width="200" alt="How to create the best one possible blog" /></a><br />
</div><br />
Hi...that's nice that we can meet again. Today I'm going to share with you some of my tips to make the most of your blog and create the best one possible!<br />
<br />
Are you ready?? then see my tips below...<br />
<br />
<b>1. All About the White!</b><br />
Use a white middled background! Why? Because this is a must if you upload a lot of pictures on your blog! You won't get that "white outline" around any pictures because it will blend in with your own background. <br />
<a name='more'></a>Now I do love color myself and have seen some successful colored background blog middles. But if you are new to blogging, save yourself the trouble and use an easy white middled background. The easiest way to achieve this is by selecting Blogger's Minima template.<br />
<br />
<b>2. Keep it Clean and Simple!</b><br />
No one likes clutter! When people come to your blog, they want to be able to see where to go. Put some thought into "organizing" your blog. Where will things go? Are your sidebar items balanced visually? Put a horizontal menu navigation bar at the top of your blog to help your visitors navigate your blog. Make sidebar titles for all your "sections" in your blog. Oh, and don't have too much "stuff" on your blog! The more gadgets you have, the slower your loading page time will be. You can limit your posts per page to make your page load quicker!<br />
<br />
<b>3. It's Okay to be Unique!</b><br />
Your blog should reflect who you are! It's your home on the web. So make it yours! Make it stand out! If you're not sure what you like, check out other blogs that inspire you. Use them as an aid to create something that is you! Select a title. Put some effort into your header (at the top of your page). This is the first thing anyone sees when they visit you. Select a color palette and a theme. Your blog is your masterpiece! So...be creative!<br />
<br />
I hope these tips have answered some of the questions you have been asking!Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-62685963714305773652009-12-18T17:30:00.005+07:002010-01-06T10:13:24.346+07:00Most recommended PTC site<span style="font-size: small;"></span><span style="font-family: Times,"Times New Roman",serif; font-size: small;"></span><br />
<div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: justify;"><span style="font-size: small;"><br />
</span><br />
</div><div class="separator" style="clear: both; font-family: Times,"Times New Roman",serif; text-align: justify;"><span style="font-size: small;"><a href="http://cupu-blagu.blogspot.com/2009/12/most-recommended-ptc-site.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Most recommended PTC site" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7EQx8VGH8dVo-JAQzo-YmZpMvKObbVQ22z7SKOlLTfLMFYf2cVNxP9BewgzVD89BAkZRIPTAcSCNlU4COYI3zDzfY9e3FDFCx-ozNZk6K8w5p3sqIJ7FktVG1dVpq0kF-mMS95WYp_DxE/s200/like_this.jpg" width="200" /></a></span><br />
</div><div style="font-family: Times,"Times New Roman",serif; text-align: justify;"><div style="font-family: Times,"Times New Roman",serif;"><span style="font-size: small;">If you are looking to <b>earn cash online</b> safe and easy, this is my most recommended <b>get paid to clicks</b> list for you. The PTC list above is really recommended because they are not a scam, and they are really pay you ! The payment proof i will post later. Now check it out all of them :</span><br />
</div><br />
<br />
</div><hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.neobux.com/?r=Darkenfaith" target="_blank">1. Neobux.com</a><br />
</td> </tr>
<tr> <td><br />
<div style="text-align: justify;"><span style="font-size: small;">The best PTC!! They never failed to pay its members. Auto payment! Just click cashout & less than 1 second money had transfered into my account. WOW! So join <a href="http://www.neobux.com/?r=Darkenfaith" target="_blank">here</a>. PTC TOP OF THE Wolrd</span><br />
</div></td> <td valign="top" width="252"><br />
<a href="http://www.neobux.com/?r=Darkenfaith" target="_blank"><img border="0" height="80" src="http://images.neobux.com/imagens/banner1.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.donkeymails.com/pages/index.php?refid=darkenfaith" target="_blank">2. DonkeyMails.com</a> <br />
</td> </tr>
<tr> <td style="font-family: Times,"Times New Roman",serif;"><span style="font-size: small;"></span><br />
<ul><span style="font-size: small;">
<li> FREE Membership</li>
<li>No minimum LibertyReserve Payout!</li>
<li>Low $0.50 , PerfectMoney and $0.10 Routepay Payout</li>
<li>Low $1 , Paypal and Alertpay and $2.50 Solidtrustpay Payout</li>
<li>Manual Surf with Cash and Credit prizes (win up to $25 Cash!)</li>
<li>Earn extra money playing games</li>
<li>High Rewarding USA/Search Country Signup Offers!</li>
<li>Earn Cash Reading Our Daily eMails</li>
<li>Get Paid for Clicking on ads</li>
<li>Get Paid for sign-ups more then $250 to earn + Daily New offers!</li>
<li>Complete tasks with the toolbar and earn money</li>
<li>Payouts will be made each 2 weeks!</li>
<li>Upgrade starting at only $7.50</li>
<li>Get Paid To Promote $0.50 per 1,000 Credits!</li>
</span></ul><span style="font-size: small;"></span><br />
<span style="font-size: small;"><a href="http://www.donkeymails.com/pages/index.php?refid=darkenfaith" target="_blank">Click here</a> to join</span><br />
</td> <td valign="top" width="252"><a href="http://www.donkeymails.com/pages/index.php?refid=darkenfaith" target="_blank"><img alt="DonkeyMails.com: No Minimum Payout" border="0" height="80" src="http://www.donkeymails.com/banner1.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.waoindia.com/register.php?r=darkenfaith" target="_blank">3. WAOINDIA.com</a><br />
</td> </tr>
<tr> <td><div style="text-align: justify;">At waoIndia.com, you get paid to click up to "$0.15" on ads and visit websites. The process is easy! You simply click a link and view a website for a few seconds to earn money. You don't need any skills. This is because all you need to do is visit the sites we provide you with. You can earn even more by referring friends. Payment requests can be made every day and are processed through PayPal & Cheque. For only premium members we can send payment through Alertpay also. The minimum payout is $199.00<br />
</div><br />
<a href="http://www.waoindia.com/register.php?r=darkenfaith" target="_blank">Click here</a> to join<br />
</td> <td valign="top" width="252"><br />
<a href="http://www.waoindia.com/register.php?r=darkenfaith" target="_blank"><img border="0" height="80" src="http://www.waoindia.com/add/wao3.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.trekpay.com/?ref=115041" rel="nofollow" target="_blank">4. Trekpay.com</a><br />
</td> </tr>
<tr> <td><br />
Get Paid every week!!<br />
<a href="http://www.trekpay.com/?ref=115041" rel="nofollow" target="_blank">Click here</a> to join.<br />
</td> <td valign="top" width="252"><a href="http://www.trekpay.com/?ref=115041" rel="nofollow" target="_blank"><br />
<img alt="most recommended PTC site" border="0" height="80" src="http://www.trekpay.com/banners/trekpay_60x468.jpg" width="250" /><br />
</a><br />
</td> </tr>
</tbody></table><br />
<br />
<hr style="border: thin dotted;" /><br />
<br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.omnibux.com/?r=Darkenfaith" target="_blank">5. Omnibux.com</a><br />
</td> </tr>
<tr> <td><ul><li>$0.01 per ad click</li>
<li>$0.005 per referral ad click</li>
<li>Graphs of click statistics along with referral statistics</li>
<li>The option to buy referrals from OmniBux Directly</li>
<li>The ability to cashout to paypal, or alertpay, instantly, with a minimum of $2</li>
</ul><a href="http://www.omnibux.com/?r=Darkenfaith" target="_blank">Click here</a> to join, and enjoy the cash!<br />
</td> <td valign="top" width="252"><a href="http://www.omnibux.com/?r=Darkenfaith" target="_blank"><img border="0" height="60" src="http://www.omnibux.com/style/banners/animation1.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.palmbux.com/register.php/darkenfaith.html" rel="nofollow" target="_blank">6. Palmbux.com</a><br />
</td> </tr>
<tr> <td><ul><li>$ 0.01 per click</li>
<li>$ 0.05 per referral click</li>
<li>$ 0.015 per premium click</li>
<li>$ 0.01 per premium referral click</li>
<li>Low $ 2 minimum payout</li>
</ul><a href="http://www.palmbux.com/register.php/darkenfaith.html" rel="nofollow" target="_blank">Click here</a> to join<br />
</td> <td valign="top" width="252"><a href="http://www.palmbux.com/register.php/darkenfaith.html" rel="nofollow" target="_blank"><img border="0" height="60" src="http://www.palmbux.com/images/banners/banner.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://isabelmarco.com/?r=darkenfaith" target="blank">7. IsabelMarco.com</a><br />
</td> </tr>
<tr> <td><ul><li>$ 0.01 per click</li>
<li>$ 0.005 per referral click</li>
<li>$ 0.015 per premium click</li>
<li>$ 0.01 per premium referral click</li>
<li>Low $ 2 minimum payout</li>
</ul><a href="http://isabelmarco.com/?r=darkenfaith" target="blank">Click here</a> to join.<br />
</td> <td valign="top" width="252"><a href="http://isabelmarco.com/?r=darkenfaith" target="blank"><br />
<img height="80" src="http://isabelmarco.com/banners_mine/frauro.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.upbux.com/r?r=balakadut" target="_blank">8. Upbux.com</a><br />
</td> </tr>
<tr> <td><ul><li>Earn up to $0,02 per click</li>
<li>Earn up to $0,01 per referrals click</li>
<li>Full control of your account settings</li>
<li>Instant Payments</li>
</ul><a href="http://www.upbux.com/r?r=balakadut" target="_blank">Click here</a> to join.<br />
</td> <td valign="top" width="252"><a href="http://www.upbux.com/r?r=balakadut" target="_blank"><img border="0" height="80" src="http://www.upbux.com/banner.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<hr style="border: thin dotted;" /><br />
<table border="0" style="width: 540px;"><tbody>
<tr> <td colspan="2"><a href="http://www.buxp.net/?r=darkenfaith" target="_blank">9. Buxp.net</a><br />
</td> </tr>
<tr> <td><ul><li>$ 0.01 per click</li>
<li>$ 0.05 per referral click</li>
<li>$ 0.015 per premium click</li>
<li>$ 0.01 per premium referral click</li>
<li>Low $ 7.99 minimum payout</li>
</ul><a href="http://www.buxp.net/?r=darkenfaith" target="_blank">Click here</a> to join.<br />
</td> <td valign="top" width="252"><a href="http://www.buxp.net/?r=darkenfaith" target="_blank"><img alt="Join now!" border="0" height="80" src="http://buxp.net/banner1.gif" width="250" /></a><br />
</td> </tr>
</tbody></table><br />
<br />
<hr style="border: thin dotted;" />Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com1tag:blogger.com,1999:blog-109022977661830431.post-81960635063537345522009-12-18T17:27:00.003+07:002010-01-04T07:33:36.637+07:00How not to get scammed<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/how-not-to-getting-scammed.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpxv88ylMYDX4mi6AIIYZlwMm3-wZHtaHUJHJhruFXUBIHX4l8S-9ScgRQHwYYQHKpaGTRZhdSUM05QKpEpBQQQJd7c9pFrfPzEXp0lzmIM3fXRjnGUX0sVV5twOslEZbLTS_WIBBdLfsh/s320/anti-scam.gif" alt="How not to get scammed" /></a><br />
</div><span id="result_box"><span style="background-color: white;" title="Mungkin banyak dari kalian yang berfikir, bagaimanakah kita tahu kalau website itu tidak akan menipu kita?">Perhaps many of you are thinking, how do we know if the website would not deceive us? </span><span style="background-color: white;" title="atau mungkin, bagaimana caranya agar kita tidak terkena scam?">or maybe, how do we not get scam?</span></span> <br />
<br />
Here are a few simple things to prevent getting scammed. Follow them closely, they are very accurate and will help you in the long run.<br />
<br />
<b></b><br />
<a name='more'></a><b> </b> <b></b> <b><span style="text-decoration: underline;"></span></b><br />
<span style="text-decoration: underline;">1.</span><span style="text-decoration: underline;"> <i>Don’t Join Non-Customized<b> Paid To Click</b> <b>Sites</b></i></span> When finding a new <b>Paid To Click</b> <b>site</b>, look at the layout, is it good, or bad? This may not seem like a key factor, but it most definitely is. If the layout is very bad(visually), they probably didn’t put much time into it. This means they either can’t <b>design</b>, or just don’t care. Also if they are running the same old “<b>bux</b>” layout with a new <b>banner,</b> keep away. You want to find a <b>Paid To Click</b> <b>site</b> that is custom and in it for the long haul. If they were in it for the long haul they would make their <b>Paid To Click</b> <b>site</b> <b>unique</b>.<br />
<br />
<span style="text-decoration: underline;">2.</span><span style="text-decoration: underline;"> <i>Don’t Join<b> Paid To Click</b><b>Site</b>s Of Past <b>Scammers</b></i></span> If the <b>Paid To Click</b> <b>site owner</b> is known to of <b>scammed</b> in the past, don’t join. The <b>Paid To Click</b> <b>site</b> <b>owner</b> may have an excuse or decided to “change his ways”, but don’t buy it. If they have <b>scammed</b> once, they will <b>scam </b>again, don’t take the risk, ever. <br />
<br />
<b><span style="text-decoration: underline;">3</span></b><b><span style="text-decoration: underline;">.</span></b><span style="text-decoration: underline;"> <i>Don’t <b>Purchase</b> Anything <– <b>Important!</b></i></span> If you find a new <b>Paid To Click</b> <b>site</b> that seems to look okay and your considering <b>purchasing</b> something, don’t. If the <b>Paid To Click</b> <b>site</b> is brand new with no real userbase or even payment proofs, don’t join. Even if you hear people sing praises about getting payments, don’t. Most scam <b>Paid To Click</b> <b>site</b>s <b>pay </b>out tons and tons quickly right away, then it just stops. Let the <b>Paid To Click</b> <b>site</b> be <b>online</b> for at least 1.5-2 months before <b>purchasing </b>to be <b>safe.</b> <br />
<br />
<span style="text-decoration: underline;">4.</span><span style="text-decoration: underline;"> <i>Don’t Use <b>Paid To Click</b> <b>Sites</b> Without <b>Support/Forums</b></i></span> If the <b><i>Paid To Read</i></b><i><span style="text-decoration: underline;"> </span></i><b>site</b> doesn’t have a <b>good support system</b> or <b>forums</b> where an <b>admin</b> is active, don’t use it. This is the key way users and admins speak to each other and if it doesn’t exist, they don’t care. You should be able to get in contact with the owner within 48 hours at any time. Hope this helps those looking to invest/join in <b>Paid To Click</b> <b>sites.</b> If you follow these rules religiously you will never be <b>scammed,</b> ever.<br />
<br />
So...if you ready to join....see the list of my recommended PTC site hereAndar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-84332129471649031362009-12-18T17:26:00.002+07:002010-01-04T07:32:56.502+07:00What is Paid-To-Click (PTC)?<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/what-is-paid-to-click-ptc.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNtgP6QCq9RU_hOGOJi0JdhXbZ0oKvQIKyVWJmVTzs7BAGrDBAmUUk7IbiAyc4_I-ycd9dIzypB6mr0OUBPRemncwl7ohqH880Fzo9FZ-ZXZLNwQyWVQuv0xwhE69ome9zgCcvZG-Z7ENT/s200/ptc-paid-to-click.jpg" width="200" alt="What is Paid-To-Click (PTC)?" /></a><br />
</div><div style="text-align: justify;"> <b>Paid-To-Click</b> commonly known as “<b>PTC</b>” is a method of earning <b>money online</b> by reading emails and clicking on the “<b>paid</b>” link. “<b>Paid</b>” link is a link sent along with the advertisement which pays the members, money or points for reading the email <b>advertisement</b> that is purchased by the programs advertisers. The value of money and points vary from program to program. <b>Paid To Click</b> is an online business model that draws online traffic from people aiming to earn from home. <b>Paid-To-Click</b>, or simply <b>PTC websites</b> act as middlemen between advertisers and consumers; the advertiser pays for displaying ads on the <b>PTC websites</b>, and a part of this payment goes to the viewer when he views the advertisement.<br />
</div><div style="text-align: justify;"><br />
All <b>Pay To Read</b> <b>Programs</b> have “timers” where the member is required to stay on the advertised website for a specific period of time (for example, 10 seconds, 20 seconds etc.), which again, vary from program to program. The <b>member</b> receives credit to his/ her account after the timer runs out with the notification that the member has received credit for the visit. If the member exits from the advertised site before the timer runs out, the member’s account will not receive credit (money/points).<br />
</div><div style="text-align: justify;"><br />
<b>Get Paid To Click Programs</b> or for some people called <b>Get Paid To Read Program (GPTR) </b>are usually free to join and 100% opt in. This means, members do not need to pay any <b>money</b> to join and they are required to sign up with the programs of their choice, on his/ her own accord. However, there are a few paid to read programs which require a membership fee to join.<br />
You can be <b>earning</b> up to $2000 a month or more. You’re not going to become a millionaire but this can turn out to be a good <b>extra income</b>. Plus it only takes about 30 min to 1 hour a day. Nobody said it was easy though… specially when you get started.<br />
</div><div style="text-align: justify;"><br />
Each <b>PTC site</b> has a <b>minimum payout</b> (usually around $10). Once you have reached this limit you can request your <b>money</b>. The money you request is processed through <b>AlertPay</b>, <b>PayPal</b> etc (most of them use <b>AlertPay</b>). You will need to register yourself in any of these to collect your money. It’s absolutely <u>free</u>.<br />
<br />
There are many website that offering us to join <b>PTC Program</b>. Find out the best for you.<br />
</div><div style="text-align: justify;"><br />
But before join any <b>PTC Website</b>, please check this first :<br />
</div><b> * <a href="http://cupu-blagu.blogspot.com/2009/12/things-that-you-may-have-before.html">Things that you may have before entering the Internet Business</a></b><br />
<b> * <a href="http://cupu-blagu.blogspot.com/2009/12/how-not-to-getting-scammed.html">How to not get scamed</a></b><br />
<b> * <a href="http://cupu-blagu.blogspot.com/2009/12/black-list-paid-to-click-website.html">Black list Paid To Click Website</a></b><br />
<br />
And now this is some of my <b>recomended PTC Site</b> :<br />
<br />
<div align="center"><a href="http://www.neobux.com/?r=Darkenfaith"><img border="0" height="60" src="http://images.neobux.com/imagens/banner1.gif" width="468" /></a><br />
</div><br />
<div align="center"><a href="http://www.donkeymails.com/pages/index.php?refid=darkenfaith"><img alt="DonkeyMails.com: No Minimum Payout" border="0" src="http://www.donkeymails.com/banner1.gif" /></a><br />
</div><br />
You may click here for more information about all my <b>recommended PTC site</b>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-25976474319241682372009-12-18T07:00:00.002+07:002010-01-04T07:32:27.030+07:00Some reason why people fail and surrender at internet business<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/some-reason-why-people-fail-and.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJWNaHEaglaRlQ_bkraMMG1o0Xk78O1PAS6gzVsOWcQvM7AR_u_IGRA8mkWM-YOGL8RH_m2bI9-HsGtP8w5IejQ0eoh3jf0Jr9aUSePdj3u5ynFpZrA5_emilf7pnLmEftRwyyBpkL2rsj/s200/failed.gif" width="200" alt="Some reason why people fail and surrender at internet business" /></a><br />
</div>A lot of things and reasons why some people claim failed and surrendered to the <b>internet business</b>. But some of the people reasons that fail and give up on the<b> internet business</b> which I will write in this article later, should no longer be an excuse for you who read this article. Because by knowing some of the people reasons that fail and give up, you can avoid them and anticipate in order not to be a failure reason and give up at <b>internet business</b>.<br />
<br />
Then, what is the reason a person fails and says "give up" on the <b>internet business</b>? If according to my research on some people who fail and give up on the <b>internet business</b>, the reason is as follows :<br />
<a name='more'></a><br />
<br />
1. Many have tried, but the condition not like what we expected. Large<b> income</b> that dreamed for so long, did not come. What happened is expenditures and expenditures that continue to occur. This makes many people become doubt of the existing <b>business</b> on the <b>internet</b>. Is it true that <b>business</b> can make <b>money</b>? And the situation is worsened by the way of thinking of people who believe the discussion in several <b>e-book</b> and books on how to easily get a lot of <b>money</b> on the<b> internet</b>. After seeing just a little trouble on the<b> internet</b>, they immediately confused and chose to give up.<br />
<br />
2. They are usually afraid to start an <b>internet business</b>. They only ask diligently, but after knowing the answers to their questions, they come back asking again but did not immediately start, because in fact they questions already answered.<br />
<br />
3. We have tried, but failed and then quickly gave up. To avoid this one, the thing we need is consistency and eliminate the perception that all business conducted in the<b> internet</b> is instant.<br />
<br />
4. Trauma to the failure. The point is that after they fail, they feel afraid to go back to do business online. For example, when they banned by <b>google</b>, they just gave up and declared failed in the <b>internet business</b>. Though there are still other business he could do.<br />
<br />
That was some failed and surrendered reason to the<b> internet business</b>. Maybe there are a lot more reasons why people choose to no longer do <b>internet business</b>. Either already have a large enough <b>salary</b> in offline <b>business</b> or other reason. Hopefully the above reasons no longer be your excuse for failure and give up on the <b>internet business</b>. Or maybe you have another reasons why you fail in the <b>internet business</b>? please share here :DAndar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-47599283284954652912009-12-17T17:41:00.003+07:002010-01-04T07:32:00.045+07:00Introduction to Making Money Online<div class="separator" style="clear: both; text-align: justify;"><a href="http://cupu-blagu.blogspot.com/2009/12/introduction-to-making-money-online.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Introduction to Making Money Online" border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgGYlPEsk_Q6u52zsr3CDNwLgkJ9eXgKx5ssGVdnMMsw4PEfR0jt3XrjdOUMvSi-XM_OJt1ikPm5_kAdG5tXfuhposl72S6oXbt6rufiXicGLmTSlykcq7NgIrwo8y5tYPYONNFGZg-CuY/s200/success.jpg" width="200" /></a> Finally we meet again, after so long not seen, of course because we are never been met before. How could we meet, because I myself have never showed myself...haha. Maybe next time i will show myself. Allright back to topic, In this article i want to share my experience and knowledge about making money online with minimum investment (like 30 minutes per day of your valuable time, personal computer and reliable internet access). It’s not easy. But if I can do it, then everybody including you can do it too. It could be your best way to start your own internet business, work from home and be your own boss. So don’t worried I will lead you from the easy way to the hard way. There are many way on the internet to get the real money for me and you. <br />
</div><a name='more'></a><div style="text-align: justify;">But now I only want to share a business that will cost you nothing. Yes it’s 100% free business with 100% real money. Have you try Paid To Program ? They are many Paid To Program, such as Paid To Click, Paid To Promote, Paid to Take Survey, Paid To Play game, etc. And of course if you have a website you can monetize your website in many ways, i will read an article about that later :D<br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">Are you ready to make money online? And then let's begin to read the article below...before that, i think you should read article about "<a href="http://cupu-blagu.blogspot.com/2009/12/things-that-you-may-have-before.html">Things that you may have before entering the internet business</a>" first<br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">And also you may check this article :<br />
</div><div class="separator" style="clear: both; text-align: justify;">- <a href="http://cupu-blagu.blogspot.com/2009/12/what-is-paid-to-click-ptc.html">Paid To Click (PTC)</a><br />
</div><span id="goog_1261021631203"></span><span id="goog_1261021631204"></span>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-77319471338994111222009-12-11T15:02:00.001+07:002010-01-04T07:31:24.608+07:00Simple Calculator Online<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/simple-calculator-online.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2JyXGFcPwTqwpObS375Q2DwlimIGDVGEZps62Egd5y1RqO_g6wTWKitE5_HReaqRBK2RByukpQ4C9XKFVx33mxhJOG39784ir4xMERoIyV8RNt9JBNjtO9gduL7hy7tgAVrYD2GMsJg0w/s200/calculators.jpg" width="200" alt="Simple Calculator Online"/></a><br />
</div>Hello again coding freak...Back again with PHP Tutorial. PHP has some mathematical functions that can be used to count. Through this tutorial I will teach you how to make a simple calculator online.<br />
<br />
<a name='more'></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
First, create a file and name it "calculator.html" and then type the following command:<br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><html> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><head> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><title>Simple Calculator Online</title> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></head> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><body> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><form name="form1" method="post" action="count.php"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><p>Mathematical Operators</p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><input name="angka" type="text" id="angka"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><select name="operator" id="operator"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>+</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>-</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>*</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>/</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></select> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><input name="angka2" type="text" id="angka2"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><input type="submit" name="Submit" value="Calculate"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></form> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><form name="form2" method="post" action="count2.php"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><p>Mathematical Constants</p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><input name="angka" type="text" id="angka"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><select name="operator" id="operator"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>abs</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><option>floor</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>round</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>decbin</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>bindec</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>decoct</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>octdec</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>dechex</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>hexdec</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>sin</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>cos</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>tan</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>log</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <option>sqrt</option> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </select> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <input type="submit" name="Submit" value="Hitung"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <p>Keterangan :</p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <table width="100%" border="0"> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>+</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Plus.</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>-</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Minus.</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>*</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Multiple.</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>/</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Divide.</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td width="4%">abs</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td width="2%">=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td width="94%">Returns the absolute value of number .</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>floor</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Returns the next lowest integer value by rounding down value if necessary. </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>round</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Returns the rounded value of val to specified precision (number of digits after the decimal point). </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>decbin</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert an integer to binary number. </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>bindec</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert a binary number to an integer. (opposite of decbin) </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>decoct</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert an integer to an octal. </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>octdec</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert an octal to an integer (opposite of decoct) </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>dechex</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert an integer to a Hexadesimal. </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>hexdec</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Convert a Hexadecimal to an integer (opposite of dechex). </td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>sin</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>sine</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>cos</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>cosine</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>tan</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>tangent</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>log</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>log</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>sqrt</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>=</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> <td>Returns the square root of arg</td> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </tr> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> </table> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></form> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><p>&nbsp;</p> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></body> </span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"></html> </span><br />
<br />
</td></tr>
</tbody></table><br />
<br />
<br />
Then for the second, create a file with the name "count.php" and type the following script :<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="font-family: Arial,Helvetica,sans-serif;"><span style="color: red;"><?php </span><br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$number = $_POST['number']; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$number2 = $_POST['number2']; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$operator = $_POST['operator']; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == '+') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = $number+$number2; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == '-') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = $number-$number2; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == '*') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = $number*$number2; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == '/') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = $number/$number2; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;"><br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">print "$output"; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;"><span style="color: red;">?></span><br />
</div><span id="result_box"><span style="background-color: white;" title="Lalu untuk file yang kedua buat dengan nama “hitung.php” dan ketikkan script berikut :"><br />
</span></span><br />
</td></tr>
</tbody><tbody></tbody></table><br />
And for the last, create a file with the name "count2.php" and then type the following script:<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="font-family: Arial,Helvetica,sans-serif;"><span style="color: red;"><?php </span><br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$number = $_POST['number']; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$operator = $_POST['operator']; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'abs') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = abs($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'floor') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = floor($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'round') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = round($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'decbin') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = decbin($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'bindec') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = bindec($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'decoct') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = octdec($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'octdec') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = octdec($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'dechex') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = dechex($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'hexdec') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = hexdec($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'sin') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = sin($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'cos') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = cos($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'tan') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = tan($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'log') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = log($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">if ($operator == 'sqrt') <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">{ <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">$output = sqrt($number); <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">} <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;">print "$output"; <br />
</div><div style="font-family: Arial,Helvetica,sans-serif;"><span style="color: red;">?></span> <br />
</div><br />
</td></tr>
</tbody></table><br />
That's all....you may try it...Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-91971662640090589612009-12-10T07:06:00.002+07:002010-01-04T07:30:43.598+07:00Create LOG System with FLAT File<div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/create-log-system-with-flat-file.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLZveVcg9bebt7Z_st3Jim_EflqAY25J37iecPqk6p_OSef1_iE5LUMGAaerYrEIfXcbPN6_59ewEpsnbpAsLXgYY9TcvAbqsSUnXNCt6cENPoBpjnbwQI-xOTFo4w_FfFK7AoJcDY8jB2/s200/log.jpg" alt="Create LOG System with FLAT File" /></a><br />
</div> If we have a website, of course we would want out traces of our website visitors. In this PHP Tutorial, i will show you how to make simple LOG System with FLAT File.<br />
<br />
Some uses of the system log include:<br />
other than to find out visitor information, log files, too useful to assist the analysis of security<br />
<br />
<br />
<br />
<br />
<a name='more'></a><br />
<br />
<br />
<b>Script LOG System with FLAT FILE:</b><br />
<br />
<span style="color: red;"><?php</span><br />
<span style="color: #6aa84f;">/* this line uses to see the type of browser*/</span><br />
<b>$agent = $_SERVER['HTTP_USER_AGENT'];</b><br />
<br />
<span style="color: #6aa84f;">/* this line uses to see script excute from where GET(URL) */</span><br />
<b>$uri = $_SERVER['REQUEST_URI'];</b><br />
<br />
<span style="color: #6aa84f;">/* this line uses to see visitor's IP Address */</span><br />
<b>$ip = $_SERVER['REMOTE_ADDR'];</b><br />
<br />
<span style="color: #6aa84f;">/* this line uses to see where the referer script come from */</span><br />
<b>$ref = $_SERVER['HTTP_REFERER'];</b><br />
<br />
<span style="color: #6aa84f;">/* this line uses to see the visitor's proxy */</span><br />
<b>$real = $_SERVER['HTTP_X_FORWARDED_FOR'];</b><br />
<br />
<span style="color: #6aa84f;">/* this line uses to see visitor's connection */</span><br />
<b>$via = $_SERVER['HTTP_VIA'];</b><br />
<br />
<span style="color: #6aa84f;">/* this is date variable */</span><br />
<b>$dtime = date('r');</b><br />
<br />
<span style="color: #6aa84f;">/* attention, when visitors use a transparent proxy, then the $ _SERVER [ 'HTTP_X_FORWARDED_FOR'] will display the real visitor's IP, otherwise $ _SERVER [ 'REMOTE_ADDR'] will show visitor's Proxy. Untuk lebih jelasnya tentang macam-macam Proxy, saya akan menjelaskannya di tutorial yang lain */</span><br />
<br />
<span style="color: #6aa84f;">/* This is description of entry_line variable */</span><br />
<b>$entry_line = "Time: $dtime | Real IP: $ip | Browser: $agent | URL: $uri | Referrer: $ref | Proxy: $real | Connection: $via<br />
";</b> <span style="color: #6aa84f;"> /* <-- attention!! This should be a new line so that the result becomes a new line */</span><br />
<br />
<span style="color: #6aa84f;">/* "fopen()" function to open file, this is the most important!!, this is used if "tracking.txt" can not be found on the server, then PHP will create */</span><br />
<b>$fp = fopen("tracking.txt", "a");</b><br />
<br />
<span style="color: #6aa84f;">/* "fputs()" the function is to write log into file */</span><br />
<b>fputs($fp, $entry_line);</b><br />
<br />
<span style="color: #6aa84f;">/* "fclose()" the function is to close the file */</span><br />
<b>fclose($fp);</b><br />
<br />
<span style="color: red;">?></span><br />
<br />
That's all.....<br />
<br />
<span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql"></span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql">I think </span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql">this Php FLAT FILE LOG </span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql">function System</span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql"> </span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql">pretty usefu</span></span><span id="result_box"><span style="background-color: white;" title="Fungsi php System LOG dengan FLAT FILE ini, menurutku lumayan berguna daripada susah pakai koneksi MySql">l than using MySql connection</span></span>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-4508004830413418452009-12-07T19:48:00.002+07:002010-01-04T07:30:05.028+07:00Prevent Direct Linking for PHP sites<div style="text-align: justify;"><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/no-direct-linking-for-php-sites.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM35gYmttGidJfqHIOlNOit1iKpXbIwo6wiiLDQqBwIrAD87Q1dlYsyGlJlq8LxXvWr8cJ2B7WWgHnwEYAUoD9Bn_BzVLaP89ugsZuFEofwJIlRg1ejkBoLmj6l9YAibS2lhRHwVaQY37a/s200/Arrow+right.JPG" alt="Prevent Direct Linking for PHP sites" /></a><br />
</div> If you want to prevent those awful direct linkers, use this PHP tutorial. Open up your notepad (start>>programs>>accessories>>notepad) or another text editor, and copy the code below to it. Name this file .htaccess and make sure it doesn't have an extension on the end, like .txt. If it is named .htaccess.txt, rename it .htaccess. Save it and upload it to your main directory. Or, you can upload it as .htaccess.txt, and rename it when it's on your server. If you already have a .htaccess file in your directory, because you have an IP block or something, just put the code beneath whatever you already have.<br />
<a name='more'></a><br />
</div><table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="text-align: left;">RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://WWWW.YOUR-SITE.COM/.*$ [NC]<br />
RewriteRule .(gif|jpg)$ http://URLOFIMAGE.jpg [R,L]<br />
</div></td></tr>
</tbody></table><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">.htaccess example :<br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLK0QK3hJp4sq7wC5m0BDoU6qtpNfaU-QbpOEit9fYmcP-th3B4FDhG57DnK8JO8y4MoqTfJjCX1sOqM9C4WScVPErFIsoAnJ3vszrlxRWD0XPdqsvpQGPy18q_PUfc_vvHRYor0Fw4qK/s1600-h/_htaccess.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLK0QK3hJp4sq7wC5m0BDoU6qtpNfaU-QbpOEit9fYmcP-th3B4FDhG57DnK8JO8y4MoqTfJjCX1sOqM9C4WScVPErFIsoAnJ3vszrlxRWD0XPdqsvpQGPy18q_PUfc_vvHRYor0Fw4qK/s320/_htaccess.jpg" /></a> <br />
</div><div style="text-align: justify;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLK0QK3hJp4sq7wC5m0BDoU6qtpNfaU-QbpOEit9fYmcP-th3B4FDhG57DnK8JO8y4MoqTfJjCX1sOqM9C4WScVPErFIsoAnJ3vszrlxRWD0XPdqsvpQGPy18q_PUfc_vvHRYor0Fw4qK/s1600-h/_htaccess.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLK0QK3hJp4sq7wC5m0BDoU6qtpNfaU-QbpOEit9fYmcP-th3B4FDhG57DnK8JO8y4MoqTfJjCX1sOqM9C4WScVPErFIsoAnJ3vszrlxRWD0XPdqsvpQGPy18q_PUfc_vvHRYor0Fw4qK/s200/_htaccess.jpg" width="0" /></a><br />
</div></div><br />
Replace http://WWWW.YOUR-SITE.COM/ with the url of your site. Replace http://URLOFIMAGE.jpg with the url of the image you want to show up instead of your own when people direct link.<br />
<div style="text-align: left;"><br />
</div><div style="text-align: left;">That's All....... <br />
</div>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-62150564669122232592009-12-07T19:43:00.001+07:002010-01-04T07:28:15.563+07:00Things that you may have before entering the Internet Business<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/things-that-you-may-have-before.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinVF_LagmlALLnDlBqalyfSMIE4u0llgOwst7uGYxVkEL8cejO_S4rEuwUcmdNuS7nR-nathDrHED6xZV8CiE-HFN_OuO_USXuYkEGPgzQfyPLGzX3rgVYVWuk1ntowD4ePT-w86N7vKwh/s200/Laptop.jpg" alt="Things that you may have before entering the Internet Business"/></a><br />
</div><span id="result_box"><span title="Ada beberapa hal yang harus di ketahui sebelum memulai bisnis internet.">There are some things that should be know before you start an <b>Internet business</b>. </span><span title="Mungkin banyak dari kalian yang sudah mengetahui hal ini, tolong di maklumi, karena saya masih baru disini">Perhaps many of you already know this, please in understandable, because I'm still a noob :D</span></span> <br />
<br />
Okay then... below is a few thing you may have before entering the <b>Internet business</b> <br />
· Use a valid <b>email address</b> - You will always want to have a valid <b>email address</b> to use when you sign up to a Pay To Click site. This is so that the website can contact you with inquiries about your account if needed. Also, some Pay To Click sites require a valid email in order for your payments to be accepted. Another thing you will need<br />
<a name='more'></a>your <b>email address</b> for is your payment processing site. For example, on <a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL">PayPal</a> and <b>Alertpay</b> you will need a valid <b>email address</b> in order to sign up for an account.<br />
<br />
· A Payment system - Most Pay To Read Sites use <b><a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL">PayPal</a></b> or <b>Alertpay</b> as their preferred payment method. This is because it is the easiest of the payment processors to use in many peoples’ opinion. Although with <b><a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL">Paypal</a></b>‘s recent rampage against PTR websites, we don’t expect this payment processor to last long. The TitanCash network will be releasing a Payment Processor soon. Many people feel that this will be the best option as far as an alternative for <b><a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL">PayPal</a></b> and <b>Alertpay</b>.<br />
<br />
Need to join <b><a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL">paypal</a></b>? just click the banner below and just follow simple steps<br />
<br />
<div align="center"><a href="https://www.paypal.com/id/mrb/pal=NHTKYHAYX9EUL" target="_blank"><img alt="Sign up for PayPal and start accepting credit card payments instantly." border="0" src="http://images.paypal.com/en_US/i/bnr/paypal_mrb_banner.gif" /></a><br />
</div>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-31041385178657958262009-12-07T18:43:00.001+07:002010-01-04T07:27:43.493+07:00Create simple login page using PHP<w:sdt contentlocked="t" id="89512093" sdtgroup="t"><span style="font-family: Calibri, sans-serif; font-size: 1pt;"></span> </w:sdt><br />
<div class="PadderBetweenControlandBody"><div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/create-simple-login-page-using-php.html" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkhLcGlgo1F7zggM74iUZynIzEsEmBKuWvvmxNzz0xq_6oFnmEm1Qbys2FFAyx6nptFqwIYaq5w1oOzb6SV8JqCF80G2fhai5zSIkm6emLMAQVDrnL7i4nUGI7HxgfgGTUxA_oM1xo77vx/s320/login.JPG" alt="Create simple login page using PHP" /></a><br />
</div>Hello again all coding freak... In this PHP tutorial I will give examples of the use of the database, session, and encryption<br />
</div>I use MD5 to make the PHP code that is secure as the login page, although not 100% safe.<br />
<br />
And of course this article is just an example, while development is hung to you.<br />
Like the previous article, I just explained a bit of an example related to<br />
source code and how the source code.<br />
<br />
Simply put, the way it works is like code below:<br />
<br />
<a name='more'></a><br />
<br />
1.) When users enter a username and password, then the first thing to do is check the database if the username is registered, if registered in the database, in this case we need a variable that indicates that the user is present.<br />
<br />
2.) After that then the user will be given a session that is taken from the username, if the previous password is checked by MD5 is successfully performed.<br />
<br />
3.) If all does not match then the user will be redirect to the login.html page, making it look like a stay in one page.<br />
<br />
Before making the PHP script, let’s begin by creating the database:<br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
create database userdb;<br />
use userdb;<br />
create table tbl_user(id int(3) primary key auto_increment,username varchar(50), password varchar(50));<br />
insert into tbl_user values('','admin','21232f297a57a5a743894a0e4a801fc3');<br />
</td></tr>
</tbody></table>21232f297a57a5a743894a0e4a801fc3 --> this is md5 from 'admin'<br />
<br />
<br />
After that, we need to create the login page as you see at the script below :<br />
// login.html<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<html><head><title>Login Page ... </title></head><br />
<body><br />
<br><br><br><br><br><br><br><br><br><br><br><br />
<table border=1 align=center><br />
<form method=post action=check.php><br />
<tr><td>username</td><td><input type=text name=username></tr><br />
<tr><td>password</td><td><input type=password name=password></tr><br />
<tr><td></td><td><input type=submit name=submit value=Enter></tr><br />
</form><br />
</table></body><br />
</html><br />
</td></tr>
</tbody></table><br />
<br />
Then…create the config.php page<br />
// config.php<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<?php<br />
<br />
$host = "localhost";<br />
$username = "root";<br />
$password = "";<br />
$databasename = "userdb";<br />
$connection = mysql_connect($host, $username, $password) or die("Connection Error");<br />
mysql_select_db($databasename, $connection) or die("The database is Error");<br />
<br />
?><br />
</td></tr>
</tbody></table><br />
<br />
After that we create the page check.php<br />
<br />
// check.php<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<?php<br />
<br />
session_start();<br />
include "config.php" ;<br />
<br />
$username = $_POST['username'];<br />
$password = $_POST['password'];<br />
$passwordhash = md5($password); // password encryption to match with the database<br />
<br />
$query = "select username, password from tbl_user where username = '$username' and password = '$passwordhash'";<br />
$runquery = mysql_query($query);<br />
<br />
$exist_or_not = mysql_num_rows($runquery);<br />
<br />
if ($exist_or_not >= 1 )<br />
{<br />
<br />
$_SESSION['username'] = $username;<br />
header("location: main.php");<br />
<br />
}<br />
<br />
else<br />
header("location: login.html");<br />
<br />
?><br />
</td></tr>
</tbody></table><br />
<br />
<br />
And then we create the point, it’s main.php<br />
// main.php<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<?php<br />
session_start();<br />
if (ISSET($_SESSION['username']))<br />
{<br />
print $_SESSION['username'];<br />
print "<br><a href=logout.php?logout=true>logout</a>";<br />
}<br />
else<br />
header("location: login.html");<br />
?><br />
</td></tr>
</tbody></table>And then…the logout.php page<br />
<br />
//logout.php<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<?php<br />
<br />
session_start();<br />
<br />
if ($_REQUEST['logout'] == "true")<br />
{<br />
if(ISSET($_SESSION['username']))<br />
{<br />
UNSET($_SESSION['username']);<br />
}<br />
}<br />
header("location: login.html");<br />
session_destroy();<br />
<br />
?><br />
</td></tr>
</tbody></table><br />
<br />
<br />
I think that’s enough for the source code. Now I'll explain a little about the above codes.<br />
We passed the config.php, because I have discussed it previously, we went into the, check.php.<br />
<br />
See section<br />
<br />
session_start ();<br />
<br />
The use of session should begin by using this function.<br />
Then there is written a sentence like this ...<br />
<br />
$password = $ _POST ['password'];<br />
$passwordhash = md5($password);<br />
<br />
I took the global variable $ _POST [ 'password'] then paste into a new variable, it’s $password. Because in the database is in the form of MD5 encryption is necessary to match the existing in the database is to encrypt the password was a global variable.<br />
<br />
<br />
Then the next argument is the SQL query<br />
<br />
$ command = "select username, password from tbl_user where username = '$ username' and password = '$passwordhash'";<br />
<br />
I think the query above is familiar to you. :D<br />
And the scripts below it quite easy to understand :D.<br />
That’s all. If there are still confused, please just feel free to ask.<br />
Thanks.Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com1tag:blogger.com,1999:blog-109022977661830431.post-28107965295724173232009-12-07T18:40:00.002+07:002010-01-04T07:26:48.006+07:00How to create root mapping menu<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/root-mapping-menu.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQA03ceIcxWQ6W-ZOR2MfNfub9PK3Smoau224TcikF55H2ZyVMAxNMqbYWhinKjmPY68EoYMjiOmV5IdDdeP8vWdWAjD0vzmb3yjP_h-nmtYbq25TlBWRJOF3mTPtY26aQcNq352aJ6TBx/s320/mapping.JPG" alt="How to create root mapping menu" /></a><br />
</div>"Mapping Menu" is one of the mapping of our web directory which aims to facilitate our clients to explore our website.<br />
<br />
Without further ado, in this PHP tutorial I will explain how to manufacture a menu mapping. As usual, to create a program would need a code ... :p<br />
<br />
<br />
<a name='more'></a><br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<span style="color: red;"> <?php</span><br />
<br />
$originalpath=$_SERVER['PHP_SELF'];<br />
<br />
$urlbase='http://'.$_SERVER['HTTP_HOST'];<br />
<br />
$roottitle='Home';<br />
<br />
$path=explode('/',$originalpath);<br />
<br />
$jml_element=count($path);<br />
<br />
echo '<center><table style="border:1pt solid #666666;"><tr><td>';<br />
<br />
echo '<a href='.$urlbase.'>'.$roottitle.'</a>';<br />
<br />
for($i=1; $i<$jml_element;$i++) {<br />
<br />
$urlbase=$urlbase.'/'.$path[$i];<br />
<br />
$path[$i]=str_replace('.php', '', $path[$i]);<br />
<br />
$path[$i]=ucwords($path[$i]);<br />
<br />
echo ' / <a href=' .$urlbase. '>' .$path[$i]. '</a>';<br />
<br />
}<br />
<br />
echo '</td></tr></table></center>';<br />
<br />
<span style="color: red;">?></span><br />
</td> </tr>
</tbody> </table><br />
<span id="result_box"><span style="background-color: white;" title="Explanation for each">And now i will give you some explanation for the script ....</span></span><br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
$originalpath=$_SERVER['PHP_SELF'];<br />
<br />
$urlbase='http://'.$_SERVER['HTTP_HOST'];<br />
<br />
$roottitle='Home';<br />
</td> </tr>
</tbody> </table><span id="result_box"><span title="Disini kita mengeset path, url base, dan judul root-nya.">Here we set the path, url base, and the root title. </span><span style="background-color: white;" title="Kalau belum mengerti, baca sampai selesai baru kamu akan mengerti sendiri gunanya masing-masing..">If you do not understand, read until finished then you will understand his own point of each .. </span><span style="background-color: white;" title=";p">:p</span></span><br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
$path=explode('/',$originalpath);<br />
</td></tr>
</tbody></table><span id="result_box"><span style="background-color: white;" title="Disini kita mengubah path menjadi array dan memisahkannya melalui tanda slash">Here we change the path to an array and separating them by a slash mark</span></span><br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
$jml_elm=count($path);<br />
</td></tr>
</tbody></table>This line is used to calculate the total elements in the array that we get last<br />
<br />
Finally...the loop<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
for($i=1; $i<$jml_elm;$i++) {<br />
<br />
$urlbase=$urlbase.'/'.$path[$i];<br />
</td></tr>
</tbody></table>Menambahkan direktori selanjutnya<br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
$path[$i]=str_replace('.php', '', $path[$i]); <br />
</td></tr>
</tbody></table>Menghilangkan ekstensi .php pada menu mapping<br />
<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
$path[$i]=ucwords($path[$i]);<br />
</td></tr>
</tbody></table><span id="result_box"><span style="background-color: white;" title="Mengubah huruf awal menjadi huruf kapital">Changing the first letter to uppercase</span></span><br />
<br />
<span id="result_box"><span style="background-color: white;" title="Mengubah huruf awal menjadi huruf kapital">}</span></span><br />
<span id="result_box"><span style="background-color: white;" title="Mengubah huruf awal menjadi huruf kapital"> <br />
</span></span><br />
<span id="result_box"><span style="background-color: white;" title="Mengubah huruf awal menjadi huruf kapital"> <br />
</span></span><br />
<span id="result_box"><span style="background-color: white;" title="Mengubah huruf awal menjadi huruf kapital">That's all.......Just another PHP tutorial :D<br />
</span></span>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-86925600568346410242009-12-07T18:38:00.002+07:002010-01-04T07:26:07.865+07:00Create Page Index using PHP<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://cupu-blagu.blogspot.com/2009/12/create-page-index-using-php.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxrwa_UISOS2PJTepITJu3XylE82wfsdQAvePiGSXzkqSrMPpWJQIJNpBmVpEvx_DJIZqsNPSEBXyxhjdtu1xTCb3DlRZ3ovVc5mOYKUXbHlqopZaPekmNgf6DeGL9vpwph9pB41jWT_pR/s320/paging_example.JPG" alt="Create Page Index using PHP" /></a><br />
</div>Hi all coding freak, this time I will show you PHP Tutorial about how to create a page which means a rise in its website content in generated from the database.<br />
<br />
If you have a "Dinamic Website" huge and has thousands of items / product you must trouble to display these items one by one in a regular, automatic and controlled.<br />
<br />
The solution is you can use the display per page.<br />
<br />
<b><-Previous 1 2 3 Next-></b><br />
<br />
The contents of the page is taken from the MySql database, but that we also can determine how many items we will display the page. Interesting isn't it???<br />
<br />
Now let's begin the PHP Tutorial :D <br />
<br />
<a name='more'></a>This is an example of a database table that I use:<br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
CREATE TABLE `content` (<br />
`id` int(225) NOT NULL auto_increment,<br />
`title` varchar(50) collate latin1_general_ci NOT NULL default '',<br />
`content` longtext collate latin1_general_ci NOT NULL,<br />
PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=5 ;<br />
</td> </tr>
</tbody> </table><br />
<b>db.php</b><br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: red;"><?php<br />
</div>$dbhost = 'localhost';<br />
$dbusername = 'your_user';<br />
$dbpasswd = 'your_password';<br />
$database_name = 'your_database';<br />
#under here, don't touch!<br />
<br />
@$connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd") or die<br />
("Can't connect to MySQL");<br />
@$db = mysql_select_db("$database_name", $connection) or die("Database can't be found");<br />
<div style="color: red;">?><br />
</div></td> </tr>
</tbody> </table><br />
<b>index.php</b><br />
<br />
<table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<div style="color: red;"><?php<br />
</div>/* connection to database */<br />
include 'db.php';<br />
<br />
/* specify the table */<br />
$table = content;<br />
<br />
$page = $_GET[page];<br />
<br />
/* if the page default is 1 */<br />
if(!isset($_GET['page'])){<br />
$page = 1;<br />
} else {<br />
$page = $_GET['page'];<br />
}<br />
<br />
/* specify the number of items per page */<br />
$max_results = 5;<br />
<br />
/* page multiply MAX number of items per page, minus the MAX number of items per page */<br />
/* logic: 1 x 5 = 5 , 5 - 5 = 0 , so database id start from 0*/<br />
$from = (($page * $max_results) - $max_results); <br />
<br />
/* Show from the database, LIMIT from the example above, id of 0 to 5 */<br />
$sql = mysql_query("SELECT * FROM $table ORDER BY id DESC LIMIT $from, $max_results ");<br />
while($row = mysql_fetch_array($sql)){<br />
<br />
/* display result, this is depending from your table database*/<br />
<div style="color: red;">?><br />
</div><span style="color: red;"><?php</span> echo $row[2] <span style="color: red;">?></span><br><br />
<span style="color: red;"><?php</span> echo $row[3] <span style="color: red;">?></span></a><br /><br />
<span style="color: red;"><?php</span> echo $row[1] <span style="color: red;">?></span> | This page read <?php echo $row[6] ?> times<br /><br />
<span style="color: red;"><?php</span> echo $row[4]; <span style="color: red;">?></span><br />
<br />
<hr><br />
<div style="color: red;"><?php<br />
</div>}<br />
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM $table"),0);<br />
<br />
$total_pages = ceil($total_results / $max_results);<br />
<br />
/*Build the number of hyperlink pages*/<br />
echo "<center>Select a Page<br />";<br />
<br />
/* Build Previous link */<br />
if($page > 1){<br />
$prev = ($page - 1);<br />
echo "<a href=$_SERVER[PHP_SELF]?page=$prev> <-Previous </a> ";<br />
}<br />
<br />
for($i = 1; $i <= $total_pages; $i++){<br />
if(($page) == $i){<br />
echo "$i ";<br />
} else {<br />
echo "<a href=$_SERVER[PHP_SELF]?page=$i>$i</a> ";<br />
}<br />
}<br />
<br />
/* Build Next link */<br />
if($page < $total_pages){<br />
$next = ($page + 1);<br />
echo "<a href=$_SERVER[PHP_SELF]?page=$next>Next-></a>";<br />
}<br />
echo "</center>";<br />
<div style="color: red;">?><br />
</div></td> </tr>
</tbody> </table><br />
That's all....quite easy right?Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com0tag:blogger.com,1999:blog-109022977661830431.post-62836101261472024702009-12-07T18:35:00.003+07:002010-01-04T07:25:40.273+07:00Create login like Cpanel using PHP<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><a href="http://cupu-blagu.blogspot.com/2009/12/create-login-like-cpanel-using-php.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="284" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAvG3LNssABINi15P9oVFPY2l9ef3aF4GR91COTPKEeDi3-XdIZCgZaE8Zz6PiVgwePIsxVk7fYGsGj3Ai76uk6fJr2OlJt_GtWYTLF_1dpaG9_eFDecufn4vFWhDbXByJZTpYSH_8xzTP/s320/login_cpanel.JPG" width="320" alt="Create login like Cpanel using PHP" /></a><br />
<div class="separator" style="clear: both; text-align: justify;"><span id="result_box"><span style="background-color: white;" title="Pernahkan anda melihat tampilan "login" seperti diatas?">Have you ever seen the display "login" as above? </span><span title="Jika pernah, mungkin anda">If so, maybe you </span><span style="background-color: white;" title="penasaran bagaimana cara membuatnya.">wondered how to make it. Now, in this PHP Tutorial i will show you how </span><span title="Untuk membuat login seperti di atas, Caranya sangat">to create a login as above, it was very </span><span title="mudah.">easy. </span><span style="background-color: white;" title="Kuncinya terletak pada Header.">The key lies in the Header. </span><span style="background-color: white;" title="Header dalam PHP mempunyai fungsi yang banyak">Header in PHP has the function of many </span><span style="background-color: white;" title="sekali dan bisa diotak-atik.">once and can been tampered with. </span><span style="background-color: white;" title="Baiklah, saya akan menjelaskan cara membuatnya.">Okay, I'll explain how to make it. </span><span style="background-color: white;" title="Buat file dengan nama index.php lalu ketikkan script berikut :">Create a file named index.php and then type the following script:</span></span> <br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: justify;"><br />
</div><table bgcolor="#e9edee" cellpadding="0" cellspacing="0" style="border: thin solid rgb(196, 196, 196);"><tbody>
<tr><td><br />
<?<br />
if (!isset($_SERVER['PHP_AUTH_USER'])) {<br />
header('WWW-Authenticate: Basic realm="Login like Cpanel"');<br />
echo 'You have canceled the login !';<br />
exit;<br />
} else {<br />
echo "Your username is {$_SERVER['PHP_AUTH_USER']}.<br />
";<br />
echo "and your password is {$_SERVER['PHP_AUTH_PW']}.<br />
";<br />
}<br />
?><br />
</td> </tr>
</tbody></table><br />
<span id="result_box"><span style="background-color: white;" title="Sedikit penjelasan script diatas :">A little explanation of the script above:<br />
</span><span style="background-color: white;" title="If(!isset artinya jika variabel PHP_AUTH_USER belum/tidak diisi, maka akan tampil kotak dialog login. Dan jika diisi, maka akan tampil username dan password yang anda masukkan.">If (!isset PHP_AUTH_USER means if the variable has not / is not optional, it will show login dialog box. And if it is filled, it will show username and password that you entered.<br />
</span><span title="Bagaimana ?">How? </span><span title="Cukup mudah bukan ?">Easy enough right? </span><span style="background-color: white;" title="Selamat membuat login yang keren">Welcome to the cool login</span></span>Andar Sevenfoldhttp://www.blogger.com/profile/18422629173368362559noreply@blogger.com1