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

Baffled by Undefined Index in Simple Array: Please Help!
Hello. I have a form which posts an array to this script. However, I can't seem to access the values

Bit manipulation program with binary operations
My homework is to create a program to scan in and add binary numbers and print them like so

Optimize Code
Just started getting into the use of cookies. The following code will redirect users to a set URL s

why this query can delete duplicates ?
why this query can delete duplicates ? Anybody can give me the detailed explanation ?

Tha

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in

PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Her

Paypal
Hi all,

I have an advanced basic knowledge of php

I want to try something new for a s

Including calander to page - will not show other months than current??
im trying to add an existaing calander onto a profile page by using Code: <?php include "

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