Forums

PHP

This topic is locked

PHP Upload Error

Posted 27 Jul 2002 00:17:41
1
has voted
27 Jul 2002 00:17:41 Peter R posted:
I'm trying to use PHP Upload but am receiving the following error when I try to upload an image:

Fatal error: Call to undefined function: is_uploaded_file() in /usr/local/www/vhosts/shopstrathroy.com/htdocs/realestate/admin/photoupload.php on line 32

Line 32 is:
if (is_uploaded_file($photoup)) {

Any idea why I'm getting this error?

Thanks!

Peter

Replies

Replied 29 Jul 2002 17:20:36
29 Jul 2002 17:20:36 Peter R replied:
SORRY! I did do a search but did not read far enough until I tried again today and found:

"The reason that this is happening is that your version of PHP is less then 4.0.3 (I suspect that you are using 4.0.2). Unfortunately the only solution to this problem is to upgrade.

If it is your ISP who runs the server I would complain bitterly at running such an early version of PHP, as there are certain security issues that have been resolved in later versions."

Ahhhhhh HORRIBLE news. <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Getting my ISP(Interland) to upgrade software is harder than moving mountains. I'm pretty sure my PHP version is 4.0... no third number so I'm assuming it's 4.0.0.

Can someone recommend a different good file(jpegs) upload script?

Thanks,

Peter
Replied 29 Jul 2002 21:52:14
29 Jul 2002 21:52:14 chief monkey replied:
I wrote a image upload class, you can get it from www.experimentalmonkey.co.uk/code.php
(when my server comes back online, it's down just now)

George

Everybody has got to be somewhere
Replied 29 Jul 2002 23:22:43
29 Jul 2002 23:22:43 Tim Green replied:
Though to be fair, if your ISP is running PHP 4.0.0 then you'll struggle with the majority of code written for UltraDev. Even PHAkT recommends a minimum install of PHP 4.0.2.

I would highly recommend that you pressure your ISP to upgrade. As it stands there are serious security issues that need to be taken into consideration. If your ISP is not prepared to protect your investment in them, then I would seriously considering finding an alternative.

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 30 Jul 2002 01:17:05
30 Jul 2002 01:17:05 Peter R replied:
Thanks George, I'll check it out when it's up and running.

Tim, after reading your old post I did do as you're suggesting now and wrote my ISP. From what they say, of course no exact date, they are currently evaluating different versions of PHP for rollout... in about 2 months. Oh well, gives me something to look forward to I guess. <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Oh and by the way I hear ya about being fair. I know the problem isn't with your extension.

Peter

Edited by - partypete on 30 Jul 2002 01:23:59
Replied 31 Jul 2002 00:52:50
31 Jul 2002 00:52:50 chief monkey replied:
I have to agree with Tim on this, pesonally I would move ISP

Time for my rant
My server is still not back up thats 30 hours now, I spoke to my hosts customer services who said it was a hardware problem, now I have just heard that the problem is that it won't boot up because of a file sytem issue which they say is software and they now want to charge me £100 to "fix it"
Even if I pay the money it still won't be up for another 12-15 hours


George

Everybody has got to be somewhere

Reply to this topic