Pro!
I want to call a php function from another folder, the lin i am supposed to use is "<?php require('_drawrating.php'); ?>" but it is not located in my base web site folder, nor do i want it there, it is located in "ajaxstarrater_v122"
Now how would i call this?
Forward
2 months, 1 week ago by
Cody R.
- Pro!
3 Replies
-
If calling script is in base folder and ajaxstarrater_v122 is under the base folder:
require('ajaxstarrater_v122/_drawrating.php');
-
not sure if it works with php but the standard if the sub folder is outside the base folder would be to put a "../" for each directory up the subfolder is.
for example if ajaxstarrater_v122 is at the same lvl of your current folder (so just outside) the call would be "../ajaxstarrater_v122/_drawrating.php"
hope that helps
-
5.0 stars
yes, it helped, thanks a ton for the help you two :)
Join Now to Reply!
To add your own reply, sign in or join Pownce today!