請(qǐng)問(wèn)老師: 我的圖片放置和captcha_img.php在同一層,但是上傳之後,一直出現(xiàn)錯(cuò)誤訊息如下: <b>Warning</b>: file_get_contents(.\pic1.jpg) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory 我要如何才能取得pic0.jpg,而不是file_get_contents(.\pic1.jpg)
2 回答
舉報(bào)
0/150
提交
取消
2014-07-12
有兩個(gè)下劃線__FILE__
2014-06-30
補(bǔ)充: 我的 $filename=dirname(_FILE_).'\\pic'.$index.'.jpg'; 是按照老師的寫(xiě)法寫(xiě)的