Home > Fatal Error > Fatal Error Cannot Break/continue 1 Level

Fatal Error Cannot Break/continue 1 Level

did you get rid of the break and was the problem solved? It works in some conditions but gives error in some cases. php.net/manual/en/language.operators.comparison.php –MetalFrog Aug 16 '12 at 13:34 @SiGanteng: This part belongs to function. Is there a place in academia for someone who compulsively solves every problem on their own? navigate here

It has nothing to to with "what" the "print"-call would return or not return, but the returning value can cause to skip to the end of higher level Loops if any Why is absolute zero unattainable? Logical fallacy: X is bad, Y is worse, thus X is not bad What kind of bicycle clamps are these? Silver51 View Public Profile Find More Posts by Silver51 28th Nov 2011, 17:18 #7 Zoon Hunting Wabbits since the 80s Join Date: Mar 2001 Location: Somewhere near a http://stackoverflow.com/questions/11988281/why-does-cannot-break-continue-1-level-comes-in-php

more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation You need to improve your answer. –Somnath Muluk Oct 12 at 6:28 Sorry for that. add a note User Contributed Notes 17 notes up down 61 jaimthorn at yahoo dot com ¶6 years ago The remark "in PHP the switch statement is considered a array_shift is the only parameter is an array passed by reference.

  • Hits 2.5.3 Robust tracking system that allows you to track visits from unique visitors to ExpressionEngine entries as well as Channel Images, Channel Videos, Channel Files, or Brilliant Retail Products Campaigns
  • Click me for a signup bonus on TopCashBack.
  • http://kickawesome.tv/show/episode21” @kickawesomeshow © 2008-2016 DevDemon.
  • Here's an example of what you shouldn't do. for($i=0;$i<5
  • Log in or register to post comments Comment #6 kinosura CreditAttribution: kinosura commented June 22, 2011 at 6:22am Vc Developer, thank you for your help!
  • more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
  • faugusztin View Public Profile Find More Posts by faugusztin 28th Nov 2011, 14:43 #6 Silver51 I cast flare!
  • Search: Advanced Forum Search Forums Programming Web Development Computers Tutorials Snippets Dev Blogs Jobs Lounge Login Join!

The break command probably worked in some prehistoric version of PHP for the example you provided, but since then it was corrected and now shows an error. The code looks like: // Start Ultimate Points $sql = 'SELECT points_received, poster_id FROM ' . A better way to evaluate a certain determinant Why are empty blocks not all the same size? All Rights Reserved.

sign in cart: 0 items Add-Ons Channel Images 6.0.2 The most advanced image management suite for ExpressionEngine. You should try executing what you are saying. And because you have no loop, you use a wrong command in a wrong place. check here POSTS_TABLE . " SET points_received = points_received - " . $row['points_received'] . " WHERE post_id = '" . $data['post_id'] . "'"; $db->sql_query($sql); $ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($data['message'])); } // End Ultimate Points $sql_data[POSTS_TABLE]['sql']['post_text']

Code: if( strlen($bot) > 6){ echo"

The anti-bot field is too long!
"; $CN_HALT = TRUE; break 1; } if( strlen($bot) < 6){ echo"
The anti-bot field is too short!
"; share|improve this answer edited 1 hour ago answered Oct 11 at 3:41 David Lartey 16510 This will give same error which is in Question unless you have if condition Display Formatted Code Simple Content Formatting with Regular Expressions Limiting login attempts 151 More PHP Tutorials... you have multiple closing brackets in the posted code, but only one opening bracket.

Why is the spacesuit design so strange in Sunshine? try this if (isset($errors)) { foreach ($errors as $error) { echo $error; } } else {break 2;} //there is no loop here! I must be missing something. How to obtain the mean for a normal distribution given its quartiles?

You should store the produced value of preg_grep("/$user:.*$/", $AuthUserFile); to $pregGrap a variable first. check over here Got any car or home insurance coming up soon? Not the answer you're looking for? On my good days.

Started by iamz3r0, Aug 07 2009 05:50 PM Please log in to reply 8 replies to this topic #1 iamz3r0 iamz3r0 Member Members 24 posts LocationVirginia Beach Posted 07 August 2009 Several functions may not work. Thanks! his comment is here faugusztin View Public Profile Find More Posts by faugusztin 28th Nov 2011, 13:52 #4 Silver51 I cast flare!

share|improve this answer answered Jul 29 '15 at 11:22 AddWeb Solution Pvt Ltd 2,2181319 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up if(preg_match($route['url'], $url, $matches)) { $params = array_merge($params, $matches); $route_match = true; break; } } // if no route matched display error if(!$route_match) { exit('no route found'); } include(CONTROLLER_PATH.$route['controller'].'.php'); } dispatcher($routes); ?> Transform an array to another array by shifting value to adjacent element more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising

Password Register FAQ / Rules Calendar Today's Posts Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page...

Join Date: Jul 2006 Location: Cornwall Posts: 2,952 Yeah, the script was a relic from my scripts folder. But break is helpless outside of a loop / block. I don't? But if some statements need to execute then we should not return. –Somnath Muluk Jan 15 at 9:52 I agree in that case.

But didn't got any help. foo($a) New statements, i.e. Cannot break/continue 1 level. This is the index.php file

'; /** // Requested URL $url = $_SERVER['REQUEST_URI']; //echo $url.'
'; // Removes Application root from url $url = str_replace('/localFixers/', '', weblink Is the NHS wrong about passwords?

It also depends what logic that code block is trying to apply. What you typed makes no seance to me. // LOOPS over $routes looking for a match foreach($routes as $urls => $route) { // if match found appends $matches to $params // statements, so you might expect the following output:
[1]
0
[1]
1

This output requires you to either change the switch to an if or use the numerical argument and Join them; it only takes a minute: Sign up Why does 'Cannot break/continue 1 level' comes in PHP?

Silver51 View Public Profile Find More Posts by Silver51 28th Nov 2011, 14:20 #5 faugusztin I *am* the guy with two left hands Join Date: Aug 2008 Location: Bratislava, Why is the spacesuit design so strange in Sunshine? Please offer more detail. break should only be used within a switch/case statement Back to top #3 mikesta707 mikesta707 Advanced Member Staff Alumni 2,967 posts LocationNew York Posted 07 August 2009 - 05:55 PM ahh

Fatal error: Cannot break/continue 1 level in /var/www/vhosts/xx.xx.xxx/subdomains/lbrt/httpdocs/system/expressionengine/third_party/channel_images/libraries/image_helper.php on line 624 Any idea? I put this in a while ago to cut back on random bots filling in the form with crap. If there are 0 statements to execute after if then we can return.