Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Daniel Pöllmann
Buffering is the more comftable way because if you write all html to a variable, output that might be created in a function, you did not modify will not be included. Non critical errors that create an output (notice/warning) will not ve included as well. Another way would be to create a script

[PHP] scandir doesn't find all files

2013-06-22 Thread Daniel Pöllmann
Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting. I can't find anything about this behavour in the

Re: [PHP] browser rendering

2013-06-02 Thread Daniel Pöllmann
Well I think it depends. When the image is part of the website, like a chart or something like that you can use the height and width attribute inside the img tag (don't forget alt for correct validation). When the image is part of the layout or you're having multiple images like in a gallery with