Jump to content

[SOLVED] alternative to include?


dj-kenpo

Recommended Posts

I'd like to include a file but the include command won't work cross server (not on my server anyways) and I just want the rendered html anyways.

 

is there a way that I can grab the html and output?

 

I'd liek to avoid curl as it's a high traffic site and I imagine it eats more cpu.

 

basicly I want to create a file pointer

 

eg

 

page.php

<?

$Get_string = $_SERVER['QUERY_STRING'];

 

include("example.com/user_pages/page.php?$Get_string");

 

?>

 

except obviously the above doesn't work as include hates get variables.

 

any help loved.

Link to comment
Share on other sites

no, I need the person to stay in their local directory and not get transfered elsewhere. but it was a good idea.

 

mysite.com/page.php

grabs

example.com/user_pages/page.php

 

but no one knows it occured.

 

I don't want to have to update the same file 600 times for different members. nor do I want the file space issues. easier to just refrence the same file with a sort of shortcut.

 

make sense? at all...?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.