Ano ang Balitaktakan?

Ang "Balitaktakan" ay usapin o diskusyon, kalimitan ay mainit o malalalim ang pinag-uusapan, na kung saan ang pagkakaiba ng matitinding opinyon ay napapahayag.

Subscribe to our RSS Feed

Subscribe to our feeds
RSS po ang sinabi namin na kung saan makakatanggap kayo ng not-up-to-date news mula sa amin, inuulit ko RSS po.

PHP Programming

19
Jun

Compress Your Web with ob_gzhandler

Simple explaination here:

http://www.desilva.biz/php/zlib.html

I used to do this in our mini CMS PHP driven sites.

19
Jun

Trying out PHPmotion

I found this in my bookmarks too, I will try to use this later also…

http://www.phpmotion.com/

19
Jun

Developing AJAX-driven Shopping Cart with PHP and Prototype

In case somebody out there is eager to learn how to do this, I’m sharing this guides.

http://phpbuilder.com/columns/jason_gilmore20080425.php3

http://phpbuilder.com/columns/jason_gilmore20080502_2.php3

So there it is, you may try right now how to make an AJAX-driven Shopping Cart with PHP and Prototype.

19
Jun

Solve PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried…

This error message occurs when a functional PHP script exceeds the default memory allocation which is only 8MB limit.

To manually allocate your required memory size include this at the top of your script.

ini_set(“memory_limit”, “12M”);

The 12M sets the limit to 12 mb, if this doesn’t work just increase the memory limit till it fits your scripts requirements.

You can also set the memory limit permanently for all PHP scripts by adding or editing the php.ini file.

memory_limit = 12M

However, don’t make this your “usual remedy” for your coding practice. This is not a substitue but I rather say to find out how much your scripts eats memory. Your scripts either poorly/badly written that is causing the memory needs. Don’t do this on a live server, I only suggest this doing in your localhost for debugging issues.

19
Jun

Learning How to create PDF files from PHP

It’s been a long time now that it is possible to create PDF files from PHP, there is already a series of functions in PHP to do this. You can find the information on creating PDF documents read the following article from zend:

http://www.zend.com/zend/spotlight/creatingpdfmay1.php

If you need a ready to use PDF PHP Library, you can find it here:

http://sourceforge.net/projects/pc4p/

More resources on PHP Howto’s in alt-php-faq.org.

19
Jun

How to get user’s IP address

The environment variable $REMOTE_ADDR is where the users IP address is stored. if you want to resolve the domain name for that IP you can use this code.


$domain = GetHostByName($REMOTE_ADDR);

  • Featured Bloggers