Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
Thread: where do extra lines come from?
08-28-2013, 09:04 AM #1
where do extra lines come from?
Does anybody have any idea why I get extra lines at the top of this simple page?
Note. If I swap the includes for the arrays in the file, everything is fine.
echo "test"; //a simple test string, no relation to includes
each simple include is in a separate file which look like this
$creatures = array("cat","mouse","dog","horse","fish");
$food = array("hay","cheese","meat","artificial","anything");
output in browser view source
1 2 3 test
Last edited by low tech; 08-28-2013 at 10:21 AM.0000
08-28-2013, 12:57 PM #2
not without knowing what is in
you probably have whitespace at the top of the files
Last edited by Arcticwarrio; 08-28-2013 at 01:00 PM.
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Get Cloud Hosting now from only£59 / month
Users who have thanked Arcticwarrio for this post:
08-28-2013, 01:17 PM #3
- Join Date
- Sep 2010
- Thanked 275 Times in 275 Posts
Do the included files have php tags? They should.
Welcome to http://www.myphotowizard.net
where you can edit images, make a photo calendar, add text to images, and do much more.
When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.
Users who have thanked DrDOS for this post:
08-28-2013, 02:16 PM #4
Close, turns out white space after closing tag in both files. I completely overlooked that.you probably have whitespace at the top of the files
08-29-2013, 06:20 AM #5
- Join Date
- Jan 2010
- Behind the Wall
- Thanked 411 Times in 407 Posts
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.André Behrens, NY Times Software Developer
Users who have thanked Dormilich for this post:
low tech (08-29-2013)