Author Topic: Problem...with php include  (Read 6889 times)

0 Members and 1 Guest are viewing this topic.

Offline Arunan

  • Newbie
  • *
  • Posts: 16
    • View Profile
Problem...with php include
« on: June 05, 2002, 04:18:10 AM »
Hi, i had added an extra table in home.html to support my news.

I put <php include ("news/news.txt") ?>

but it gives me a parse errors, and someting about line 131 in template.php...can anyone tell me how to include my news.

Thanks

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Problem...with php include
« Reply #1 on: June 05, 2002, 07:51:15 AM »
Hi,

try:

<?php
include ("news/news.txt");
?>

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Arunan

  • Newbie
  • *
  • Posts: 16
    • View Profile
Problem...with php include
« Reply #2 on: June 05, 2002, 11:08:16 PM »
Sorry, I made a mistake in my previous post, it was

<?php include("news/news.txt"); ?>

I also tried
<?php include ("news/news.txt"); ?>
*the space between include

Offline Vienix

  • Full Member
  • ***
  • Posts: 144
    • View Profile
    • com.municate.nl
Includes
« Reply #3 on: June 06, 2002, 12:48:47 AM »
HiDiHi,

in my template(s) you can see how to include extra "things"
like a menu or whatever...

http://www.4homepages.de/forum/viewtopic.php?t=604

Good luck !
Thats It !

Offline sasuke

  • Newbie
  • *
  • Posts: 32
    • View Profile
Problem...with php include
« Reply #4 on: June 07, 2002, 09:32:29 PM »
ITS IMPOSSIBLE !!!

------

HELP !!

------

HOW I ADD A INCLUDE !!

<?php include("poll/poll.php"); ?>

<-- ERROR:  
Parse error: parse error in c:\archivos de programa\easyphp\www\4images\includes\template.php(139) : eval()'d code on line 444

Offline sasuke

  • Newbie
  • *
  • Posts: 32
    • View Profile
Problem...with php include
« Reply #5 on: June 09, 2002, 03:19:02 PM »
Ok! Thanks !!