Results 1 to 5 of 5

Thread: PHP into HTML

  1. #1
    Join Date
    Dec 2006
    Location
    malaysia - kuala lumpur
    Posts
    142
    Rep Power
    152

    PHP into HTML

    Hi guys, How do i put a PHP code into a HTML site?
    I'm trying to get some RSS feeds for my site.
    The site also shows tutorial on how to do it... How and why to add PHP code to your web pages
    But still don't know how to do it... Is it just add another line at the htaccess and put the script at my page? Or something more complicated that i missed out.

    Please explain.
    Thanks

  2. #2
    Join Date
    Dec 2006
    Location
    malaysia - kuala lumpur
    Posts
    142
    Rep Power
    152
    I'm trying to get this PHP code into my HTML site

    <?php
    $olderror_reporting =error_reporting(0);
    include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fwww.shokk.com%2Fcgi-bin%2Fastrology_rss.pl%3Ftid%3Dvirgo&newpage=1&che ad=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1& width=350&max=5&tlen=0&rnd=1&bt=3&bs=Double&nmb=&n tb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=-1&lc=%23000066&bg=%23F7E101&bc=%23F7E101&spc=&ims= &tc=&ts=11&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>

  3. #3
    Join Date
    Aug 2006
    Location
    Malaysia
    Posts
    1,576
    Rep Power
    185
    What is the error message?

    According to your tutorial -- How and why to add PHP code to your web pages

    In order for a .html or .htm site to parse a PHP script on it's pages, you need to have some instructions in your website's .htaccess file. (For this step you will need access to the .htaccess file on your server.)
    .....

  4. #4
    Join Date
    Dec 2006
    Location
    malaysia - kuala lumpur
    Posts
    142
    Rep Power
    152
    Problem Solved
    Last edited by arthermax; 18-04-2007 at 08:54 PM.

  5. #5
    Join Date
    Dec 2006
    Location
    malaysia - kuala lumpur
    Posts
    142
    Rep Power
    152
    Problem Solved
    Last edited by arthermax; 18-04-2007 at 08:54 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PSD to HTML/CSS
    By therion in forum Advertise Your Services
    Replies: 0
    Last Post: 24-12-2008, 03:06 AM
  2. html
    By hafiza in forum Website Design
    Replies: 9
    Last Post: 23-04-2008, 11:17 AM
  3. rel in html
    By yipguseng in forum Website Programming
    Replies: 3
    Last Post: 06-05-2007, 04:26 AM
  4. .html dan .inc
    By redzanime in forum Website Design
    Replies: 1
    Last Post: 05-05-2007, 11:59 PM
  5. html builder?
    By fadlee in forum Website Design
    Replies: 7
    Last Post: 06-10-2004, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37