Jump to content

mstabrey

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mstabrey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I could probably get away with having only 1 password... the idea of securing a folder is good. Thanks.
  2. I'm looking for an extremely basic username and password system (non-database driven) to be able to access a specific web page. It's got to have only one pre-defined username and maybe three different password possibilities. Does anything like this exist on this site or anywhere else (have looked, but can't find). TIA Mart
  3. I have no idea what you're talking about, but I will find out from our hosters. Thanks!
  4. I get the following two lines of errors when trying to upload a file to a server: Warning: copy(): open_basedir restriction in effect. File(../uploads/Muiz1.JPG) is not within the allowed path(s): (/usr/www/users/pretex:/usr/home/pretex:/tmp:/usr/local/lib/php) in /usr/www/users/pretex/uploader.php on line 4 Warning: copy(../uploads/Muiz1.JPG): failed to open stream: Operation not permitted in /usr/www/users/pretex/uploader.php on line 4 Could not upload file Here is the php file: <?php if( $_FILES['file']['name'] !='') { copy ( $_FILES['file']['tmp_name'], "../uploads/" . $_FILES['file']['name'] ) or die ("Could not upload file" ); } else{ die( "No file specified" );} ?> <html> <body><h2>File upload complete</h2> <ul> <li>Sent: <?php echo $_FILES['file']['name']; ?> <li>Size: <?php echo $_FILES['file']['size']; ?> bytes <li>Type: <?php echo $_FILES['file']['type']; ?> </ul> </body> </html> Any ideas anyone? Mart
  5. Wow thanks! 2 things: 1. Where do I specify a folder called "trailers" to upload to? 2. I get an error message "Warning: copy(asoutput.log): failed to open stream: Permission denied in /usr/www/users/muizenj/test.php on line 17" when I press the upload button. Is this related to my question 1 possibly. Mart
  6. I'm looking for some code to be able to upload files to a server. Have found something on this site, but it's way to in-depth for what I need. All I'm looking for is a single field for the file name with a browse button, and then an upload button. Nothing more than this ie. no validation etc. Does something simple like this exist? TIA Mart
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.