On Thu, Oct 29, 2009 at 12:26:10PM -0500, Shawn McKenzie wrote: > Rob Gould wrote: > > You are indeed correct! Absolute URLs for everything, images, css, > > javascript, and links fixed the issue. Took me forever to change every > > link in the whole site, but it's happy now. Seems like there ought to > > be an easier way. > > > > There is an easier way. The logic depends upon your app, but create a > function that builds and optionally echos URLs for you. It can work out > the base url or you can do that when you initialize your app and define > it as a constant. It can be as simple or as complex as you need. > > <a href="<?php makelink($file, $arrayOfVars); ?>">Something</a> > > -- or -- > > echo '<a href="' . makelink($file, $arrayOfVars) . '">Something</a>'; +1 I initialize a "links" class from the config, and then use it to serve up link text and URLs depending on the parameters I give it. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php