Archive for July, 2009
CURL PHP: Email this page to a friend
Saturday, July 11, 2009 22:49 No CommentsUsing curl to take snapshots of the current page for emailing the HTML is a clever little idea. (ie: Email this page to a friend)
<?php
//to be explained below!
session_write_close();
$pageurl = "http://www.site.com/content.php?PHPSESSID=123XYZ
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_URL, $pageurl );
$html = curl_exec ( $ch );
curl_close($ch);
//then you need to fix pathing to absolute
$search = "/(src|href|background)="[^:,^>,^\"]*\"/i";
preg_match_all ( $search, $html, $a_matches );
//you [...]
How AJAX can Work for you
Saturday, July 11, 2009 8:27 7 CommentsIf you’ve been in the internet world for sometime, you might have bumped in the word AJAX. No, it’s not the European Soccer team but it’s a new web development tool that has been the craze for millions of web developers.
Every training center and computer schools are scrambling to learn this new software so that [...]
Why use Ajax and why not
Saturday, July 11, 2009 8:09 No CommentsAdvantages to using AJAX
There are quite a few advantages to AJAX, but all of them center around the above point: usability. AJAX provides a way for the user to interact with a website without refreshing, and furthermore, without any browser plug-ins.
There’s currently a war going on, many people may be missing this, but it’s a [...]
5 Disadvantages of AJAX
Saturday, July 11, 2009 8:07 2 CommentsThe disadvantages of AJAX are:
Search engines would not be able to index an AJAX application.
The server information can not be accessed within AJAX.
AJAX is not well integrated with any browser.
ActiveX requests are enabled only in IE 5 and IE6
Data of all requests is URL-encoded which increases the size of the request
Advantages and Disadvantages of Ajax
Saturday, July 11, 2009 7:47 No CommentsWhile there are a number of advantages to using Ajax, there are also some disadvantages as well. One of the main reasons why people support it is the interface. Those who use pages with Ajax will find that they operate more like an application rather than a standalone program. With normal web pages, users will [...]
About Ajax !
Saturday, July 11, 2009 7:43 No CommentsAJAX is a term used to describe an approach to designing and implementing web applications. It is an acronym for Asynchronous JavaScript and XML. The term was first introduced in an article by Jesse James Garrett of Adaptive Path, a web-design firm based out of San Francisco. He conceived of the term when he realized [...]
What is Ajax?
Saturday, July 11, 2009 7:40 1 CommentWhat is Ajax?
Ajax is a way of developing Web applications that combines:
XHTML and CSS standards based presentation
Interaction with the page through the DOM
Data interchange with XML and XSLT
Asynchronous data retrieval with XMLHttpRequest
JavaScript to tie it all together
In the traditional Web application, the interaction between the customer and the server goes like this:
Customer accesses Web application
Server [...]
How many values can the SET function of MySQL take?
Friday, July 3, 2009 10:52 No CommentsMySQL set can take zero or more values but at the maximum it can
Explain the difference between BOOL, TINYINT and BIT
Thursday, July 2, 2009 17:36 No CommentsPrior to MySQL 5.0.3: those are all synonyms.
After MySQL 5.0.3: BIT data type can store 8 bytes of data and should be used for binary data.


