SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delete image from folder inside of the server

    hi everyone.

    i searched about how i can remove a image in a folder inside of my server, i saw that i can use unlink() but it is not working i have the right directory and all the permissions and it says:

    Warning: unlink(URL): No such file or directory in /var/www/some name/some name/social/some name.php on line 33

    and the line 33 have unlink(URL).

    Anyone can give me some help?

    Thanks community

  2. #2
    SitePoint Zealot Sogo7's Avatar
    Join Date
    May 2011
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    1. Have you been into the file manager in Cpanel to see if the file still exists?
    2. Did you use a relative URL from the unlink script to the file you wanted deleting?
    Lovelogic.net Personal Projects Pit - Spammers welcome

  3. #3
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem resolved.

    Thanks

  4. #4
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,369
    Mentioned
    80 Post(s)
    Tagged
    3 Thread(s)
    And the problem was?

  5. #5
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    replace URL from $URL, so difficult xD

    Thanks anyway

  6. #6
    SitePoint Zealot Sogo7's Avatar
    Join Date
    May 2011
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    oh I do that when swapping between javascript and PHP, am always forgetting the $
    Lovelogic.net Personal Projects Pit - Spammers welcome


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
  •