Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My code is:
PHP
<?php
$search = "closed";
$lines = file("closed.php");
foreach($lines as $line){if(stripos($line,$search)!==false)die();
}
?>
Posted
Updated 2-Mar-14 2:45am
v2
Comments
Thomas Daniels 2-Mar-14 8:59am    
Strange, I don't get any error.
SkyeEverest 2-Mar-14 9:01am    
lol
Thomas Daniels 2-Mar-14 9:02am    
Perhaps this can help you.

I got it I missed a semicolon somewhere in my original code!
 
Share this answer
 
I got it I typed a ";" in the wrong spot!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900