php - RSS feed working fine in localhost but does not work on the server -


I am working on a website that extends news feeds from my blog to website, it works fine in my localhost , But when the content is online, the same code does not work. Here is my code and here is the link to the website ...

   Channel-> Image-> url." "/ & Gt; '$ Rss- & gt; Channel & gt; Title.' IMG ($ rss-> channel- & gt; items as $ item) with {<(($ i & lt; 8) & lt; / h2 & gt; '; // channel title + src foreach { // Only 10 items / print item-> pubDate; $ MyLink [$ i] = $ item, & gt; link; $ Mytitle [$ i] = $ item, & gt; title; $ Dater [$ i ] = $ Item, & gt; pubDate;} $ I ++;} print '& lt; a href =' '$ item- & gt; Link [0]. '' Target = "_ blank" & gt; '$ Item- & gt; Heading 1].' & Lt; / A & gt; & Lt; Br / & gt; '; // print $ dater [1]; ? & Gt;  

Here's the code where I want to print the date

   


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -