![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2002
Location: PEI, Canada
Posts: 6,924
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
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...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
|
How about?
<? 1.) function here 2.) store end result in variable 3.) include variable ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Dec 2002
Location: PEI, Canada
Posts: 6,924
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |