PHP + APC Progressbar für Dateiupload

Hallo,

ich habe eine spezielle Frage zu PHP und ACP. Und zwar habe ich dieses Tutorial heruntergeladen und auf meinem Server installiert: http://www.ibm.com/developerworks/library/os-php-v525/index.html
Funktioniert auch gut, wenn ich es teste wie es ist. Als ich mir die Dateien genauer angeschaut habe ist mir dieser Eintrag hier aufgefallen:

<script src="http://maps.google.com/maps?file=api&v=2&key=YOURKEYHERE"
type="text/javascript"></script>

Das merkwürdige ist, wenn ich diesen Code entferne wird die Progressbar nicht mehr aktuallisiert. Ich frage mich also was dieser Eintrag für eine Funktion erfüllt.

Ich hoffe ihr könnt mir weiterhelfen

mfG Prophion
 
Steht eigentlich auf der Seite:


Now, the getProgress() script is where things get interesting. Remember early on, I said that we will need to use Ajax or some similar method to check on the file's progress? Well, in this case, the form uses a shortcut, calling the GdownloadUrl() function from the Google Maps API library. (Notice that the form imports the library at the top of the page. You'll need to obtain your own key for this library, but it's free from Google.)


Die Funktion GdownloadUrl() setzt einen Ajax-Request ab, deshalb geht es auch nicht mehr wenn Du das einbinden der Google-API entfernst.
 
Zurück
Oben