我有一個文件one.php
如何閱讀one.php的內容,並寫入到two.php
<?php //just a php function doen't have to do any thing with the question
function B(){
}
?>
通過PHP我想讀one.php
,因爲它是和寫入two.php
,因爲它是...
注意 - '<'
得到轉化爲'$lt;'
回答它是
<?php
$text = file_get_contents("one.php");
file_put_contents("two.php", $text);
?>
現在還我想要的是多加一個PHP函數說function A(){}
到one.php
內容,並將其寫入two.php
什麼是你的代碼使用? – Yaniro 2012-01-03 07:52:29
檢查編輯的問題 – Wazzzy 2012-01-03 07:55:28
複製() – 2012-01-03 07:56:04