![]() |
PHP question, using a function inside an include?
Can anyone tell me real quick how to make a function work within an include?
Include is formatted like: <? include 'http://www.site.com/folder/file.php?FILE=http://www.site2.com/folder/REPLACE.php&TEMPLATE=template.html'; ?> Need to add a ($function) where it says REPLACE which of course currently spells out the funtion instead of inserting the correct data. Easy way to stop this? |
use double quotes instead:
<? include("http://www.site.com/folder/file.php?FILE=http://www.site2.com/folder/$function.php&TEMPLATE=template.html"); ?> By the way, whatever you trying to do, it doesn't look like the best way of doing things... |
How about?
<? 1.) function here 2.) store end result in variable 3.) include variable ?> |
Quote:
|
| All times are GMT -7. The time now is 12:26 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123