SIMPLE PHP PROBLEM > NEWBIE

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
mimik

SIMPLE PHP PROBLEM > NEWBIE

Post by 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

mimik

Post by 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

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

Post by 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:

Post by 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

Post by 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:

Post by 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

Post by 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:

Post by 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

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest