Skip to content

Tag: file

PHP viewing folder content

I am trying to create a file server. What I am trying to do is -> on the page there will be lots of folders displayed, when you click on one you will be shown its content and if there is a folder inside of this folder you can click on it and it will display the content of that

Get latest file in dir including subdirectory php

i found out that i can use to get the latest file in the given directory (‘myfolder’). is there an easy way to get the latest file including subdirectorys? like: myfolder> dir1 > file_older1.txt myfolder> dir2 > dir3 > newest_file_in_maindir.txt myfolder> dir4 > file_older2.tx…

PHP file processing, possible data corruption

I have a file composed of 3 rows. The first row is a string of data. The second is a number and the third is another number. There are two PHP scripts running at the same time. The first is writing data in the first and third rows. The second is writing data in the second row and is reading

What are the ways of sending images to my server?

I’m mostly a PHP backend / HTML/CSS frontend developer, so I’ve always sent images to my server from the client using either form enctype: multipart/formdata or through a FormData object when uploading through ajax requests. After that I would receive the file in the $_FILES array. Lately I’…