News:

SMF - Just Installed!

Main Menu

Get current directory, change dir

Started by KingSparta, Dec 09, 2023, 01:53 PM

Previous topic - Next topic

KingSparta

<?php
// Get current directory
echo getcwd() . "<br>";

// Change directory
chdir("images");

// Get current directory
echo getcwd();
?>