ngkamsengpeter
- 193
- 0
I want to place a video conferencing script on my webpage so that my member can use it but i don't know how to program it . Can anyone teach me ? Can i program it in php ?
I just want to learn to create my one , anyone can help ?And do anybody now how to make a textarea become a editor instance just like tinymce . I want to make my own one , don't want to use tinymce, so any tutorial on it . Please help .-Job- said:Do you mean something like MeeboMe http://www.meebome.com/ ?
These are third party plugins so you'd just drop them on your site following the manufacturer's directions.
I know a javascript and know how to do it for some of the function at the tinymce but just don't understand why a table or picture can be shown at the textarea ?How can it do that-Job- said:I can't help you unless go do some research first and come back with some more specific questions. For Video Conferencing look into Flash. For doing something akin to TinyMCE Javascript is sufficient, but you need to have a fairly good understanding of it.
asf: ContentType = "video/x-ms-asf"
avi: ContentType = "video/avi"
doc: ContentType = "application/msword"
zip: ContentType = "application/zip"
xls: ContentType = "application/vnd.ms-excel"
gif: ContentType = "image/gif"
jpg: ContentType = "image/jpeg"
jpeg: ContentType = "image/jpeg"
wav: ContentType = "audio/wav"
mp3: ContentType = "audio/mpeg3"
mpg: ContentType = "video/mpeg"
mpeg: ContentType = "video/mpeg"
rtf: ContentType = "application/rtf"
htm: ContentType = "text/html"
html: ContentType = "text/html"
asp: ContentType = "text/asp"
<?php
function readfile_chunked($filename,$retbytes=true) {
$chunksize = 1*(1024*1024); // how many bytes per chunk
$buffer = '';
$cnt =0;
// $handle = fopen($filename, 'rb');
$handle = fopen($filename, 'rb');
if ($handle === false) {
return false;
}
while (!feof($handle)) {
$buffer = fread($handle, $chunksize);
echo $buffer;
if ($retbytes) {
$cnt += strlen($buffer);
}
}
$status = fclose($handle);
if ($retbytes && $status) {
return $cnt; // return num. bytes delivered like readfile() does.
}
return $status;
}
?>