Joomla Error – “JFolder::create: Could not create directory” while installing extension

Problem: I recently got the following error while trying to install a custom extension on Joomla. JFolder::create: Could not create directory Solution: This kind of error is generally related with folder permission. I checked for the folder permission in my Joomla installation and it seems to be fine. The folders have 755 permission. The other … Read more

PHP: Read Write File, Read Scan Directory

Here is PHP code to: 1) Read / Scan any directory 2) Read any file 3) Write to any file 1) Read or Scan directory Get all files and folders inside the directory. Three ways are shown below. a) Read/Scan directory using opendir() and readdir() function $dir = "/var/www/test"; $dh = opendir($dir); while (false !== … Read more