PDA

View Full Version : VB_AREA or THIS_SCRIPT must be defined to continue...


khan3332
11 Oct 2005, 20:44
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



im trying to use the verify_auth function, but when i run the script from another directory, it gives me

VB_AREA or THIS_SCRIPT must be defined to continue

what does this mean....

Andreas
11 Oct 2005, 20:45
It does mean that either VB_AREA or THIS_SCRIPT must be defined in order to continue script execution :)

khan3332
11 Oct 2005, 20:53
does anyone know what i actually need to include to get this function working
from a custom script?

verify_authentication in /includes/functions_login.php

im going crazy =(

Andreas
11 Oct 2005, 20:56
init.php and functions_login.php should be fine.

khan3332
11 Oct 2005, 21:00
but then i get the error

VB_AREA or THIS_SCRIPT must be defined to continue

where do i define...

Andreas
11 Oct 2005, 21:04
In your Script :)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



before init.php for example.

khan3332
11 Oct 2005, 21:13
more pain =*( one of the require in init.php doesn't use the right path

Warning: main(/usr/local/psa/home/vhosts/something.com/httpdocs/myapp/includes/class_core.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/something.com/httpdocs/testforum/includes/init.php on line 34

Fatal error: main(): Failed opening required '/usr/local/psa/home/vhosts/something.com/httpdocs/myapp/includes/class_core.php' (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/something.com/httpdocs/testforum/includes/init.php on line 34

Andreas
11 Oct 2005, 21:17
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


before init.php

khan3332
11 Oct 2005, 21:26
OH MY GOD it works now!! =)

thank youuuu