PHP is a nice language with features a wide range of automated features for memory but when it comes to mass processing for things like calculating pi or processing a database that's a couple dozen Gigabytes then you may run into a few troubles if things aren't done correctly. This of course only happens depending on what operating system you have and what updates you have done along with settings you have set but those pieces of information are a bit puzzling as some web servers have this problem while others don’t. So this feature I'm going to talk about …

Member Avatar
Member Avatar
+4 forum 2

Hi all, I'm trying to delete elements from an array - The array should be a shopping cart - So I need to ad/remove items from it. So far I can add items no problem, but i seem to keep failing to delete the correct indexes. The array contains a product id and the quantity of that product in the cart. I have this: // Cart array: // Should that be build in another way? $cart = array( 'data' => array( 'product_id' => array( 1000 ), 'quantity' => array( 1 ) ) ); print_r( $cart ); echo '<br /><br />'; …

Member Avatar
Member Avatar
+0 forum 1

Good Morning, I am working on a hockey pool site and am trying to build a standings page. You can see my output here [url]http://www.cornwallfantasyhockey.com/cfhl/standings2/[/url] I would like to be able to write code that will sort the PTS column in descending order, however the PTS value in each row is a calculated value based on other calculations. Is this possible? I have define the values as $PTS_xmen, $PTS_bull, $PTS_high, $PTS_ice. Any help would be appreciated. Cheers, Chris

Member Avatar
Member Avatar
+0 forum 6

hi i have done a header redirect to stop from the resending data in most browser but seem to have a problem with showing messages after that's done. After the user finishes doing something he or she gets redirected and there[s a message in a session either error or success. When the user gets redirected once the message is suppose to show and than after it shows it unsets but the problem im facing is that it apparently unsets before showing the message. Heres some of the code [CODE] <?php $_SESSION['message'] = "Your post has been successful"; header("Location: login.php"); echo …

Member Avatar
Member Avatar
+0 forum 3

Hi, I have a class and i have unset() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() { unset($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to unset only key TOBEDELETED . What may cause this?

Member Avatar
Member Avatar
+0 forum 2

i found that your supposed to use this: session.gc_maxlifetime but i dont know how. does anyone know how i can destroy a log in session so the user wont be logged in 30 minutes later. ?

Member Avatar
Member Avatar
+0 forum 13

The End.