@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> ifirst used ''
<0> but the erroris
<1> some people tend to use quotes around there variable names
<2> Use nothing
<0> syntax error, unexpected '='
<3> dont use any
<1> as they are used to just stuffing variables right in between their strings
<3> $blah = array($blah1, $blah2, $blah3);
<3> etc..
<2> yes
<2> thats nice and clean
<0> doesnt it needlike , 1 => $blah1
<0> 2=> $blah2
<2> no HS^
<3> nop.
<0> ok



<1> HS^: it does that automatically
<2> you can do so HS^, but numerical index are automaticly there for you
<2> starting from cero
<4> hardwired: any ideas?
<0> it starts with counting at 0
<0> ?
<5> gimmulf: so you want to match on characters, digits and whitespace? [a-zA-Z0-9] does not match on whitespace. If I understand your goal correctly, that might be the problem
<1> danf_1979: get_elements_by_tagname returns a giant array.. is it better you think to do it differently?
<2> so, array(0=>"something); is = to array("something);
<0> sdo to print, it will be in a for each loop, echo array(0,1,2,3, etc)
<1> danf_1979: cause this is one of the reasons the memory fills up
<4> hardwired: hmm ok, btw how do i run that regexp software? ever been running an tcl file before :)
<2> are you reading a file?
<1> danf_1979: yes
<2> how big is it?
<1> $doc = domxml_open_file($xml, DOMXML_LOAD_DONT_KEEP_BLANKS);
<6> What is it that uniquely identifies a cookie in the browser? Is it the cookie's name? Or is it the combination of the six or so arguments that you p*** to setcookie()?
<1> $countryElements = $doc->get_elements_by_tagname("Country");
<5> gimmulf: uhm. tcl is an interpreted language. so if you have the interpreter, I guess you can run it
<1> danf_1979: the biggest is 44mb
<7> Narada, name
<1> damn huge, so to speak
<7> Narada, you can overwrite it by name, so name it is
<5> gimmulf: if it starts with a line like #!/usr/local/bin/tcl or so
<6> Ciantic: So if I set two cookies with the same name but with the other arguments completely different then it won't set two different ones?
<1> (XML is a bitch.. it solves only problems that weren't there before XML came around)
<7> Narada, also domain is included (of course)
<2> try reading by chunks
<1> danf_1979: how?
<2> or from byte to byte segments
<6> Ciantic: Then perhaps ssl is also included as well as all the other arguments.
<4> hardwired: hmm it starts with #!/bin/sh and it tries to execute something: exec wish8.3 "$0" -- ${1+"$@"}
<1> danf_1979: how am I to determine that?
<5> gimmulf: ah yeah, iirc, the tcl interpreter is called wish
<1> danf_1979: I use domxml to have at least a bit of convenience with parsing XML
<0> array start countingat zero
<0> ?
<7> Narada, what perhaps? its not matter of guessing. It simply is domain and name
<1> HS^: yes
<5> gimmulf: you need to install tcl and probably tk with your distros packet manager
<4> hardwired: i have tcl8.4
<7> Narada, have you ever considered for example look at the firefox cookie viewer?
<4> installing tk now
<6> Ciantic: Don't give me attitude. Simply your comments will do.
<6> Ciantic: Which cookie viewer? In preferences?
<7> yes?
<6> I have looked at that and the web developer toolbar and extensions.
<2> yereth, I know nothing about xml
<2> I dont use it
<6> However that does not really help me answer my question.
<4> hardwired: gaah i give up :)
<6> Anyway I will take your answer.
<5> gimmulf: bummer :-)
<8> hello people
<7> Narada, it certainly does give you the answer. As you can see it lists them by domain and name
<4> hardwired: dont i just use ./file.tcl to execute it after chmod +x it?
<5> gimmulf: just add a space in those two [...] parts and try again
<5> gimmulf: yeh
<7> not any ssl,domain,name only domain,name
<6> Okay.
<2> HS^, yes...



