/    Sign up×
Community /Pin to ProfileBookmark

Does not perform the php include command.

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.
[url]http://www.doghabitat.net/[/url]

[CODE]
<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”>

[B][COLOR=”Sienna”]<? include(“http://www.doghabitat.net/config/header.txt”) ?>[/COLOR][/B]

<!– 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 –>

[B] [COLOR=”sienna”]<? include(“http://www.doghabitat.net/config/goog336.txt”) ?>[/COLOR] [/B]

[/CODE]

What could possibily be the problem??

Thanks in advance.
Allan

to post a comment
HTML

11 Comments(s)

Copy linkTweet thisAlerts:
@tracknutMay 19.2007 — I'm just working on php includes myself.... isn't the syntax more like:

<?php include ....

Dave
Copy linkTweet thisAlerts:
@ShaReBMay 20.2007 — maybe it's the ; after the include()

aslo try [CODE]include 'file.txt';[/CODE]
not sure..
Copy linkTweet thisAlerts:
@moneymakingguruauthorMay 20.2007 — 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 [CODE]include 'file.txt';[/CODE]
not sure..[/QUOTE]


[I][COLOR="DarkRed"]yea, there are several ways to do that i found.. [/COLOR][/I]

I'm just working on php includes myself.... isn't the syntax more like:

<?php include ....

Dave[/QUOTE]
Copy linkTweet thisAlerts:
@nathanbMay 21.2007 — I simply use this format in my asp/html pages:

&lt;!--#include file="include/inc_header_short.asp"--&gt;
Copy linkTweet thisAlerts:
@moneymakingguruauthorMay 21.2007 — 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:

&lt;!--#include file="include/inc_header_short.asp"--&gt;[/QUOTE]
Copy linkTweet thisAlerts:
@tracknutMay 21.2007 — 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
Copy linkTweet thisAlerts:
@nathanbMay 21.2007 — I think the principles are the same... all these include commands can function the same thing...[/QUOTE]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.
Copy linkTweet thisAlerts:
@moneymakingguruauthorMay 21.2007 — 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.[/QUOTE]
Copy linkTweet thisAlerts:
@moneymakingguruauthorMay 21.2007 — 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[/QUOTE]
Copy linkTweet thisAlerts:
@moneymakingguruauthorMay 27.2007 — anyone can help?
Copy linkTweet thisAlerts:
@FangMay 27.2007 — 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!
×

Success!

Help @moneymakingguru spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...