Page 1 of 1

PHP script in html webpage

Posted: Thu Aug 20, 2009 4:45 pm
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:

Re: PHP script in html webpage

Posted: Thu Aug 20, 2009 5:32 pm
by cpetercarter
If you rename your html webpage script from "[mypage].html" to "[mypage].php", will it work then?

Re: PHP script in html webpage

Posted: Thu Aug 20, 2009 5:48 pm
by jacen100
yes that worked thx allot :lol:

Re: PHP script in html webpage

Posted: Fri Aug 21, 2009 4:36 pm
by jacen100
thx for that , it also worked much appreciated thankyou thankyou thankyou guys , id be lost without this help :lol: