Jump to content

phpcoder2013

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by phpcoder2013

  1. Never mind, the following script only minimally uses my internet connection
  2. Just tested the code and worked as expected. Copied example.txt to example.txt.bak in the same directory. Can you tell me why I will have a big mess?
  3. I think it copies from one location to another then renames it.
  4. Than what is kicken, on 21 Aug 2013 - 9:15 PM trying to say?
  5. I need to modify the script to additionally do the following: Once the image is on the server, I want it to duplicate itself, then, rename the new duplicated file to a variable name. (Let's say $TEST . '.jpg' where $TEST = TESTING for this example) My current piece of code: This following piece of code might assist you: PS: I am quite new to PHP. (Introduced to it only about 3 days ago)
  6. Thanks so much! But may I ask why in the tutorial it says $date = new DateTime(); echo $date->format('U = Y_m_d-H:i:s') instead of echo date('Y_m_d-H:i:s')?
  7. Thank you anyways. I somehow fixed the code while fiddling with it.
  8. Is there a way to add a timestamp when finished uploading to server? For example: An image named Testing.jpg is uploaded to the server. I want it to automatically be renamed to 2013_08_22-15:09:27-Testing.jpg (Year_Month_Day-Hour:Minute:Second-FILENAME.EXTENSION) Maybe the following code could help you while fixing my script. $date = new DateTime(); echo $date->format('U = Y_m_d-H:i:s') My current code: PS: I have only recently started to learn PHP coding (About 3 days ago)
  9. Is there a script I need to use or is there a button on the webserver?
  10. Is there any way with PHP to download a file (from a URL) to the server without using my internet connection? PS: I am new to PHP
  11. But it says: Warning: move_uploaded_file(/home/u313428959/public_html/upload/Random_Image.jpg): failed to open stream: No such file or directory in /home/u313428959/public_html/upload.php on line 14 Warning: move_uploaded_file(): Unable to move '/tmp/phpIxuO7X' to '/home/u313428959/public_html/upload/Random_Image.jpg' in /home/u313428959/public_html/upload.php on line 14 Error: A problem occurred during file upload!
  12. Can't you just provide the source for me? The codes I tried just don't work on 3owl.com but work on other servers
  13. Hello, I have a free account on 3owl.com and they support php versions 5.2, 5.3 and 5.4. (Using version 5.3) I was wondering how to create a simple upload script. (Does not need to be secure but I would like it to be secure) I currently have the following code in upload.php: ...the following in Uploader.htm: ...and the error message when I press upload: PS: I have only started learning to code PHP yesterday (Aug, 20, 2013 Tuesday) but I have had prior knowledge of HTML, Javascript and CSS.
×
×
  • 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.