| |
| |
| |
|
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 32 33 34
Comments:
<0> hah! "Manager: I should send you guys a screenshot of my desktop. It looks like Bill Gates threw up all over it." <1> enygma: LOL <2> Etriaph good point <1> danols: Try not making the request each time and spit out the URL it's trying to fetch, then reload it a few times. <2> Etriaph say again please ? <1> danols: Run your script as you have been, but don't perform the GET request, just build the URL you would use to perform it and echo that. Then reload the script a few times, see if the URL is changing. <1> danols: When you see what the change is, you'll know what to fix. <2> Etriaph very good point <1> And if I had to move to Kingston, that would not be the property I'd buy. :D <1> It doesn't look like it's changing. :D <2> Etriaph take a look an humor me http://www.danols.com/www.estatemaps.info/admin/ :) <1> Are both of these running on the same server? <1> Both of these scripts? <2> no the other <2> is from mls.c <2> *mls.ca
<2> i think i know what it is <3> morning all <4> hi there <5> hi, hello, hey, howdy, huzzah. <2> Etriaph wierd now it's working, could have been a glitch on their side ? <1> Dunno dude. :D <2> Etriaph yeah tell me lol <5> danols: This is one reason why snagging content from others isn't always the best idea, and why you should us caching, when possible, if you do snag content from other sources. <6> any way to convert .svg into .png ?? <6> i've only found image2sv, which is not what i want :/ <7> " <8> does PHP have namespaces? <7> convert" will probably do it, Drakas. <9> Hello. Did anyone of you encounter a crash when using xml_parse with large strings > 500kb? <8> looks like no <8> oh well <6> cheers FauxFaux <1> r0xoR: PHP doesn't have namespaces, at least I've never heard that it does. <10> Nope, there are no namespaces in PHP <11> Pure ****age <1> PHP is the epitome of shortest path to execution. <10> The devs think namespaces are too useless and that they would make the language too complicated <11> Dragnslcr: Haha <1> Dragnslcr: Exactly. <5> yeah, I'm surprised frankly that any oop managed to make it into PHP frankly. <10> Goto, though, now there's a useful feature <1> It's barely OOP <11> Dragnslcr: goto was shot down <11> Pollita *had* written a patch for it. <1> My biggest beef with PHP starts with having no required variable declaration. <5> Etriaph: Heh, that's one of my favorite features. <12> Etriaph: that's true of almost ever interpreted language <11> Ahroun: It's not a feature. <12> including perl, python, javascript, ruby.... <5> kuja: Okay, okay... 'standard'. <11> Now, define "variable declaration" <5> A useful standard is a feature, a useless or destructive standard is a bug. :P <11> ||cw: It's the same with other languages. <11> ||cw: Though, I'm not sure of JavaScript or Perl, but it's the same with Python or Ruby. <13> Like perl, you can require php to force you to pre-declare variables, it is up to you. <14> pre declaring is concidered a 'best practice' isn't it? <11> ||cw: Especially trying to use an undefined variable in Ruby, in any case where it's legal, with warning messages enabled you will get one saying that it isn't defined. <13> You can also force it to be strongly typed, another programmer defined pattern. <12> Ruud: yes <11> Though, at least in Python or Ruby, where it *isn't* legal you get exceptions. <14> error_reporting? <5> kennebel: Really? You can force php into strong-type mode? <11> Ruud: It's bad to suppress errors. <11> Ahroun: In userland, yes. <14> no, i mean setting it to the max <15> How would I best do this statement ... ? WHERE teachers.arrival=school_jobs.month OR teachers.arrival+1=school_jobs.month OR teachers.arrival-1=school_jobs.month ... ? <10> kuja- last I read on the php-dev mailing list, almost everyone voted in favor of adding goto <14> #mysql <13> Sometimes "best practice" should bend to practicality, to ge something out before it is useless. <16> babo: #mysql <5> kuja: explain please? <11> Ahroun: is_string(), is_int(), ===, etc <6> how can i check if a file is a symbolic link or not? <5> kuja: Oh... *chuckles* naw, that'd be overkill. <15> Dangermouse: they're involved in some rather obtuse discussion on various cyphers ... and they don't seem to want to be disturbed ... :-(
<11> Dragnslcr: Last I *heard* it was shot down <10> How long ago was that? <11> Dragnslcr: I'm positive though, that Pollita had written a patch for it. I'm sure it's laying around still. <11> Dragnslcr: Couple months, maybe a few? <10> Yeah, there was a thread about a month ago <10> Almost everyone voted in favor of adding goto to the core language <12> babo: that doens't make sql on topic here. you can try #sql though <10> Which really scares me <14> have you read the sitepoint blog about adding comefrom ? <14> it was an april fools joke ofcourse, but i had a good laugh :) <14> http://www.sitepoint.com/blogs/2006/03/31/php6-gets-a-comefrom-statement/ <16> Ruud: That was good :D <13> Sorry, i was confusing php/perl. PHP has type casting, but does not support explicit variable typing. <13> It is just a self-imposed thing then. <13> (my apologies) <3> you can declare a function as such: function foo(array $mustBeArray, SomeCl*** $mustBeThatCl***) {} <11> Dragnslcr: http://www.phpcomplete.com/archives/2004/09/06/goto/ <3> if the parameters fail to be the indicated type, an error results. <10> DShadow- you can for cl***es, yeah. Can't remember if you can use 'array' though <11> I seriously need to learn C :P <4> i'm trying to send a pdf document via the browser and it worked before and now it doesn't send the headers i guess. i have no idea why because nothing changed with the file structure or something.. can anyone point me to a tut or something on that ? <3> array is new in 5.1. <11> Dragnslcr: array and int work, I believe. <11> Or was it something besides int? <13> dshadow: Thanks. :) I knew it was in there somewhere, but couldn't find the documentation to back my statement up (i over stated i see). <13> kuja: C is a great language, since nearly every scripting language on the planet is in part based on it. <14> lol, i love the spam on that site kuja :-D <11> kennebel: That doesn't say C is great =) <11> A language is only great because it does what you want, how you want. <11> Kind of like saying C++ is great because Qt is written in it :) <12> kennebel: i think that's less a side effect of C being great and more of a side effect of people staying with what they know <16> kuja: haha <11> And 99% of all KDE-based software. <13> kuj: let me rephrase then. C is a good base langauge to learn, as you more easily understand almost all other languages as a result. <17> is this #c or ##php? <12> !tell cmwneo about ##php <10> "Im using switch to check for a matching string. I need to check it for many different possible strings. After I find a match, I need the same code to run, regardless of what the variable is. A goto would let me have this code only once, rather than including it each time the variable matches" <11> kennebel: That would be lisp, not C :) <10> That's a great comment <10> Guess that person has never heard of those magical things called functions <18> hi all! I think after being in here for days i got the bugs worked out in my script. http://lanceslife.com/index.php?content=graffiti <18> TRY to make it break <18> if anyone wold be so kind <11> Considering lisp's 40 year history and influence on modern languages, I think lisp would be better to understand the logic of modern languages :P <13> Does anyone have experience with curl and the new ftps:// functionality? <3> Dragnslcr: well, I was wondering why he didn't just put the code after the switch statement <12> [sellout]: that's one of the things "unit tests" are for <13> kuja: well, you can at least apply c/c++ to active and go-forward projects in a broader environment. :) (not that i'm saying lisp is dead mind you) <10> DShadow- probably only wants to call it for certain cases <3> probably <19> [sellout]: u on drugs .. thats different ;-) <11> kennebel: I want to learn C so I can hack some of the Ruby source :) <11> Or rather, write extensions for Ruby. <18> unit tests? <13> kuja: There is a noble reason! Improve a tool. <17> [sellout] you might want to consider an index.php <17> http://lanceslife.com/content/ <11> kennebel: Indeed :) <10> But still, I really worry when people think goto is the solution to code reuse <18> cmwneo, lanceslife.com <18> ;-) <11> Dragnslcr: What's more reusable than functions? :P <17> and you also might want to consider not leaving files .phps <17> http://lanceslife.com/content/pictures/index.phps <5> [sellout]: cmwneo is right -- never leave your directories open. <11> It's not like the function is going to run away :) <12> last I heard goto was trying to be sold via an extention to break, not as a full goto <13> In 15 years f programming over two dozen languages, i've never _had_ to use goto. <3> the only really good use for goto I've seen is handling error conditions cleanly <12> like instead of "break 5;" to jump out of nested loops, you could put a label at the end and say "break end;" <14> course not, if you did _have_ to php would already offer it :) <18> i just installed apache, ill just route all non indexed dirs to 404 <5> I've had to use GOTO... but only because you didn't have many other options in Commodore VIC20 BASIC. <18> and the 404 will be a c parser so you cna play zork
Return to
#php or Go to some related
logs:
#linux gentoo ALi Corporation High Definition Audio/AC'97 #perl Gentoo MSI K8NGM-V SATA popeuser
Bad magic number ubuntu cd how to install lex yacc deskbar-applet for xubuntu #gentoo High King Thorgrim Grudgebearer.
|
|