|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
greetings!
I am new here and have installed phptriad. The problem: and I am able to view a .php file through the web browser, but not php embedded in html. I know this probably a simple solution, but again, I am new to php and looking to find out what configuration setting that I looked over? If this topic was covered already, please excuse the redundancy. Any help is greatly appreciated. |
|
#2
|
|||
|
|||
|
Quote:
May we see your html code with the embed. Maybe just a typo. We'll keep or fingers crossed. |
|
#3
|
||||
|
||||
|
If you have PHP, you need to name your files *.PHP
Otherwise, you need to tell Apache to run all HTML files through the PHP parser. |
|
#4
|
|||
|
|||
|
Quote:
Sweet. It works then with PHP...just not html. I do believe that might be the problem! I used a sample of php and html to test my Apache server. Here it is...I left out the HTML tags: <?print "Hello!";?> Just to test that it was parsing through the html, but it is not. What should I setup from here? Like I mentioned above....it does work when remotely accessing a .php file by itself. The phpinfo.php works perfectly upon remote access, but an html file calling the above code does not work. Yes, all html tags are correct in the file. I do greatly appreciate your help. |
|
#5
|
|||
|
|||
|
Quote:
Nothing misspelled or incorrect...believe me I checked! I did this simple file to test if it was parsing through my html, but it is not. It remotely runs the php files, but not the html files.<html> <head> <title> Hello</title> <body> <? print "Hello!"; ?> </body> </html> That is it! WOW! ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > apache and php...not to leave out html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|