Directly opening php file
#8

Quote:
Originally Posted by Jstylezzz
View Post
There is no ?> at the end. Be sure to add ?> to close the php source.
That is actually not recommended and also not necessary, at the end of the file. If you accidentally put some spaces or tabs behind the closing tag, the browser will consider that as "output" and will attempt to render it on screen. If you later include more PHP code that modifies header values, you will get nasty warnings about "headers already sent".
Reply


Messages In This Thread
Directly opening php file - by CloW - 22.06.2015, 07:59
Re: Directly opening php file - by Shetch - 22.06.2015, 08:00
Re: Directly opening php file - by CloW - 22.06.2015, 08:01
Re: Directly opening php file - by Shetch - 22.06.2015, 08:02
Re: Directly opening php file - by CloW - 22.06.2015, 08:05
Re: Directly opening php file - by Jstylezzz - 22.06.2015, 08:27
Re: Directly opening php file - by CloW - 22.06.2015, 08:34
Re: Directly opening php file - by Vince - 22.06.2015, 08:56
Re: Directly opening php file - by Mauzen - 22.06.2015, 11:17
Re: Directly opening php file - by GWMPT - 22.06.2015, 11:43
Re: Directly opening php file - by CloW - 22.06.2015, 16:21

Forum Jump:


Users browsing this thread: 4 Guest(s)