Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php ss include on windows server
Old 05-25-2010, 04:06 AM php ss include on windows server
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
I have this php server side include which works great on linux:

<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/header.php');
?>

I am trying to get it to work on a godaddy windows server (shared deluxe account) which does allow php, but I keep getting a "failed to open stream" error. Any suggestions on how to get this to work? Thanks in advance for any help.
andrew99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-25-2010, 05:39 AM Re: php ss include on windows server
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
try using a relative path

require_once('includes/header.php');
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 05-25-2010, 07:21 AM Re: php ss include on windows server
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
DOCUMENT_ROOT is an APACHE environment variable

APPL_PHYSICAL_PATH would be the IIS/Windows equivalent (if PHP on Windows supports that (never needed to test it)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to php ss include on windows server
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.75189 seconds with 12 queries