[PHP] Session abuse?
I'm wondering about the limitations of session variables in PHP4 with regards to over-use. For example I've been taking huge advantage of them and would like to store about 14k per session - its actually only three or four variables, but one of them is multiple depth array. Does this seem a reasonable use of session variables, or have I gone too far? :) Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Here Doc syntax
I'm having a real love/hate relationship with PHP's here-doc support. I love that it spares me from breaking in and out of PHP mode or using echo and back slashes for outputting largish bodies of dynamic HTML but I hate a) that the EOT; has to be the first thing on the line and b) I find that here-doc seems to make scripts unparsable on many occasions and I can never find the bug. I'd say 1/5 times I wind up breaking the script just sticking an: echo EOT table width="450" border="0" cellspacing="0" cellpadding="2" bordercolor="#00" tr td bgcolor=orange font color=red{$error}/fontP /td /tr /table EOT; into a page some place. Any suggestions from anyone? Appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] parse speed vs require speed
I'm wondering if I should organize the functions for my project into a single large file and have only one include/require, or break the code out into separate function library files and use a number of includes/requires. With a single large function library I'm guessing PHP would parse this every time a page is called. So I could loose some overhead by separating my database functions into one file, my administration functions into another, my presentation functions into another, etc... then only including the function pages necessary - likely cutting the amount of code being parsed in half for any given page. But then I begin wondering about the speed of making a require() to each of these files. maybe three to five requires per page. Lastly, what about caching or compiling the function libraries so they're not being parsed each time? Any advice on this? - - - - - - - - - - - WARNING: Some experts believe that use of any keyboard may cause serious injury. Consult Users Guide. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]