PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 9th, 2005, 02:33 PM
malinwolf malinwolf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 3 malinwolf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m 49 sec
Reputation Power: 0
Question apache and php...not to leave out html

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.

Reply With Quote
  #2  
Old March 9th, 2005, 03:14 PM
notagain notagain is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 notagain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 24 sec
Reputation Power: 0
Quote:
Originally Posted by malinwolf
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.


May we see your html code with the embed. Maybe just a typo. We'll keep or fingers crossed.

Reply With Quote
  #3  
Old March 10th, 2005, 09:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
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.

Reply With Quote
  #4  
Old March 10th, 2005, 02:15 PM
malinwolf malinwolf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 3 malinwolf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m 49 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
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.


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.

Reply With Quote
  #5  
Old March 10th, 2005, 02:22 PM
malinwolf malinwolf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 3 malinwolf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m 49 sec
Reputation Power: 0
Quote:
Originally Posted by notagain
May we see your html code with the embed. Maybe just a typo. We'll keep or fingers crossed.


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!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > apache and php...not to leave out html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT