Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 03:36 am EST

Geeklog Forums

encapsulating php in external pages


Status: offline

ltcolumbo

Forum User
Regular Poster
Registered: 12/17/01
Posts: 91
I'm having some trouble encapsulating the php code into php.php and geekphp.php from the external pages template files.

I try like it says, I put in my code like this:

$display.="session_start();";

basicly, I'm encapsulating all the code from the page I want displayed with the $display.=" "; tags. Is this wrong? because all I get is a blank page, I have show all errors in php.ini and it starts at the first line with the error. Anyone help?
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Does this help:
Text Formatted Code
     $display .= "session_start()";
     $display .= "more stuff";....
     echo eval($display);

Although you should know GL and session stuff don't get along very well.
 Quote

All times are EST. The time is now 03:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content