@# 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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31



Comments:

<0> kneepads not included.
<1> lol myconid
<2> you clowns are always spitting out those quick jabs i never pick up on
<1> =D
<0> I put it in freaking quotes.. that shoulda tipped you off.
<0> lol
<3> how can i create a struct in php ?
<3> or how it is called?
<4> BigSinep: An array is probably as close as you can get.
<5> ***ociative array?
<4> Or an object.
<3> can't i have somthing like in c++ ? struct name { int a; int b} ?
<3> name.a=...
<3> name.b=...
<6> hey, got a question for you guys: is php certification worth it?
<7> stevarino: i dont see the point



<8> how do I shorten a string by one character?
<6> BigSinep: you want a cl***, which is basically a fancy struct
<1> BigSinep: array, cl***..?
<8> itrebal: That whole thing didn't work as the images are stored on another site. :D
<6> name->a = ...
<7> Vixus: substr($string, 0, strlen($string)-1);
<3> cl***? god
<9> BigSinep: No, use an ***ociative array. If you've got notices enabled, you'll get a notice if you refer to an undefined element
<3> for such a simple thing?
<8> itrebal: thanks.
<3> a whole cl***?
<3> ok
<6> itrebal: thats my thinking too, but i just quit my job (yay!) and probably need to find a neato development job quick
<7> stevarino: hrm... if there are a lot of people in your area that are good at php, then get teh certification
<6> BigSinep: if you just want to store basic variables (no methods, constructors, etc) you can simply use an ***ociative array
<3> aha
<6> itrebal: my big issue is simply finding good employers, all the job sites i check out simply list hiring firms, kinda annoying
<10> stevarino: Avoid the popular job sites and search the 'underground' for one. A lot of companies are fed up with hiring agencies and now post good jobs only on smaller sites. If there isn't one for you area, start one :)
<8> itrebal: I need to find the substring $url.$path_to_comics in the html that I've stored in $html. I then need to get the image.jpg that's at the end of that substring
<6> Viflux: lol
<6> Vixus: try regular expressions? maybe preg_match(_all)?
<8> stevarino: Oh yeah, the great regexps
<8> stevarino: Thanks
<7> !tell Vixus about regexp
<6> Viflux: have an example of an _underground_ job site? should i hang around dimly lit bars and start handing out 20's for info?
<8> itrebal: :D
<6> Vixus: now you have two problems ;)
<8> stevarino: :(
<10> stevarino: You jest, but I'm serious. www.knighthunter.com was an 'underground' site for the London, ON area. It's been around for quite some time and is started to be frequented by the agencies, but the quality of jobs posted on there is still higher than Workopolis or Monster (although it has declined in recent months).
<7> Viflux: d'you live in london?
<6> Viflux: I had a nagging thought that you were leading me on, but I can easily imagine both job-seekers and employers throwing their hands up in frustration over what i've been seeing
<10> itrebal: Yep.
<6> Viflux: now i just need to find one for florida... stupid closed communities
<10> stevarino: It would almost be worth starting one and then paying some high school monkey to moderate listings.
<6> Viflux: hehe, i definately have the time now... but i think my biggest problem is that i'm not a professional (yet), my biggest challenge is simply finding the community - a problem magnified by undertaking a project of these sorts
<11> AJAX is java or what ?
<6> mbd: Ajax is javascript
<11> for php .. ?
<6> mbd: overhyped javascript thats honestly been around for over 5 years now
<6> mbd: ajax is client side. what you put on the server is your business
<9> mbd: Ajax is just a new name for a combination of technologies, it's a rather misleading one too
<11> yes and get famous those days ..
<11> i saw alot of ajax ... !
<11> talking i mean
<6> i had a job interview where they said they wanted applicants with a minimum of 5 years of ajax experience
<6> "yes sir, i'm a long time ajax developer"
<9> Actually, it isn't too difficult ot make Ajax-style web apps, it's really just the same as normal ones. Provided you understand Javascript well, it's easy. There are a lot of minor issues, but that's all.
<6> honestly, ajax really promotes good web-development practices by abstracting your views/templates from your logic
<9> I can really recommend that you use a single gateway page for all your RPC methods though, not loads of different ones, and don't mix ajax with server-side generated pages, you'll just get confused
<12> I'm ****e at JS and even I can use it
<11> Ajax = Java then
<12> just copy paste the 'frame' from w3schools.com and edit a bit to your needs
<9> mbd: NOT Java, Javascript. Javascript is not Java
<7> mbd: no, Java !== Javascript
<12> no, the J in ajax stands for javascript, and javascript is not java
<12> but honestly 5 years ago I never heard of this xmlhttpobject thing so I do kinda like it
<11> yes JavaScript .. so if you don't know javascript you will hardly know ajax
<6> choongii: its actually from ie5... a lesson in humility for the firefox croud :)
<12> you dont need extensive knowledge of javascript.. you can get around with basic javascript knowledge



