Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem to get Php working in Html pages

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
scereze
Tux's lil' helper
Tux's lil' helper
Posts: 132
Joined: Wed Apr 10, 2002 5:22 am

Problem to get Php working in Html pages

  • Quote

Post by scereze » Sat Mar 12, 2005 6:15 pm

Hi,

I installed a simple LAMP (php5) with Gentoo.
I am just testing it now. I wrote two simple "Hello" files. One is called index.php and one is called index.html.
The simple index.php is working well.
But I get problems with php in Html pages.
I wrote this small code:
<head>
<title> </title>
</head>
<body>
<?php
print ("hello! <br><br>");
phpinfo();
?>
</body>
</html>

The screen result is:
Hello
"); phpinfo(); ?>

So it seems there is a problem to get PHP working in my html pages.
Does anybody know how to solve this problem ?

Thanks.
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Sat Mar 12, 2005 6:21 pm

simple, goto the AddType declarations and add .html to it.

in the httpd.conf.
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic