From:             
Operating system: linux
PHP version:      5.3.8
Package:          Scripting Engine problem
Bug Type:         Feature/Change Request
Bug description:Abed Adsense manuscript that do not appear Nutrition RSS in the 
search engines 

Description:
------------
<?
//    CONFIG START HERE    //

  $article_folder='articles';                       //Articles folder is the 
location
of your list of articles in txt format (Optional)

  $random_list=1;                                   //Random list of articles 
on the menu 1 for
true and 0 for false

  $number_articles_menu=322;                        //Number of articles on the 
menu

  $main_keyword="";         //Type your main keyword here

//    CONFIG END HERE    //

  define ('FULL_PATH', dirname (__FILE__) . '/');

  define ('ARTICLES_DIR', FULL_PATH . $article_folder."/");

  $addedtext=""; //stay empty


function clean_url($text)
{
$text=strtolower($text);
$code_entities_match = array('
','--','&quot;','!','@','#','$','%','^','&','*','(',')','_','+','{','}','|',':','"','<','>','?','[',']','\\',';',"'",',','.','/','*','+','~','`','=');
$code_entities_replace =
array('-','-','','','','','','','','','','','','','','','','','','','','','','','','');
$text = str_replace($code_entities_match, $code_entities_replace, $text);
return $text;
}



function curl_string ($url,$user_agent='Mozilla 4.0'){
       $ch = curl_init();
       curl_setopt ($ch, CURLOPT_URL, $url);
       curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
       curl_setopt ($ch, CURLOPT_HEADER, 0);
       curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
       curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
       $result = curl_exec ($ch);
       curl_close($ch);
       return $result;
}


function amazonlabel($label){
return preg_replace('#Customer Rating#', 'Amazon Customer Rating', $label,
4 );
}

function startElement($parser, $name, $attrs) {
    global $rss_channel, $current_data, $main;
    switch($name) {
     case "RSS":
     case "RDF:RDF":
     case "ITEMS":
      $current_data = "";
      break;
     case "CHANNEL":
      $main = "CHANNEL";
      break;
     case "IMAGE":
      $main = "IMAGE";
      $rss_channel["IMAGE"] = array();
      break;
     case "ITEM":
      $main = "ITEMS";
      break;
     default:
      $current_data = $name;
      break;
    }
}
function endElement($parser, $name) {
    global $rss_channel, $current_data, $item_counter;
    $current_data = "";
    if ($name == "ITEM") {
     $item_counter++;
    }
}
function characterData($parser, $data) {
 global $rss_channel, $current_data, $main, $item_counter;
 if ($current_data != "") {
  switch($main) {
   case "ITEMS":
    if (isset($rss_channel[$main][$item_counter][$current_data])) {
     $rss_channel[$main][$item_counter][$current_data] .= $data;
    } else {
     //print ("rss_channel[$main][$item_counter][$current_data] = $data<br
/>");
     $rss_channel[$main][$item_counter][$current_data] = $data;
    }
    break;
  }
 }
}


function removetag($tag){
$tagged='tagged';
preg_match("#(.*?)".$tagged."#s", $tag, $value);
return $value[1];
}


?>

Test script:
---------------
http://www.pramjcom.net/car/index.php

Rss do not work

http://www.pramjcom.net/car/rss.php

and all pages

Expected result:
----------------
Links feed does not work

Actual result:
--------------
Please I want to run Rss links

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60270&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60270&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60270&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60270&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60270&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60270&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60270&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60270&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60270&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60270&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60270&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60270&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60270&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60270&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60270&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60270&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60270&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60270&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60270&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60270&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60270&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60270&r=mysqlcfg

Reply via email to