Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 03:56 pm EDT

Geeklog Forums

help withe include() in external page !!


Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
this is my out code but it is not work !! any help !!

Text Formatted Code

<?php
require_once('lib-common.php');
$path = "/home/*****/domains/******/public_html/******/";

 $display .= COM_siteHeader(); //Change to COM_siteHeader('none') to not display left blocks
 $display .= include( $path . "form.php" );
 $display .= COM_siteFooter(true);  // Change to COM_siteFooter() to not display right blocks
 echo $display;
?>


 



help me !!
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Is it not possible to put the form.php code in a php enabled static page?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
And what error(s) do you get?

Its like saying "I told my girl I love her but it didn't work".

What were you expecting, what happened?
 Quote

Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
Quote by tomw: And what error(s) do you get?

Its like saying "I told my girl I love her but it didn't work".

What were you expecting, what happened?


Mr. Green Mr. Green Mr. Green

don't be stupid there are nothing come out !!

blank page with no print out just page .
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
Then look at the error logs both geeklog and the webserver.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
you are probably just not requiring lib-common.php properly.
unless lib-common.php is in the same directory as this script, then your script is going to encounter a fatal error.

and if your lib-common is in a different directory than this script, adjust your path to lib-common.php accordingly in your require_once thingy.

Giving it a try
 Quote

All times are EDT. The time is now 03:56 pm.

  • 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