libertyforall2
asked on
added a php form action execution html command line within a htm file
If I have a php file called /path/file.php and I want to add a line of code within an existing htm file how would I add that line within the htm file so people can use the form when they visit the htm site? Also, how can I tell if my server supports php files?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hmmm.... I make a duplicate file and changed it from index.cgi to index.php and it only showed raw code on the webpage.
ASKER
PHP is not installed
Hey... as you said you renamed index.cgi to index.php and it only showed raw code on the webpage then your server might support PHP.
To be more sure, try renaming a working HTML file to PHP (not cgi or anything else).
Or try to create a new file name 'whatever.php' and fill this:
Access it from browser and let me know...
To be more sure, try renaming a working HTML file to PHP (not cgi or anything else).
Or try to create a new file name 'whatever.php' and fill this:
<?php phpinfo(); ?>
Access it from browser and let me know...
Your server host can tell you that information if you log into your control panel and look at the package info.