include problem


Posted on 16th Feb 2014 07:03 pm by admin

I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root
Why does this not work when I want to include a php file:
Code: include "$root/form.php";
But the link to an image work like:
Code: <img src="<?echo $root;?>/images/pic1.gif">on the same form??

No comments posted yet

Your Answer:

Login to answer
296 Like 35 Dislike
Previous forums Next forums
Other forums

division gives infinity anser
int main()
{
int z=0;
int i=1/z;
cout<
}

It doesn't throw a

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

gettext translates ALWAYS?
I'm using gettext with the new version of XAMPP (5.3.0) on Windows Seven RTM (build 7600)
gettext

getting most records by count
Code: [Select]<?php

$connect = mysql_connect("localhost","dam

bit of help needed
Im about to sort out my registration page for my website by customising a "registration" s

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

parameter passing issue on function
Well I thought I had created a pretty slick web page, using ?page and $_GET to load pages which wher

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash