Archive for April, 2009|Monthly archive page

goto API

http://www.gotapi.com/php

Speed up FireFox

In your address bar goto about:config

Quote:
[Search for the string]
network.http.pipelining
double click and change the value to true

[Search for the string]
network.http.pipelining.maxrequests
double click and change the value to 34

[Search for the string]
browser.turbo.enabled
double click and change the value to true

Then restart your browser, and see the difference!

Check Mail Online the Easy Way

Today, eXo2.net and e-Mol continue to innovate, with new features such as Palm synchronization and secure instant messaging. For over six years, tens of thousands of users and organizations from all over the world have trusted e-Mol to fulfill their e-mail and information needs.

http://e-mol.com/

A free, secure and anonymous web-based email retrieval application. Pick up your email from almost any POP3 or IMAP4 email server. No registration is required to access or use the application.

http://www.mail2web.com/

PHPLiveX – An Open Source PHP / AJAX Library And Framework

PHPLiveX is a lightweight php-javascript class library that helps you integrate AJAX to your php applications. Without a page is loaded again, you may call your php functions in the same page, submit your form to an url and send a request to another page with any type of data.

PHPLiveX is an open source project developed under GNU Lesser General Public License (LGPL).

  1. <?PHP
  2. include(“PHPLiveX.php”);
  3. //Magic here
  4. // Your PHP Function
  5. function generateRandomCode($length){
  6. sleep(1); // Function is slowed to show you the process exactly.
  7. $chars = array(“1″,“2″,“3″,“4″,“5″,“6″,“a”,“b”,“c”,“d”,“e”,“f”);
  8. $code = array_rand(array_flip($chars), $length);
  9. return implode($code);
  10. }
  11. // Necessary PHPLiveX Codes
  12. $ajax = new PHPLiveX(array(“generateRandomCode”));
  13. $ajax->Run(); // Must be called inside the ’html’ tags.
  14. ?>

  1. <!– Inside the html –>
  2. <input type=“button” value=“Generate Random Code”
  3. onclick=“generateRandomCode(10, {‘target’:'rcode’,'preloader’:'pr’});”>
  4. <img id=“pr” src=“images/loading.gif” style=“visibility:hidden;”>
  5. <span id=“rcode”></span>

Reference: http://www.phplivex.com

Extremely useful Web Tools

PHP: http://superblog.theblogspecialist.com/2009/01/50-extremely-useful-php-tools/

CSS: http://www.smashingmagazine.com/2008/12/09/50-really-useful-css-tools/

WEB: http://www.smashingmagazine.com/2008/11/18/15-helpful-in-browser-web-development-tools/

BLOG: http://superblog.theblogspecialist.com/tag/10-blog-traffic-tips/

Resize iframe within iframe

We can use below function on JavaScript events like
onload or onclick to dynamically resize height of iframe.

<script type="text/javascript">
function resize_iframe_within_iframe(id)
{
  parent.document.getElementById(id).height =
  parent.document.getElementById(id).contentWindow.parent.
  document.body.scrollHeight + "px";
}
</script>

here id = Id of iframe.

RSS vs ATOM

RSS 2.0 ATOM 1.0
Real Simple Syndication Atom Autodiscovery, Feature-rich than RSS
Plain text and escaped HTML, Basis- title, link and description Title, unique identifier and last-updated timestamp
WordPress Blogger

ePassporte payment gateway

epassporte

Sample code for HTML pages:

<FORM ACTION=”https://www.epassporte.com/secure/eppurchase.cgi” TARGET=”NEW” METHOD=”POST”><BR>
<INPUT TYPE=”HIDDEN” NAME=”acct_num” VALUE=”[account number here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”pi_code” VALUE=”[product code here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”gohere” VALUE=”CART”><BR>
<INPUT TYPE=”HIDDEN” NAME=”dothis” VALUE=”VIEW_ITEMS”><BR>
<INPUT TYPE=”SUBMIT” VALUE=”View Cart Items” ALT=”View Cart Items”><BR>
</FORM>

Sample code for HTML pages (with quantity):

<FORM ACTION=”https://www.epassporte.com/secure/eppurchase.cgi” TARGET=”NEW” METHOD=”POST”><BR>
<INPUT TYPE=”HIDDEN” NAME=”acct_num” VALUE=”[account number here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”pi_code” VALUE=”[product code here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”amount” VALUE=”[product amount here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”product_name” VALUE=”[product desc here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”quantity” VALUE=”[product quantity here]“><BR>
<INPUT TYPE=”HIDDEN” NAME=”gohere” VALUE=”CART”><BR>
<INPUT TYPE=”HIDDEN” NAME=”dothis” VALUE=”ADD_ITEM”><BR>
<INPUT TYPE=”IMAGE” SRC=”epassporte.gif” NAME=”SUBMIT” ALT=”Pay By ePassporte”>
</FORM>

Sample code for link:

https://www.epassporte.com/secure/eppurchase.cgi?acct_num=[account number here]&pi_code=[product code here]&amount=[product amount here]&product_name=[product description here]&gohere=CART&dothis=ADD_ITEM

Top 10 Javascript Frameworks

1.  script.aculo.us (http://script.aculo.us/)
2.  Prototype (http://www.prototypejs.org/)
3.  Moo Tools (http://www.mootools.net/)
4.  jQuery (http://jquery.com/)
5.  MochiKit (http://www.mochikit.com/)
6.  Rialto (http://rialto.improve-technologies.com/wiki/)
7.  Dojo Toolkit (http://dojotoolkit.org)
8.  Spry Framework (http://labs.adobe.com/technologies/spry/)
9.  Zapatec Ajax Framework (http://www.zapatec.com/website/main/)
10. Cean Ajax Framework (http://sourceforge.net/projects/clean-ajax/)

PHP.JS

PHP.JS is an open source project in which we try to port PHP functions to JavaScript. By including the PHP.JS library in your own projects, you can use your favorite PHP functions on the client-side.

This project is about porting PHP functions to JavaScript. So by including this library, you can use your favorite PHP functions client side.

This may speed up development for PHP developers who are increasingly confronted with client side technology.

It also offers added functionality on top of JavaScript with functions like: md5(), file_get_contents(), and utf8_encode().

Reference:
http://www.ohloh.net/p/php-js
http://phpjs.org/