1
wildenborch
How to include a external php file in a block
  • 2010/4/20 6:18

  • wildenborch

  • Just popping in

  • Posts: 5

  • Since: 2005/8/18


Hi all,

I searched this forum but I did not find an answer.

I want to include an external (and working) php file into a block however, when I use the following include statement

include('http://www.catchfoto.com/cpmfetch/foto.php');

in a php block nothing shows up.

My site is a xoops 2.44 site.

Can somebody help me with this?


2
wildenborch
Re: How to include a external php file in a block
  • 2010/4/20 6:25

  • wildenborch

  • Just popping in

  • Posts: 5

  • Since: 2005/8/18


Btw, this include statement is working properly on a xoops 2.3 site!

3
ghia
Re: How to include a external php file in a block
  • 2010/4/20 8:02

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


But that was on a different server?
Then it is probably the allowurlfopen php.ini setting.

4
wildenborch
Re: How to include a external php file in a block
  • 2010/4/20 10:01

  • wildenborch

  • Just popping in

  • Posts: 5

  • Since: 2005/8/18


hmm. that seems indeed to be the case.
Well, i will contact my hosting company and maybe they will change this on my account only.

In any case, many thaks for your reply,

5
wildenborch
Re: How to include a external php file in a block
  • 2010/4/20 12:46

  • wildenborch

  • Just popping in

  • Posts: 5

  • Since: 2005/8/18


This issue is solved now.

The hosting company allowed me to create a php file which I should place in the public_html folder in order to overrule the default settings.

Again thanks ghia, for helping me in the right direction.

Login

Who's Online

347 user(s) are online (287 user(s) are browsing Support Forums)


Members: 0


Guests: 347


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits