If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
picture uploading error  XML
Forum Index » Advanced Guestbook Forum
Author Message
Lobster Boy
Beginner
[Avatar]

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
Auron
Expert
[Avatar]

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)
[Email] [WWW]
Lobster Boy
Beginner
[Avatar]

Joined: 15/03/2006 18:53:54
Messages: 10
Offline

That was just typo error when I type the message error on here.
Auron
Expert
[Avatar]

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)
[Email] [WWW]
Lobster Boy
Beginner
[Avatar]

Joined: 15/03/2006 18:53:54
Messages: 10
Offline

Sorry I am not a pro here, still need help with this problem.

LB
phpuser3
Graduate
[Avatar]

Joined: 16/11/2004 12:46:44
Messages: 110
Offline

is your php installation running in safe mode?
Lobster Boy
Beginner
[Avatar]

Joined: 15/03/2006 18:53:54
Messages: 10
Offline

phpuser3 wrote:is your php installation running in safe mode?


no it's not.
phpuser3
Graduate
[Avatar]

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
Lobster Boy
Beginner
[Avatar]

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
)

)
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Lobster Boy
Beginner
[Avatar]

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)
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum