我正在使用fopen(),但我得到這個執行錯誤。語法錯誤:意外'/'錯誤
Parse error: syntax error, unexpected '/' in /home/furtherpath.. on line 7
線路7:
/home/a11*****/public_html/rishi/rishi_someone_php.php = fopen("rishi_someone_php.php","r");
我知道我應該把一個文件處理程序,而不是但也似乎不工作,並給出了同樣的錯誤。 找不出原因。
我在做什麼是創建使用PHP:
$html="<html> \n <head> \n <title>".$fn."</title> \n </head> \n <body> \n <?php \n $file=fopen('".$full."','r'); \n while(!(feof($file))) \n { \n echo htmlspecialchars(fgets($file)).'<br/>'; \n } \n fclose($file); \n ?> \n </body> \n </html>";
在此先感謝一個HTML頁面。
'$ somevar = fopen(「rishi_someone_php.php」,「r」);'? –
我已經提到文件處理程序給出了同樣的東西... – Rishi
你不會得到我剛剛提供的代碼的語法錯誤。如果它發出錯誤,可能是'Warning:fopen(rishi_someone_php.php):未能打開流'或其他東西。請編輯正確的錯誤消息。 –