| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> spox... no ideas on that code? <0> hey, jstr <1> i know pretty much no javascript <1> so, no <2> hey K|O|G|I[wishinghewerexboxing] <3> hi people and non people <3> i want to check for a website <3> whats wrong with this expression? <3> if(!eregi("http://[0-9a-z]+\.[0-9a-z]+\.[0-9a-z]+\.[0-9a-z]+$",$_POST['website']) <3> it always return false ;/ <1> for one, stop using ereg <1> next, what is an example of something you expect to match? <4> well, where the **** is all this spam coming from <1> sorry evulish_, my bad <3> http://thisis.a.website.com <3> it works with jedit
<4> why would every website have 3 .'s? <1> @php $a = 'http://thisis.a.website.com'; echo eregi("http://[0-9a-z]+\.[0-9a-z]+\.[0-9a-z]+\.[0-9a-z]+$",$a) ? "good" : "bad"; <5> Result: good <1> seems to work okay <1> at least, for your example <1> and you if statement is negating <1> which you might have to ask yourself, why <4> doesn't the w3c or rfc or something have a regex to match urls <6> Greetings guys <3> i promised myself <1> i know there is one out there <3> to make a website from scratch <3> so thats what i'm doing now <6> I am so pissed!! :) <3> :) <4> i'm pretty sure there's a relatively official one <4> relik: waste of time. <4> if someone's already created what you're going to create, use it <6> way to go evulish_ <3> well <3> i only know php for a few days <7> relik, quit ****ing up the chan <6> and you are already fking with it :) <7> i'm the resident ****age here <3> and the only way for me to learn this stuff is doing <3> it <6> I am pissed at Zend <1> then don't use it <6> does any of you brainiacs use zend IDE? <7> kick it's *** <1> NEIN! <3> Technobabble don't generate random words <3> i have a php script for that <7> ****age is not a randomly generated word <1> @udefine ****age <5> Definition for ****age: <5> Total state of ****. Where everything in sight is teh sux0r. <5> Example usage: Giant robots crushed the casinos and mooshed the brothels and started fires that burned things and left ruin and ****AGE <1> sorry, thanks for playing <6> Anyone use Zend? <1> Zebraphp: NEIN! <6> speaking for everyone else? <7> what's Zend? <1> JAH! <7> (don't answer that) <4> it's a company <4> i don't use a company, so no <6> end Development Environment <6> *Zend <4> **** that noise <1> i really don't think php needs an ide <1> the language is too ****ed for one to work well anyway <6> YOU dont think <1> though, i found that if one really needed an ide, phpeclipse seems to fill that spot very well <1> and it's free <4> heh. i have hibernate's manual on my desk <6> Look.. if anyone is uzing ZDE I'd really appreiate 20 seconds of help.. <4> 180 pages of java package love. <4> Zebraphp: i think we've established that that's a negative. <1> again, no one is using zend ide here
<6> ok <6> thanks <1> i don't think i can make that any more clear <1> **** <1> come back so i can finish being annoyed with you! <4> the only thing that would be nice would be code hinting <1> phpeclipse does <4> o rly <1> it does a pretty okay job at it <4> oh, and something to encapsulate variables in a cl*** <4> as much as i love typing 80 lines of public function getBlah() { return blah; } <1> uh, you can do that already <4> how? <1> well, in 5 at least <4> i mean to automatically do it <1> give me a minute and i'll post a code fragment for an example <1> evulish: http://pastebin.ca/169384 <4> oh sweet ****beans <4> i'm ***uming a function that actually exists will be called rather than that, right? <1> yep <4> sweet <1> __call is used when nothing else is found <1> so, if you have $a, and a method geta or get_a it won't make it to __call <1> or at least, the one i made there <8> how do I use that mirc registration script? <1> @mirc mircistehsux0rs <5> mIRC Registration Name/Key Pair: mircistehsux0rs/14057-1481871 <8> @mirc create.vibe <8> do I need to be added to the bot? <1> must be [0-9a-z]+ onlye <1> only <8> @mirc createvibe <5> mIRC Registration Name/Key Pair: createvibe/8033-859697 <8> thk you thk you <1> it's not mine <1> thank pout <8> thanks, poutine <8> heh <9> ok...looking at my phpconfig...says mySQL is supported (and has a bunch of "Core" information that tells me about it); however, it says in "Configure Command" that i've set "--without-mysql" (i installed mysql after php); is this what would cause a "fatal error: call to undefined function mysql_connect"? <1> yes, that is what would cause that error <9> i've heard, though, that compiling with --with-mysql only picks up PHP's version of mySQL...? <9> i mean, in the phpinfo, MYSQL section, all looks well <10> I want to grep the value in a regexp like img("imgname.jpg") then I want to store the imgname.jpg in an array.. whats the best way to do this? <1> @preg_match <5> (PHP 3 >= 3.0.9, PHP 4, PHP 5) <5> int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) <5> Perform a regular expression match <5> http://www.php.net/preg-match <4> /".*"/ <1> if(preg_match('/yourregexhere/', $subject, $matches)){ /*store matches*/}else{ /*error: no match*/} <10> but then it will trigger on size="100" aswell for example <9> dumb question: how can i locate where my php4 source is? i've tried to apt-get install php4-mysql and then restarted apache but nothing's really changed...i need to recompile to set the --with-mysql flag <1> /img\("(.+?)"\)/ <1> BSM_: apt-get uses packages <1> are you using php4 or php5? <9> 4 <10> spox but doesn't it save the img("imagefile") in an array then? <9> that command didn't work... <1> then once you install php4-mysql and restart apache, which i'm pretty sure apt-get does for you, you are all set <9> :S <9> it still says my --without-mysql flag is set <1> glennemannen2: try it and print_r the array <10> ok <9> i know i have mysql installed--phpinfo even has info listed for MYSQL <9> but i'm guessing it's not working in PHP because the --without-mysql flag is still set <4> did you do what spox said and install php4-mysql ? <9> yes. i typed this (verbatim): apt-get install php4-mysql <9> then went to restart my apache2 server <9> apache2ctl restart <4> did the apt-get actually install anything? <9> yep, looked like it, and if i run it again, it says everything's up to date
Return to
#php or Go to some related
logs:
rmak.tk awek clubbing #allnitecafe #kl ghyas #kl IKEA twice a year sale #india #chat-world #kl
|
|