SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 42 of 42

Thread: Need some help!

  1. #26
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok got it working, just need to figure out the output now.
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  2. #27
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    copy(http://www.speedyuploads.com/site/u...7378a6078bl.jpg)

    in this dont use such path
    use like
    copy(site/u...7378a6078bl.jpg)

  3. #28
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how it started working just let me know wht was the issue

  4. #29
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So its working fine. It changes the file and uploads it to the server. But see where I have it output the file URL with the html code, and bb code for the people to copy and paste. Well it spits out the url of the original file name.
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  5. #30
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but at location http://speedyuploads.com/site/uploaded.php

    it is still showing me
    There already exists a file with this name, please rename your file and try again

  6. #31
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  7. #32
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.speedyuploads.com/site/index2.php

    now am facing the same proble on above location

  8. #33
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is ur peoblem solved?

  9. #34
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It still say There already exists a file with this name, please rename your file and try again for you? Not for me, I just tried it again.
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  10. #35
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    5 am, I need to hit the sac. Any ideas let me know. Thanks a ton for your help tonight man!
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  11. #36
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok i'll let u know

  12. #37
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes uíll face the same problem coz :
    In this line of code
    if (file_exists($path . $HTTP_POST_FILES['userfile']['name'])) {
    it is checking for image.jpg exists not for 44ab812c57296image.jpg

  13. #38
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can I change that to check for the right image?
    Hexation Media
    SpeedyUploads.Com - Free Image Hosting Services.

  14. #39
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont think this is necessary
    if (file_exists($path.$HTTP_POST_FILES['userfile']['name'])) {
    echo "<font color=\"#333333\" face=\"Geneva, Arial, Helvetica, sans-serif\">There already exists a file with this name, please rename your file and try again</font><br>\n"; exit; }


    coz when u r using $res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path.uniqid('').$HTTP_POST_FILES['userfile']['name']);

    it is going 2 creat an image with uniq id
    ..... am loking why ur code is not working and it is working at my place.

  15. #40
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait for 5 minutes

  16. #41
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One more thing when I upload image say IMG.jpg from http://www.speedyuploads.com/site/index2.php location it uploads now if am trying to upload same image by going on same URL (http://www.speedyuploads.com/site/index2.php) intead of http://www.speedyuploads.com/site/upload.php it works ,

    IT IS NOT WORKING WHEN UR TRYING TO UPLOAD IT FROM THIS LOCATION http://www.speedyuploads.com/site/upload.php
    I hope u understood what I am trying to say.

  17. #42
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is ur problem solved ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •