LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-07-2003, 05:46 PM   #1
timc3
LQ Newbie
 
Registered: Jul 2003
Location: London
Posts: 7

Rep: Reputation: 0
php include not working just dumping txt to screen


I have a strange PHP problem, I am including a file into my PHP script:

<?php
include("myincludefile.php")...

but instead of being able to use the vars in there, it dumps the contents of the file I am trying to include to the screen.

If I put the same contents straight into the file then it works correctly.

It sounds to me like I haven't got something set correctly in my php.ini file but I am not sure what I need to be setting to getting this to work.

The file that I am including is in the same directory as one the doing the include and apache should have permission to open this file.

I am using PHP 4.3.4 with apache 1.3.28 on a redhat 7.2 box that has been upgraded..

Thanks..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Novell is dumping KDE, so I'll be dumping SuSE KimVette SUSE / openSUSE 10 11-12-2005 08:09 PM
php not working Fedora 2 (blank screen) jomama Programming 2 08-27-2004 02:33 PM
php not working Fedora 2 (blank screen) jomama Linux - Software 1 08-27-2004 10:42 AM
PHP include() not working kodon Slackware 13 08-10-2004 06:05 AM
php include msound Programming 2 06-24-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration