| |
| |
| |
|
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 35 36
Comments:
<0> i feel sick <1> 0b0red: Ah, right, what fangel said. <2> spuds, the manual says how <2> oh, i'm slow <3> rarman1: i want it to go to a new line <4> b0red: try it is a file and see f you get an error <5> yay - what I said.. look how importent I am.. na na na naaa naa <4> b0red: for the puroses of testing, see if removing it fixes it <3> yeah it works without \n and quotes <3> php -r "print preg_match('[a-z]', 'a');" works fine <6> fangel important? The sky's fallen down yet? <6> :) <5> Mithrandir_: the last time i look it was on its way down - yup <5> ;) <3> echo `php -r "print preg_match('[a-z]', 'a');"` is ok <4> ah, linux command line?
<3> yeah <4> yeah you need to use the inverted quotes <7> hi, is there anyway to specify the file name when the save as dialog box comes up <2> no <8> that's hardly an answerable question, let alone a php question. <6> with a header, yes <2> the answer is no <7> philip: actually you can with the header <2> that woud be most insecure <6> riiiight <1> philip: Just out of curiosity, how is that insecure? <2> oooh, i was thinking something else' <1> idefine: Does the header trick work cross-browser, though? <9> what's a tv guide feed if any? <6> it should <2> <file...> <2> was thinking you meant when getting a file off the local hd, as in, to upload <7> philip: it is not insecure...but what i'm trying to do is this: i've created an image using the gd2 extension in php...but when i right click and save that image it shows up as phpfilename.php.png how can i change that to just be image.png <2> php.net/header gives an example how to do that <7> here's a link showing what i want to do: http://www.lalitkapoor.com/construct/tests/test.php?text=Documents <7> thanks philip, will look at <10> hi <4> idefine: for security reasons you can't specify the contents of a file field, or a dialog box <3> i'm not able to test regex correctly :s <7> rarman1: it works fine when clicking a link, but it doesn't work if the user right clicks and saves as <10> how do i set the filename in the http header correctly when returning the file content in a response to the user? so the typical "save file" dialog which the filename of the file to save written in the dialog <2> see, i am not the only one who misread the question :) <10> there seem to be some incompatibilities between internet explorer and firefox regarding this <7> deuterium: header('Content-Disposition: attachment; filename="name.ext"'); <10> idefine: hmm.. thanks. i have "inline" instead of "attachment" <7> deuterium: what is the difference <11> Hey philip <2> howdy <7> deuterium: thanks <10> idefine: inline is opening the content in the browser window i think <11> philip: How are you this morning? <7> deuterium: you've fixed my problem as well <10> idefine: really? what was it? <2> tired <2> but off to start a band new day! <2> you? :) <7> deuterium: i had the same problem as you, but i couldn't figure out how to specify the filename on rightclick save as, i could do it if it was an attachment link <6> this one time at band day <7> deuterium: thank you. <11> philip: Good, not looking forward to the brand new day. :P <10> idefine: the problem is that if i use inline, the name of the pdf will not have the name specified but the same of the url php-script name <12> biggie! <11> enygma! <10> idefine: ah ok, yw! <3> why is $string = "a4a"; $regex = "/[a-z][0-9]/"; echo preg_match($regex, $string); returning 1? <2> friday is good <12> uNF <7> deuterium: did you resolve your problem <2> !+preg_match <10> not yet, unfortunately <10> i try it with attachment i think <1> b0red: preg_match() returns the number of matches encountered, either 0 or 1. RTFM. <11> b0red: Because your string contains at least a letter and a number, which is what your regex asks for.
<2> !+preg_match <11> !+func preg_match <13> int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset ]]]): Perform a Perl-style regular expression match <11> :) <14> Is there a way to provide language shortcuts like precompiler statements in C? Like: define('USER', $_SESSION['user']); <2> bah! <11> Vlet: http://php.net/define perhaps? :P <1> b0red: If you want what was actually matched, p*** a variable as the third parameter to preg_match(). <15> you should anchor your regexp with ^ and $ <14> BigE, the above example doesn't seem to work. Define only wants basic datatypes, not objects <2> php-bot, i don't like you anymore <15> if you want to check the entire string <16> any of you guys know why the mbstring windows extension don't load when I uncommented it in the php.ini ? <3> /[a-z][0-9]/ should match anyletter following by any number.. i'm giving it a4a .. it should match nothing <2> define wants scalar, yes <3> followed* <2> although it does allow a resource :) <6> b0red.... a4a does not have a letter followed by a number?? <3> a character i mean <3> a or b or c ... or z <6> a is a letter, 4 is a number <15> use /^[a-z][0-9]/ <6> a is followed by 4, so it is <2> lol <6> if you want just ONE letter followed by just ONE number, you could use /^[a-z][0-9]$/ <3> Mithrandir_, i'm giving it a4a .. [a-z][0-9][a-z] matches a4a <3> ok <2> BigE, i'm going to school again, am going to C cl*** right now in fact <6> fangel, see that? mesa doing regex ;-D <17> does anyone know how to used AES_ENCRYPT from mysql with phps mcrypt? <6> b0red, the regex matches a4a, because it is not told to stop - so it just says whether there is a letter followed by a number anywhere within the string <3> ok <18> hi <3> i'm less confused now.. thanks <6> and it finds a4 and doesn't care what comes after it <6> unless you tell it that there should be nothing after the number (the $) <11> philip: Neat, what kind of school? Just vocational or full fledged? <6> anytime <2> full fledged :) <16> any of you guys know why the mbstring windows extension don't load when I uncommented it in the php.ini ? <11> philip: Wow, nice. <11> philip: That's the way I *should* have went. <2> bye, am going to learn how to make a make file today <19> what do i have to disable in order for 5.1.2 to not want to enable LIBXML? <19> i don't have libxml2 > 2.6.11, and just want to build a cli version of php <20> jcobync: I htink it needs it internaly, so you have to upgrade your libxml <3> Mithrandir_, is a the same considered as [a] ? <6> should think so, yes <19> ||cw: blast <21> i just bought another USB hub to see if it works, i was told the cable was 6' long... i opened it up, and its 1.5 inches <22> is mysqli_result() reserved? <23> when using PHP5's __set object inside a cl***, is there a way to tell if it was =, .=, +=, -=, etc? <23> this ends up with only <pre>test2</pre> : $tpl->content = '<pre>test</pre>'; $tpl->content .= '<pre>test2</pre>'; <22> ...does appear to be, if i name a cl*** mysqli_result() script bombs. no errors or anything, just no output. <22> despite the fact that i have error reporting turned on <24> AaronCampbell: hold on <23> b1n0ry: http://www.php.net/manual/en/ref.mysqli.php about 1/4 the way down the page <22> AaronCampbell: that was my suspician. i changed the name to mysqli_Database_Result and the script started working again. <22> AaronCampbell: thanks <24> AaronCampbell: I think that behaviour is right <23> b1n0ry: no problem...any idea on my little issue? <24> __set is only called when the property doesn't already exist <23> ds-: I wasn't asking if it was right...I was asking how to change it :) <22> honestly, i haven't used that particular aspect of php5 <24> I don't think you can, let me check one more thing <3> is this the correct regex for multiple lines comment? [/\*] .* [\*/] <25> oi <26> I'm encountering a weird problem, I have a PHP script which runs system commands through p***thru() it works well when run in command line, but doesn't find the executables when run in a cron job. details here : http://www.pasteserver.net/paste/show/162 <27> aencountering ba <28> what is wrong with: ($entries[0]["ou"]=='Unspecified Department') <28> I am trying to compare the ldap field and a string <29> retroneo- I've noticed that cron scripts run with weird permissions/paths/etc. Might try specifying absolute paths to everything <24> AaronCampbell: You can't override the function of the operator, but if you use __get() you can make that string concatenation work
Return to
#php or Go to some related
logs:
ubunut mount busy dd-wrt change mac python subprocess.Popen blocks burningphire #perl #math #perl ubuntu dual cpu i386 pearl rmtree emlprime
|
|