greyimg

AJAX server to server direct file transfer UPDATED

Posted by guru in September 27th, 2007 | 5 comments 
Published in fcs, Javascript, PHP

A while ago, I had posted an article about transferring files from one server to another directly, that also included an AJAX demo. An updated version of the AJAX demo is now available to download from this post.
I had always been missing a system like this in Wordpress and Joomla (to install plug ins). This […]

go to permalink....

AJAX Server to Server direct file transfer

Posted by guru in September 26th, 2007 | 4 comments 
Published in HTML, Javascript, PHP, Uncategorized

[An updated version of this code is now available!]
I had always been missing a system like this in Wordpress and Joomla (to install plug ins). This codes snippet lets to transfer files directly from one server to another without having to do a pesky job of downloading them to your computer first and uploading it […]

go to permalink....

Persistent database connection, clearing the mysteries

Posted by guru in September 23rd, 2007 | 2 comments 
Published in mysql, Apache, PHP

What are persistent database connections?
There are two ways that you can use database on PHP,

Open a connection to the database, perform your query and then close it. Repeat the same thing for each and every query or at least each and every page.
Open a connection to the database, perform your query, leave the connection unclosed so that […]

go to permalink....

A better experience with file uploading through PHP

Posted by guru in September 23rd, 2007 | 7 comments 
Published in HTML, Javascript, PHP

As web technology evolves, a focus has always been on trying to make a web application act more like a desktop application. This involves the implementations of techniques like AJAX and DOM to make web pages act more swift and sound. In this article we’ll talk about ways to improve the file uploading experience with […]

go to permalink....

What is AJAX?

Posted by guru in September 20th, 2007 | 3 comments 
Published in Quick Info, Javascript, PHP

AJAX is a soccer club in the dutch league.
You might have heard a thousand times that big websites like gmail or live mail uses AJAX technology. You might think its a component like flash or java applet. Infact its about 5 lines of javascript. So, lets reduce it’s name from AJAX technology to […]

go to permalink....

Grab title from other website

Posted by guru in September 18th, 2007 | 3 comments 
Published in PHP

I used this code when programming a web application that needed to fetch the title from user’s website. It uses Ajax to pull and show the title from a website or webpage. I thought this might help some of my readers so, here is the code:
Download the file: Fetch title from other website
Use/Modify/Distribute the code freely, as you […]

go to permalink....

Making your own reloadable CAPTCHA using PHP

Posted by guru in September 14th, 2007 | 4 comments 
Published in PHP

Have you ever noticed a security image while signing for an account on sites like Google mail or Windows live mail and thought of it as an useless stuff? Infact it is so vital that thousands of websites are using these images called CAPTCHA for anti-spam.
If you reached this page searching for the simplest way to make a […]

go to permalink....

Serving files through PHP

Posted by guru in September 12th, 2007 | 21 comments 
Published in PHP

UPDATE:
- I’d like to thank a friend who detected this bug:
Microsoft Windows users, please change the following line:
if (realpath($allowedfilepath).”/$file” …
to,
if (realpath($allowedfilepath).”\\$file” …
 
Serving files through PHP is basically needed in two cases:
1) When you want to count the number of times it has been downloaded.
2) When you don’t want to give direct access to the file from your […]

go to permalink....

Storing PHP session to mysql database

Posted by guru in September 8th, 2007 | 16 comments 
Published in PHP

Possibility, advantages, disadvantages and procedure of storing session data into a database.
If you are a web application developer or have experience in making PHP programs, you are provably familiar with the concept of session system. Normally, PHP would save your session data into a file inside a folder that you specify using php.ini file.
Since, PHP […]

go to permalink....

Social Feeds

Topics Search

Main Translator

French

German version

Spanish version

Italian version

Categories

Recent Articles

Recent Posts

Recent Commentes

August 2008
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031

Blogroll

Navigation

Share!

Add to Technorati Favorites
Add to Google Add to Windows Live