<4> hardwired: like preg_match("/\[([a-zA-Z0-9 ] ){0,9}$key([a-zA-Z0-9]){0,9}\ ]/", $hand) ?
<6> You're right.
<5> gimmulf: yes
<4> still wont work :<
<6> I'll take the name as being unique.
<5> gimmulf: no
<4> theres something wrong with it
<2> So, often programmers have only 9 fingers
<6> We only have one domain so I won't worry about that.
<5> gimmulf: where is that coming from: )
<6> I need a unique array key essentially so I'll use name.
<6> Ciantic: Thanks.
<4> hardwired: what? :)
<7> Narada, fyi, there is one already, $_COOKIE
<8> hello i have a question i need some method or function which executes every 3 seconds and check lets say some file is it been modified ?!?!?!?
<5> gimmulf: "/\[[a-zA-Z0-9 ]{0,9}$key[a-zA-Z0-9 ]{0,9}\ ]/"
<6> Ciantic: That is for reading existing cookies. I need an array of all cookies that are going to be set.
<6> Array of objects.
<6> One object per cookie.
<4> hardwired: gives me parse error
<7> sounds nasty
<4> ahh my fault hardwired
<5> gimmulf: and then you might be able to substitute the two [...] parts by just \w but try that out once you get the thing with the [...] working
<4> hardwired: hmmm nope it wasnt my fault, got parse error on that regexp
<5> gimmulf: and the $key must also be escaped, I forgot. \$key
<9> k1njo: No you don't, you just think you do.
<6> Ciantic: heh no; it's actually quite nice OO way of doing things; there's a lot more to it than i can type out here
<4> ok hardwired, its "/\[[a-zA-Z0-9 ]{0,9}\$key[a-zA-Z0-9 ]{0,9}\ ]/" now but theres still something wrong with it since it wont find any results
<2> yereth,
<8> berry_huh!??!
<10> we doing hardware upgrades on servers im off ciao
<8> berry__ huh!??!
<2> yereth, read this thread: http://forums.devshed.com/php-development-5/how-to-parse-a-large-tab-delimited-text-file-325199.html
<7> Narada, i know, that you are doing cl*** that handles the setting of multiple cookies at once. But since PHP doesn't already support it, its just clumsy
<7> It's like with the dynamic cache
<6> Ciantic: It only supports one setcookie() call per page load?
<5> gimmulf: hold on, I'll try it out
<4> oki hardwired
<4> thanks
<7> Narada, no? i meant that you are reinventing wheel, that by default, in php, is done badly.
<2> read that thread
<0> inthis , what wouldi use toecho bedrijf_naam?
<0> else $box2 = array($bedrijfID, $bedrijf_naam, $bedrijf_straat, $bedrijf_plaats);
<0> iput in a loop
<0> foreach ($box2 as $key => $box){
<1> alright
<2> echo $box2[0];
<0> echo $box[2] will printnonsense
<2> echo $box2[1];
<1> thanx danf_1979 for the3 trouble
<2> I confused by the name
<0> my space keybord key is****ed
<2> np yereth
<5> gimmulf: this works here: /\[[a-zA-Z0-9 ]{0,9}\$key[a-zA-Z0-9 ]{0,9}\]/
<1> danf_1979: this just means that I have to ignore the fact that I'm reading a XML file
<1> which is kind of strange, as that is actually exactly what I'm reading
<5> gimmulf: mind the space between the first and third 9
<2> As I told you, I know nothing about XML, but I think it doesn't matter what are you reading
<2> log files, xml, or some other stuff
<7> oh yes, those idiotic readers that does not use the right way(tm) to read the xml files, but parses with regexp... it just makes your blood boil
<1> danf_1979: well, you may have heard about XML having a structure
<1> with tags surrounding elemens
<4> hardwired: very wierd.. i cant get it working
<2> yup, but read about splitting the file
<1> elements
<7> reading xml file is more complicated than one regexp
<5> gimmulf: ok, sorry, I have to give up. got to go back to work
<11> i want to learn the new stuff that's covered in PHP, all the OOP stuff and etc. however my host doesn't have PHP 5.x yet.. doesn't it ****
<4> hardwired: oki hardwired, thanks for your help
<5> np
<7> lugzer, well you can say to your host that, php5 was released 1.5 years ago. UPDATES PLEASE!
<2> that long already?
<2> oh god, I should upgrade


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#linux
#php
#kde
pymedia 2.5
#sdl
#math
PING ni prepoznan kot
run gvim fedora
gentoo +ieee80211_crypt_wep +emerge
fc5 Z-Star Microelectronics Corp. ZC0301 WebCam



Home  |  disclaimer  |  contact  |  submit quotes