PHP Watch files and directories recursively

  Рет қаралды 5,890

The Codeholic

The Codeholic

Күн бұрын

Пікірлер: 18
@TheCodeholic
@TheCodeholic 5 жыл бұрын
That script should be run as a separate process, maybe in background to watch file changes and do some actions. I have also tested on folder which has several thousands of files and it detects changes pretty fast. It can be optimized in terms of how it can be used. Any optimization ideas will be gladly accepted.
@TheCodeholic
@TheCodeholic 5 жыл бұрын
@Fames Id You need to run the following script in your terminal `php index.php FILE_OR_FOLDER_PATH` ans specify you `localhost/somefoldertocheck` folder path
@TheCodeholic
@TheCodeholic 5 жыл бұрын
@Fames Id I removed that $previousDate variable. It was not used anymore.
@sekhniashvili
@sekhniashvili 4 жыл бұрын
@@TheCodeholic test
@danutz0501
@danutz0501 5 жыл бұрын
really nice, gave me a great idea to make one myself, some composer some sass compilers and stuff and I don't need to install node js anymore, love the channel man and keep up the good work
@thepentesterdiariestv5988
@thepentesterdiariestv5988 3 жыл бұрын
I made a script in php for the integrity of my system, the script iterate through under all directores and files specified of my system but that doesnt work how I need, the integrity files is equal in my database but when the hashes send to my database, the files path send without / and the results is different. I need help you
@Coznix_
@Coznix_ 2 жыл бұрын
clearstatcache(clear_realpath_cache:false, $path); this is giving me an error
@lashalomidze964
@lashalomidze964 5 жыл бұрын
Loved it! Won't it have bottlenecks, because of the sleep call though? Any optimization ways?
@TheCodeholic
@TheCodeholic 5 жыл бұрын
That script should be run as a separate process, maybe in background to watch file changes and do some actions. I don't think it needs any optimization right now. I have also tested on folder which has several thousands of files and it detects changes pretty fast. It can be optimized in terms of usability. Maybe create a separate class with possible arguments, maximum number of files to keep track, watching interval and some other stuff. Any optimization ideas will be gladly accepted.
@Amilakasun1
@Amilakasun1 4 жыл бұрын
@@TheCodeholic Can you go for hash comparisons?
@naresh2232463
@naresh2232463 5 жыл бұрын
Anything on date time functions ? As I have searched on the internet for this particular topic and have not found much .
@TheCodeholic
@TheCodeholic 5 жыл бұрын
What do you mean on date time functions?
@naresh2232463
@naresh2232463 5 жыл бұрын
This is cool
@winnergain578
@winnergain578 2 жыл бұрын
Can you make a video on how to make a file manager using php.
@ahmedatya6226
@ahmedatya6226 4 жыл бұрын
how i can create console script ,
@TheCodeholic
@TheCodeholic 4 жыл бұрын
You can run any php file from console, by running php filename.php
@ahmedatya6226
@ahmedatya6226 4 жыл бұрын
@@TheCodeholic sorry but where this console
@codedaophp
@codedaophp 2 жыл бұрын
Tuyệt vời
Working With File System In PHP - Full PHP 8 Tutorial
9:52
Program With Gio
Рет қаралды 43 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
Build PHP Form Widget using OOP Abstraction | PHP OOP Project
19:31
The Codeholic
Рет қаралды 15 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 103 М.
Simple CRUD application with PHP and JSON
1:35:12
The Codeholic
Рет қаралды 45 М.
Read Local Directory and List Files in PHP
13:23
Clever Techie
Рет қаралды 24 М.
PHP in 100 Seconds
2:21
Fireship
Рет қаралды 1,4 МЛН
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 48 МЛН
vscode vscodium PHP XDebug Отладка из docker контейнера - пример (codeception test, symfony debug)
8:27
ToyBattle | Бесплатные курсы Программирования
Рет қаралды 271
PHP Programming Tutorial - Removing Directories, Subdirectories, and Files
12:38
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
Laravel 11 + React Full Stack App with Inertia - Project Management App
5:44:19
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН