SIMPLE PHP PROBLEM > NEWBIE

General discussions related to php

Moderators: macek, egami, gesf

mimik
New php-forum User
New php-forum User
Posts: 5
Joined: Fri Feb 21, 2003 10:24 am

SIMPLE PHP PROBLEM > NEWBIE

Postby mimik » Sun Feb 23, 2003 11:45 am

Hi,
I have downloaded simple uploader php and tried to put it on my website but cannot get it work. :(
when I try to upload something it gives me this message:

Method Not Allowed
The requested method POST is not allowed for the URL /upload/upload.php

does anybody know where the problem could be??
thank you in advance
Michal

PHP_Guru
New php-forum User
New php-forum User
Posts: 2
Joined: Sun Feb 23, 2003 12:10 pm
Location: Netherlands
Contact:

Postby PHP_Guru » Sun Feb 23, 2003 2:25 pm

Please show us your code and errors

mimik
New php-forum User
New php-forum User
Posts: 5
Joined: Fri Feb 21, 2003 10:24 am

Postby mimik » Sun Feb 23, 2003 3:43 pm

look here:

http://victorsoleil.com/upload/

here's the php file

http://victorsoleil.com/upload/upload.php

and the html file

http://victorsoleil.com/upload/index.htm

thank you.
I downloaded this script from hotscripts.com, did everything they said but can't get it work.


http://www.hotscripts.com/Detailed/20425.html

PHP_Guru
New php-forum User
New php-forum User
Posts: 2
Joined: Sun Feb 23, 2003 12:10 pm
Location: Netherlands
Contact:

Postby PHP_Guru » Mon Feb 24, 2003 5:37 am

I think I know what the problem is. your upload.php is not processed as a PHP file properly. Therefore it is just a piece of text to your server and it cannot handle any POST information:

The requested method POST is not allowed for the URL /upload/upload.php.

Make sure your webserver parses PHP files in the /upload/ directory.


Hope it works!

Romantik
New php-forum User
New php-forum User
Posts: 67
Joined: Mon Feb 24, 2003 2:55 am
Location: ../Ukraine/Kherson
Contact:

Postby Romantik » Mon Feb 24, 2003 6:01 am


User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Mon Feb 24, 2003 6:15 am

I should not beable to goto and see the upload.php file as code. This should be parsed by PHP. I think there is a configuration problem. Try namimg the upload.php file to upload.php3

mimik
New php-forum User
New php-forum User
Posts: 5
Joined: Fri Feb 21, 2003 10:24 am

Postby mimik » Mon Feb 24, 2003 1:04 pm

PHP_GURU I'm kind of newbie to php as I said, so how do you find out whether the server where I have it parses the file?
thank you guys for all you help. ;-)

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Mon Feb 24, 2003 3:11 pm

create a file name phpinfo.php and put this code in it. Upload it to your server and goto the file with the webbrowser..

Code: Select all

<?php phpinfo(); ?>



if you see <?phpinfo(); ?> your server does not have php enabled.

mimik
New php-forum User
New php-forum User
Posts: 5
Joined: Fri Feb 21, 2003 10:24 am

Postby mimik » Mon Feb 24, 2003 5:35 pm

I don't know if there is something with my browser settings but when I try to access the file phpinfo.php it tries to donwload the file.

http://www.victorsoleil.com/phpinfo.php

any idea??

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Mon Feb 24, 2003 6:35 pm

it didn't when I tried. it just displayed the text meaning that your server does not support PHP.

If you need some cheap webhosting checkout

http://www.100megswebhosting.com they have plans starting out at $5usd a month.

I've been with them for a year and a half and am absolutely satisfied. Best support for a hosting company that I have ever had.

mimik
New php-forum User
New php-forum User
Posts: 5
Joined: Fri Feb 21, 2003 10:24 am

Postby mimik » Wed Feb 26, 2003 8:50 am

thank you guys for all your help, the problem was that the PHP service was not enabled on my account.
Just another question, is there a way how to make not appear the upload.php3 after you upload something?? so one cannot see the directory structure.
thanks


Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest