| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> that specific command; actually <1> ugh <1> I still can't seem to get this preg_replace code right... I think its due to lack of practice <2> neverind now, i get it. <3> ugh... this is such a ssllooww usb connection <3> for tunes, anyway <0> The continue shopping link thing is a good idea but wouldnt you need to use sessions then, and wouldnt that potentially break the back button? <0> right now i'm just sort of sending ALL of the $_POST values back and forth through all of the pages; so that the back button will function properly (so IE wont bitch) <2> DogWater: if you disable caching, you can make sure that if someone clicks back they are redirected to the same page they were at before. that page can then check if a form has been submitted and subsequently forward someone elsewhere if it hasn't been. <0> header("cache-control: private"); <-- that disables caching right? it doesnt work <2> DogWater: it has always worked for me... never without fail <2> you should use it in conjuction with the proper meta tags <4> could someone remind me, what is that command which reads a file, line by line, and returns an array of strings? <2> martianlobster: file() <2> :)
<4> thanks :) <5> Dogwater you may need some javascript nasty, just tested gmail and thats ok with the back button <6> is there ability to know from wich file and line nr function or cl*** metod was caled? <2> Tokeiito: use debug_backtrace() <2> Tokeiito: it is populated when an error is raised <6> thank you <7> Tokeiito: __FILE__, __FUNCTION__, __METHOD__ (PHP5, I believe), __LINE__ <1> http://pastebin.com/583825 <6> yes i use PHP5 <1> what is going on in that line? <8> anyone for some simple preg_replace? <8> http://corz.pastebin.com/583824 <8> not simple enough for me :/ <7> GregVernon: www.php.net/pcre.pattern.syntax <1> heh, just the page I needed it looks like <7> GregVernon: Also www.php.net/pcre.pattern.modifiers <4> are the values True and False, for type boolean case sensitive? should I be able to write "$foo = false;" and expect this to work? <2> martianlobster: correct, i usually write TRUE :P <4> ^Artnez: ok thanks <2> [or: sorry i cant help, regex is always a trial and error thing for me. I just edit, hit CTRL+S, hit refresh, edit, hit CTRL+S, hit refresh, etc -- till i get it right <9> lol <9> good plan :) know that ;) <8> pff. yeah, we all been there <4> what is the easiest way to remove the " <4> "\n" from the end of a string? <8> trim() <8> oh, probably better ways <8> no one for the foobar problem, then? bummer! <10> what if any protections should i add if i created a html form that is inserting data int sql DB? <4> ok thanks, trim is what I need <8> by the way, ^Artnez, all that "hit CTRL+S, hit refresh, edit, hit CTRL+S, hit refresh, etc", if you get EditPlus, the whole lot becomes "F8 - edit" <8> f8 saces and switches to built-in browser, and also switches back, very handy. sadly only IE, but still, very handy <8> *saves <2> [or: i dont like built in browsers :) <8> suit yourself <8> it comes with the OS <2> i use firefox :) <2> i only test in IE at near end of developement to make sure it works <8> yeah, so do I, for browsing. but we were talking about *debugging* <11> How do you find the url of the domain from which a visitor is coming? Is it in $_SESSION['REFERRER']? <8> yeah <2> [or: yep. debugging is more usefull in FF. <10> ylon: $_SERVER['REFERER']? <11> ah, okay, thanks <2> atually, i think its $_SERVER['HTTP_REFERER']; <8> ^Artnez, all sane people agree that IE isn't a real web browser, ff is king, etc, etc. BUT, if you want to do edit-check-edit-check-repeat til fade, I can work 50 times faster in EditPlus. tit's nothing to do with browser sweetness, it's just efficiency <8> $_SERVER['HTTP_REFERER'] is correct <8> use a @ in front of it, sometimes it's not there <2> [or: I agree, however i always need to make sure the markup is valid as well, hense it would be quite frustrating to switch to FF when i need to use the Web Dev toolbar or the DOM Inspector <8> ^Artnez, different subject altogether, all my marekup is 100%, different subject altogether <10> ^Artnez: i knew it is somthing like that but wasn`t sure what it excatly is, that is why i put the '?' at the end <2> redduck676: yea it isnt that easy to find in the manual <2> [or: i think its all the same. i like to stick with one browser the whole way though (so i can do things like check headers, post vars, stuff like that) <8> ^Artnez, dude. please, stop now, this is silly <2> [or: i do see where your coming from ... different strokes for different folks i guess <12> what's all this keylogger thingy about? <13> stupid norton firewall stuff <14> hmmm <2> triablo: i believe it's norton being a bitch again <14> http://lanceit.com/temp/ <14> like the design
<8> no, not at all, I'm talking about doing a trial-and-error debug. the simple fact is that your browser snobbery costs you your most valuable resource: time. <14> so far <14> its not done as of yet <2> MY EYES <8> F8 - check - edit - F8, think about it <13> triablo: http://www.hm2k.org/news/1137968795.html <2> [or: CTRL+S, F5 .. same thing <2> just one extra keystroke <8> when it *works*, you check **** in your *real* browser <8> no, Ctrl-S, ALT-TAB- F5 - ALt_TAB <12> haha, awesome spox <2> [or: um... no, CTRL+S, click, F5 <8> Ctrl-S - ALT-TAB - F5 = 5 key strokes, compared to one <2> there is no alt tab <2> CTRL-S, click, F5 <8> motion to mouse - click - motion back. OMFG! <14> http://lanceit.com/temp/ <14> what you guy think of current design <8> F8 does it all. you must accept this simple fact. <15> hi <2> when it's habit, its like a lightning flash <15> I have a regex like /sometext=text1,text2,text3,text4/ <15> how can I specify that the comma order separated texts, the order doesn't matter? <16> hi, I'm looking for a gpl anti-bot script thingie <8> tell that to your hands at age 75 <16> any suggestions? <8> what sort of bots are you trying to anti? <17> looksaus: You mean a CAPTCHA? <16> something like that, yes, difficult to find if you don't know the right terms to look for <16> TML, thx, will have a look <8> tenmon, is that grammatically correct? I can't make sense of it? <15> [or: ok, just an example <2> tenmon: /sometext=(text1|text2|text3|text4),{0,}/ <18> tenmon, like an authenticator? <2> i think something like that would work.. i think <17> looksaus: There's pear.php.net/package/Text_CAPTCHA <18> errr <15> ^Artnez: ok, let me try <18> looksaus, something like an authenticator? <17> looksaus: But I make no certifications as to the quality of code there. <2> oh and probably good to escape the comma <16> TML, thx, will have a look <16> Spamicles, exactly <18> http://www.scripts-by.net/PHP/User-Authentication/ <17> tenmon: Why not just: preg_match('/sometext=(.*)/', $yourstring, $matches) and then explode(',', $matches[1]? <8> actually, that gives me an idea, ta <8> l*rz <2> Yea, TML is right, that would be easier on the regex interpreter <2> will speed it up <19> how can send messages to jabber users effeciently? using connections pool for example? <15> TML: ok, that's an option, but I wanted to do it with regex only as I'm trying to learn them (started yesterday :) <11> I'm trying to set a cookie to the place from which a visitor is coming, but it is not storing the value or creating the cookie. Another cookie is setting just fine using a similar technique. Here's the apparent problem line: <11> setcookie("referrer_address", $_SERVER['REFERER'], time()+7776000); <11> any thoughts on this? <20> who use paypal for the e-commerce application <7> Hm.. Zend Framework eh? Man I sure wish PHP had namespaces. Zend_* is just getting on my nerves :) <2> kuja, tell me about it! <2> its not all that bad, but i havent looked into it too much just yet <2> I have been reading up on Ruby however :D <7> Hm, Zend Framework is 6.3MB :P <2> i like how Ints are actually objects... interesting concept <7> ^Artnez: Cool =) <7> Integer -> Fixnum, Integer -> Bignum, Float # The structure I believe. <2> 3.times do -- wicked :D <7> Yeah, but most people don't get it. <7> They can't simply grasb that 3 is a instance of Fixnum and that it can have instance methods. <11> anyone notice a problem in my above line in terms of what I'm expecting it to do? <7> grasp, even. <0> my boss handed me a copy of Visual web developer 2005 express; what the hell is this <7> lol <0> he gets all of this crap for free <2> hahaha <0> visual studio
Return to
#php or Go to some related
logs:
#math #math error: API mimatch: the NVIDIA kernel module ubuntu reconfigurate fedora disk limit #perl t mounting ext3 as ext2 ext2_fill_super gentoo fedora netinstall howto skysel
|
|