Uploaden bij F2S

Pagina: 1
Acties:

  • DoD Cerberus
  • Registratie: Februari 2001
  • Laatst online: 26-06-2025
ik heb een leuk uploadscriptje in elkaar gebouwd met PHP, dat het gewoon doet lokaal. Maar als ik het op F2s draai dan krijg ik geen acces tot de directory waar ie de file stored. Deze error krijg ik dan:

Warning: SAFE MODE Restriction in effect. The script whose uid is 272724 is not allowed to access /tmp/phpfQiluF owned by uid 0

hoe los ik dit op?

Sorry, dit had waarschijnlijk bij webscripting gemoeten, nog niet helemaal wakker.. |:( kan ie gemoved worden??

"From this day to the ending of the world, But we in it shall be remembered -- We few, we happy few, we band of brothers."


  • havana
  • Registratie: Augustus 1999
  • Laatst online: 09:03
Move Hosting

DIT IS MIJN WEBSITE


  • Laurent
  • Registratie: Oktober 2000
  • Niet online
CHMOD :?

  • Mark
  • Registratie: Juni 1999
  • Laatst online: 06-05 22:26
Volgens mij niet, PHP in safe mode ondersteund geen fileuploads (dacht ik)

Verwijderd

Op maandag 25 juni 2001 19:36 schreef RedRoon het volgende:
Volgens mij niet, PHP in safe mode ondersteund geen fileuploads (dacht ik)
Volgens mij ook niet. Als je echt via php wil uploaden, kan je wel vanuit het php-script ftp-opdrachten uitvoeren.

  • Willem2
  • Registratie: Oktober 2000
  • Laatst online: 30-04 11:02

Willem2

Ω is futile

volgens mij moet je met php in safe mode de dir waarnaar je wilt uploaden chmod 777 doen, en dan dus wel een andere dir aangeven dan de standaard /tmp ...

en nee, ik houd niet van voetbal... :)


  • Brakkie
  • Registratie: Maart 2001
  • Niet online

Brakkie

blaat

Hoi,

Misschien is het handig als je eerst de help van f2s leest:

Is PHP running in SAFE MODE?
Yes. The PHP engine is compiled as a safe mode enabled Apache module. This makes it execute PHP scripts extremely quickly and safely. If the safe mode is too restrictive for your requirements, eg: you want to create a file upload script, then the php cgi engine can be used instead.

To run the slower cgi version of PHP your php file should end in .cgi and include at the top of the file the line:

#!/usr/bin/php

For more details on cgi scripts please see the Perl section of the website FAQ.
[Back to top]

Succes...

Systeem | Strava

Pagina: 1