Phpsmarts
Helping you to write smart php code
Now viewing all posts in Uncategorized

Using jQuery with Other Libraries

August 1st 2009

Using jQuery with Other Libraries

When we are using jquery with other js framework (like Prototype, MooTools, or YUI)  it will throw js error.
element.dispatchEvent is not a function
element.dispatchEvent(event);
However we can override the jquery $ function by calling jQuery.noConflict() at any point after jQuery and other library have both loaded. For example:
<script src=”prototype.js”></script>
<script src=”jquery.js”></script>
<script>
jQuery.noConflict();
// Use jQuery via [...]

Read On No Comments

PHP Mysql Interview Question and Answers

April 21st 2009

PHP Mysql Interview Question and Answers

Read On 1 Comment

Scan directory using php

February 11th 2009

Scan directory using php
http://www.phpsmarts.com/rnd/scandir/
enjoy

Read On No Comments

Photo upload like flickr using yahoo UI

February 11th 2009

Photo upload like flickr using yahoo UI.
http://www.phpsmarts.com/photos/
click on “upload photos” try demo/demo
enjoy

Read On No Comments

Find Latitude and Longitude of a place using google map

February 11th 2009

Find Latitude and Longitude of a place using google map.
http://www.phpsmarts.com/loglat.php

Read On No Comments

Tips for newbie

January 24th 2009

Tip 1: MySQL Connection Class
The majority of web applications I’ve worked with over the past year have used some variation of this connection class:

class DB {
function DB() {
$this->host = “localhost”; // your host
$this->db = [...]

Read On 1 Comment

Tips for optimizing your php code

January 24th 2009

Tips for php

Read On No Comments

How to Study for the Zend Framework Certification Test

January 22nd 2009

How to Study for the Zend Framework Certification Test

Read On 1 Comment

PHP Sources and Resources

January 21st 2009

PHP Function Reference
PHP Function Reference (PHPfr) is a Mac OS X dashboard widget that provides a fast look-up of information about the PHP Web programming language.
PHP advent 2008
In December, phpadvent.org collected the wisdom of people in the PHP community who kindly donated their ideas and tips to see us through the new year.
Useful in-browser development [...]

Read On No Comments

PHP IDEs and Editors

January 21st 2009

PHPEclipse
PHPEclipse is a popular PHP source-code editor that is open source and runs on all the major operating systems, such as Windows, Linux and Mac OS. It has all the features you’d expect from a PHP source-code editor, such as code-folding, syntax highlighting, hover-over tool tips and support for XDebug and DBG.
PhpED
PhpED is an excellent [...]

Read On No Comments


Categories
Blogroll