11
abrizan
Re: PHP in a block
  • 2006/9/12 19:46

  • abrizan

  • Just popping in

  • Posts: 82

  • Since: 2005/11/14


i'm sure you guessed this, but includes are referenced relative to XOOPS root folder. What you may not realise is that default PHP configs prevent including above your script root.
Check your php.ini. I cant remember which property thoug.
You could, instead, put the include in a folder under xoops.

12
[suspendTempri[suspended]
Re: PHP in a block

Why not make a new query for random images ... you wouldn't even need gallery files.

13
Shelia
Re: PHP in a block - SOLVED
  • 2006/9/12 22:57

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


Thanks abrizan! I moved cpmfetch to XOOPS root and
this code worked....

include_once(XOOPS_ROOT_PATH . '/cpmfetch/cpmfetch.php');
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(6,1,2);
$objCpm->cpm_close();

Login

Who's Online

307 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 307


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