UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

Sponsored Links

+- Recent Posts

Re: German Language files by Tony_R
Today at 07:49:36 am

Re: German Language files by Tony_R
May 15, 2012, 02:09:12 pm

Re: German Language files by EzPortal
May 15, 2012, 02:00:02 pm

Re: German Language files by Tony_R
May 15, 2012, 01:55:26 pm

Re: German Language files by EzPortal
May 15, 2012, 01:38:52 pm

Re: German Language files by Tony_R
May 15, 2012, 01:29:19 pm

Re: German Language files by Tony_R
May 15, 2012, 09:44:14 am

Re: German Language files by Tony_R
May 15, 2012, 08:34:06 am

Re: German Language files by EzPortal
May 15, 2012, 07:27:30 am

Cache Error ? by Tony_R
May 15, 2012, 05:01:37 am

Quick Menu

Announcements
Community Guidelines & Rules
How To Section
EzPortal Showcase
Support

Author Topic: Need help with a php block please.  (Read 1765 times)

0 Members and 1 Guest are viewing this topic.

Offline ratr

  • Posts: 2
  • Karma: 0
    • View Profile
Need help with a php block please.
« on: November 20, 2010, 01:57:55 am »
I have a php orientated league program. The writer of the program has this simple instruction to show the league ladder on a website: <?php include ("pokerleague_.php"); ?>

I have set up a php block for the bottom of my page but using the above example gives me the following message within the block of ezBlock unable to run PHP syntax error! .

I have tried putting the following options after the first " and before pokerleague_.php.

http://www.mydomain name/tester/
/home/ratr/public_html/mydomain name/ezportal/
("../tester/pokerleague_.php")
and even tried \ instead of /


No luck so far, I'd really like to get my league ladder to show in a block rather than include it in the site code. I'd ask the writer of the program however while he mentions a help forum I can not find a link to it on his site or in the readme within the software.
any help would be appreciated, as giving me a little information is like handing a stick of dynamite to a lunatic which should explain that my php knowledge is about .01%
I'm running SMF 2.0 RC4 with the latest version of ezPortal.

Thank You

Offline EzPortal

  • Administrator
  • *****
  • Posts: 671
  • Karma: 44
    • View Profile
Re: Need help with a php block please.
« Reply #1 on: November 20, 2010, 07:15:38 am »
Use just include ("pokerleague_.php");

Offline ratr

  • Posts: 2
  • Karma: 0
    • View Profile
Re: Need help with a php block please.
« Reply #2 on: November 20, 2010, 03:45:52 pm »
Thank You for your reply, but that didn't work. It just left it blank. So I thought I would try putting a copy of the pokerleague_.php in the same folder as the forum in case that was the problem. It game me an error and from that I copied the directory structure it said it was trying to access.

So I then tried
include ("/home/ratr/public_html/mydomain name.com/tester/pokerleague_.php"); and it works  :)   however without your prompt to my problem and my newbieness (if that is a word) trying everthing (and a bit of luck too) I'd still be at it.

So thank you for your time and effort, without such I would not have the block I wanted working i'm certain.

 

Powered by EzPortal