@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14



Comments:

<0> you need only to ***ign that expression to your $log variable
<0> $log = $_GET['log']; should be the obvious conclusion
<1> oh ok
<1> sorry, thanks
<2> heh
<3> anyone here knows a little preg_match? :)
<2> @preg_match!
<4> (PHP 3 >= 3.0.9, PHP 4, PHP 5)
<4> int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] )
<4> Perform a regular expression match
<4> http://www.php.net/preg-match
<3> no like.. i have a little statement i need to correct.. anyone knows a little?
<2> sure
<3> preg_match("!^[a-zA-Z0-9_\.]*@[a-zA-Z0-9_\.\-]+\.(com|net|org|gov|bis|info|edu|ac|as|be|ca|cc|de|dk|fm|gs|il|jp|kz|lt|ms|nz|ph|ro|sh|st|tc|to|tv|uk|us|vg|vu|ws|za)$!si", $_POST['MSN'])
<3> this little thingy check if mail address (or msn...) is valid
<3> point is.... if the address has - or _ it counts as not valid even thou it is ok.. how do i drop this 2 from the check?



<2> you need to use $matches
<3> use.... what?
<2> preg_match($pattern,$subject,$matches)
<2> http://www.php.net/preg-match
<3> there is no good example :(
<2> if (!empty($matches)) {... ?
<3> don't get it
<3> somewhere in the statement i gave you.. there is check for: _ and -
<2> matches is an array for when $subject is mathed by pattern
<3> can you drop them? :)
<2> so you'd need foreach, in what i said above
<2> nm
<2> preg_match call be used as a bool
<2> so do: if(preg_match("!^[a-zA-Z0-9_\.]*@[a-zA-Z0-9_\.\-]+\.(com|net|org|gov|bis|info|edu|ac|as|be|ca|cc|de|dk|fm|gs|il|jp|kz|lt|ms|nz|ph|ro|sh|st|tc|to|tv|uk|us|vg|vu|ws|za)$!si", $_POST['MSN'])) { ...
<3> emm
<3> dude
<3> it is if...
<3> i gave you only the part of the preg_match itself
<3> so you won't have an head ache :)
<3> can you drop the check for: _ and - ?
<2> ok...then what are you asking?
<3> somewhere in that statement.. it checks if _ or - are found at $_POST['MSN'] ... i need you to.. drop this 2.. so he won't check if they are there or not
<2> ummm...why can't you?
<3> since i don't know which one
<3> there are few -
<2> preg_match("!^[a-zA-Z0-9\.]*@[a-zA-Z0-9\.\]+\.(com|net|org|gov|bis|info|edu|ac|as|be|ca|cc|de|dk|fm|gs|il|jp|kz|lt|ms|nz|ph|ro|sh|st|tc|to|tv|uk|us|vg|vu|ws|za)$!si", $_POST['MSN'])
<2> :-/
<3> thank you :)
<2> read the manual...it's pretty clear
<2> "ToDo list: pHp-ify embedding livejournal, try to apply CSS to my website, and.."
<2> amg i need to part #html
<5> im getting sick :(
<6> hi room
<2> guten tag
<6> i have a problem in php
<7> just ask
<2> sounds more like php has a problem with you...
<6> ok thanks!
<6> my apache server is not configuring php
<6> ??
<2> heh
<2> i suggest you memorize httpd.apache.org and php.net untill it makes sense
<6> what are the exect steps of configuration of php with apache
<6> hmm
<6> ok tell me that there is any GUI baced version of mysql?
<2> phpmyadmin is good enough
<2> and the exact steps are in INSTALL in the php archive, if you read it
<6> from where i can get phpmyadmin ...I can use it online with cpanel but i want it in my local com localhost
<7> nine5fournine006: there is an INSTALL document in all php versions, i suggest you read it
<8> Windows Media Center Edition Flaw: I have to restart all the time
<8> Windows Media Center Edition Plus: I now have tv shows on my phone
<6> I can fire any mysql bd queries with php but only with the help of cpanel...I create bd in cpanel's phpmyadmin...so i can test my php files only when i online....but i want to do all these things on my local mechine...what i do
<2> 8|
<9> nine5fournine006: you on windows?
<6> ya on win xp
<9> @google 1 xampp
<4> Search results for xampp:
<4> http://www.apachefriends.org/en/xampp.html
<4> http://www.google.com/search?hl=en&ie=ISO-8859-1&q=xampp&btnG=Google+Search



<9> go download and install that
<10> Hmm...
<10> Guys, I'm a bit of a newbie at pHp.
<8> btw
<8> what is with the 4655 in the topic?
<10> I have pHp files on my web hosting, but they're really just HTML with a sprinkling of pHp wherever necessary.
<9> no idea
<10> My Terms of Use page (http://www.confessor.org/termsofuse.php) is accessible from the bottom of most pages in my website.
<10> I currently use: <a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">Return to Previous Page</a> to return the visitor to the previous page.
<2> i but sprinkles of php in my brownies
<2> mmmmm
<2> oops...*put
<11> now that's special
<11> hopefully there's a hallucigenic function or cl*** in there somewhere. :P
<11> hallucinagenic*
<10> Somebody in #HTML suggested that I should modify the displayed text to reflect the title of the page I want the user returned to.
<3> damn
<2> @hallucinagenic
<3> anyone has a email validator
<3> ?
<10> What's the best way to do this?
<11> hah
<9> mod_spox will be with you shortly
<4> Did not find any matches for hallucinagenic
<4> Possible matches (best first):
<4> ascii2ebcdic, aspell_check, call_user_func, halt_compiler, hwapi_content, hwapi_insertanchor, hwapi_parents, ibase_gen_id, imagearc, imagegif, imagepng, mcal_expunge, php_sapi_name, ps_shading_pattern, readline, readline_info, sesam_diagnostic, swf_shapelinesolid, udm_alloc_agent, udm_alloc_agent_array
<3> from some reason.. all the ones i found eject - and _
<2> your bot, lags...
<11> im talkin bout for yer browines
<11> :P
<3> ansimation .. :)
<2> heh
<12> is lags the name of the bot?
<3> give me an email checker :)
<9> no, my bot is grepping
<11> Nir212: write one.
<2> no but i use, unecessary commas
<12> I see.
<3> regexp is kinda hard
<3> @func regexp
<4> Did not find any matches for regexp
<4> Possible matches (best first):
<4> aggregate, dechex, ereg, ereg_replace, eregi, eregi_replace, exp, expm1, getopt, ncurses_getyx, preg_grep, preg_quote, preg_replace, preg_split, range, readgzfile, recode, rename, reset, sleep
<2> Nir212: i just fixed, your email validator from, 1/2 hr, ago
<3> fedt
<13> hey guys
<11> regex is simple
<3> it still ejects _ and - :(
<13> i am back with a clarification of what i am trying to do
<2> i don't even think you're using "ejects" correctly
<3> @func regex
<4> Listing of all regex functions:
<4> ereg_replace, ereg, eregi_replace, eregi, split, spliti, sql_regcase
<4> http://www.php.net/regex
<3> bad english :)
<11> Nir212: http://www.amazon.com/gp/product/0596002890/sr=8-1/qid=1141227984/ref=pd_bbs_1/103-9372357-9454225?%5Fencoding=UTF8
<13> ok when i hit the previous button it is in a form and submits i take it out of the form it does nothing, what i would like it to do is go back to the previous page whin is use history -1 it takes me back to the form if i have submitted it more than once
<9> [2006/02/11 14:49:25] @ comcor set topic "NO 3RD PARTY APP SUPPORT | http://www.tpbmovie.com | rules: http://dalphp.shoggoth.net/rules.php | Pastebin: http://dalphp.shoggoth.net/pastebin.php | AJAX PHP Function Lookup: http://phpfunctions.nfshost.com/ | 4655 435b 2059 4f55"
<9> that's the first time 4655 came up, at least in my logs
<2> Nir212: i don't care about checking people's e-mail addresses to see if they're rfc-compliant or ****...i just e-mail something to the they have to reply. if they're too stupid to type their e-mail in right, boo hoo
<3> true
<2> grood. do that
<3> i can do that with ereg... :)
<3> ansimation you little dog! it's hard! :)
<11> ...
<2> you can do e-mail validation using a validation code and and a php get form...with ereg()?
<14> Lets learn regex in Lame way, http://www.phpro.org/tutorials/regex.php
<11> you can match the syntax a@a.a
<0> ereg--
<9> preg++
<0> preggos+=2
<14> s/preg/pcre/
<2> well...he had one in here before...
<2> and then stopped liking it


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

notty_boy
wanna chat hotmail. cairo
#kl
chookie surrey
#c++
fatalfix
#allnitecafe
#asp
#kl
iduppu



Home  |  disclaimer  |  contact  |  submit quotes