[Tutorial] is it possible to make a file without a. php extension a executable script in the LAMP environment: & lt ;? Phpecho & nbsp; 'Hello & nbsp; world! ';? & Gt; If it is stored as hw. php, of course everything works. If you [ask for advice] is it possible to make a file without a. php suffix executable script in the LAMP environment?
A simple example:
echo 'hello world!';
?>
If it is stored as hw. php, of course everything works.
If you save it as hw (without a suffix), visit http://www.domain.com/hwthrough a browser,
The source code is printed directly.
Is it possible to execute a file without a suffix like a common. php file.
------ Solution --------------------
You can configure to access the: http: // xxxxxxxx/webpage through a column directory.
------ Solution --------------------
Http://www.domain.com/hw
Hw in is generally the controller name in the mvc structure, or implemented through rewrite.
------ Solution --------------------
I am not very clear about what you mean
If you only need to hide the file name of the entry, you only need to do so.
RewriteCond % {REQUEST_FILENAME }! -D
RewriteCond % {REQUEST_FILENAME }! -F
RewriteRule ^ (. *) $ index. php/$1 [QSA, PT, L]
In this way, all scheduling is performed in index. php by analyzing $ _ SERVER ['path _ info '].
That is to say, a set of programs can manage all user directories.
If each user directory or several user directories require a separate website system. Copy the. htaccess file to the corresponding directory.