xyn Posted December 30, 2006 Share Posted December 30, 2006 Hi Guys,I have got a website, which uses a Configuration file, and the configvariables will NOT output. an example is below:config.php[code=php:0]<?php$website_url = "http://www.example.com/folder/";$website_name = "my web name";?>[/code]functions.php[code=php:0]<?phpretuire("config.php");function register(){do the register bit.echo ($website_name . "- Activation sent!"); // problem here!echo ("Bla bla bla");}?>[/code]index.php[code=php:0]<?phprequire("config.php");require("functions.php");?>HTML GOES HERE<?phpregister();?>HTML ENDING BITS GO HERE[/code] Link to comment https://forums.phpfreaks.com/topic/32276-variables-not-outputting/ Share on other sites More sharing options...
paul2463 Posted December 30, 2006 Share Posted December 30, 2006 try this in your trouble line[code]<?phpecho ("$website_name - Activation sent!"); // problem hopefully solved!?>[/code] Link to comment https://forums.phpfreaks.com/topic/32276-variables-not-outputting/#findComment-149826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.