Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Server Error 500. Total Newbie. Ugh. Post 25834 by norsk hedensk on Tuesday 6th of August 2002 10:02:51 AM
Old 08-06-2002
i noticed you said uploaded in ascii, ive always thought that you should up load in binary, just an observation.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

is this the UNIX operating system board? TOTAL NEWBIE

I'm trying to find information to help me switch to UNIX os from Windows98. Is this where I should be? If so, can someone get me started? I have a Compaq Presario 5030 with a USR 56k modem and other peripherials. Sound card is integrated onto the motherboard (I think). So, I need drivers, etc. Any... (2 Replies)
Discussion started by: leohutt
2 Replies

2. Shell Programming and Scripting

Total Newbie help getting sarted...

Basically i am not looking for you guys to write the script for me but help me understand how to write it and point me in the write direction. I can see what i want to do, just having trouble putting it into shell. I have a file Blah.txt with 400 DN's in it. I need to modify two attributes... (1 Reply)
Discussion started by: ph1ngering
1 Replies

3. Shell Programming and Scripting

total newbie

Hi everyone... i'm starting to learn kshell scripting... my first task is to write a script that would execute some mysql statements to query some data, to transfer it into a file for record basis... Anyone has any samples to share? or perhaps some tips here and there? Thanks in advance...... (2 Replies)
Discussion started by: 12yearold
2 Replies

4. Shell Programming and Scripting

500 Internal Server Error

:)Hi, I am working on perl-cgi script which i wrote on unix server, and now i want to run it from windows. Have put DNS entry, sybase and apache is running... But still I am getting 500 Internal Server Error!!! what could be the reason? (2 Replies)
Discussion started by: darshakraut
2 Replies

5. Web Development

weird 500 Internal server error

Hi All, I am seeking some help. While trying to access my website: EDITED (hosted on private server somewhere - don't want to publicize names) - I have a weird behaviour: I can always get to the site - but some applications get a 500 Internal error. If I use FireBug (mozilla addon) I can... (2 Replies)
Discussion started by: saariko
2 Replies

6. Shell Programming and Scripting

Fill the values between -500 to 500 -awk

input -200 2.4 0 2.6 30 2.8 output -500 0 -499 0 -488 0 .......... .......... .... -200 2.4 .... ... 0 2.6 (6 Replies)
Discussion started by: quincyjones
6 Replies

7. Shell Programming and Scripting

500 internal server error

Hi, I need a quick help from GURUs of PERL. I moved a website to a new location and got an error "Internal Server Error" instead of specific error. As i don't know PERL so i don't know how to fix it. Can anybody help me to fix this error or to generate a specific error which i can... (3 Replies)
Discussion started by: shahzad79
3 Replies

8. UNIX for Dummies Questions & Answers

I have this box thing, total newbie here can someone explain?

Hey guys, I'm really new to all this side of computing and have just had this box sort of left with me and it peaked my curiosity. So i would up here in a desperate bid to find out what the hell it is because although its sort of obvious what it is, no where online is able to give me a detailed... (5 Replies)
Discussion started by: anthony346
5 Replies
MOVE_UPLOADED_FILE(3)							 1						     MOVE_UPLOADED_FILE(3)

move_uploaded_file - Moves an uploaded file to a new location

SYNOPSIS
bool move_uploaded_file (string $filename, string $destination) DESCRIPTION
This function checks to ensure that the file designated by $filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by $destination. This sort of check is especially important if there is any chance that anything done with uploaded files could reveal their contents to the user, or even to other users on the same system. PARAMETERS
o $filename - The filename of the uploaded file. o $destination - The destination of the moved file. RETURN VALUES
Returns TRUE on success. If $filename is not a valid upload file, then no action will occur, and move_uploaded_file(3) will return FALSE. If $filename is a valid upload file, but cannot be moved for some reason, no action will occur, and move_uploaded_file(3) will return FALSE. Additionally, a warning will be issued. EXAMPLES
Example #1 Uploading multiple files <?php $uploads_dir = '/uploads'; foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) { $tmp_name = $_FILES["pictures"]["tmp_name"][$key]; $name = $_FILES["pictures"]["name"][$key]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); } } ?> NOTES
Note move_uploaded_file(3) is both safe mode and open_basedir aware. However, restrictions are placed only on the $destination path as to allow the moving of uploaded files in which $filename may conflict with such restrictions. move_uploaded_file(3) ensures the safety of this operation by allowing only those files uploaded through PHP to be moved. Warning If the destination file already exists, it will be overwritten. SEE ALSO
is_uploaded_file(3), rename(3), See Handling file uploads for a simple usage example. PHP Documentation Group MOVE_UPLOADED_FILE(3)
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy