| |
| |
| |
|
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> lemme try that <1> sdwrage: That would make $bar if $_POST['race'] = 'bar'; you want the key name to be used as the var name not the variable? <2> sdwrage you can even do .= too <3> ||cw, there's only tempnam and I don't understand how to use it <0> no you got it right danger <0> I want bar <1> oooh right <0> :) <1> you changed your mind now? :) <0> thats exactly how I wanted it :D <0> no I worded it wrong <0> :\ <1> i know :) <0> I misinformed you <0> so.. my fault <4> GeekToe: it just creates a guarnteed unique file name for you to use.
<1> So what do you want $bar to contain <5> sdwrage: I want bar too, but I have a few hours of work first ;) <1> lol <6> I made a JS/PHP (Ajax) login script, but after I log in and then click to go to another page the session isn't saved <3> ||cw, so I write the form's contents to the temp file then what? <4> dj_segfault: hey, do you have a nokia 770? <7> did you start the session, deli? <6> yes, session_start <5> ||cw: Funny you should ask. I was researching them for about 4 hours yesterday. Considering it seriously. Why do you ask? <0> I want bar to be an element <7> ok <4> GeekToe: then open and read the original file and write it to the temp file too, one chunk at a time <0> Im trying to save it to xml <1> sdwrage: do you want $bar to contain 'race' ?? <0> so I want the elements to have the posted values <0> no <1> oh <4> dj_segfault: saw your name on the nokia700.com forums. I have one, love it so far <0> I want bar to contain what the user sends <5> ||cw: PM ok? <0> so if he makes a new race the name will be stored in xml <1> sdwrage: ok this is going nowhere <4> dj_segfault: sure <3> ||cw, how do I do it one line at a time? <4> GeekToe: either fread or fgets. one does lines, the other does bye how many bytes you say to use <0> ok listen... basically I have an <input type="text" name="race"> so that a user can make his own race... That will be sent to my php script and store the value (for example goblin) into an xml document as the element <goblin> <0> later when I want to display it I will put that element out <0> but im trying to change $_POST['race'] = GOBLIN into $GOBLIN <8> sdwrage: why? <8> sdwrage: that doesn't make sense <4> sdwrage: for what reason? seems unnessicary <0> because... I want the value to be stored in there as an element into my xml <8> sdwrage: it would make more sense to have $race = "goblin" that way you can add $race to your xml <0> because it will later serve a purpose when I need to add a TextNode <0> not really acidreign... I want to have elements for all the races <8> sdwrage: no no no, you would use $race, because it contains the Value "goblin" <0> thats the thing... I want GOBLIn to be the variable <0> because xml stores the variables as elements <8> you then give the value of $race ("goblin") to your xml function, as the element name <0> 0_o it would save the element as <Race> <8> sdwrage: it uses the value of the variable, not the name of it <8> sdwrage: No. <8> sdwrage: Not unless you are using some absured xml package <0> wanna look at a script I wrote? it uses the variable name <0> Im using DOM <8> DOM does not do that <2> 1) race.nickname.sdwrage 2) race.sdwrage.sdwrage <3> $race = "goblin" makes <goblin> <0> here <0> http://pastebin.com/542081 <0> this code adds a child element called elfdesctext to elfdesc <8> sdwrage: you would do something like $RaceElem = $dom->createElement( $race ); <0> ohhhhh <8> sdwrage: if $race = "goblin" then that creates <goblin /> <9> i'm having trouble getting mail() to work. i've checked dns resolution, and i can telnet to port 25 of the mailserver of the address i'm trying to send it to. any ideas ? <0> I see I didnt do it like that :) that would work too lol <7> what does mail() report <7> what error does it throw <9> ^jello^: ah hrm didn't realize it threw errors let me check <0> lemme try that out acid <8> then $RaceElem->appendChild( $dom->createElement( 'strengh', 10 ) )
<8> then you'd have something like: <goblin><strength>10</strength></goblin> <0> oh ok... I get it I think.... <7> you might have to switch display_errors on or check your apache error_log or some such thang, cisse <0> DOM is tricky x.x <9> ^jello^: k <7> I got a problem with curl and php with ssl <7> it uhm... throws an unknown protocol error when it hits a https site <9> HEH <9> do you have follow redirects on ? <10> i have action = "a.php" but when i submit the form the browser gets redirected to a.php, but i just want to check whether the input string was sufficient and print a small message by the string if it's so, how can i do that? <7> hm I dunno, don't think so cisse <9> jelly: a lot of sites redirect to the ssl that may cause an issue <7> ok thanks but, well, it should still work... it should understand the protocol <9> put your code on pastebin so we can see <0> so instead of ('elf') have (_POST['race'];) <10> anyone? :) <7> it's like this: http://bugs.php.net/bug.php?id=34927 <7> I don't have my code to hand right now as I've come back from work <7> but, it's not exactly untested code... the code itself is nusoap <7> not that I write it or anything lol <11> Later <2> What screen resolution is everyone using? <1> 1280 * 1024 <12> 480x320 <13> 12xx x 1024 <1> lol <14> 1024x768 <1> macOnki: copy cat <10> 16x16 <13> Dangermouse, yes, you are :-) <1> lol <15> the "PHP search path" is not the same like the system path, e.g. echo $PATH ,right? how do i get it from the shell ? <7> getenv I think, mutante <7> oh <7> no <5> Jymmm: 1280x1024 on two displays, 1024x768 on the third <16> if i get that error cannot modify header information cause headers already sent, I need to have ob_start all the way at the top of my script right? <17> I have what may sound like a dumb question; inside of a switch statement; if you have something like this $now['month'] + $number; and the case is met; is anything being set? or is the whole thing $now['month'] + $number being created? <17> wouldnt they need to have $now['month] = $now['month'] + $number; <18> I can't seem to get phpicalendar to upload files, and there are no error messages in apache log file <19> DogWater: I would say without '=', nothing gets set <19> but I'm not sure how legal 'case $x + $y:' is syntacticly <17> err i missed a ' <19> well, without = or -- or ++ <18> could someone link me to some example code of a basic php file upload? <17> Nono I'm sorry the case is just like case $x: case $y: <19> bov: search for 'file upload' on php.net <17> but then it says $now['month'] + $number; <19> DogWater: oh, then nothing happens <17> The case is met but i'm thinking that doesnt really do anything <19> DogWater: that's correct <10> i have action = "a.php" but when i submit the form the browser gets redirected to a.php, but i just want to check whether the input string was sufficient and print a small message by the string if it's so, how can i do that?! <19> the calculation still happens, but the result pops into the ether <19> jes: just do a string comparison, and an 'if' statement around whatever does the redirect.... <20> Does anyone here have any experience doing IPC/forks/fifos in PHP? <21> good day. I have a string that contains "+3+4+5", as a simple example. I'd like it to be treated as math, such that $c = 1 + $b would equal 13. However, I'm only receiving a value of 4. <19> Morbus: eval? <21> i'm trying to get away from eval. <21> I had it working from eval, yes <19> Morbus: good luck with that <21> There were folks in here who suspected it was possible without eval(). <19> cool. Sounds like a neat challenge. <21> you say it's not that clear cut? <22> what i need to parse RSS 2.0 with php? <21> they were making it sound easy. <23> ello <23> i was wondering if someone could help me out with a little problem i seem to be having with my webhost <19> Morbus: maybe I'm not understanding the problem, but it seems to me that you'll have to use string analysis of some kind, then do the math accordingly. Personally, it sounds like an eval() problem for me. Is there some reason eval is bad for your situation? <24> FM2_: a xml parser <19> !tell uriahheep about g1 <25> Morbus: are you sure it is only a sum of numbers? or can there be - * / etc as well?
Return to
#php or Go to some related
logs:
#web #perl #web wma dapper nautilus preview audigy 2 nx and ubuntu
emerge help2man fail perl gettext #lgp XAMPP Access denied for user 'ODBC'@'localhost' (using password: NO) #fluxbox centos win32codecs
|
|