| | #1 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
|
Hi, Please anyone tell me what is the difference between the functions unlink and unset? |
| | |
| |
| | #2 |
| Web Developer War Room Member Join Date: 2012 Location: Vancouver, BC
Posts: 593
Thanks: 149
Thanked 162 Times in 133 Posts
|
People who post questions that clearly have done no research should have their sig link removed. If you posted that question into google instead you would have received an answer much easier... but then you wouldn't get your sig link exposure...
|
| |
| |
| The Following User Says Thank You to Andrew H For This Useful Post: |
| | #3 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
unset - Destroys a Variable (http://www.php.net/unset) PHP.net is your buddy. | |
| | ||
| |
| | #4 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi shahriyar, Thanks, I am new to php. I think php.net site is very helpful for me to learning. Is there any other sites to easily learn PHP ? |
|
Luke Wright, connected commerce | |
| |
| | #5 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
http://www.w3schools.com/ Very good video tutorials (free), http://thenewboston.org/list.php?cat=11 | |
| | ||
| |
| | #6 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Thanks shahriyar. i think easy to learn w3schools.com site. thanks again for help...
|
|
Luke Wright, connected commerce | |
| |
| | #7 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
Your are very welcome. Happy Holidays!
|
| | |
| |
| | #8 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
|
Thank you very much shahriyar............
|
| | |
| |
| | #9 | |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
| |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | ||
| |
| The Following User Says Thank You to David Beroff For This Useful Post: |
| | #10 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
|
hello, permission denied - unlink() unlink() is not working for me. any idea? |
| | |
| |
| | #11 |
| Active Warrior War Room Member Join Date: 2013
Posts: 48
Thanks: 0
Thanked 9 Times in 9 Posts
|
you can only unlink a file that's owned by the process php is running as. if php is run as nobody (apache user) and the file is not owned by nobody youll get a permission denied error also some hosts might disable unlink.
|
| |
| | #12 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
http://forums.phpfreaks.com/topic/17...-on-directory/ http://stackoverflow.com/questions/1...ied-php-unlink | |
| | ||
| |
| The Following User Says Thank You to shahriyar For This Useful Post: |
| | #13 |
| digital carpenter War Room Member Join Date: 2013 Location: Pennsylvania
Posts: 1,306
Thanks: 480
Thanked 747 Times in 444 Posts
|
unlink = deletes a file unset = 'functionally' destroys a varible |
| | |
| |
| | #14 |
| Warrior Member Join Date: 2013
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
hi, can we delete a folder using unlink()? |
|
Luke Wright, connected commerce | |
| |
| | #15 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
No, use rmdir for that. http://www.php.net/manual/en/function.rmdir.php |
| | |
| |
|
| Bookmarks |
| Tags |
| php, unlink, unset |
| |