TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 340
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 247
  • Total: 247

PHP article

Started by SamoanOnion, May 17, 2008, 07:34:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SamoanOnion


hello,
(using TP 1.0.5 & SMF 1.1.5)
I'm trying to display a remote file using a include statement in a PHP article (kind of like using a wrapper in joomla)

I've tried the following:


include 'http://rbc.gospelcom.net/odb/togo/toc.html';



include ('http://rbc.gospelcom.net/odb/togo/toc.html');



<?php
include 'http://rbc.gospelcom.net/odb/togo/toc.html';
?>


and everytime I try displaying the article, it just comes up blank, anyone have any ideas what I'm doing wrong???

Ianedres

Try using double quotes instead of the single quotes when using a full URL with the http part.

SamoanOnion

yep, I tried all the codes above with both single and double quotes and still nothing, thanx though

Ianedres

Could be restricted in your php config file where URLs are not allowed to be opened. The file exists at the location, so that isn't a problem.

Can you refer to it by way of a relative path (using the ../filepath/etc) instead of absolute?

Zetan

Is the article in a category? It will be blank until you assign it to a category.

SamoanOnion

#5
Quote from: Ianedres on May 17, 2008, 08:19:44 AM
Could be restricted in your php config file where URLs are not allowed to be opened. The file exists at the location, so that isn't a problem.

Can you refer to it by way of a relative path (using the ../filepath/etc) instead of absolute?
hmmm...

good idea
wierd though, it works for one and not on another,
and the one it works on, the links act funny

SamoanOnion

Quote from: ZTN on May 17, 2008, 08:32:03 AM
Is the article in a category? It will be blank until you assign it to a category.
it is assigned to a category, but my 'Welcome' message isn't assigned to a category and it display's just fine

Zetan

Well, articles won't display in TP 1.0.5 unless they are assigned to categories.

It works fine for me in a PHP article if you remove the PHP tags

include "http://rbc.gospelcom.net/odb/togo/toc.html";

QuoteOur Daily Bread
April/May 2008


April 27, 2008
God's Refreshing Word

April 28, 2008
The Greatest Gift

April 29, 2008
The Lamb Is My Shepherd

April 30, 2008
A Personal Gospel

May 1, 2008
He's Waiting

May 2, 2008
No Good Deed

May 3, 2008
China's Billy Graham

May 4, 2008
The Ascension

May 5, 2008
The Debt Of Leadership

May 6, 2008
Anti-Aging Power

May 7, 2008
Do Unto Others

May 8, 2008
Moody Artwork

May 9, 2008
Horsepower

May 10, 2008
The Power Of Pentecost

May 11, 2008
Best Mum

May 12, 2008
A Child's Wonder

May 13, 2008
Reframing The Picture

May 14, 2008
True Trust

May 15, 2008
Surprise Me!

May 16, 2008
Dragon Skin

May 17, 2008
Seize The Day

May 18, 2008
God's Strong Hands

May 19, 2008
A Question Of Motive

May 20, 2008
Productive Pain

May 21, 2008
Spelling Bee

May 22, 2008
The Next Generation

May 23, 2008
Heart Disease

May 24, 2008
Getting What You Want

May 25, 2008
Building Bridges

May 26, 2008
Gone The Sun

May 27, 2008
Can We Really Hear From God?

May 28, 2008
Are We Listening?

May 29, 2008
Finally Home

May 30, 2008
From Here To Heaven

May 31, 2008
Speeding Ticket




Our Daily Bread
www.odb.org
odb@rbc.net
Copyright 2008 RBC Ministries--Grand Rapids, MI 49555

Zetan

Here: http://labradio.co.uk/index.php?page=84

Also, check that the category the article is in, Category settings has the correct viewing permissions for members and guests.

SamoanOnion

LOL, thats funny, mine wont work with
http://rbc.gospelcom.net/odb/togo/toc.html

but it kind of works with
http://all4hisglory.org/messages/index.php
it'll display the page, but if you click on a link, it just takes me back to the TP home page

I'll double check my category settings again though

This website is proudly hosted on Crocweb Cloud Website Hosting.