<9> There are a lot of libraries for Ajax, but to be quite honest, I'm not sure if any of them actually makes it any easier
<8> itrebal: I still don't know how to get the match and get the (unknown) image.jpg after.
<6> MarkR: i've heard good things about prototype
<9> Ajax support has existed in browsers back to IE5, and certainly Mozilla < Firefox 1.0
<12> yeah, I just use the example from w3schools.com.. and I dont use xml myself, that would just add unneccesary overhead for me
<9> But you don't even really need to use XMLHttpRequest
<6> MarkR: you're not talking about hidden iframes?
<9> Or, for that matter, XML. The best known Ajax app (Gmail) does not use XML for its request/response
<9> stevarino: Yes, hidden iframes. Or similar.
<2> wouldnt it be possible to use your "ajax" by running a script through image.src ?
<9> Clearly, using XMLHttpRequest is nicer
<9> omnipresence: It's difficult to process the response by doing that
<6> MarkR: don't IE users hear 50 or so clicks when an iframe loads?
<2> yup
<2> go with the image approach
<2> this guy's a lunchbox
<9> Not sure, I do have a Windows box with MSIE, and I have noticed funny clicks from it
<8> itrebal: ereg finds the string itself... but how do I get the *.jpg that follows?
<7> Vixus: i dunno
<2> reverse ereg
<8> can I isolate the "$string_to_find/image.jpg" and then sort of take out the image.jpg? ;|
<11> anyone know a way to get Certificate of php online ?
<7> omnipresence: gere?
<8> lol
<13> MarkR: IE DOES have make a click sound by default, quite probably you've changed it in the sound control panel http://forum.pcstats.com/archive/index.php/t-24823.html
<6> Vixus: use parens to match... look up preg_match
<13> s/have/
<2> vixus: what are you trying to do? just get a file extension?
<9> StarkHalo: No, I think I just don't use IE often enough for it to bother me :)
<7> StarkHalo: with AJAX or frames?
<8> omnipresence: No, I want the filename as well
<13> itrebal: frames
<2> stark: way to cater the majority.
<8> stevarino: Didn't get it.
<9> However, it is probably a better idea to use XMLHttpRequest anyway, than the "tiny iframe" method, which is a bit ****y
<6> Vixus... do something like "$string_to_find/([^.]+\.jpg)"
<11> iframe it's like use frames to other page .. it's appear when timeout
<8> stevarino: With preg_match?
<6> Vixus: the parens will allow you to look up the match, and the [^.]+ part matches everything up-to the dot
<8> stevarino: And the +\.jpg adds the '.jpg'?
<6> Vixus: drop the plus, that part goes with the brackets
<6> Vixus: the slash escapes the dot (periods are special chars in regex)
<8> stevarino: So isn't it a special character in [^.]?
<8> stevarino: Oh yep, sorry... any chaacter
<6> Vixus: no (i think, its been a while)... the brackets have special rules, very few special chars
<8> stevarino: what does the ^ in [^.] do?
<8> stevarino: start of regex?
<6> Vixus: the "[^.]+" part says "one or more chars (the plus) that are not a dot (the [^.] part)"
<8> thanks!!
<6> Vixus: np
<8> stevarino: preg_match("$path_to_comics([^.]+\.jpg)", $html, $match); <--- is this OK? It's returning an error.
<6> Vixus: you need to escape your $path_to_comics
<8> stevarino: ?
<6> Vixus: http://us3.php.net/manual/en/function.preg-quote.php
<8> oh eyah
<8> heh
<6> hey, has anyone played with yahoos address api?
<14> preg_match( "/$path_to_comics([^.].+\.jpg)/", $html, $matches );
<15> hi all, is there an easier way to get this: strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,strpos($_SERVER["SERVER_PROTOCOL"],"/"))) ."://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]
<6> Penggu: use pastebin for a lot of code
<15> sorry.
<8> [RainMkr]: Warning: preg_match() [function.preg-match]: Unknown modifier 'a'
<6> Vixus: you have a "\a" somewhere in your path_to_comics var?
<15> is there an easier way than the above to get the full url of the current page ? inclusing scheme used, hostname, etc, than the above what i pasted?
<8> stevarino: $path_to_comics = "/images/2006/";
<9> Penggu: I don't think that's even correct, it won't give path info and query string
<9> Moreover, SERVER_PROTOCOL will not give you "http" or "https"
<15> it gives HTTP/1.whateva
<6> Vixus, wrap preg_quote around $path_to_comics before concatinating it to the regex
<14> preg_match( "/$path_to_comics/({d}+)/", $html, $matches );
<9> Penggu: ON some servers you can use REQUEST_URI
<6> Penggu: have you checked the globals array? php_info should list them all
<15> stevarino: yes
<16> Penggu: look at a phpinfo() page and you'll see all the server variables you can use


Name:

Comments:

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






Return to #php
or
Go to some related logs:

lplayer ubuntu
Invalid module format kmilo
Command failed: Block device required
#perl
192.168.1.107
how to open .smbcredentials
freenode largest channel gentoo
ubuntu file roller shorcut
tar extract dirs
artsdsp+lastfm+linux



Home  |  disclaimer  |  contact  |  submit quotes