2009-02-26, 09:38 AM
|
#1
|
註冊會員
|
php 簡易的建檔寫入問題
-------------------- 閱讀本主題的最佳解答-------------------- 請問 我這個床 , 我已上傳放了1個php的簡易小程式writeFile.php
http://huhuge.hp.infoseek.co.jp/writeFile.php
並且已經 建立了子目錄p28 (即 http://huhuge.hp.infoseek.co.jp/p28)
我呼叫法
http://huhuge.hp.infoseek.co.jp/writ...tUsed=20090226
照道理應該 會在 http://huhuge.hp.infoseek.co.jp/p28 中產生 1.txt 檔案
但是卻沒產生
請問:這空間支援PHP嗎 ? 若是, 則這個writeFile.php錯誤在那 ?
語法:
<?PHP
$fp = fopen("$productID//$licenseNo.txt","w");
fputs($fp, "KTK,");
fputs($fp, "$licenseNo,");
fputs($fp, "$licenseHolder,");
fputs($fp, "$licenseHardwareKey,");
fputs($fp, "$daysEval,");
fputs($fp, "$dateRegistered,");
fputs($fp, "$lastUsed,");
fputs($fp, "KTK");
fclose($fp);
echo "License Created.n";
echo "$productID//$licenseNo.n";
echo ".n";
echo "If this license already existed then it was overwritten!";
?>
|
|
|
送花文章: 185,
收花文章: 64 篇, 收花: 146 次
|