Lineman Posted April 26, 2008 Share Posted April 26, 2008 Have got XAMPP up and running and LAMPP is stored in the /opt directory so could someone tell me when i make an html page with a php extension how would i call it please. Link to comment https://forums.phpfreaks.com/topic/103036-calling-a-php-file/ Share on other sites More sharing options...
AV1611 Posted April 26, 2008 Share Posted April 26, 2008 If you create a file called index.php xampp should load that file by default if it's in the web root folder (/htdocs?) Anyways, if you make myfile.php you can only load it as a url in the browser or by another script with header() or whatever... mysite.com/myfile.php mysite.com will load default doc type (usually index.php, then index.html, etc...) depending on your install Link to comment https://forums.phpfreaks.com/topic/103036-calling-a-php-file/#findComment-527764 Share on other sites More sharing options...
DarkWater Posted April 26, 2008 Share Posted April 26, 2008 I *think* the directory on linux by default is /var/www/, or it as on my system at least. >_> Check that directory and read the Apache documentation for your system. Link to comment https://forums.phpfreaks.com/topic/103036-calling-a-php-file/#findComment-527803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.