Welcome Guest, Not a member yet? Register   Sign In
As experienced web developer what is the cause of this issue?
#11

You don't need to use the closing php tags any more in a pure php file.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#12

When PHP processes a file, it just outputs lines outside the PHP tags.
So in your sample code, the empty line between the PHP tags is output.

Code:
$ cat test.php
<?php

?>
// This line
<?php

?>

Code:
$ php test.php
// This line
$

Code:
$ cat test.php
<?php

?>

<?php

?>

Code:
$ php test.php

$

Code:
$ cat test.php
<?php

?>
<?php

?>

Code:
$ php test.php
$
Reply
#13

(This post was last modified: 10 hours ago by luckmoshy.)

(Yesterday, 02:29 PM)kenjis Wrote: When PHP processes a file, it just outputs lines outside the PHP tags.
So in your sample code, the empty line between the PHP tags is output.

Code:
$ cat test.php
<?php

?>
// This line
<?php

?>

Code:
$ php test.php
// This line
$

Code:
$ cat test.php
<?php

?>

<?php

?>

Code:
$ php test.php

$

Code:
$ cat test.php
<?php

?>
<?php

?>

Code:
$ php test.php
$

Of course, that is where the problem started and then the whole application started at 13 lines Thank you all for contributing it, but I also don't remember there was also someone past when him posted such an issue
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply




Theme © iAndrew 2016 - Forum software by © MyBB