Welcome to Geeklog, Anonymous Sunday, March 16 2025 @ 06:47 am 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 !!
<?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 !!
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 !!
19
16
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
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
21
13
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?
Its like saying "I told my girl I love her but it didn't work".
What were you expecting, what happened?



don't be stupid there are nothing come out !!
blank page with no print out just page .
26
32
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.
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.

19
11
Quote
All times are EDT. The time is now 06:47 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