PHP script in html webpage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jacen100
Forum Newbie
Posts: 17
Joined: Thu Aug 20, 2009 4:37 pm

PHP script in html webpage

Post by jacen100 »

hi friends, i have a php code uploaded to the directory below my forum to show topics on my html webpage, i can veiw the script working on a blank test page which i uploaded to my server for example http://www.myweb.net/newposts.php i have also added the php include command to my webpage were i want the posts to show in my sidebar <?php include("newposts.php"); ?> and i have added this line AddHandler application/x-httpd-php .php .html to my HTACCESS file but still i cant get the topics script to show on my webpage can some kind person give me some help im realy new to this stuff and i have just learned all this stuff today :banghead:

were am i going wrong :banghead:
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: PHP script in html webpage

Post by cpetercarter »

If you rename your html webpage script from "[mypage].html" to "[mypage].php", will it work then?
jacen100
Forum Newbie
Posts: 17
Joined: Thu Aug 20, 2009 4:37 pm

Re: PHP script in html webpage

Post by jacen100 »

yes that worked thx allot :lol:
jacen100
Forum Newbie
Posts: 17
Joined: Thu Aug 20, 2009 4:37 pm

Re: PHP script in html webpage

Post by jacen100 »

thx for that , it also worked much appreciated thankyou thankyou thankyou guys , id be lost without this help :lol:
Post Reply