Im wanting to use a "token" for information that will be used across multiple sites Code: = "information" ; I was using an include statement on certain website pages to reflect the file that includes the token info
Need Help with php include statement
1
Im wanting to use a "token" for information that will be used across multiple sites
I was using an include statement on certain website pages to reflect the file that includes the token info
Everything worked fine. BUT I need to have the "tokens.php" file be on my server and the pages that actually have the tokens on them ( <?=$token?> ) will be located on clients websites on their server.
This code was suppose to work ( according to research ) but it does not pull in any of the token info and there is just blank space where info should be. ( and I get no errors )
Anyone know what im doing wrong and how to fix it. Also is there any security risk in doing this across domains?
Thanks for any help !
Code:
= "information" ;
Code:
<?php include("tokens.php"); ?> This code was suppose to work ( according to research ) but it does not pull in any of the token info and there is just blank space where info should be. ( and I get no errors )
Code:
<?php include("http://www.myotherwebsite.com/folder/tokens.php"); ?> Thanks for any help !
- wayfarer
Next Topics on Trending Feed
-
1