yakoup46 Posted April 13, 2009 Author Share Posted April 13, 2009 okay so how i make this preg_match look in a file. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808837 Share on other sites More sharing options...
yakoup46 Posted April 13, 2009 Author Share Posted April 13, 2009 this preg_match is confusing. can someone give me an example? Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808858 Share on other sites More sharing options...
Daniel0 Posted April 13, 2009 Share Posted April 13, 2009 this preg_match is confusing. can someone give me an example? preg_match('/b/i', $string); Checks case-insensitively if there is a b in $string. You'll have to learn regex, another language, to use preg_*(). Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808864 Share on other sites More sharing options...
.josh Posted April 13, 2009 Share Posted April 13, 2009 lol...php isn't the simple beast you thought it was 30m ago, eh? Don't worry, understanding regex is an artform all its own. Not a whole lot of people really get into it, because it's pretty damn scary at first. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808870 Share on other sites More sharing options...
nrg_alpha Posted April 13, 2009 Share Posted April 13, 2009 I would suggest visiting these links for more info on regex in general: Resources Regular-Expressions.info weblogtoolscollection This should be more than enough to get you started. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808872 Share on other sites More sharing options...
yakoup46 Posted April 13, 2009 Author Share Posted April 13, 2009 ;D Yeah, i guess i miscalculated, huh? LOL. Do you need to know Regex to be skilled in PHP. Like do the big companies use Regex, like Yahoo i think you mentioned? Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808873 Share on other sites More sharing options...
.josh Posted April 13, 2009 Share Posted April 13, 2009 no. regex is just a small part of php. You can be really skilled at php and not really know a whole lot about regex. Regex is pattern matching, data mining. It is a big part of things like crawler bots, search engines, page scrapers, etc... But things like that are just one aspect of the whole internet mechanics. There is more than plenty of stuff to do as a web developer that has nothing to do with regex. As mentioned, most people generally try to avoid it, go their whole career only knowing basics, if anything at all. I personally get off to it. But that's me. I like picking shit apart and finding patterns in things. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808885 Share on other sites More sharing options...
Maq Posted April 13, 2009 Share Posted April 13, 2009 I like picking shit apart Now that's just sick... Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808921 Share on other sites More sharing options...
.josh Posted April 13, 2009 Share Posted April 13, 2009 hey you never know what you'll find. balloons full of cocaine, random gems smuggled, spare change Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808936 Share on other sites More sharing options...
Maq Posted April 13, 2009 Share Posted April 13, 2009 hey you never know what you'll find. balloons full of cocaine, random gems smuggled, spare change Hahaha, I don't about the spare change... but everything else is worth it! Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808939 Share on other sites More sharing options...
taquitosensei Posted April 13, 2009 Share Posted April 13, 2009 It depends on how much spare change. You'd be surprised what you can buy for a dollar at McDonalds Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808949 Share on other sites More sharing options...
premiso Posted April 13, 2009 Share Posted April 13, 2009 You'd be surprised what you can buy for a dollar at McDonalds That goes along with this saying: I like picking shit apart Just as disgusting in fact picking McDonalds apart... Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808969 Share on other sites More sharing options...
taquitosensei Posted April 13, 2009 Share Posted April 13, 2009 as long as you keep your eyes shut it tastes good Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808977 Share on other sites More sharing options...
Maq Posted April 13, 2009 Share Posted April 13, 2009 More, like, "As long as you keep your mouth shut, it looks good". Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-808985 Share on other sites More sharing options...
MasterACE14 Posted April 14, 2009 Share Posted April 14, 2009 PHP is the working behind the website. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-809258 Share on other sites More sharing options...
KevinM1 Posted April 14, 2009 Share Posted April 14, 2009 Something that I hope the OP has figured out is that the term 'dynamic' means something different whether it's used to describe client-side or server-side design. With the client-side (read: JavaScript), 'dynamic' tends to mean interactive. You click on a button, or move the mouse over a certain element, and something changes immediately without a page refresh. With the server-side (read: PHP, Python, Perl, ASP.NET, Ruby, etc), 'dynamic' means being able to serve content based on some user-submitted value. It's not immediately interactive, as it requires a request to be sent to the server, that request to be analyzed and processed by the script running on the server, and the results sent back to the browser. This requires (in most cases) the page to be refreshed, or another page to be loaded. Database-driven sites are considered 'dynamic' because they facilitate this behavior. The user clicks a link whose URL has a query string, or submits a form, and the proper information is retrieved from the database to populate the next page. An example of this behavior can be seen with this forum. So, why is that termed 'dynamic' if the results aren't immediate? In the dark ages of the internet most sites were static HTML pages with the data hard-coded into each page's markup. These were mostly unpleasant times that we should never speak of again. Quote Link to comment https://forums.phpfreaks.com/topic/153863-i-am-new-to-php-what-exactly-is-it-good-for/page/2/#findComment-809659 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.