@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> http://pastebin.com/712906
<0> can you help me out?
<1> @php
<1> @php $jobnum="DDD456789";$repname="DDD"$pos = strpos($jobnum, $repname);if ($pos === true){echo "Not yet available";}else{echo $jobnum;}
<2> PHP Parse error: syntax error, unexpected T_VARIABLE
<1> @php $jobnum="DDD456789";$repname="DDD";$pos = strpos($jobnum, $repname);if ($pos === true){echo "Not yet available";}else{echo $jobnum;}
<2> Result: DDD456789
<1> skratch1, everything works great here
<0> umm it parses, but it displays DDD456789 all the time, regardless if its false or true in the if statement
<1> @php $jobnum="DDD456789";$repname="Hello";$pos = strpos($jobnum, $repname);if ($pos === true){echo "Not yet available";}else{echo $jobnum;}
<2> Result: DDD456789
<0> if hello is not in job num, then it should print job num
<0> but on the other hand if it is, it should print "not yet available"
<0> why isnt it?!
<1> @php $jobnum="DDD456789";$repname="Hello";$pos = strpos($jobnum, $repname);if ($pos === false){echo "Not Found";}else{echo "Found".$jobnum;}
<2> Result: Not Found



<1> @php $jobnum="DDD456789";$repname="DDD";$pos = strpos($jobnum, $repname);if ($pos === false){echo "Not Found";}else{echo "Found".$jobnum;}
<2> Result: FoundDDD456789
<1> check http://php.net/strpos example #1
<1> ($pos === false) <~ that what i change from your code
<0> Warning: strpos(): Empty delimiter. in /var/www/apache2-default/interweb/dealer/bringform.php on line 124
<0> whats that mean?
<1> @php strpos('dummy string', false);
<2> Result:
<1> no idea ~_~
<3> echo the values you are feeding strpos
<0> empty delimiter, whats that meat?
<0> okay
<0> it works now for some strange *** reason
<0> but, whats empty delimiter mean?
<3> it means the second parameter is empty
<3> @php echo strpos('string', '');
<2> PHP Warning: strpos(): Empty delimiter.
<2> Result:
<0> cool, i just figured that out too!!
<0> haha nice work guys!
<0> cheers again
<4> would it be possible to use a free ssl certificate on a local windows intranet running apache?
<5> they have 2 levels of SSL, i think
<4> basically i want this cms to be secured by ssl i dont care what level. but i dont want to pay for the cert either...
<3> just make your own
<4> easy for you to say. i know nothing about ssl. let alone writing my own certificate...
<3> just look at the openssl stuff
<4> i was. but it appears it's all source
<4> no win32 binaries or anything
<3> @search openssl win32
<2> Search results for openssl win32:
<2> Shining Light Productions - Win32 OpenSSL -> http://tinyurl.com/3hvm8
<3> binary
<3> http://www.openssl.org/docs/apps/CA.pl.html
<3> for making certs
<4> cool
<6> joomla uses session por authentication?
<4> now that i have it, i just need to learn to use it. bleh
<3> the CA.pl makes creating the certs real easy
<4> yea, but on windows? can cmd execute it?
<6> is perl worth it?
<4> perl pwns
<3> so long as you have perl installed, i don't see why not
<4> except i dont know any other than some regex :)
<6> apart from regex, what else is extremely useful from perl?
<7> hm
<4> wiggas uses it to connect to telnet during updates
<3> unreadable code?
<4> wigga*
<3> mono + glade + gtk# is pretty freakin nice
<3> i'll be happy when the binding for qt get done
<8> i have a question. i just need to create some simple php to mysql forms. is there app to create forms and mysql tables?
<9> sup ansi, spoox
<9> or spox
<4> sup mane
<3> howdy hantu
<4> hrmm. it would appear as if i need borland builder or visual c++ to do this ssl ****e. pfft.
<3> never done any of the ssl stuff on windows
<4> me neither. well on *nix either but i thought it would be nice since it is concering confidential information about the customers business and/or client information.
<8> anyone



<6> what, ImsdlE
<8> i need a form to mysql app for simple forms to db
<8> i just need to create some simple php to mysql forms. is there app to create forms and mysql tables?
<6> i don't understand you, ImsdlE
<10> hi
<6> is there a way to inject values on a post submit?
<10> can u guys help me fix this: preg_match_all('/<font face="geneva,arial,helvetica" size="-1">([.\s\n])(.*)<\/font>/', $this->store, $match); var_dump($match);
<10> i wanted to include spaces, linebreaks after size="-1">
<10> anyone awake?
<3> .?
<3> well
<3> (.?\n)
<3> /<font face="geneva,arial,helvetica" size="-1">([.\s\n])(.*)<\/font>/
<10> will try that ^_^
<3> okay, so you want everything within the font tag?
<10> yep
<3> /<font face="geneva,arial,helvetica" size="-1">(.+?)<\/font>/
<10> spox, can u explain .+? a little bit?
<3> it matches anything (.) one or more times (+) non-greedy (?)
<10> while the * i had before was?
<3> 0 or more
<3> the + is 1 or more
<10> so i can .*? ?
<3> sure
<10> what does non-greedy mean?
<3> well, it's matching anything, so if you have:
<3> <font> jfdsfdafda </font> bfdsa <font> fjdafda </font>
<3> if you just have .*
<3> it will match
<3> jfdsfdafda </font> bfdsa <font> fjdafda
<3> if you have .*?
<3> it will get two matches
<3> jfdsfdafda
<3> and
<3> fjdafda
<6> wow
<3> since < is anything
<10> but what if i have <font>*nextline here* blah blah </font> and then there are about 5 results of that in my string, what would i use?
<3> it will match the biggest pattern it can
<3> if you want what is inside of the font tags, you want it to match non greedy
<10> hmmm im having a hardtime matching all 3 stuff here:http://pastebin.com/712980
<10> am i wrong to expect 3 results for the preg_match() using the regex (.*?) ?
<10> cuz right now, im getting zero matches
<10> spox?
<3> @php if(preg_match('/<font face="geneva,arial,helvetica" size="-1">(.+?)<\/font>/', '<font face="geneva,arial,helvetica" size="-1">lots of stuff </font>', $matches)) print_r($matches);
<2> Result: Array
<2> (
<2> [0] => <font face="geneva,arial,helvetica" size="-1">lots of stuff </font>
<2> [1] => lots of stuff
<3> looks like it's matching to me
<10> hmmm lemme try
<3> bah
<3> why does destroy not destroy this dialog
<10> its weird that if i had a newline like: <font face="geneva,arial,helvetica" size="-1">*newline_here*lots of stuff </font>
<10> i dont get a match
<11> anyone got a copy of cisco vpn client?
<4> nite folks
<10> hmmm it really does not match a newline character after size="-1">
<12> hey guys... I am just wandering on what is the best practice/method for error handling. I am using php 4 currently (my host is), but I have just recently written an database abstraction layer and when a query fails php raises a warning or something...
<13> how can i search between two dates?
<13> try
<12> i want to either be able to catch the error
<12> or print out a stack trace
<12> can I print a stacktrace without having to custom handle the error??
<12> Mr_Eko: what formats are the dates in?
<3> yes, in php5
<13> YYYY-MM-DD
<12> convert them with strtotime()
<13> no... i'm talkin sql...
<12> or u can use mktime
<12> mysql()??
<13> nevermind
<13> thx


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#worldchat
#c++
#kl
fedora 1440x960
allnitecafe kanalı
#worldchat
#kl
#allnitecafe
#chat-world
#chat-world



Home  |  disclaimer  |  contact  |  submit quotes