Author |
Message |
17/03/2006 04:05:19
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
I was playing around and testing out the new guestbook, and wanted to upload a picture in the guestbook, and when I post it the entry, It came up with an error.
Error Code:
Warning files(): Stat failed for C:\WINNT\TEMP\php7e4.tmp (errno=2 - No such file or directory) in C:\Inetpub|vhosts\michigansquires.org\httpdocs\guestbook\lib\add.class.php on line 132
Is there something I need to change, and where can I find this?
Thank you for any help you can give.
Dan
|
|
17/03/2006 21:05:34
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
you have a | in you path.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
18/03/2006 16:52:32
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
That was just typo error when I type the message error on here.
|
|
19/03/2006 00:56:21
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Lobster Boy wrote:That was just typo error when I type the message error on here.
K, but still, going by the error message the file either doesn't exist or the path is incorrect.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
23/03/2006 00:38:49
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
Sorry I am not a pro here, still need help with this problem.
LB
|
|
26/03/2006 00:28:56
|
phpuser3
Graduate
Joined: 16/11/2004 12:46:44
Messages: 110
Offline
|
is your php installation running in safe mode?
|
|
26/03/2006 01:50:14
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
phpuser3 wrote:is your php installation running in safe mode?
no it's not.
|
|
27/03/2006 21:08:45
|
phpuser3
Graduate
Joined: 16/11/2004 12:46:44
Messages: 110
Offline
|
ok, i've written a simple script to to check whether upload
is working or not.
copy and upload it to your webserver
upload_test.php
|
|
30/03/2006 18:46:52
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
This what happen when us your script file and I try to upload an avatar file:
Error recorded:
Upload is not working! Here's some debugging info:
Array
(
[userfile] => Array
(
[name] => lobster_ball.png
[type] => image/x-png
[tmp_name] => C:\WINNT\TEMP\php27E.tmp
[error] => 0
[size] => 5542
)
)
|
|
30/03/2006 18:53:03
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Possibly the problem is his server is running in safe mode so the server will not allow you to do anything to the file in the tmp folder. This is why I rewrote the image uploading code used in Lazarus to use move_uploaded_file and then do some tests on it. After it had checked the mimetype of the file to make sure it is an image that is.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
31/03/2006 03:46:47
|
Lobster Boy
Beginner
Joined: 15/03/2006 18:53:54
Messages: 10
Offline
|
Well, after doing the script testing that you provided, I called my host server that I rent from, i told them what problems i was having, They looked up there setting, and asked me why I was on a windows based server instead of Linx server, i told them I took over the website as webmaster and didnt know what I was on.
They set me up with another site I try your test agian, was able to upload the Avater.
So I will be moving the site over real soon here. LOL
I like to Thank you for all of your help on this.
Dan (LB)
|
|
|