Toon posts:

[Java/PHP] Problemen tijdens uploaden

Pagina: 1
Acties:
  • 33 views sinds 30-01-2008

Verwijderd

Topicstarter
Hoi, Ik heb een webbased recordertje gedownload, maar het wil niet lukken om 'm aan de praat te krijgen.. Na lang zoeken kwam ik erachter dat de schrijver van het appletje hetzelfde probleem heeft als ik..

Een recorder applet die na het opnemen van voice, het bestandje zou moeten uploaden naar de server via PHP.. Er gaat iets mis tijdens het uploaden.. Iemand hier die dit gedoe wel aan de praat kan krijgen? Ben nu al een paar uur bezig, maar 't wil niet lukken :P
I authored an audio player/recorder that saves the audio data to a PHP
server instead of to the local drive.

See: http://www.freedomaudio.com/examples/recorder102/

Unfortunately the method does not work in some PHP environments. I am
confident that the applet's audio upload functions reliably, since the
method is reliable on some PHP servers like that at freedomaudio.com.
However, in other PHP environments the audio data always gets lost
somewhere between the applet's POST and PHP's storing the file on the server.

I believe the problem arises somewhere within the following snippet of script:

PHP:
1
2
3
if(is_uploaded_file($file)) {
$success = move_uploaded_file($file,$audioFileDirectory.$fileID.".ogg");
}


This script is part of the freedomrecorder.php file that is included within
the downloadable example here:
http://www.freedomaudio.c(...)/freedomrecorder.zip

The PHP environment at freedomaudio.com can be seen here:
http://www.freedomaudio.com/phpinfo.php

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 20:17

Janoz

Moderator Devschuur®

!litemod

Ten eerste is het hier niet de bedoeling dat wij support gaan leveren op scripts van derden. Ten tweede is dit een nederlands forum en wordt hier in het nederlands gecommuniceerd. En als laatste heb je volgens mij gewoon de post uit een willekeurig forum geknipt en plakt. De URL's werken niet eens allemaal. Mocht de maker graag de hulp in roepen van Programming & Webscripting dan zal hij zelf een topic moeten openen in het nederlands en volgens P&W Beleid .

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Dit topic is gesloten.