Announcement

Collapse
No announcement yet.

Rss Feed - Php - Fragment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    do i have to still put it in the !!< >!!

    Comment


      #17
      Yes because you want whatever you have inside treated as html. Page name has no bearing on that.

      Comment


        #18
        This is the code that im putting into the fragement, page renamed to php


        !!<<?php
        $olderror_reporting =error_reporting(0);
        include ("http://www.motocc.co.uk/RSSCB2.5/rss.php?url=http%3A%2F%2Fwww.motorcyclenews.com%2FMCN%2FOther%2FRSS%2FRSSData%2F%3FN%3D346%26Rpp%3D100&newpage=1&chead=&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=600&max=5&maxfrom=10&maxto=25&tlen=0&rnd=1&bt=3&bs=None&nmb=1&ntb=1&naf=1&nst=1&nwd=0&nht=0&initime=1224079770&dlttime=0&dlen=0&bg=%23FFFFFF&bc=BLUE&tc=BLACK&ts=11&spc=&ims=&lc=%23333333&lstyle=1&rel=1&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
        error_reporting($olderror_reporting);
        ?>>!!

        Comment


          #19
          Try and put code into code tags in the forum otherwise your post stretches into the next county.

          Is this code here for us to check or just for information purposes?

          Comment


            #20
            That code should work, but it doesnt work on my fasthosts server....

            Here we go again...

            Comment


              #21
              Originally posted by Darren B View Post
              This might not work, some hosts dont allow parsing, it increases server load slightly. I cant recall them but i thought one was fasthosts
              Hi Mr B

              Do you know how i can get round this?

              I dont want to have to use the java script version

              Comment


                #22
                You should not need to use the parsing if you are renaming your page to .php. Your server is definately PHP enabled yes? Do you have a link to the offending page?
                Cheers

                David
                Located in Edinburgh UK

                http://twitter.com/mcfinster

                Comment


                  #23
                  ok create a page called test.php and upload it to your server.

                  stick this code in the page

                  Code:
                  <? phpinfo(); ?>
                  this will tell you the info about your php on the server.

                  Comment


                    #24
                    Hi,

                    I have uploaded the file to my other server

                    http://www.4-motorcycles.co.uk/moto.php without an issue.

                    Ive logged a call with fasthosts.

                    Thanks for your time

                    Comment


                      #25
                      When you say it doesn't work, could you be a bit more specific?
                      Attached Files
                      Elysium:Online - Official Accredited SellerDeck Partner
                      SellerDeck Design, Build, Hosting & Promotion
                      Based in rural Northants

                      Comment


                        #26
                        I believe its a server issue.

                        You open the page and it just sits there. With the words done at the bottom of the page. I uploaded to another server and it works fine...

                        Thanks

                        Comment


                          #27
                          Just spoke to FASTHOSTS and they dont know why it wont work. It now has been escalated to 3rd line support

                          48 hours... Told them if they cant solve it then just move my webspace to the server where it does work..... "oh no, we cant do that sir, it will affect our automated system"

                          I dont want to kick off another post about the customer service experience at fasthosts.... But I take back all the nice things i said about them last month...

                          Comment


                            #28
                            Fasthosts are the best I love them.

                            Comment


                              #29
                              Now I'm not a happy camper. This is there reply.

                              Dear Darren,

                              Thanks for your email. Our newer Linux servers (and our Windows servers) have allow_url_include turned off, but our older Linux servers have it turned on. We will probably be turning it off across all our servers in the future.

                              Unfortunately we are not able to move your site to a server with allow_url_include turned on, so you will need to change your code (eg use fopen instead).

                              Regards,

                              Comment


                                #30
                                I am not saying a word - it would not be proper of me to comment on a host

                                Comment

                                Working...
                                X