| |
| |
| |
|
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
Comments:
<0> you cannot have anythign above that code <1> i know <1> but if i put it on top <1> i get: The page isn't redirecting properly <2> how do you loop through the values of a 'set' field elegantly? <0> limepilot well that is a better error no? <3> hej! i'm searching for a solution to the following problem: conducting a request to a database and providing the probable alternatives, when nothing is found. <3> i figured that i need a regular expression, that gives me a rough overview of all possible alternatives and then i can sort them after likeliness with levensthein or something. i **** at reg.exp but I came to think, that there's no easy way to do this. anyways, I use a mySQL database. can someone point me to a helpful information? quite close example of what im trying to do would for example be: http://dict.leo.org/ende?search=slup <3> thanks in advance <4> i have 2 arrays, one is empty and the other have: $foo = array( bar => array ("foo", "foo", "foo"), foo => array ("bar", "bar", "bar")); now i want to copy only $foo["bar"] into $foobar but i would like it to copy it and order it in 1,2,3,4,5.. and so.. how can i do that? <1> ungy, ? <2> _idan: array_sort? <0> limepilot if the code isn;t workign that is one thing but the error itself we told you how to fix <4> kombi: but how do i copy them? <2> foreach? <5> Hello.
<4> only foreach? no other commands? <3> _idan: what do you mean how to copy? you could just write $foobar = $foo["bar"]; ? <4> *functions <1> ungy, sorry but you are not helping now <2> _idan: php.net/foreach <0> limepilot your not helping me help you either <4> scornflakes: but when i wrote it.. it told me Notice: Array to string conversion in /usr/www/idan/src/parser.php on line 110 <1> what do you want? <1> i told you that the code doesnt work <1> can you help <1> thats all <0> limepilot put it before anythign else and then tell me what the problem is <3> _idan: what did you write? <1> i know it goes on top <4> 110 is: $lev = levenshtein($text, $array); <5> I have a slight problem. I've made a little function that checks the database for emails, it works, but it doesn't prase the html properly. Im running it on apache. <4> before: $array = $this->lavcom_input["idunno"]; <0> limepilot doesn't work isn;t veyr descriptive <1> i told you <1> ok the problem might <1> be <6> http://pastebin.com/718541 -> This doesnt work on IE, the browser starts to download the file ( it opens the file transfer dialog ) but the "choose directory" dialog only opens when the file is done downloading. Is it missing any headers? <1> that i am including on each page the header,content and footer <1> so this code goes in header <3> _idan: i dont think you are allowed to use an array as second argument in levensthein <1> but that is loaded after the page is loaded maybe <1> well how else could i include it <4> i can scornflakes <6> i eat scronflakes <0> limepilot post your header <3> _idan: http://se2.php.net/manual/de/function.levenshtein.php <0> limepilot and post the freakign page your including the header on as well <3> armorfist: only if you're female. sorry. <2> language! <6> :(( <5> Ok, I'll try somewhere else. Thanks. <0> kombi what language? <1> http://pastebin.com/718839 <1> etc. <3> it's alrright. these operations are cheap like sht these days <2> Ungy: the one.. <2> ;) <0> ok limepilot that looks fine now the page you are including it onto <2> btw, what do you guys do to iterate through a set field? <3> _idan: does this convince you? <0> kombi I use c# for that ;-) <1> ? <0> limepilot give me the page your having problems with the actual top of the page line by line <1> link or wtf <1> each page had header so any code output is the same <0> limepilot ok you cannot have any spaces return or anythign the top of your page shoudl be <?php include('header.html') ?> or somethign similar <6> http://pastebin.com/718541 -> This doesnt work on IE, the browser starts to download the file ( it opens the file transfer dialog ) but the "choose directory" dialog only opens when the file is done downloading. Is it missing any headers? <0> limepilot you don;t seem to understand I need to see all your code to help you <7> hi all <1> the code is <0> limepilot anythign or anythign that might output the the browser anything before that header:Location call will give you an error <1> <?php include($_SERVER['DOCUMENT_ROOT'] . '/header.html'); ?> <8> Armorfist: there are some example headers in php.net/readfile examples <1> <?php include($_SERVER['DOCUMENT_ROOT'] . '/home.html'); ?> <1> <?php include($_SERVER['DOCUMENT_ROOT'] . '/footer.html'); ?> <9> limepilot: Don't paste here
<1> yeah <10> TML: Would you recommend Django? Or what do you use that's always worked well? <6> thanks cw <0> limepilot ok tehn why not rename header.html to header.php and changve it and try it again <3> reformulated anybody got a good resource where I could find an effective regular expression for finding similar words (search term..). i would sort em with levenshtein afterwards so a similarity to the function would be great <9> kuja: I've been growing fond of Pylons of late. It's a bit more rudimentary, but you know me: I despise magic <11> limepilot: look up ob_start - http://www.php.net/ob_start - and try using that, maybe? <0> scornflakes what do you mean similar <0> ? <3> ungy like http://dict.leo.org/ende?search=slup <10> TML: So then you despise DSLs and metaprogramming? :( <1> its not working i ll be giving up <0> limepilot well thank you for wastimng our time as well have a good day <3> ungy + additionally i would list words containing the term, but i manage that on my own <9> kuja: I'm not sure what you mean by "metaprogramming" in this context <8> scornflakes: http://empyrean.lib.ndsu.nodak.edu/~nem/mysql/udf/ look for Levenshtein <1> ungy, thank you for not being useful and wasting my time, you ll go along way with that speech attitude <9> kuja: But I don't mind DSLs at all. They're not tied to "magic", so I don't see the relevance. <10> TML: Enough metaprogramming magic to morph your code structure. <0> scornflakes that looks like a simple LIKE expression <6> finally! thanks alot ||cw, those examples worked :D <10> TML: Stuff like dynamically generating code at the invocation of a method. <9> kuja: Daisy wrongful underpants Hawaii balloon. <10> =) <0> limepilot we try to help you you do nto do what we say we tell you to do things and ask you for things and you do not supply them that is not helpful to anyone <9> See, I can take a bunch of normally meaningful words and throw them together in a confusing manner as well. ;P <3> llcw: what is an UDF? i'd like to keep it easy you know.. <1> what do you want me to supply you with? <9> kuja: Yes, I'm ABSOLUTELY IMPERATIVELY UNTIL THE DAY THE DRAG MY CORPSE INTO THE PITS OF HELL against "generating code at the invocation of a method" <0> limepilot and I tested that code it works fine you have to make sure it is the first thing on eveyr page <3> llcw: i mean, is it difficult to be implemented? i know what it is. <1> it is i am sure <10> TML: I'm guessing Django's ActiveRecord implementation (as well as Rails') does some of that stuff, given the language has the features. So I guess that's a nono to Django for you :( <0> limepilot unless you told your webserver to interpret html as php you need to make sure that your included header.html is renamed to a file type that will be interpreted as such <3> ungy: you think so? which one then? I'm not that good with any kind of regular expression, but this doesn't seem so simple to me <9> kuja: Indeed, Django's magic is distasteful to me <0> scornflakes that doesn;t even look like a regular expression <1> http://pastebin.com/718870 <3> ungy: yeah i got that <9> Like poisonous alkali in the mouth <11> Ungy: surely it's the calling page that triggers PHP interpretation, but include'd files are handled by mod_php / cgi_php? <0> scorn flakes go to #mysql and ask in there I am sure they could give you somethign useful <10> TML: Harder to learn, and in the end harder to figure out what went wrong. <0> tetrarch and if he is using IIS? <10> Though I certainly love a little metaprogramming here and there, especially if it's for a DSL. <3> ungy: it's a dead channel. and i thought reg.exp isn't limited to mysql <0> mysql a dead channel? <11> ungy: uh... then i feel dirty and ashamed, let me wash my hands =) <3> ungy: well more than this one <12> hiya <9> kuja: The base ***umption of most of my code is that something is going to go wrong, eventually, and that every hour spent now is worth approximately 4-6 hours spent when that thing DOES go wrong. <12> anyone familar with weather METAR data? <13> you're not in #mysql, how do you know.. <0> scornflakes when checkign against teh database your better off doign the expression at the deatabase level otherwise you will be hitting the server with multiple querries and or getting a m***ive dataset <9> m-00kie: Wow...erm, sort of. I looked at it pretty closely, but it's been quite some time. <3> elviso: i am in mysql <3> but ill give it a shot <13> oh nm, i saw the wrong name <9> m-00kie: And nothing ever came of my look into it <13> sorry! <9> m-00kie: You know who may have done stuff with it? Jerub, over in #python <1> ugny, did you look at the code now <3> elviso: nm. just no need to flame. i know this is kinda offtopic here. by now. <12> hmm cool. <12> have just a single question tho <9> m-00kie: Fire away, I will answer however I can <12> i have most of mine working.. just curious as to if theres any code in there that i overlooked, which predicts chances of rain, snow, etc (the 30%, 40% displayed at NOAA.gov) <0> limepilot I am looking at it what is that page named by the way? <1> index.php <9> m-00kie: I...think I know where one can get that. How long are you going to be around? <12> all day.. <12> but, msg me if you find anything cuz i might not be *here* and itll get lost in all the buffer :) <0> limepilot when you load this page what happens?
Return to
#php or Go to some related
logs:
#gaim recursive directory loop bad
debian sarge fuse-modules kubuntu 3CRSHPW196 php script * grabs urls #php installing xubuntu without cd drive xmule permission denied #ubuntu #fedora
|
|