Jump to content

rnb_cassanova

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rnb_cassanova's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi lads, qucik question, one command im not familar with is - $TofD = $_POST["TofD"]; can some explain? Thanks David
  2. I have downloaded that open source calendar, but ill be honest, I have no clue where to start when installing it. Sorry, just quite new to this all. Any assistance would be helpful. Cheers lads, David
  3. Hi Guys, I need a calendar in PHP that will allow me to mark of dates. so for example if a week is booked, i can colour code it so show this. Any ideas how I can implement this? Thanks for you help in advance, David
  4. hi im sorry, it worked perfect my fault. thanks for all your help Ray. Solved. Cheers David
  5. hi, i inserted that to recieve the error- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-3803417-1"; urchinTracker(); </script> im a bit lost now. if you can help i would appreciate it? Cheers David
  6. no cigar mate, im getting this error... http://i32.photobucket.com/albums/d36/B_318is/error-upload.jpg and on IE the link is dead. Cheers david
  7. the one you sent me the - <?php $dir = "C:/wamp/www/DV8 System/uploads"; if ($handle = opendir($dir)) { /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { if($file != ".." && $file != "."){ echo '<a href="'.$dir."/".$file.'" target="_blank" border=0>'.$file.''; } } } ?>
  8. it will be image files, so JPEG, BMP, GIF and PNG's i believe. any ideas? cheers david
  9. sorry forgot to say, also if i 'save target as' it will not download also. Cheers david
  10. fantastic, it reads from the file correctly but when i click the link, I am not given the option of saving the file but instead an error that says Firefox cannot open the file. How can i rectify this, thanks for your help lads. David
  11. Hi, im currently getting the following error Warning: opendir(/Uploads) [function.opendir]: failed to open dir: No error in C:\wamp\www\DV8 System\TargetUploadsPage.php on line 3 I have changed the target directory, but am leaving something out. the file is within the root and called \uploads Cheers lads david
  12. i have a target folder where the users uploads defaults to but now i want to be able to see whats in that folder, but only that folder, so in essence the best way i can describe is something like this... http://esupport.epson-europe.com/ProductHome.aspx?lng=en-GB&data=dkmEK02SU002FeroarA05EEv55UIF0kgE0cfqxevtXS8ndgU003D&tc=6#7 all of the files in one place, constantly updated and the user can download. I hope im making sense, Cheers David
  13. hi guys, As you may have seen I have completed the upload facility, i now need to be able to retrieve them from the destination file through the system. Can anyone help with a method? Thanks David
  14. Dennis, That worked perfect, thanks so much for that mate. Really appreciate the help. All the best, David
  15. Hi sorry, DV8 System/Uploads/Dave.doc Warning: move_uploaded_file(DV8 System/Uploads/Dave.doc) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\wamp\www\DV8 System\ValidatingUploadAdminForm.php on line 9 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\wamp\tmp\phpE8A3.tmp' to 'DV8 System/Uploads/Dave.doc' in C:\wamp\www\DV8 System\ValidatingUploadAdminForm.php on line 9 Possible file upload attack! Here is some more debugging info:Array ( [userfile] => Array ( [name] => Dave.doc [type] => application/msword [tmp_name] => C:\wamp\tmp\phpE8A3.tmp [error] => 0 => 28160 ) ) the code is [code <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="ValidatingUploadAdminForm.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form> ] and <?php // In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead // of $_FILES. $uploaddir = 'DV8 System/Uploads/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo $uploadfile; echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; } else { echo "Possible file upload attack!\n"; } echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?> sorry its everywhere, if there is a better method of pasting this please let me know. Cheers David
×
×
  • 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.