Author Topic: SSI include question  (Read 2083 times)

0 Members and 1 Guest are viewing this topic.

Offline Zackary

  • album.pl User
  • *
  • Posts: 8
  • Karma: +0/-0
    • Soldiers of Fortune on EQ
SSI include question
« on: June 13, 2003, 19:36:29 »
Ok, so I did search the forum for this topic and found lots of posts, tried all the suggestions and it still doesn't work. :P

Ok, so here's my situation:

Using UBB.Threads with the IIP add on (Integrated Index Page, available via the Threads Dev site.

I wrote a custom "PAL", that's what they call it ;), anyways, wrote the custom PAL to show a random pic from the photo album, problem is, using the SSI feature, it errors out, or shows the text from the page I wrote.

It's all in PHP of course and I've tried all the options listed, but it just doesn't work. :( The problem I think is that the PAL actually gets included on the index page, and inside the PAL, I'm trying to include this SSI link...

Suggestions anyone? :)

Thanks in advance!

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SSI include question
« Reply #1 on: June 14, 2003, 08:15:39 »
Can you just do a regular <?php include ... ?> statement?

Offline Zackary

  • album.pl User
  • *
  • Posts: 8
  • Karma: +0/-0
    • Soldiers of Fortune on EQ
Re:SSI include question
« Reply #2 on: June 14, 2003, 21:25:39 »
Yes, tried it, this is what I get.

Warning: Failed opening 'http://album.sofguild.com/cgi-bin/album/album.pl?random=1;ssi=1' for inclusion (include_path='.;c:\php4\pear') in c:\webs\forum\pals\randomphotopal.php on line 1

The file referred to contains only this line:

Code: [Select]
<?php include ("http://album.sofguild.com/cgi-bin/album/album.pl?random=1;ssi=1"); ?>
I've also tried:

Code: [Select]
<?php include ("http://album.sofguild.com/cgi-bin/album/album.pl?random=1;ssi=1"?>

Without the semi-colon and same results.

Basically... this index page, includes a page, that includes, a page, in which I'm trying to include the random pic. LOL I think that's right. :P

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SSI include question
« Reply #3 on: June 15, 2003, 12:55:13 »
Hmmm, that should work, I think. The PHP incldue page (http://ca3.php.net/manual/en/function.include.php) shows no brackets, but I don't think that's the problem. Looks more like PHP is treating your HTTP include as a regular file...

Offline Zackary

  • album.pl User
  • *
  • Posts: 8
  • Karma: +0/-0
    • Soldiers of Fortune on EQ
Re:SSI include question
« Reply #4 on: June 15, 2003, 16:01:05 »
Well, the odd thing is, I actually get the same error just trying to load the page with the simple include on it.

Give it a try, it's a simple file, one line.

http://forum.sofguild.com/pals/randomphotopal.php

It just calls the SSI: http://album.sofguild.com/cgi-bin/album/album.pl?random=1;ssi=1

THAT link actually works. hehe Ohh so much fun!

I wonder if somehow, I'm still not doing the include correctly... Hurmm...

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SSI include question
« Reply #5 on: June 15, 2003, 19:40:09 »
Odd... Can you do *any* includes? Maybe something's broken with your PHP install... Try including a local text file or something...

Also, here's some additional info: http://www.faqts.com/knowledge_base/view.phtml/aid/2022

Cheers

Offline Zackary

  • album.pl User
  • *
  • Posts: 8
  • Karma: +0/-0
    • Soldiers of Fortune on EQ
Re:SSI include question
« Reply #6 on: June 15, 2003, 23:36:16 »
Actually... it might be some type of path issue...

I was able to include a test text file from the same directory I ran the PHP page from, but I tried running the same script, with the file stored on another of my sites (same server, different URL) and it failed...

Strange... going to muck about a bit more. I'm running on WIN2K so that link you provided didn't help. :(

Any other ideas, toss em my way. ;)

Offline Zackary

  • album.pl User
  • *
  • Posts: 8
  • Karma: +0/-0
    • Soldiers of Fortune on EQ
Re:SSI include question
« Reply #7 on: June 15, 2003, 23:47:22 »
Did some more checking... When I do a path based off the physical location on my server, i.e. ../mypath/testinclude.php, it works on the text file include.

But when I do the same thing on the album SSI, it fails.

So, I'm stumped again.  :-\

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SSI include question
« Reply #8 on: June 16, 2003, 07:37:32 »
That makes 2 of us!