Monday, July 14, 2008

Is Vaseline Good For Tattoo

advice from the lady (PHP), 2nd vol Song

holiday in full and write somehow I do not want:) But, in the form of brief advice automobilizacji present. As we all know, functions and classes PHP must be zainkludowane before their first use. Definition of the classes have even tighter consisting in the fact that if the object of the class put in $ _SESSION is that it can be re zdeserializowany script the next time the class definition must be included using include or require before calling session_start (). But we must remember one very important detail: the included file can not send any data to the browser, so that they do not modified the headers sent by the PHP which is sent, inter alia, cookie with the session id. Often, however, even being aware of this requirement, we prepared a script spits out some "junk", causing warning messages and the failure of the session initialization. It is in this case, see the beginning and end of PHP script file. Very often, by mistake, before and after the tags \u0026lt;? Php?> Be placed whitespace. Sometimes, it instantly inserts your editor, especially if you use the AutoFormat option in Eclipse. Hardly anyone knows that if the file does not discard any content you do not need to use the closing bracket '?>' And we can Place any number of whitespace at the end of the file. Our
file may therefore be of the form
 
\u0026lt;? Php function func1
($ parm, $ parm2, $ parm3) {//...

}
function func2 ($ parm) {//...

}
func3 function ($ parm, $ parm2) {//...

}
func4 function ($ parm, $ parm2) {//...

return;}



/ / use the closing tag '?>' Is optional



Yes to save the file is syntactically correct and does not cause any poblemów during its turn in our application.

So much for tonight

0 comments:

Post a Comment