Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 General Forums > Lounge / Off Topic > Web Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2008, 05:30 AM
BrianDV BrianDV is offline
Newbie
 
Join Date: Jan 2008
Location: Wiltshire - UK
Posts: 3
Default php help for an old fool

Hi folks

I'm hoping this post will 'help' me.

I've got a directory type site, running on php, which I 'inherited'
It worked before migration to H9, but now has php errors.
I've tried to follow the knowledge base and support help, but I'm
lacking the skils to execute things correctly.

Would any kind soul out there like to offer to hold my hand to fix it.

the site is www.b2eprofit.com

Hopefuly, I'll gain 3 things:
1. fix site -
2. increase knowledge or awareness of my limitations -
3. I'll discover how friendly the H9 forum is to 'Old Idiots' like me -

ta
Brian
Reply With Quote
  #2  
Old 02-12-2008, 05:59 AM
McCarthySites McCarthySites is offline
Web Hosting Guru
 
Join Date: Jun 2007
Posts: 291
Default

Search the site for include() and include_once() - the use of url-style has been disabled (not sure if you can enable it but personally, I never liked using it.

Instead I use things like:

$DirRoot = $_SERVER['DOCUMENT_ROOT'];
require_once ("$DirRoot/somefile.php");
...

Of course, this won't work in some of your situations when you are passing values via the url:

ShowBanner.php?BannerType=468x6

You could change ShowBanner.php to look at session variables or declare a routine within it that you can call and pass it the size

include_once('ShowBanner.php');
ShowBanner(486,6);

You would have to recode ShowBanner.php to do the right thing when being called directly via a URL or just being included.

Brian
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.