
help with javascript
- netmaestro
- PureBasic Bullfrog 
- Posts: 8452
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: help with javascript
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. 
			
			
									
									
BERESHEIT
						Re: help with javascript
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.
 
 Mind you, I do look like a mule!
I may look like a mule, but I'm not a complete ass.
						Re: help with javascript
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.
Re: help with javascript
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.
▓▓▓▓▓▒▒▒▒▒░░░░░
						Re: help with javascript
It doesn't really matter if you turn off allow_url_include. The point is that they can "include" private areas of your website such as config files, .htaccess, etc. The most dangerous part is potentially including a PHP file in such a way that the actual page contents gets displayed. Hence, just "don't do it".
			
			
									
									
						


