What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » A little help with php please

A little help with php please
Author: Message:
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. A little help with php please
Ok guys,
I have coded a File upload system with a password Here
and it will not upload the file here is the code:
code:
<?php
$status = $_GET['upload'];
if  ($status=='1')
{
$form_password = $_POST['password'];
include("config.php");
if ($form_password == $password)
{
copy("$file","$upload_folder");
echo "<center><div class='norm'><b> was successfully uploaded To go to the file you have uploaded go to http://www.files.cloakshape.org/files</b></div></center>";
}
else
{
echo "<center><div class='norm'><b>The upload password was not correct, please go back and re-enter the password correctly.</b></div></center>";
}
}
else
{
?>
<div class="norm">This is a upload system, currently in progress of making </div>
<br>
<form action="<?php
$self_file = $_SERVER['PHP_SELF']; echo "$self_file"; ?>?upload=1" method="post" enctype="multipart/form-data" name="form1">
<table width="300" border="0" align="center">
  <tr>
    <td class="field">Password</td>
    <td><input name="password" type="password"></td>
  </tr>
  <tr>
    <td class="field">File to upload</td>
    <td><input name="file" type="file" class="upload"></td>
  </tr>
  <tr>
    <td width="336"><input type="submit" name="Submit" value="Upload" class="button"></td>
  </tr>
</table>
<?php
}
?>
</form>
</div>
</body>
</html>

then the external file (config.php)
code:
<?php

$password = '(my password)';

$upload_folder = '/files/';

?>


And it wont upload it too the files bit in my sever :S
Thanks for any help
Nathan
Touch Innovation - touch friendly programs/applications for the windows mobile!


06-20-2006 04:48 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A little help with php please - by Nathan on 06-20-2006 at 04:48 PM
RE: A little help with php please - by Mnjul on 06-20-2006 at 04:50 PM
RE: A little help with php please - by Nathan on 06-20-2006 at 05:08 PM
RE: A little help with php please - by Mnjul on 06-20-2006 at 05:15 PM
RE: A little help with php please - by Nathan on 06-20-2006 at 05:19 PM
RE: A little help with php please - by Plik on 06-20-2006 at 05:34 PM
RE: A little help with php please - by hmaster on 06-20-2006 at 05:47 PM
RE: RE: A little help with php please - by -dt- on 06-21-2006 at 03:48 AM
RE: A little help with php please - by Lou on 06-21-2006 at 03:58 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On