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";
Did you know?Explore Trending and Topic pages for more stories like this.
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

When file included, REMOTE_ADDR is server's?
I have an index file that handles my site, basically index.php?page=ip will activate "require('

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

PHP form authentication
Hi guys,

what am trying to achieve is this: Whenever a user tries to login to my website, an

Rand() help needed
Hi all,

Can someone explain and give me a quick example of how I would go about this?

Hi, explode and strstr.
Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f&

Help With Showing Users On the Index Page
Ive got this code which works just how i want it to.

Code: <?
$timenow=time();

Help with usergroups? prolly really quick
So were coding our own forums for a game system we made an we have the users level setup but now I n

Odd or Even
Inside of a while loop I need to echo several rows of info...easy enough.

In the loop (for th

Why is this function returning a false value when it shouldn't be??
This is in an include file. I want it to check a value in an html form and see if it's just white s

Display search result
Hi!

I have a SQL database with information about albums and track (music).

This is wh

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