Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Cant get my include to work.
Rrmccabe
Posted on 19 May 2010, 16:13:50

Access: Member
Total Posts: 11
Joined: 2009-11-17

I have a page created (test.html) with the following code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php 
include '/news/index.php';
?>
</body>
</html>

I just get a blank page when I go there.

I can browse to the /news/index.hph directly and have content but cant call it with the include for some reason.

Rich
#2288
Chris
Posted on 23 May 2010, 16:35:48

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Quote:
I have a page created (test.html) with the following code

test.html may be the problem, try renaming it to test.php
#2305
Rrmccabe
Posted on 23 May 2010, 16:39:12

Access: Member
Total Posts: 11
Joined: 2009-11-17

Hi Chris, have tried it both ways.

http://www.www.boyerpetroleum.com/test.php

http://www.www.boyerpetroleum.com/news/

Rich

#2307
Chris
Posted on 23 May 2010, 16:42:31

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Very strange.

Try specifying the full path to the news script, so something like

Code:
<?php
include '/home/username/public_html/news/index.php';
?>


See if that works at all.
#2311
Rrmccabe
Posted on 23 May 2010, 16:58:24

Access: Member
Total Posts: 11
Joined: 2009-11-17

Yes that worked !

#2320
Chris
Posted on 23 May 2010, 16:59:17

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Awesomesauce.
#2322
Rrmccabe
Posted on 23 May 2010, 17:10:53

Access: Member
Total Posts: 11
Joined: 2009-11-17

Now if I can configure it to look like the customer wants we will be stylin !

Thanks much Chris
#2324
Network-13.com © 2013