How to call with PHP img Url from this script (example to get: http://www.imgsomething.png)
New to php, still learning and can't get out of this code regular http://img-url. If someone can have a look, will much appreciate. What I must do is

> meta property="og:image" content=

 for each site need new img.


       global $maximgswith; $imgsize1=GetImageSize($photo_path[$lnph]);
       $imgwidth1=""; if ($imgsize1[0] > $maximgswith){ $imgwidth1="width='$maximgswith'";}
 
       $lrgphprez="
       <center><p>
       <img src='$photo_url[$lnph]' $imgwidth1 >   
       </center>
       ";
       }

        return $lrgphprez;
        }


        function print_photos($idnum, $row)
        {
        global  $ct, $photos_url, $photos_path, $photo_path, $photo_url, $urlclscrpt, 
        $photos_count,$multim_link, $prphscnd, $msg;
        $pho1="";
        get_jpg_path($idnum);
        for($i=1; $i<=$photos_count; $i++)
        {
        if (file_exists($photo_path[$i])){$pho1="1";} 
 
        }
 
        if ($pho1==""){return;}

        $html="
        <center>
        <font class='smallfnt' style='color: #999999'>
        ".$msg['Click_ph_to_enlarge']." 
        </font>
        </center>
        ";

        for($i=1; $i<=$photos_count; $i++) { if (file_exists($photo_path[$i])){   
        $photokey="photocaption$i"; $photocapt=$row[$photokey];  

         $tmvrld=time();
         global $use_ajax, $preloadpht;
         if ($use_ajax=="yes"){$lphtpgurl=$photo_url[$i]."?{$tmvrld}";
         $prldphv=$prldphv."im{$i}=new Image; im{$i}.src=\"$lphtpgurl\";
         ";
         }  
         else {$lphtpgurl="index.php?ct=$ct&md=details&id=$idnum&lrgphp=1&lnph=$i&";}

         $html=$html."
         <font class='smallb' >
         <font size='-2'>".$msg['photo_d']." $i 
         <center>
         <a href='$lphtpgurl'>
         <img src='".$urlclscrpt."sph.php?id=$idnum&wd=$prphscnd&np=$i' border=0></a> <br> 
         $photocapt 
         </font>
         </center>
          ";
          }
          }

  

          global $dsplhltpht, $row;
          if (($dsplhltpht=="yes") and (($row['adrate'] < 1) or ($row['adrate']==""))){
          if (file_exists($photo_path[1])){
          $html="
          <center>
          <img src='".$urlclscrpt."sph.php?id=$idnum&wd=$prphscnd&np=1' border=0> 
          </center>
          ";

           }
           }

           if ($use_ajax=="yes" and $preloadpht=="yes" and $dsplhltpht!="yes"){
           $html=$html."
           <script type=\"text/javascript\">
           $prldphv
           </script>
            ";

            }

            return $html;
            }

            function print_multimed($idnum)
            {
            global $incl_mtmdfile,$multimedia_path, $multimedia_url, $multim_link, $msg,           
            $row;
            $mm_link="";  
            if ($incl_mtmdfile=='yes')
            {
            get_att_path($idnum);

            if (file_exists($multimedia_path)) 
            {
            $attflsz1=round(filesize($multimedia_path)/1000);
            if ($attflsz1==0){$attflsz1=1;}
             $mm_link="
             <p><li>".$msg['multimedia_file'].": 
             <a href='$multimedia_url'><b>".$row['attfltl']." (".$row['attflext'].",  
             ".$attflsz1."Kb)</b></a></li>
             ";
 
              }

              if (($row['flsrvur1']!="") and ($row['flsrvur1']!="http://")){
              $mm_link=$mm_link."<p><b>
              <li><a href='".$row['flsrvur1']."' target='_blank'>".$row['flsrvtl1']."</a>       
              </li>
              </b>";
               }

               if (($row['flsrvur2']!="") and ($row['flsrvur2']!="http://")){
               $mm_link=$mm_link."<p><b>
               <li><a href='".$row['flsrvur2']."' target='_blank'>".$row['flsrvtl2']."</a> 
               </li>
               </b>";
                }
                if ($row['embdcod']!=""){
                $row_embcod=ereg_replace('<embed ', "<embed wmode='opaque' ",    
                $row['embdcod']);
                $mm_link=$mm_link."<p> ".$row_embcod;
                  }

                  }



Sincerely, Ales.
How to call with PHP img Url from this script (example to get: http://www.imgsomething.png)
===

New to php, still learning and can't get out of this code regular http://img-url. If someone can have a look, will much appreciate. What I must do is

> meta property="og:image" content=

 for each site need new img.


       global $maximgswith; $imgsize1=GetImageSize($photo_path[$lnph]);
       $imgwidth1=""; if ($imgsize1[0] > $maximgswith){ $imgwidth1="width='$maximgswith'";}
 
       $lrgphprez="
       <center><p>
       <img src='$photo_url[$lnph]' $imgwidth1 >   
       </center>
       ";
       }

        return $lrgphprez;
        }


        function print_photos($idnum, $row)
        {
        global  $ct, $photos_url, $photos_path, $photo_path, $photo_url, $urlclscrpt, 
        $photos_count,$multim_link, $prphscnd, $msg;
        $pho1="";
        get_jpg_path($idnum);
        for($i=1; $i<=$photos_count; $i++)
        {
        if (file_exists($photo_path[$i])){$pho1="1";} 
 
        }
 
        if ($pho1==""){return;}

        $html="
        <center>
        <font class='smallfnt' style='color: #999999'>
        ".$msg['Click_ph_to_enlarge']." 
        </font>
        </center>
        ";

        for($i=1; $i<=$photos_count; $i++) { if (file_exists($photo_path[$i])){   
        $photokey="photocaption$i"; $photocapt=$row[$photokey];  

         $tmvrld=time();
         global $use_ajax, $preloadpht;
         if ($use_ajax=="yes"){$lphtpgurl=$photo_url[$i]."?{$tmvrld}";
         $prldphv=$prldphv."im{$i}=new Image; im{$i}.src=\"$lphtpgurl\";
         ";
         }  
         else {$lphtpgurl="index.php?ct=$ct&md=details&id=$idnum&lrgphp=1&lnph=$i&";}

         $html=$html."
         <font class='smallb' >
         <font size='-2'>".$msg['photo_d']." $i 
         <center>
         <a href='$lphtpgurl'>
         <img src='".$urlclscrpt."sph.php?id=$idnum&wd=$prphscnd&np=$i' border=0></a> <br> 
         $photocapt 
         </font>
         </center>
          ";
          }
          }

  

          global $dsplhltpht, $row;
          if (($dsplhltpht=="yes") and (($row['adrate'] < 1) or ($row['adrate']==""))){
          if (file_exists($photo_path[1])){
          $html="
          <center>
          <img src='".$urlclscrpt."sph.php?id=$idnum&wd=$prphscnd&np=1' border=0> 
          </center>
          ";

           }
           }

           if ($use_ajax=="yes" and $preloadpht=="yes" and $dsplhltpht!="yes"){
           $html=$html."
           <script type=\"text/javascript\">
           $prldphv
           </script>
            ";

            }

            return $html;
            }

            function print_multimed($idnum)
            {
            global $incl_mtmdfile,$multimedia_path, $multimedia_url, $multim_link, $msg,           
            $row;
            $mm_link="";  
            if ($incl_mtmdfile=='yes')
            {
            get_att_path($idnum);

            if (file_exists($multimedia_path)) 
            {
            $attflsz1=round(filesize($multimedia_path)/1000);
            if ($attflsz1==0){$attflsz1=1;}
             $mm_link="
             <p><li>".$msg['multimedia_file'].": 
             <a href='$multimedia_url'><b>".$row['attfltl']." (".$row['attflext'].",  
             ".$attflsz1."Kb)</b></a></li>
             ";
 
              }

              if (($row['flsrvur1']!="") and ($row['flsrvur1']!="http://")){
              $mm_link=$mm_link."<p><b>
              <li><a href='".$row['flsrvur1']."' target='_blank'>".$row['flsrvtl1']."</a>       
              </li>
              </b>";
               }

               if (($row['flsrvur2']!="") and ($row['flsrvur2']!="http://")){
               $mm_link=$mm_link."<p><b>
               <li><a href='".$row['flsrvur2']."' target='_blank'>".$row['flsrvtl2']."</a> 
               </li>
               </b>";
                }
                if ($row['embdcod']!=""){
                $row_embcod=ereg_replace('<embed ', "<embed wmode='opaque' ",    
                $row['embdcod']);
                $mm_link=$mm_link."<p> ".$row_embcod;
                  }

                  }



Sincerely, Ales.