How to pull image automatically with php?

Essence19

BANNED
Joined
Aug 10, 2010
Messages
828
Reaction score
354
I have a web page linked with an RSS feed through php - when there is a post it pulls the title and description automatically to my website but I want it to also pull the picture as well.

How Can I do this?
 
do you have an example of the feed?

perhaps something like

PHP:
preg_match_all("/img(.*)src=\"(.*?)\"/",$feed,$images);
foreach($images as $image){
echo "here is the image".$image[0];
}

-aReJay
 
here is a link to how it looks nows - http://ex.viralapps123.com/happiness-gratitude-generosity-sincerity_199100328H52s_Sep2011.html

here is the code
PHP:
<html>

<head><center><script type="text/javascript"><!--
google_ad_client = "pub-9109984990808890";
/* 728x90, created 30/08/11 */
google_ad_slot = "2592631514";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</script>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>%%TITLE%%</title>
</head>

<body bgcolor="#E5E5E5" style="font-family: Verdana; font-size: 10pt">

<div align="center">
  <center>
  <table border="1" width="700" cellspacing="0" cellpadding="9" bgcolor="#FFFFFF" bordercolor="#000000">
    <tr>
      <td width="100%">
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font size="4" color="#000080"><b><u>%%TITLE%%</u></b></font><br><br>
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">%%DESCRIPTION%%</p>
        <table border="0" width="660" height="250" cellspacing="0" cellpadding="0">
          <tr>
            <td width="300%"> 

            </center>
            </td>
            <td width="50%">
            </td>
            <td width="300%"><center>
<p /><p /> </p> 
            
<script type="text/javascript"><!--
google_ad_client = "pub-9109984990808890";
/* 336x280, created 24/07/11 */
google_ad_slot = "1816805917";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



            </center>
            </td>
          </tr>

        </table>
<p />
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">Read the rest of this Article <a href="%%URL%%" target="_blank" rel="nofollow">Here...</a></p>
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p>
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">%%KEYWORD%% Related Articles:-</p>

%%LINKS%%

      </td>
    </tr>
  </table>
  </center>
</div>

<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="center"><a href="privacyterms.htm">Terms of use & Privacy policy</a></p>

</body>

</html>

how should I change this?
 
404 Page not found - on the link you provided.

But i think you have a parse error there.
 
Back
Top