php functions

Delete Files in Directory or Folder With PHP | How To Tutorial | Unlink

Delete Files in Directory or Folder With PHP

To delete files in a directory or folder with PHP, all you have to do is use the unlink function. Unlink not only deletes pictures, but will delete any kind of file in a directory. Lets get started. Unlink in PHP The unlink function has been around since PHP4. It also works on PHP5, PHP7 Read More

INSERT CONTENT HOMEPAGE POSTS WORDPRESS PHP PROGRAMMING

putting-content-inbewteen-posts-wordpress

Insert content on your homepage blogroll in WordPress by programming it in PHP. Its fairly easy and we will provide the codes for you right here. Keep in mind that you should only do this to a child theme. In the tutorial I demonstrated it on a parent theme. Follow the same procedure and edit Read More

Warning: unlink(): http does not allow unlinking in PHP

Warning: unlink(): http does not allow unlinking in PHP

In order to delete an image or file off of your server in PHP you have to use unlink(). This function will delete the file from your server. This is a permanent action and can not be undone once we completed the process. If you’re getting warning: unlink(): http does not allow unlinking in PHP, Read More