[Tool/Web/Other] Stat [WEB] [BETA]
#8

Quote:
Originally Posted by Glad2BeHere
View Post
echoing out html codes is a hassle
I'm talking about the HTML code in general. This is useful : http://www.granneman.com/webdev/codi...ing-your-html/

--
Quote:
Originally Posted by Glad2BeHere
View Post
No really they invented style tags for a reason
Yes, but the recommendation is to use it in a separated CSS file. It's better for the structure of the code and it can be easily used in multiple pages.

--
Quote:
Originally Posted by Glad2BeHere
View Post
Not necessary to start @ the top as its where i want to start the session
You should read the PHP documentation. http://php.net/manual/en/function.session-start.php
"To use cookie-based sessions, session_start() must be called before outputing anything to the browser."

--
Quote:
Originally Posted by Glad2BeHere
View Post
Its the only way to make the page as an image (as read by googling)
Well, using the header function is correct, but you are outputting as a text between html tags that have already been used, which is totally wrong. The correct way is :
Code:
<?php
     header('Content-type:image/jpg');
?>
And not :
Code:
<?php
     echo "<html><head>header('Content-type:image/jpg');</head></html>";
?>
--
Quote:
Originally Posted by Glad2BeHere
View Post
Die messages was used for some instances... i used where it was suit
Die is an alias of exit, which is used to stop the execution of a script. All the code after this function won't be shown, which is not ideal for the user friendliness. Errors can be displayed using echo.

--
Quote:
Originally Posted by Glad2BeHere
View Post
I can use which mysql functions i feel free to use because its what i am comfortable using
Again, read the PHP documentation, it's clearly written that the mysql functions are depreciated in PHP 5.5 which was released a few days ago. Check this link : http://php.net/manual/en/function.mysql-query.php

--
Quote:
Originally Posted by Glad2BeHere
View Post
Comments :/
Code comments (// or /* */). Useful for understanding your code.

--
Quote:
Originally Posted by Glad2BeHere
View Post
Filterscript? Y? its not need what so ever.... all u need in the mysql info...
It's always a plus to have a filterscript with this kind of release. For example a small FS to fill the database for each user of the sa-mp server.
Reply


Messages In This Thread
Stat [WEB] [BETA] - by Glad2BeHere - 24.06.2013, 18:57
Re: Stat [WEB] [BETA] - by ScripteRNaBEEL - 25.06.2013, 08:58
Re: Stat [WEB] [BETA] - by Sulps - 25.06.2013, 17:14
Re: Stat [WEB] [BETA] - by Glad2BeHere - 25.06.2013, 18:16
Re: Stat [WEB] [BETA] - by R@f - 25.06.2013, 20:50
Re: Stat [WEB] [BETA] - by Glad2BeHere - 25.06.2013, 22:29
Re: Stat [WEB] [BETA] - by Johnson_boy - 26.06.2013, 08:09
Re: Stat [WEB] [BETA] - by R@f - 26.06.2013, 09:09
Re: Stat [WEB] [BETA] - by Glad2BeHere - 26.06.2013, 16:58
Re: Stat [WEB] [BETA] - by Inn0cent - 11.04.2014, 12:11
Re: Stat [WEB] [BETA] - by Sublime - 11.04.2014, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)