Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
changed homepage to php, having problems with virtual includes

 

 


ibis70
User

Dec 30, 2009, 4:01 AM

Post #1 of 3 (2595 views)
Shortcut
changed homepage to php, having problems with virtual includes Can't Post

I have recently changed the homepage from an shtml to a php file and had some SSI virtual includes on this page for which I am trying to convert them to PHP includes.

I am wondering if I am using the correct paths because I am getting a parsing error from my server for the homepage at http://www.dolcevia.com/index.php.

I am currently using the syntax:
<?php include=('http://www.dolcevia.com/artman2/publish/headlinesagriturismohp.php'); ?>

Is there anything wrong with the code?

Thanks and happy new year.


Donna
Staff / Moderator


Dec 30, 2009, 3:46 PM

Post #2 of 3 (2558 views)
Shortcut
Re: [ibis70] changed homepage to php, having problems with virtual includes [In reply to] Can't Post

Hi there!

Most servers don't allow you to include a full URL. Usually you'll nee to use a path like this:

/full/path/from/root/artman2/publish/headlinesagriturismohp.php

Or, if you're using an Article Manager placeholder, change "webpath" to "filepath", like this:

$articles.placeholder.filepath$

I hope this helps!

Donna

--
support@interactivetools.com


ibis70
User

Dec 30, 2009, 4:10 PM

Post #3 of 3 (2554 views)
Shortcut
Re: [Donna] changed homepage to php, having problems with virtual includes [In reply to] Can't Post

I figured it out!

Thanks!