| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> The only advantage that type hinting can provide is for development. That can be emulated through comments and an IDE that includes the comments in it's intellisense popup. <1> so Viflux what would i tell the header to do so that the infomation gets posted but dose not allow the user to just hit like F5 or just go back to the page? <2> Viflux: definitely. but that goes out the window when you share your code <0> kieran491: If you redirect the user after the POST is made, a refresh won't resend the POST because they've left that request behind. <3> Hmm weren't away msgs forbidden in here? <0> GarethAdams: Documentation doesn't go away when you share your code. <4> anyone want to work on a php-mvc project w/ me? <5> hah <5> I just found an old function I wrote <5> make_php_segfault(); <4> prophile: what is it <5> the name says it all <5> it's a function which makes php throw a segmentation fault <2> Viflux: it doesn't, but if the other person uses a different developing environment then it could be useless. I guess that's more an argument against type-hinting in general than your approach though <4> i dont know what that means :-(
<1> so Viflux i could get away with header("Location: http://www.example.com/") then all my code above or bellow it? <5> mareks: google for "segfault" <0> kieran491: There's more to it than that, google for a tutorial. <6> when I extend a cl***, how do I make sure the constuctor for that cl*** is executed? .. is there any 'super()' or something like that like in Java <5> lennart: __construct <7> this should take a second: <7> http://pastebin.com/621597 <6> prophile, just like that? __constuct; ? <0> lennart: parent::constructor() <7> try to put delicous code on my page inside of php <5> lennart: in your cl*** have a function called __construct() and this will be called whenever your cl*** is instantiated <5> it has to be two underscores, remember that <0> prophile: I think he's referring to the parent constructor <5> Viflux: He didn't seem to know what __construct did therefore I'm ***uming he's not using inheritance <5> although I may be wrong <0> prophile: He asked "when I extend a cl***". That seems like a good hint he's using inheritance :) <5> Viflux: oh, heh, my bad <0> ;) <5> Viflux: perhaps I should read next time <4> anyway to put constants in the middle of strings w/ out closing and reopening quotes? <4> example: $str = "bla blah blah {CONSTANT} blah blah blah"; <0> mareks: No, and it would be bad form to do that anyways. <6> if I make a function with the same name as my cl*** .. that is not the same thing as a constructor? <0> mareks: Actually, there might be, but it's still bad form :) <4> what would make it "Bad form" though? <1> Viflux hate to be a pain spent some time looking could'nt find any you know of sum? <4> you can mix regular scalars in any time <1> i found some but i am not suer if there what you ment <5> mareks: I'm pretty sure there is no way of doing it, you'll have to use the concatenation operator <4> "blah = {$blah}" is used all the time <1> http://www.phpfreaks.com/quickcode/Redirecting_the_Web_Browser_with_PHP/14.php <4> thank you prophil <4> e <5> no problem marek <5> s <7> oy <7> http://pastebin.com/621597 <7> will take a second <7> for anyone with an eye <0> kieran491: Here's a Javascript one - http://www.elated.com/tutorials/programming/javascript/prevent_multiple_submits/ <1> but what if the user keeps pressing F5 on a page to send multyple POST's <0> kieran491: Why don't you just look at the phpbb source? <0> d3vlabs: What's the problem? <1> i got an idea <7> Viflux: http://pastebin.com/621597 = this idiotic thing <0> Yes, you've posted the link 3 times but never once said *what* your problem is. <0> d3vlabs: I'm not going to look at your code without knowing what I'm looking for. <8> Does anyone here uses Zephyr? <7> oh <7> my problem is <7> i got incorrect usage of quotes over there <7> cuz when i load up the page <0> d3vlabs: Just from a glance, you have all kinds of parse errors in there. <7> well it fails <5> indeed <7> err all i added were the quotes <5> you have to escape the inline 's <7> the code is provided by http://del.icio.us <7> and thats what everyone uses who got those tags on <5> echo '<a href="http://del.icio.us/post" onclick="window.open(\'http://del.icio.us/post?v=4&noui&jump=close&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title), \'delicious\',\'toolbar=no,width=700,height=400\'); return false;"> Save This Page</a>';
<5> try that <6> is the constructor in the cl*** I extend executed before the constructor in the cl***? <5> (the code above is directed at d3vlabs) <7> right <7> give sec <0> lennart: The parent constructor is not called automagically, you have to call it explicitly. Therefore it can be executed *inside* the constructor of the subcl***, either before or after (or in the middle of) it's own code. <6> k <7> prophile; yeah that did it <7> weird i couldve swore i tried it <7> guess naaaah <5> that'll be $2.99 please <5> hehe <6> and how do I call it? <5> lennart: <name of parent cl***>::__construct() <6> thnaks <6> thanks <5> no problem <4> i have transmit running on my mac and it seesm to have crashed but i cant close it, any ideas on how to force quit it? <4> ( sorry im a new mac user ) <5> mareks: os 9 or osx? <4> x <5> mareks: control-click on its icon in the dock and select "Force Quit" <4> it only gives me regular "Quit" option <5> in that case <5> activate it by clicking on its icon in the dock <5> press cmd-alt-esc <5> select it from the list <5> click "Force Quit" <4> ahh thank you <4> hello heybaby <4> nice name haha <5> mareks: no problem <9> Hi everybody, do you know of any application that uses OOP? <0> lol <4> lol <10> lol <4> pretty much every application uses OOP <0> Best question of the day. <11> i've got now a string with $str="te\"sting"; now if i put that string inside an html tag, the " in the middle, borks up everything, how can i fix it? <9> well I mean one where I can see some real use of OOP, not just some tutorial that shows me what can be done. <11> OOP rules <11> look at open source code :) <9> and one that specifically uses PHP 5 OOP <5> heybaby: there's a great site for all that kind of stuff <9> prophile: which site? <0> heybaby: If you want to dive right in learning quasi-useless design patterns, check out the Zend Framework <4> heybaby, im considering opening my template engine to open-source which is pure php5 OOP <5> heybaby: www.google.com <4> but i dunno <11> is it better than smarty? <9> I looked into WASP <4> it takes a different approach compared to smarty, and it doesnt introduce its own syntax <5> I personally like smarty but I think it's a little bloated <4> you have to do the template designs obviously, but the root templates coordinate everything and make it very easy to add content <4> my template engine is just one file, and then for each separate page you have, you write in the custom templates which extend the root templates <11> i see <4> all template calls and initializations are automatic, so all you have to do is basically put "cl*** PagenameContents { ... }" around your content <11> you know web.py script ? <11> (google it), very nice template as well <11> markes: you know PRADO ? <4> never heard of either :-( <4> googling both now <4> funniest part of this, is its my best php-oop work. its for my moms website <11> welp web.py is a pretty cool idea, but it's in python, and very novel, but PRADO is very semilliar <4> shes a dog breeder, http://www.tootsiepup.com/ <4> admin login for functions is admin/key <4> u can mess w/ it. i havent done much work as far as adding immunity to user-entered data <4> so dont try to intentionally break it w/ injecting html or jscript lol <11> its a blog system ? <4> well it has news functionality, <4> browse to the puppies section n stuff <4> theres a ton of admin tools for the puppies <0> puppies use the internet now? ;) <11> puppies can admin ? :)
Return to
#php or Go to some related
logs:
Pygoscelis ubuntu
usb drive ubuntu remove reinsert #xorg #mysql smbldap-useradd won't compile beautifulsoup nonetype not callable fluxbox xmb headmonkey 18 extract_url sendmail.cf dbmail
|
|