Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to know if I'm using PHP right to create search friendly content. I'd like my images to start showing up in Google for my website, so I'm passing an RSS feed to PHP file using the simplexml_load_file command and writing content to the page with echos.

$rss = simplexml_load_file('~~RSSfeed~~');

foreach ($rss->channel->item as $item) {
    echo  '<li>'. $item->description .'</li>';
}

Will displaying a list of images and text (there's other formatting and divs that I didn't include) make this content show up in search results?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Google, and any search engine, see the resulting page as served over HTTP. They have no idea how that page is generated server-side. The same as an entirely static page. So Google should see this content and providing you aren't blocking it with robots.txt, meta tags or HTTP response headers, etc then Google should index it.

Id like my images to start showing up in google

However, your question is a little confusing. If your on-page images previously did not show up in Google then there may be other problems.

share|improve this answer
1  
my images did not previously show up in google because they were dynamicly added using javascript- the source was fairly blank becuase everything was added after using a json get/appendTo commands. Im using php now to load the images firs onto the page (i just started teaching myself php this week –  Gazow Nov 21 '13 at 2:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.