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
https://forums.phpfreaks.com/topic/51765-solved-alternative-to-include/
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...?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.