Mailcode
Warning
| User |
Post |
jenno Member Posts: 4
|
Posted: 2009-06-25 07:38:02
|
Hi there... If anyone can help me fix this problem I'd greatly appreciate it.
Warning: opendir(tmp/) [function.opendir]: failed to open dir: No such file or directory in /home/bitbotte/public_html/makeyourowngreen.com/mailcode/
contact.php on line 228
(used a fake url for privacy.)
I saw contact.php's line 228 is this:
228: if ($handle = opendir('tmp/')) {
while (false !== ($file = readdir($handle))) {
if (is_file('tmp/' . $file)) {
unlink('tmp/' . $file);
The /tmp directory is definitely in there... I don't know why it's not working :/
All I need is a name and email submit form, with logs. Am I supposed to see a "submit" button? All I see right now is the name and email form, then the warning error.
Thank you in advance! |
jenno Member Posts: 4
|
Posted: 2009-06-25 07:43:29
|
| If it helps, my host prevents looking through directories so usually a specific file needs to be called... I tried editing it to say tmp/index.html but that returned the same error. |
jenno Member Posts: 4
|
Posted: 2009-06-25 07:45:43
|
| I just noticed there's a space in /mailcode/ contact.php, between mailcode/ and contact.php. Does this matter? |
jenno Member Posts: 4
|
Posted: 2009-06-25 07:49:37
|
Hmm never mind my last post, it seemed to have just done it in the thread and not on my page...
I've also tried setting /tmp to 777 and that hasn't worked either. |
Scott Admin Posts: 211
|
Posted: 2009-06-26 00:09:39
|
Try changing tmp/ to the full absolute path. Some servers don't like the relative path:
Code:
/home/bitbotte/public_html/makeyourowngreen.com/mailcode/
tmp/ |
Page:
[ 1 ]
New Post
You must be logged in to post on the discussion boards.