Note! you can put applet and dll files in the other folders then mentioned above, but you must keep in mind the following:
Please, read the following attentively before you'll try to make any changes to your configuration!
Applet uploads mp3 files to server by using HTTP POST method. On the server side the retrive.php server script receives mp3 file. If the file is too long, applet devides it on parts and uploads each part separately. The size of each part in bytes is defined by BlockSize applet parameter.
Example:<PARAM NAME = "BlockSize" VALUE = "20480">
Applet uploads voice file in the folder, defined by VoiceServerFolder and UserServerFolder parameters like http://www.yourhost.com/mail/VoiceServerFolder/UserServerFolder/, where /mail/ is the folder that contains retrive.php.
VoiceServerFolder applet parameter defines folder reletively folder which contains retrive.php.
UserServerFolder applet parameter defines folder which is in the VoiceServerFolder.
Please, read two examples of defining VoiceServerFolder parameter.
Example 1.
Files on server:http://yourserver.com/mail/mail.php
http://yourserver.com/mail/retrive.php
http://yourserver.com/voicefiles - main folder for voice files
So, you should define such applet parameters:
<PARAM NAME = "VoiceServerFolder" VALUE = "/../voicefiles/">
<PARAM NAME = "UserServerFolder" VALUE = "mail">
So, voice files would be written in
http://yourserver.com/mail/../voicefiles/mail/ directory, that is the same to
http://yourserver.com/voicefiles/mail/
Example 2.
Files on server:
http://yourserver.com/mail/mp3recorder/mail.php
http://yourserver.com/mail/mp3recorder/retrive.php
http://yourserver.com/music/voicefiles - folder for voice files
You should define such applet parameters:
<PARAM NAME = "VoiceServerFolder" VALUE = "/../../music/voicefiles/">
<PARAM NAME = "UserServerFolder" VALUE = "smth">
So, voice files would be written in
http://yourserver.com/mail/mp3recorder/../../music/voicefiles/smth/ directory,
that is the same to
http://yourserver.com/music/voicefiles/smth/
Example 3.
Files on server:
http://yourserver.com/mail/mp3recorder/mail.php
http://yourserver.com/mail/mp3recorder/retrive.php
http://yourserver.com/music/voicefiles - folder for voice files I
f you don't want to make folder inside voicefiles directory, you should define
such parameters:
<PARAM NAME = "VoiceServerFolder" VALUE = "/../../music/">
<PARAM NAME = "UserServerFolder" VALUE = "voicefiles">
So, voice files would be written in
http://yourserver.com/mail/mp3recorder/../../music/voicefiles/ directory, that
is the same to
http://yourserver.com/music/voicefiles/
By default, you should put your mail.php file and retrive.php file in the same directory on server, but you can also put them into different directories. To make that you should define VoiceServerFolder parameters in mail.php and retrive.php separately. In mail.php you should define VoiceServerFolder according to the place of mail.php, in retrive.php you should define VoiceServerFolder accoreding to the place of retrive.php. Please look through the examples to understand more.
Example 4.
Files on server:
http://yourserver.com/mail/mp3recorder/mail.php
http://yourserver.com/retrive/retrive.php http://yourserver.com/music/voicefiles
- folder for voice files
You should define such applet parameters:
<PARAM NAME = "VoiceServerFolder" VALUE = "/../../music/voicefiles/">
<PARAM NAME = "UserServerFolder" VALUE = "smth">
In retrive.php you should replace lines below i
f(isset($_POST["VoiceServerFolder"])) $VoiceLocal = $_POST["VoiceServerFolder"];
else $VoiceLocal="/../voicefiles/";
by
$VoiceLocal ="/../music/voicefiles/";
So, voice files would be written by retrive.php to
http://yourserver.com/mail/../music/voicefiles/smth/ directory, that is the
same to
http://yourserver.com/music/voicefiles/smth/
And applet'll read them from
http://yourserver.com/mail/mp3recorder/../../music/voicefiles/smth/ directory,
that is the same to
http://yourserver.com/music/voicefiles/smth/
Example 5.
Files on server:
http://yourserver.com/mail/mp3recorder/mail.php
http://yourserver.com/script/retrive.php http://yourserver.com/voicefiles -
folder for voice files
If you don't want to make folder inside voicefiles directory, you should define
such parameters
<PARAM NAME = "VoiceServerFolder" VALUE = "/../../">
<PARAM NAME = "UserServerFolder" VALUE = "voicefiles">
In retrive.php you should replace lines below
if(isset($_POST["VoiceServerFolder"])) $VoiceLocal = $_POST["VoiceServerFolder"];
else $VoiceLocal="/../voicefiles/";
by
$VoiceLocal ="/../";
So, voice files would be written by retrive.php to
http://yourserver.com/retrive/../voicefiles/ directory, that is the same to
http://yourserver.com/voicefiles/ And applet'll read them from
http://yourserver.com/mail/mp3recorder/../../voicefiles/ directory, that is
the same to
http://yourserver.com/voicefiles/
1. You push the “Record” button but recording applet does not record the sound. Alert window with “Error.
Object does not support this property or method” message appears.
Reasons:a) Probably, the recording applet is not downloaded from the server to the client machine. For successful downloading the RPAppletMp3.cab and RPAppletMp3.jar must be located on the server in the same directory with web page which calls the applet ( mail.php). The RPAppletMp3.cab and RPAppletMp3.jar can be placed also in the other directory, but in the recording applet call in the CODEBASE must be indicated the full path to RPAppletMp3.cab and RPAppletMp3.jar: For instanse: CODEBASE=http://yourserver.com/mail/
At first, please, create the directories as in the documentation and examples is recommended. Then, when applet works properly, you can re-create directories as you want, correspondingly to your web application.
b) Please, check if the jaudioMp3.tar is installed on your computer. It is installed automatically when you use the applet for the first time. On the server the jaudioMp3.tar must be located in the same directory with RPAppletMp3.cab and RPAppletMp3.jar. Probably, you were wrong and jaudioMp3.tar is located in the other directory.
c) If audio recording still does not work, please, copy the Java console content and send to support: info@vimas.com .You can find the Java console in the Internet Explorer browser in the View menu at the bottom (cup of coffee icon). If you do not see the Java console there, please, in the menu go to Tools->Internet option ->Advanced and choose in the Microsoft VM section the “Java console enabled”. In the Netscape 7 browser you can see the Java console in the Tools->Web Development.
1. You recorded the audio message and can playback it from your local computer succesfully. You entered the name of file and push the “Send” button, in the status line you see “Uploading audio messsage...”, but after uploading the alert window appears with “Your message could not be uploaded” message.
Reasons:
a) Server script retrive.php is written in PHP, so be sure your web server support the PHP.
b) Check the /mail and /voicefiles directories. In the example they are in the root of the web server.
c) Check the $retrive parameter in mail.php. Be sure that path to retrive.php is correct.
d) Be sure if server script has write access to the /voicefiles directory.
I can record and upload message, and I receive e-mail, but cannot listen to the file
Reasons:
a) the link to mp3 file is broken
b) web server does not allow you download mp3 file
Troubleshooting:
Check the $FullPathToVoiceFileDir parameter in sendmail.php
file. It should have FULL path to mp3 files directory, including subdirectory
of voicefiles folder (if your configuration needs that).
Make sure your file exists on server and then try to downolad it directly from
web-browser. I you cannot, contact your server administrator to solve this problem;
I can record and upload message but mail is not transferred to MTA
Reasons:
a) there are no MTA available to your web server
b)mail function in PHP is not configured
Troubleshooting: Try to make simple PHP script that sends e-mail message. Make sure it works, if it is not, contact your server administrator and ask him to configure mail function in PHP