Welcome Guest, Not a member yet? Register   Sign In
Unlink an image: what path to set?
#1

[eluser]codex[/eluser]
Hello,

if you want to unlink an image, do you set the path like this?

Code:
unlink("/home/httpd/vhosts/domain.com/httpdocs/images/". $this->session_userdata('uid') ."_icon.jpg");

Or did I miss something in the manual?
#2

[eluser]Michael Wales[/eluser]
I don't believe you have to use the full server path - just from your root. I know for a fact that relative URLs are fine.

Code:
unlink('/images/' . $this->session->userdata('uid') . '_icon.jpg');
#3

[eluser]codex[/eluser]
Ah, thanks!




Theme © iAndrew 2016 - Forum software by © MyBB