Welcome Guest, Not a member yet? Register   Sign In
php includes
#1

[eluser]Unknown[/eluser]
Ok so im trying to install reCaptcha onto one of my sites...

for those who dont know, reCaptcha is a simple anti bot / anti spam application...

To install it it needs to use:

require_once();

so i uploaded the file it needs to require into the SYSTEM folder of codeigniter...

when i run:

require_once(base_url().'system/recaptchalib.php');

i get the following errors:

Code:
A PHP Error was encountered

Severity: Warning

Message: require_once() [function.require-once]: URL file-access is disabled in the server configuration

Filename: user_control/register.php

Line Number: 21

---------------------------

A PHP Error was encountered

Severity: Warning

Message: require_once(http://donov.co.uk/game/system/recaptchalib.php) [function.require-once]: failed to open stream: no suitable wrapper could be found

Filename: user_control/register.php

Line Number: 21

---------------------------

Fatal error: require_once() [function.require]: Failed opening required 'http://donov.co.uk/game/system/recaptchalib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/donov/public_html/game/application/views/user_control/register.php on line 21


now i vaguley understand that its because codeignightor doesnt let you use require_once(); and that there should be a way to remove this restriction in the config.php...

i cant find the option to remove the restriction...

maybe theres a better way...

can anyone help?

(this is the first time i used CVM im probably doing it wrong)


Messages In This Thread
php includes - by El Forum - 02-14-2010, 10:35 AM
php includes - by El Forum - 02-14-2010, 11:43 AM
php includes - by El Forum - 02-14-2010, 11:45 AM
php includes - by El Forum - 02-14-2010, 01:57 PM
php includes - by El Forum - 02-14-2010, 03:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB