Skip to content

Author: Greg Winiarski

PHP, JSON and JavaScript usage

Today i want to introduce you to jSON (JavaScript Object Notation), in short, it is a simple format designed to exchange data between different programming languages. I will show you how to create JavaScript object, convert it to JSON string, and send to PHP script, which will decode jSON string to readable format (for PHP). But that’s not all, PHP script will create it’s own data object encode it to jSON string and send it back. All communication between JavaScript and PHP will be done thru AJAX. Continue reading PHP, JSON and JavaScript usage

Fennec – FireFox mobile web browser

Not so long ago Mozilla released FireFox 3, it was quite a big event, you probably remember the whole Download Day thing right? It looks like Mozilla wants to keep momentum (which is great) and soon enough they are going to release FireFox Mobile version, not to mention that at the same time they are working on FireFox 3.1. Fennec (that is mobile FireFox code name) is not a first web browser designed for mobile devices created by Mozilla. Probably not many readers remember project named Minimo mostly because of it spectacular failure, so will be Fennec any different? Continue reading Fennec – FireFox mobile web browser

Who is the most spammed person in the world?

Few days i wrote an article about protecting email address with .htaccess, today i stumbled upon interesting news. Collin Wells an UK mechanic revealed that he receives over 44 000 SPAM mail a day that is close to 16 millions a year. Before he started to use ClearMyMail service he spent over 2 hours a day removing unwanted messages, well i guess next time i will receive SPAM i will thank God it is only one message :).

Continue reading Who is the most spammed person in the world?

Protecting email address with .htaccess

I hate spam, i received since i created my first email account and i am always interested in web development tricks and techniques for protecting email accounts. Recently i read book about email security and found there very interesting technique which allows users to send email to you while proveiding email harvester with completely false email address, i created variation of this trick which i will share here as well. Continue reading Protecting email address with .htaccess

Clean input variable PHP

Some time ago i wrote a post about query string and i think i pretty well covered that topic, however i didn’t mentioned one thing … cleaning input variables. In fact it is much more important to know how to clean $_POST and $_GET arrays then know how to handle query string, because variables sent by user are the only way to hack your script, it is that simple, if you take care of input variables then your script is 100% safe.

Continue reading Clean input variable PHP

Using PHP cURL to read RSS feed XML

I very rearly, use feeds, i prefer to go to my favourite website and see what is going on instead of downloading their content to my computer with some RSS reader. However the fact is feeds are getting popular and people are searching for a ways to access and easily automatically parse those feeds with PHP, and because RSS and ATOM are nothing more then XML documents then i have for you really simple way of handling those feeds which i want to share with you (thru my blog as well thru my blog feeds :)). Continue reading Using PHP cURL to read RSS feed XML

Is Cheap Hosting really cheap?

To be honest i am not a big fan of cheap web hosting, however my web hosting costs me less then 25$ a year! This is about 2$ a month, talk about cheap hosting right? 🙂 Despite the price i am very satisfied with my hosting provider: great customer support and no down times since two years. Hmmm i believe it sounds like a great (or rather obvious) sales page but it is not, mainly because my hosting provider is only available in Poland.

Continue reading Is Cheap Hosting really cheap?

PHP Query String

Query string plays important role in building web applications, especially if you want to make nice urls without question mark and many key, value pairs, actually it is not so easy to design application with nice urls however it is always worth doing so, because it not only looks very proffessional, such URLs are search engine friendly, which means that they will get indexed faster but also it happens that search engines have problems with indexing pages with more then 3 key=value pairs in query string.

Continue reading PHP Query String