Click to See Complete Forum and Search --> : Does not perform the php include command.
moneymakingguru
05-19-2007, 05:07 PM
Can someone help me take a look at this site.
I dunno what i did and it no longer perform some of my commands anymore.
http://www.doghabitat.net/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Dog Habitat - Everything In An Igloo Dog House</title>
<meta name="description" content="What is considered a dog habitat? Why does dogs need to have their own home? For their own safety, it is better to enclose them to protect them from dangers.">
<meta name="keywords" content="dog habitat, igloo dog house, crate, kennel, dog-proof">
<link href="http://www.doghabitat.net/styleA.css" rel="stylesheet" type="text/css">
<? include("http://www.doghabitat.net/config/header.txt") ?>
<!-- google_ad_section_start -->
<h1 style="margin-top: 0; margin-bottom: 0">Dog Habitat - Everything In An Igloo Dog House</h1>
<!-- google_ad_section_end -->
<? include("http://www.doghabitat.net/config/goog336.txt") ?>
What could possibily be the problem??
Thanks in advance.
Allan
tracknut
05-19-2007, 06:52 PM
I'm just working on php includes myself.... isn't the syntax more like:
<?php include ....
Dave
ShaReB
05-19-2007, 07:26 PM
maybe it's the ; after the include()
aslo try include 'file.txt';
not sure..
moneymakingguru
05-20-2007, 02:47 AM
Thanks guys...
The thing is, it was working all the while until about 9th May.. i must have done something on that shared hosting.. maybe htaccess or something.. which i cannot trace back..
Just thought if someone has got such issues b4..
maybe it's the ; after the include()
aslo try include 'file.txt';
not sure..
yea, there are several ways to do that i found..
I'm just working on php includes myself.... isn't the syntax more like:
<?php include ....
Dave
nathanb
05-20-2007, 07:19 PM
I simply use this format in my asp/html pages:
<!--#include file="include/inc_header_short.asp"-->
moneymakingguru
05-21-2007, 02:32 AM
I think the principles are the same... all these include commands can function the same thing... but the thing that i have been trying to get across is, the site was loading well until one day.... the command just stop being functional.
Anyone know if it is the htaccess or..... i dunno
For this to work, what command line do i need in htacess?
I simply use this format in my asp/html pages:
<!--#include file="include/inc_header_short.asp"-->
tracknut
05-21-2007, 10:09 AM
I'm not aware of any htaccess requirements to get php includes to work. Certainly I'm doing includes without having any htaccess files. Do you know if php is working at all? Any chance the server changed on May 9th, and you're now on a Windows server or something like that?
Dave
nathanb
05-21-2007, 04:43 PM
I think the principles are the same... all these include commands can function the same thing...Not exactly... If PHP for some reason stopped working on your server then the PHP include command isn't going to work, while the HTML way will.
moneymakingguru
05-21-2007, 06:07 PM
Hi, I did tried the codes that you gave me too.. but it still just dun work.
Not exactly... If PHP for some reason stopped working on your server then the PHP include command isn't going to work, while the HTML way will.
moneymakingguru
05-21-2007, 06:09 PM
Hi Dave,
I am using startlogic's hosting and its a shared hosting for this one..
My main site is using similar include command files and they are still working.. but the funny thing is, http://www.doghabitat.net/ 's include commands on the same shared hosting plan is not working.. just like that... I have been thinking what might have caused it.. It must be a line of code that just blocks it... but what could be that line of code???
I'm not aware of any htaccess requirements to get php includes to work. Certainly I'm doing includes without having any htaccess files. Do you know if php is working at all? Any chance the server changed on May 9th, and you're now on a Windows server or something like that?
Dave
moneymakingguru
05-27-2007, 10:01 AM
anyone can help?
Include the php files as '.php' not '.txt'
Include the js files as '.js' not '.php'
All these files together must constitute a valid document!