View Single Post
Old 01-22-2010, 01:41 PM   #282
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by Cooleyvol View Post
the path to the widgets is public_html/utilities/widgets

<? include("utilities/widgets/lg_100_sl_0_div_0_standings.wgt"); ?>
Thats the code I use on my index.php site for League 1. Its located at public_html/index.php

I have a second statslab for League 2 of my world. That index page is at /public_html/pcl/index.php The above code doesnt work on the /pcl/index.php page.
Looks like you got this working. In general, it's best to include the full server path or a "./" at the start of any path to tell the code explicitly that you want a relative path.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote