// Returns the current page.
function getPageURL(){
return 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
}
// getCurrDir() returns the current directory.
function getCurrDir(){
return dirname( getPageURL() );
}
Example:
getPageURL(); // returns "http://localhost/live/uploadProductImage.php"
getCurrDir(); // returns "http://localhost/live/"
What REALLY is Data Science? Told by a Data Scientist - By Joma Tech
Writing perfect code is a challenging process. That's where code reviews come in to help…
"The Next Leap: How A.I. will change the 3D industry - Andrew Price - Blender"
"Captain Disillusion: World's Greatest Blenderer - Live at the Blender Conference 2018 - CaptainDisillusion"
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency) - By tutoriaLinux > What's…