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

How do I know when getBounds Method is ready to be called.
I have an application that changes out stylesheets client side. Once I change stylesheet the browse

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

Parse Error
Hi Guys,

I have a function in my class which returns a string link variable. The problem is i

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

import table with dependency
Hi

What is the best way to import table back which has dependency?

SQL> cre

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

How to schedule the a job?
Hi,
I have prepared a task ( i.e. a procedure is prepare the file and send the same to con

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