By getting only the base filename, not full path to the file upload form

I can't get the full path of the file in the html code that I need for my script php to a video file of ftp.  I shows the method of recovery of the info file in php first.  My ftp_nb_fput fails because it cannot find the file because it assumes that it is on the server, not the local machine.  I use this so I can see the progress of the transfer without too much code:

ANY HELP WOULD BE GREATLY APPRECIATED!

<? PHP

$source_file = isset($_POST['filen'])? ($_POST ['filen']):($_SESSION['filen']);

'

'

$fp = fopen ($fichier_source, "r");

$ret = ftp_nb_fput ($id_conn, $destination_file, $fp, FTP_BINARY);
While ($ret is FTP_MOREDATA)
{
$uploaded = 100 * ftell ($fh) / $file_size;
Print "$uploaded % full \n";
Continue downloading...
$ret = ftp_nb_continue ($conn_id);
}
If ($ret! = FTP_FINISHED)
{include 'upload_video_failed.htm';
output (1) ;}
else {include 'upload_video_db.php' ;}
fclose ($FP);

'

'

? >

"< FORM METHOD ="POST"ENCTYPE =" multipart/form-data"ACTION="./upload_video.php ">

< TABLE >
< b >
< TD > video < span class = "style1" > * </span > < table >
< TD > < INPUT NAME = "filen" id = "filen" TYPE = 'file' size = '30' class = "fields" > < table >
< /TR >
< b >
< TD > title < span class = "style1" > * </span > < table >
< TD > < INPUT NAME = "title" id = "title" TYPE = "text" size = "43" class = "fields" > < table >
< /TR >
< b >
< TD > class < span class = "style1" > * </span > < table >
< TD > < select name = "category" id = 'category' class = "h1" >
< option > select the category that best describes your video < / option >
< option > documentary < / option >
< option > Educational < / option >
Interesting facts < option > < / option >
< / select >
< Table >
< /TR >
< TR VALIGN = "top" >
Description < TD > < table >
< TD > < TEXTAREA NAME = "description" id = cols "description" = "32' RANKS '2' WRAP = class ="h1"> < / TEXTAREA > < table >
< /TR >
< b >
Term < TD > < span class = "style1" > < / span > < table >
< TD > < select name = "duration" id = "term" class = "h1" >
< option > 1 day < / option >
< option > 1 week < / option >
< option > 1 month < / option >
< option > 3 months < / option >
< option > 6 months < / option >
< option > 1 year < / option >
< option > until this that deleted < / option > < / select >
< Table >
< /TR >
< b >
< TD > tags < span class = "style1" > < / span > < table >
< TD > < INPUT NAME = "tags" id = "tags" TYPE = "text" size = "43" class = "fields" > < table >
< /TR >
< b >
< TD > < table >
< TD > < name INPUT = 'Submit' TYPE = "Submit" VALUE = "Upload" > < table >
< /TR >
< /table >
< / MAKE >

marcusinfla wrote:

ONLY PROBLEM, IT IS THAT I CAN'T DOWNLOAD THE VIDEOS MORE THAN 4 MB.  I've included the attribute MAXLENGTH = 100000000 (100 MB) and it does not help.

ANY IDEAS?

A good idea is to read the PHP manual. As explained in the next page, the maximum size of the downloads is controlled by the PHP configuration directives: http://docs.php.net/manual/en/features.file-upload.common-pitfalls.php. Normally, the maximum size of an individual file is 2 MB, and the maximum total value is 8 MB. If you are on shared hosting, I doubt that if the hosting company will be willing to change the configuration directives to allow 100 MB mail, but you can always ask.

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • I have a problem emting my trash

    There a PDF in there and when I try to vacuum, it indicates the pdf file is in use and I my can continue, skip, stop I pressed each one and it won't erase what I'm missing

  • Y410P WLAN intel centrino 2230 major connection problem

    A few months ago, I bought my ideapad y410p and was very happy with her on the set of some time. Just last month my wireless has acted significantly upward, and I have no idea of what is happening. My home wireless router has been no change, but now

  • C drive and D drive reverse

    I just bought an Acer Aspire V Nitro, but I was already low on disk after installation of space a few apps. Looking at my readers, it seems that the C and the D are flopped - I have a set of TB of data on the D: drive and virtually nothing on the C:

  • Can't access the option full screen

    I tried to fix it myself.  I can access is no longer a mode full-screen.  Once I'm in full screen for a split second I and then the screen goes into colored pixels.  No picture.  I think it might have something to do with the VIA Chrome 9HC IGP Windo

  • I have an older version of photo shop. I need an authorization code

    I have an old version of photoshop and I need an authorization code. on the package it comes a CS but when it loaded information is Version 8"C:\Program Files (x 86) \Adobe\Photoshop.