| |
| |
| |
|
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
Comments:
<0> babo_: ok. why not do it all in php? I'm not sure why you're involving bash in this. <1> Artnez_: the cat function imports the text file and keeps the newlines ... honestly, that's all there is really. The other parts of the code don't affect my problem <2> Artnez_: That's kinda funky. I thought you could sprintf and it would work. Oh well... <0> babo_: php can already read files, and it has support for the cURL library. <1> caffinated: I'd like to, but this is the last bit of the problem (I hope) and I don't want to go back and write it all in php again if I can help it... <0> adding bash in to the mix is a needless complication <3> babo_: well anyway, after you use file_get_contents() to retrieve the text file ... do something like this: <3> echo "<pre>$contents</pre>"; <3> and also, what OS are you on and what OS did the file come from? <4> anyone here got the oracle sqlrelay connectors? <4> listeners i mean <1> Artnez_: this is a bash script ... I'm on ubuntu ... <5> so if its a bash script, where does PHP come into it? <3> my sentiments exactly <0> isn't it obvious? <0> he just wants php for the urlencode() function.
<5> :s <6> how do you get referer in php? a grep "referer" on the phpinfo gives me nothing but something not relating to http referer (php 5.0.5) <5> $_SERVER['HTTP_REFERER'] <5> although its not to be trusted ;) <0> hartym: right, you won't get the referer in phpinfo unless one was set. you have to click a link to get to it in order for there to be one. <7> hartym: Probably because you didn't click on any links to get to your phpinfo() page, in which case HTTP_REFERER isn't sent by your browser. <7> caffinated: damn you <0> TML: ;) <8> how to put a character after every 10 letters in a sentence <1> Artnez_: won't work, I can't have <> tags in my output script <7> Adeel: Iterate over the string using for() and put your char when position mod 10 is 0 <0> adeel: http://php.net/chunk_split can do that <5> bbl <8> thanks <0> (saves the iteration) <7> I had forgotten about chunk_split() <7> Damn you yet again, Ben. <8> ahh great <8> thats what i wanted <8> thanks <0> I never use it, but for some reason I remember all the stupid functions <0> i believe wordwrap() can work in a similar fashion <7> Yeah, I was thinking you could do it with wordwrap, but I didn't want to spend the mental cycles. <7> All this just goes to show: I'm getting too old for all-nighters. <9> Would like to have some help with some regexp's, i want to search a string and if it finds a specific word i want it to put a secific html tag before and after that word :) <0> TML: I'm too old for all-dayers <7> gimmulf: Why not str_replace()? <0> I need to cut the natural light out of my diet so I can get back to being nocturnal <7> gimmulf: From what you said right there, I see no need for a regex at all <9> ahhh <9> :) <3> TML: i gave up on all nighters a few months ago.. and i'm 20 :-/ <9> thanks TML didnt think of that <7> Artnez_: I lasted almost 20 more years than you. But then, they came naturally to me until about 8 years ago. <3> TML: lucky, lucky man. i'm just afraid of sitting around the computer for too long and messing up my knee joints or something <8> caffinated is there a way to make chunksplit and wordwrap work according to the visitors screen resolution ? <7> Artnez_: Heh. Try "knee, elbow, wrist, finger, heart, weight, eyesight, pulmonary system" <0> Adeel: yes and no. the problem with that is you can't determine the user's font size settings. <3> TML: yea, that about covers half of it -- or so I hear. they should make PC implants so we can walk around and write PHP :) <10> hi all <8> ive fixed the font-size in css <8> it cant be changed <0> Adeel: that doesn't matter <10> Is it somethng wrong with this syntax DELETE FROM `art1` WHERE ID_ART = 786 ? It seem to not work <0> Adeel: also, unless you're using a fixed-width font, you will need to caclucate the bounding area of the string before splitting. this is more complicated than it sounds. <11> i'm told that i shouldn't use regex on html because html is a non-regular language. how do i extract the value of the 'name=' tag in a webpage form ? <12> ace_me: that looks like a mysql problem. <8> caffinated oh <10> hmmm <0> Adeel: in a truetype font, not all characters will be of the same width. <8> firefox screwed up in wrapping texts.. so im tryin to use server side <11> Adeel: set the width maybe? <13> hello all <8> thin done that, firefox still doesnt wrap it up <0> thin: that only works if your string contains breakable characters <13> how do i get the size of a string? <11> anyone know how to extract the value of the 'name=' tag in an html page withou regex ? <0> this is an age-old problem in html <14> Where to set the constant PEAR_CONFIG_SYSCONFDIR? <15> if say i wanted to include a php file, but wanted to put the data into a var or something, how would i go about that? as te file i want to include has php in it <0> there is no viable solution, other than to find ways to truncate long unbreakable strings
<8> yeah <13> thin use the html document as xml ... <8> actually firefox doesnt even wrap breakable text :S <13> Adeel, ... i think you can, using css.. <0> Adeel: it should. that indicates an error on your part. however, we do not help with html problems here. I suggest you try #web. <11> or #css <8> k thnx <0> I also suggest you try real words. <13> r-e-a-l w-o-r-d-s .. <8> yeah, i am tryin those <11> how do i match 'name="blah"' out of an html file but without ending up with 'name=' in my result string? <11> $formregex = "#name=\"?([^\s\"<>]+)#i"; <11> thats the regex i'm currently using.. <10> I am back with that last quest <16> hi <17> $formregex = '%(?<=name=) ("?) ([^\s"<>]+) \\1 %ix' <17> $formregex = '%(?<=name=) ("?) (?:[^\s"<>]+) \\1 %ix' <16> i need help with the following, i'm running a phpbot, and i'd like to know if there is a specific channel for its questions, otherwise, please tell me how to run a php script on the background <10> I am using a form in which I have multiple checkboxes for deleting simultaneously many articles ! if(isset($_POST['C1']) && is_array($_POST['C1'])) ! Sometimes I display only one article in the form ! The current one ! Than I should know that $_POST['C1'] is no more an array > <16> thanks in advance <17> temp_nick: same as with any other script. easy way: use screen, else redirect output and fork <13> hm.. how do i get the size of a string? <16> k, ty <18> jasz: the length - strlen <13> there you go.. <10> strlen(string) <13> :) thank you guys <19> hi. i'm confused. is this a help channel ? <20> i need help for mysql_fetch_object to get all result from mysql <19> guess so. <19> when mail() fails, how can i get "why" ? <21> look at your mail logs <19> does it set an error code anywhere ? <21> mail logs <19> fair enough. <20> $sql = "select * from table"; $result = mysql_query($sql, $conn); while ($row = mysql_fetch_object($result)) { echo (htmlspecialchars($row->ID)); } ... how i get last 10 result ? <20> anybody there ? <22> :-) <20> $sql = "select * from table"; $result = mysql_query($sql, $conn); while ($row = mysql_fetch_object($result)) { echo (htmlspecialchars($row->ID)); } ... how i get last 10 result ? <23> EeeWWW: i think you should go to #mysql and ask them how to make a query to return the last 10 results <23> rather than do it in php.. <20> ok niraj <20> tnx <23> mysql supports a LIMIT clause, you should look into that <24> hello. <24> I have a php application which is causing apache processes to segfault. Any ideas how I can determine why? <25> HI all I need the gd2 extension for php. Can it be used as a 'extension' does it have to built in ? <10> How could i FORCE a browser refresh each time PHP page is requested ? <26> mm, isnt that what the browser does? <10> header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 <10> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past <10> I have that but seem to not work ? <27> I am trying to get php compiled with png support, and ./configure keeps telling me it requires ZLIB, and to include --with-zlib-dir, there is some zlib files in php's ext directory, is that what they are talking about? because I installed all of the debian zlib packages already and its not finding them <5> install the zlib-devel pacakge as well if it exists <27> I don't think it exists, maybe I'll just have to compile it.. <27> nope, there's one that I missed: zlib1g-dev <7> marcz908: apt-get build-dep php4 <7> Save yourself a ton of tail chasing <27> I have zlib.h in /usr/include/zlib.h, do I do --with-zlib-dir=/usr/include, or --with-zlib-dir=/usr ? <5> 2nd one <28> marcz908: use trial and error. <27> I got it to compile fine last night, but when I ran a php script, it kept on seg faulting, then I realized I need some dependencies, this is a pain, its so much easier just doing a basic minimal type install with only --with-mysql <29> what are 'keylogger' commans <29> ds <30> eh? keylogger? <31> " If you issue any of the 'keylogger' commands, you will be immediately removed and banned, no questions asked." <32> I'm getting a "relocation error" ... "undefined symbol" a tiny little extension I'm compiling at the time of the call to the function defined in the extension. The symbol specified is the function name prefixed with "php". objdump shows it in the symbol table. Any ideas? <33> jiggster, whats up with that? <33> /keylogger on <31> www.google.ca <29> yeah - what ARE the leylogger commands - what are they meant to do - nout on wikipedia... <33> ups :S <34> Is it possible to use a PHP script as default handler without mod_redirect? I remember that there was a simple but efficient way to configure apache, to do so, but I can't rember anymore and didn't find any suitable in google so far. <35> re
Return to
#php or Go to some related
logs:
#linux fedora extract .daa xmms-mad tutorial #debian LD_PRELOAD ubuntu Can't locate Algorithm/GenerateSequence.pm #web Cannot run framebuffer #oe Jason Vucko
|
|