כאשר אני מנסה להפעיל את הקוד הבא הוא רושם לי
Parse error: syntax error, unexpected T_VAR in /home/www/***********/test/index.php on line 2
PHP קוד:
<?php
$file_path='global_conf.php';
$find=' case 'board':
$this->board();
break;
case 'doboard':
$this->save_config( array ( 'board_offline', 'offline_msg' ) );
break;
//-------------------------';
$replace_with='
case 'cm':<br>
$this->cm();<br>
break;<br>
case 'docm':<br>
$this->save_config( array ( 'cm_speed', 'cm_title', 'cm_message' ) );<br>
break;<br>
//-------------------------'; <br>
$file=file_get_contents($file_path);
$file=str_replace($find,$replace_with,$file);
$fp=fopen($file_path,"w");
fwrite($fp,$file);
fclose($fp);
?>
אבל לא מצאתי שום בעיה בשורה 2 למה זה מופיע?
__________________
בברכה,
ליאור
PSPARE.net
מעבדת PSP - מתמחים בתיקון,פריצה,החזרה לחיים,מודים,שידרוגים,תוספות,חלקיי חילוף,נרתיקים קשיחים,נרתיקים רכים,פאוצים,ועוד הרבה יותר לקונסולת הPSP שלכם!!!
הכנסו עוד היום ולא תצטערו!