|
|
Registered tutorials: 501 Registered Users: 24390
|
|
Rating: 4 out of 8 votes cast
Category: Ajax and PHP
|
File Uploads in AJAX (using Dojo and PHP)
Abstract: The article shows how to upload files using Ajax (Dojo Framework) and PHP. It actually gives a very simple copy-n-paste practical example on how to take the right steps
It is easy to upload files using Ajax and PHP. How? I'll try to explain below.
We'll be using some common sense, Dojo Framework for AJAX, HTML, Apache, Javascript, and PHP. Make sure you install Apache and PHP (read other tutorials for that). I'll explain how to setup Dojo (for this tutorial) below. But before we proceed please read and understand the disclaimer below. DISCLAIMER: I have made every attempt to present accurate information, but I cannot guarantee that inaccuracies will not occur. I (the author) will not be held responsible for any claim, loss, damage or inconvenience caused as a result of any information found on this website (blog).
Make sure you configure PHP to allow file uploads.
- Fire up your browser and go to http://dojotoolkit.org/. Download Dojo form the website. I've used version 0.4.1 for this tutorial.
- After downloading the zip file go to the folder where you want to put your file upload code (I've named this file index.php). Unzip the downloaded file in that folder and rename the new folder created (e.g. dojo-0.4.1-ajax.zip) to dojo.
- Enter the code below in the head (between <head> and </head>) section of your HTML file (that contains file upload form). I'm naming it index.php.
<script language="javascript" type="text/javascript" src="./dojo/dojo.js"></script>
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
2174 |
| Unique Hits: |
1854 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
5 |
6.1 |
27.4 |
32.4 |
86 |
99.6 |
| Current |
4 |
4 |
24 |
30 |
119 |
142 |
| Previous |
3 |
4 |
34 |
39 |
157 |
184 |
| Jul 22 |
4 |
7 |
38 |
45 |
0 |
0 |
| Jul 21 |
13 |
15 |
27 |
32 |
180 |
209 |
| Jul 20 |
5 |
6 |
35 |
42 |
73 |
78 |
| Jul 19 |
3 |
3 |
0 |
0 |
88 |
96 |
| Jul 18 |
0 |
0 |
31 |
38 |
0 |
0 |
| Jul 17 |
5 |
6 |
36 |
40 |
55 |
61 |
| Jul 16 |
5 |
7 |
49 |
58 |
111 |
128 |
| Jul 15 |
8 |
9 |
0 |
0 |
77 |
98 |
| Highest |
14 |
15 |
49 |
58 |
180 |
209 |
|
|
|
Script Execution Time: 1.136 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|