PHP

Capturing Full Div Content as Image with HTML2Canvas: How ReSetting HTML Height to 100% Solved the Issue

If you’ve ever tried to capture the full content of a scrollable div element as an image using HTML2Canvas, you may have run into the issue where only the visible portion of the div is captured. This can be particularly problematic if you’re building a chat application, where you need to capture the entire conversation […]

Capturing Full Div Content as Image with HTML2Canvas: How ReSetting HTML Height to 100% Solved the Issue Read More »

Traverse a directory in php

Sometimes, we need to traverse a directory. Here is the code to traverse a directory/folder. Exclude current and parent directory The above code display all the files and sub-directories in a current directory, including your current directory (“.”) and parent directory (“..”). To exclude these directories you can check the file name. Exclude all subdirectories

Traverse a directory in php Read More »