| |
| |
| |
|
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
Comments:
<0> ArthurMaciel: So check for the pattern itself and use ^ and $. <1> what does $ serve for? <0> End of the string. <0> ^ right after / is for the start of the string. <0> Using the two together, you're essentially checking to see if the entire string matches the entire pattern. <0> i.e. if the string has anything else in it outside of the pattern, the match fails. <0> http://www.php.net/manual/en/reference.pcre.pattern.syntax.php ... good reference. ;) <1> "unknown modifier ^" <0> ArthurMaciel: Post the line. <2> hi. there's a login.php on an external webserver which accepts login data using POST variables. is there any way to automatically POST data to this script and then redirect the browser to the result page from within my php script? <0> ArthurMaciel: Ah, I see, you were trying to use lookahead ***ertions. I rarely see a need to use those, to be honest. <0> ArthurMaciel: And I don't think using them is the best approach for your problem, to be honest. <0> PPSD: Why not just post to that form directly? <0> PPSD: If all you're going to do is redirect them to the result page anyway, I mean. <2> and if the page itsself contains important content? <1> I don't know what are lookahead ***ertions.
<0> ArthurMaciel: Look at that URL I gave you earlier. <0> Before you gave me the unknown modifier error. <0> And are you going to post the line or did you figure it out? <0> PPSD: I'm not following you. You want to post data to an external login script and have it redirect them to the page that the login script would normally them to anyway as if they logged in from the external script, yes? <2> Elazar: yep, but what if the login.php itsself produces output <0> PPSD: Like an error when the login fails or something? <2> Elazar: yep for instance, or even a welcome page or something (if it's a bad login script) <0> PPSD: Shouldn't matter. If you post to that form, the user is going to get whatever they'd otherwise get if they used that script directly. Unless you want to change that behavior, you should just have to use the URL of that form as your action, POST as your method, and the same field names as the original form does. <2> ok thank you <1> Elazar, I'm just researching a little bit more. I'll have to go now. <1> Anyway, you've pointed me important things.. <1> Thank you. If I have the solution I'll post it here. <0> PPSD: I mean, unless the form has some sort of referrer or remote IP check or something. <0> ArthurMaciel: NP. <0> PPSD: Most tend not to that I've seen, though. <3> hi there. Which editor may use in Linux ????? <4> You may use only one editor. Emacs. <5> Unless you only use the other editor. Vim. <5> Those were great T-Shirts.... <1> Elazar, it is done! <1> preg_match ("/^(0[1-9]|[12][0-9]|3[01])[- \/](0[1-9]|1[012])[- \/](19|20)\d\d$/", $element) <1> using ^ and $ as you've pointed before. <0> ArthurMaciel: Congratulations. :) <1> Thank you! <1> The registration validation is almost done. <0> ArthurMaciel: You're quite welcome. :) <0> php-bot: tell ArthurMaciel about MRE <3> Emacs is dificult to use <1> Just when I don't know to use it. <0> ArthurMaciel: I recommend that book very highly. Have a copy in my desk. :) <1> I think it is difficult. got it? <1> of regex? <0> ArthurMaciel: Yup. <6> can someone help me with this? I know it should be simple, but I'm not having much luck http://pastebin.com/537232 <1> Not buying books by now. If I go to the US, maybe I'll return with many of them... ;-) cheaper there. <0> ArthurMaciel: Shows multiple language implementations, good amount of focus on Perl-style regexp, goes into background information about regexp concepts... I love it. <1> oh, I see. <1> see you, guys. <0> ArkyLady: That looks a bit short for a DSN. Maybe try this? http://www.connectionstrings.com/ <0> ArkyLady: Select which DBMS you use and it should show you the format you need. <7> i hate working with recursive functions scanning directories, lol. it always takes me forever to perfect it <6> it pulls the info fine, I just don't know how to do the while statements to get it to insert the data back :) <7> i finally got it though. you give a cl*** a start directory, itll scan thrugh all directorys.. find all the pictures, and create arrays for all the directorys, and 2d arrays for all the pictures matching which directory they are in <8> IE not showing inmediate updates unless cache is cleared, but Firefix is ok. Why? <7> IE ****s <8> work around? <7> speaking of IE, anyone seen the beta for 7 yet? <7> hector, no idea <9> mumble mumble....need caffeine <7> IE 7 actually looks decent <9> lies <9> IE7 is **** <7> i said it LOOKS, lol. i have no idea how well it actually works <7> i havent really tested it yet <10> anyone here know why I get this when trying to using php5 with apache2 on windows xp?: Cannot load c:/php/php5apache2.dll into server: (126) The specified module could not be found <9> Okay, let me be clear then. IE 7 is and looks like **** <0> ArkyLady: Check out php.net/odbc_fetch_array <10> php on cli works fine,c:\php is in the path, and php5apache2.dll is in c:\php <0> http://ie7.sf.net :P <9> Elazar: Well that explains why its so crappy then
<11> PUTOS TODOS, LOS DE CIUDAD TAMBIEN <9> wtf is the deal with #freenode? <12> hello <9> TML: Was that a script, or are you just quick on the trigger today? <13> The latter <9> nicely done then <12> i have a question <9> gurde: Ask it <13> Pollita: Are you asking why it's a moderated channel? <12> if i use header() and insert something into a database, i get it in twice <12> why? <9> It's always been moderated. I mean the redirect to ##bookmark <13> oh <12> why? <9> gurde: There's a logic problem in your scriupt somewhere. You *are* inserting it twice. <13> Pollita: That *IS* silly <4> #freenode is... closed? <13> gurde_com: Most likely you're calling it in a loop. <12> again, i dont have loops <9> mattmcc/TML: My reaction as well <13> gurde_com: pastebin your source. <12> let me explain <13> No need to explain. Show us your source. <12> if using the header(); i get it twice in the db, if no header() used only once <13> gurde_com: pastebin your source. <12> ok <12> 1 sec <13> Pollita: /topic #freenode <12> http://pastebin.com/537261 <13> Seems even lilo is mystified <9> gurde: header() alone won't do that. Again, there's a logic problem in your script. <12> Pollita i am telling you what happens <9> TML: Last thing I had was a channel CLEAR from lilo :) <12> check my code pls <12> http://pastebin.com/537261 <9> And I'm telling you why it's happening <9> Now stop repeating <13> gurde_com: Where's the rest of it? <9> You're not making any friends doing that. <12> there is code for mysql connections and the function for insert <12> what the function too? <14> does anyone see anything that would cause "parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'" at line 140 in -- http://rafb.net/paste/results/KuechB26.html <13> gurde_com: I want all applicable lines of source code. <12> ok <13> Otherwise known as "pastebin your source" <12> http://pastebin.com/537269 <9> gurde: That's an IE bug. It issues the request a second time. You need to manually detect when that's happening and avoid the insert. Or just make it a unique key and solve your problem without changing any code. <13> jsumners: "public" <13> jsumners: You're using PHP4 and the "public" keyword isn't available until PHP5 <12> i am using firefox :| <14> TML, thanks <12> ising php5 too <12> ops <12> not for me <12> D: <14> TML, i didn't write it. someone else wrote it for php5 and then converted it to php4. i guess they missed that one <9> Then perhaps firefox has that problem too <12> Pollita, then what should i do to fix it? <14> that fixed it <9> The result is the same. Your script is being called twice so it's inserting twice <9> <9> ...It issues the request a second time. You need to manually detect when that's happening and <9> +avoid the insert. Or just make it a unique key and solve your problem without changing any code. <9> You need to pay attention <14> i was looking for a missing semicolon or brace. i never would have got that. i don't write too many cl***es <9> I'm on a laggy as **** connection at the moment and don't want to repeat myself. <12> Pollita i did not get that <9> Make the ****ing key unique and shut the hell up <9> If you didn't get that then your IRC client ius broken. Reinstall it. <9> Or perhaps you're lying. I wouldn't put it past you at this point. <12> Pollita just chill pls <9> Okay, I'll chill <9> Mother ****ing ICE ICE baby <12> what was that? <14> haha
Return to
#php or Go to some related
logs:
#gimp ubuntu install kde debian drivers for Marvell 88E8001 linking usblp0 to usb/lp0 #bind #perl #suse centos ssh httpd openpty xorg.cong aiglx fedora #suse
|
|