Web hosting
ultimate web hosting guide
Webmaster Talk
For Web Hosts
:
Log on to your account
|
Add Your Hosting Company
Home
Shared Hosting
ASP.Net Web Hosting
PHP mySQL Web Hosting
MS SQL Server Database Hosting
Free Web Hosting
Cheap Web Hosting
Budget Web Hosting
RVSkin Web Hosting
Fantastico Web Hosting
Website Builder Hosting Plans
Ecommerce Hosting Plans
Dedicated Servers
Managed Dedicated Server Hosting
UnManaged Dedicated Server Hosting
Cheapest Dedicated Server Hosting
VPS
Cheap VPS Server Hosting
Windows VPS Server Hosting
CPanel VPS Server Hosting
Plesk VPS Server Hosting
ColdFusion VPS
Unlimited Domains VPS Hosting Plans
DotNetPanel VPS
Knowledgebase
Forum
Web Hosting Discussion Forum
>
Web Hosting Business Discussion Forum
>
Hosting Control Panels & Other Softwares Discussion Forum
PHP and Includes not working
User Name
Remember Me?
Password
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Search this Thread
Display Modes
#
1
(
permalink
)
September 26th, 2007, 11:10 PM
jason
Administrator
Join Date: Aug 2007
Posts: 190
PHP and Includes not working
Is there anything special to allow server side includes in PHP to work? We upgraded PHP and now the headers and footer includes are no longer...
More...
__________________
List of
Premium Windows VPS Hosting
Providers.
Find
Affordable VPS Hosting Providers
-
Starts @ $4 /month only
.
TheWebHostingDir.Com - A
Premium Web Hosting Directory
.
#
2
(
permalink
)
December 25th, 2007, 09:20 PM
steve1318
Junior Member
Join Date: Dec 2007
Posts: 9
I think you need to paste some special code into .htaccess file for that option to start to work.
#
3
(
permalink
)
February 13th, 2008, 11:07 AM
PhilMeyer
Junior Member
Join Date: Feb 2008
Posts: 1
Hi,
Try using this: include($_SERVER['DOCUMENT_ROOT'] . '/directory/myfile.php');
$_SERVER['DOCUMENT_ROOT'] will give you /home/USERNAME/public_html. If you're using an add-on domain, that directory will be included at the end.
So your include will look like /home/USERNAME/public_html/directory/myfile.php
Phil
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Contact Us
-
The Web Hosting Directory
-
Archive
-
Top
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by
vBSEO
3.5.0 RC2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26