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

Filtering for a phrase using pregmatch
Here is my code which looks for addresses which start with ' src=" '

Code: [Select]preg_

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn

Assume I know the fol

PHP mail() returns true but doesn't work
First off I apologize if this is a newbie question, and I generally don't like asking questions that

Something like an INI editor or a DelimitedText-Editor
Hi all,

Am very, very, very new to PHP and not sure if I should be posting this to a Javascri

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

mysql_real_escape_string
Let me preface this that I am very much a PHP noob, but I have some SQL training (not necessarily My

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

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