Browsing articles from "November, 2008"
Nov
22
2008

Output buffering PHP Apache mod gzip mod deflate

Till recently most of my php scripts were working fine on the servers with instantaneous outputs as and when a echo statement came. One issue that popped a lot on localhost was that of chunky outputs; that is the outputs of big scripts came out in chunks rather than smoothly with every echo or print statement. After some research flush() was found to be the solution for this output buffering issue. So what happened was [...]

Nov
19
2008

Remote Login with Curl PHP

The Curl Library of PHP can be used to open remote web pages and also logging in where a login is required. Code After the curl_exec the login page is opened with login details or simply the login has been done. Now any other url (which is login restricted) can be opened by The option CURLOPT_COOKIEFILE is used to specify a file which stores the cookie data that is received during the process of opening [...]