Re: help with javascript
Posted: Mon Oct 25, 2010 6:39 pm
Thanks, I'll have a play with that. All of PHP is new to me so it's all good learning fodder, ugly or not. 
http://www.purebasic.com
https://www.purebasic.fr/english/
It shouldn't matter that you're not as good looking as I Netty, php is for all.netmaestro wrote:Thanks, I'll have a play with that. All of PHP is new to me so it's all good learning fodder, ugly or not.

Actually, it's best practice to never use "include" with an instance where the path is obtained from user-editable input. For example: '$_GET["page"]'.Nituvious wrote:You can use ereg_replace to remove any possibility for directory transversal.
True, I don't like using Include because of the possible exploits. I have allow_url_include turned off, so it "may" be a little safer for my tiny website. I used fopen before, but it became more troublesome but keep in mind I have only used php for about 6 months so, I'm still new to it!Mistrel wrote:Actually, it's best practice to never use "include" with an instance where the path is obtained from user-editable input. For example: '$_GET["page"]'.Nituvious wrote:You can use ereg_replace to remove any possibility for directory transversal.
Even though you may think that you've parsed it safely, there may be ways around that.