Include Issues

Need some help with the script?

Include Issues

Postby homershines » Fri Jul 03, 2009 3:28 pm

I'm a newbie working with a Mac based- MAMP localhost setup.
I've tried the original Cutenews and I love it.
Recently, I came across you folks and I really wanna try Cutenews RU.

For some reason, I can't get it to include.
I've tried various approaches all from the instructions.

<path to head script>
<html>
<head>
</head>
<body>
<include script>
</body>
</html>

<html>
<head>
<path to head script>
</head>
<body>
<include script>
</body>
</html>

I've tried with include 'http://localhost:8888/nutester1a/+news/cutenews-ru/head.php';
Also, include "http://localhost:8888/nutester1a/+news/cutenews-ru/head.php";

Can there be something else that I've missed that's beyond my view.
Could the mod rewrite be a problem and how would I know?

Any assistance would be greatly appreciated.

Peace.

Homer
homershines
 
Posts: 10
Joined: Fri Jul 03, 2009 3:24 am

Postby FI-DD » Sun Jul 05, 2009 8:13 pm

You are using an absolute path but the script needs a relative path.

Something like
Code: Select all
include('cnr/show_news.php');
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby homershines » Sun Jul 05, 2009 8:41 pm

Please excuse my goofiness.

But could we walk through it?

I'm installing 2 script elements to my php page correct?

One before the head and the other, which you gave in your response, will go wherever I want the news to appear.

Am I correct?

Thanks.

Homer
homershines
 
Posts: 10
Joined: Fri Jul 03, 2009 3:24 am

Many thanks

Postby homershines » Thu Jul 09, 2009 3:11 pm

I tried your recommendation and it worked.

Many, many thanks.

homershines
homershines
 
Posts: 10
Joined: Fri Jul 03, 2009 3:24 am


Return to Help



Who is online

Users browsing this forum: No registered users and 1 guest