just doesn't work, standalone

acranox

Joined: 2004-11-29
Posts: 11
Posted: Mon, 2004-11-29 23:17

I've read thread after thread and I'm not having any luck.
When I run http://www.acranox.org/gallery/block-random.php it just boots me back to my home page.
I tried including it in another file:
http://www.acranox.org/gallery/test.php
with this syntax:
<?php
include("http://www.acranox.org/gallery/block-random.php");
?>

and you'll see the errors I get.
I tried the enhanced version from that guy's site, but I got the same results.
What am I missing?

Thanks.

--Peter

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-11-29 23:26

You need to check your server's logs to see why block-random is redirecting to /index.

The errors you see in test.php indicate that your host has disabled urlwrappers - you'll have to ask them why, and whether they can be re-enabled.

 
acranox

Joined: 2004-11-29
Posts: 11
Posted: Tue, 2004-11-30 00:02

it works for another guy on the same server ...it's actually his server. He's got the same version of gallery installed. I'll have to wait until tomorrow to view today's logs. I think it has to be something with the installation. I've hardly made any changes to gallery, I don't see why it doesn't work.

 
acranox

Joined: 2004-11-29
Posts: 11
Posted: Tue, 2004-11-30 01:54

I found the problem.
I have an .htaccess file in my root directory that has a few apache redirects in it. Apparently one of them was causing the problem.
It should have only picked up strings matching "/blog*" So I don't fully understand why that was a problem. Oh well, problem solved.
Now I just have to see if I can include this in a separate file to get the image to display on my home page.