al3x8730 Posted September 2, 2008 Share Posted September 2, 2008 If I'm making something like... if ($file == something) { echo "something"; else { __________ Basically what function would I put there so that it stops processing the script right there? Link to comment https://forums.phpfreaks.com/topic/122455-solved-what-function-should-i-use-for-this/ Share on other sites More sharing options...
rarebit Posted September 2, 2008 Share Posted September 2, 2008 is something a 'define', is it supposed to be a variable, are you wanting to check if the file exists, is opened, there are some contents, a little bit more info about what you want will help... Link to comment https://forums.phpfreaks.com/topic/122455-solved-what-function-should-i-use-for-this/#findComment-632301 Share on other sites More sharing options...
al3x8730 Posted September 2, 2008 Author Share Posted September 2, 2008 is something a 'define', is it supposed to be a variable, are you wanting to check if the file exists, is opened, there are some contents, a little bit more info about what you want will help... I just need to know how to make the server stop processing the file at a certain point. Link to comment https://forums.phpfreaks.com/topic/122455-solved-what-function-should-i-use-for-this/#findComment-632304 Share on other sites More sharing options...
rarebit Posted September 2, 2008 Share Posted September 2, 2008 exit() or to get out of a statement, use either: continue or break Link to comment https://forums.phpfreaks.com/topic/122455-solved-what-function-should-i-use-for-this/#findComment-632308 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.