het lukt me uberhaupt nog niet om iets te fopen ik maak wel even een simpelscriptje om te kijken waar fout gaat maar hij geeft nu deze error :
[code]Warning: fopen(nieuwsbrief/emailadressen.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/enormdekoning.nl/httpdocs/nieuw/nieuwsbrief2.php on line 13
[/code]
14 januari 2007 17:54
blacksorcerer
Heb je de rest van het topic niet gelezen ofzo?
Want het gaat er juist om dat niet alles zomaar toegankelijk is...
14 januari 2007 18:08
gerjan
[quote]Heb je de rest van het topic niet gelezen ofzo?
Want het gaat er juist om dat niet alles zomaar toegankelijk is... [/quote]
jawel maar dit is niet het opvragen van het txt bestand maar het invullen van een emailadres.
ik heb een heel nieuw php script gemaakt en hij doet het nu redelijk. als ik het script af heb zal ik het hier wel posten (denk ik)
jullie kunnen er in ieder geval niet zomaar bij door path in te typen.
is er nog een manier om aan het bestand te komen? (voor jullie zonder in te loggen op mijn ftp?)
14 januari 2007 19:49
gerbenkwakkel
Doe eens ..../ ;)
Ik werk normaal altijd met ROOT_PATH veel fijner.
15 januari 2007 20:56
gerjan
Ik heb alles opnieuw gescript en ben nu denk ik klaar.
het werkt in elk geval. alleen wil ik voor de veiligheid nog even vragen of er niks mee kan gebeuren.
ik heb 3 bestandjes. 1 emailadressen.txt en 1 formpje en 1 verwerk phptje
het formuliertje stuurt het naar de verwerker die het opslaat in txt bestandje.
emailadressen.txt chmod 622
formuliertje en verwerk chmod 644
is dit zo veilig of zou iemand bijv. vanalles kunnen slopen of emailadressen opvragen (of weggooien)
ik hoor het graag
emailadressen.txt is nu gewoon toegankelijk en kan direct bekeken worden.
Echter moet je natuurlijk dan eerst erachter komen dat het er staat, maar ik heb nog niet geprobeerd om nieuwsbrief2.php te downloaden, wat wss wel zal lukken en daarna kan je de textfile wellicht ook al achterhalen? Als er ergens een link naar de txt file staat kunnen fishing bots er mss ook nog bij.
Kan je geen eenvoudige weg gebruiken van coderen en dan ook in een ander formaat dan .txt opslaan?
18 januari 2007 22:40
gerjan
ik zou dus emailadressen.txt moeten veranderen in akfnsg3631en.txt ofzo
en dan zou nieuwsbrief2.php niet te downloaden moeten zijn.
als ik het in de browser intyp krijg ik echter een error dat ik niet gemachtigd ben.
[quote]Kan je geen eenvoudige weg gebruiken van coderen en dan ook in een ander formaat dan .txt opslaan?
[/quote]
hoe bedoel je dat? en welke formaten dacht je dan aan? (waardoor zou het veiliger worden?)