Read on! Earnings from this blog will go to charity; to sponsor a child!

PHP - What did I learn?


Lately I touched more PHP than felixker.com. (Notice that I blog less!)

I’ll keep this entry short and simple since it’s 12am and I should be in bed by now.

Some in-built functions I found very useful.

urlencode

This is a must-use function if you’re going to use query strings ($_GET) to pass variable to another page! Remember to use urldecode when using the variable!

Example:
$string = “i have a cute & tiny dog!”
header(”Location: http://felixker.com/foo?bar=));

htmlentities

Wonderful function to use if you’ve got a page with form submission. Prevents users from playing tricks!

Example:
$str = “A ‘quote’ is <b>bold</b>”;

// Outputs: A ‘quote’ is &lt;b&gt;bold&lt;/b&gt;
echo htmlentities($str);

Conclusion

I must end this entry. I need to sleep.

There are many more functions I used, but I just cannot remember them. Most of them are functions that I cannot find built into VB.net. (Correct me if I’m wrong.)

Good night.




Post Rating:

Related entries:




Compilation of Photos taken!

shoes.jpg

This was taken at my hostel.

20 pairs of shoes. How many of us live here? Guess it right and I’ll see what prize I can offer you.

office.jpg

Junze is probably out of the scene. We enjoy hearing the siren and wondering how many bangalas are there on the ‘lift’.

reserved-singapore.jpg

Is this how reservations are done in Singapore? Totally no-class and ugly!

End 

I’ve got interesting life right?

Sigh. I’ve not taken a photo with my girl for quite some time. I’m not spending enough time with her too.

But I’ve got too many people that I’ve not met for quite some time. Can I have 14 days in a week? I don’t mind working more, but just give me more time in the evening after 6pm so I can meet friends more often and still spend time with my girlfriend.

Good night. It’s late. I need to sleep.



Post Rating:

Related entries:







Miscellaneous





web tracker



FAQ | Sitemap | Disclosure Policy | Privacy Policy
105 queries. 0.639 seconds.
© 2007 felixker.com (Felix Ker's blog)