| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<0> g'night, g'morning, g'whatever <1> night cai. <2> be unconcious, thats the first step to good sleep <3> he all... <3> I just encountered a strange behavior in php... <4> imagine that! <3> as test, I'm trying insert dynamically generated POST data in http headers using sockets... on the other end, I have a page that recieve those POST values and process them. Everything works fine when for my post value I use a string variable such as: $variable = "blah"; but when I come to use a string pulled out of an array, such as: myarray[$i] ... the form dosen't take the POST data at all... I tried forcing the type of my array data using (string)... did <3> n't worked. <3> what you think is the cause of that tamahome? <3> ................ <2> did you check youre shoelaces? <3> I won't. You might take advantage of that, for some gay *** action. <2> that would be great, how are you including the arrays in the form? as: myarray[$i] is a bit obscure <3> I'm p***ing post data throught headers such as fputs($sp, $post_values) ... $post_values being equal to "?somevar1=$myarray[$i]" it works when I use the following form: "?somevar=$myvalue" and where $myvalue = "some string" ... <3> sorry for the synth mistake.. it's "?somevar=".$myarray[$i] <2> under double quotes your var would parse anyway, debbuging tip; echo the array element and $post_values to see how the post data builds up
<2> lets break this code down :) <2> then for the gay action <3> I did... <3> the code builds up as you say it... in both case, $post_values is a valid string but I can't see why, when I use the array, the form won't take it. <2> does "?somevar=".$myarray[$i] echo as "?somevar=foo_i"? <5> Woot, OSX 10.4.4 is supposedly cracked. <3> yes <3> look at this code: http://pastebin.sekati.com/?id=POSTheaders@aba77-266eb1a7-t <5> strav, you need to learn a little thing called a "for" loop. <3> notice, the sp2 var isn't ***ignes, I didn't included the fsockopen line... <5> for($k = 1; $k <= 2; $k++) <3> _TaSm I use for and while when appropriate <3> (i.e.: when I feel like it) <5> Hah, well thats more like it. Becasue this time it wasn't appropriate. :-P <5> So why are ya havin us look at that? <3> yea, but I just prefer that I can fine tune the loop's increment. <6> Hi <3> (where I want in the loop... I find it better than using breaks) <3> anyways, let me paste... <6> I have to FWRITE this string, $___________$, but when I write it into a textfile, it only writes $.. Any idea?. <3> I'm p***ing post data throught headers such as fputs($sp, $post_values) ... $post_values being equal to "?somevar1=$myarray[$i]" it works when I use the following form: "?somevar=$myvalue" and where $myvalue = "some string" ... but not when I use the array form (that you can see in the pastebin) <5> Handred use single quotes. <5> Gotcha strav. <1> Damn, Tasm, beat me to Handerd's answer. You're like a machine today. <1> (and last night) <5> hehe <5> My coffee is kickin in. <5> Gotta get lunch soon though. <1> I hear you on lunch. <5> strav, quite honestly, I dont know exactly how POST works, I just use CURL when I need to POST. <3> yea that thing can be done with curl... but it's still strange. <7> is it possible to use a var in substr() i.e substr('$var', 1); ? <8> wow <8> smells like ether in here <8> w00t <3> as I said before, I also tried to setType to enforce string... <3> didn't work though the damn thing is printing like a string.. <5> You guys played with Symfony yet? <5> http://downloads.symfony-project.com/demo/cart/cart.mov <5> Screencast. <5> Its like rails for PHP. <6> How to disable scrollbars from TEXTAREA within CSS ? <5> Handred #css perhaps? <9> http://cgi.ebay.com/RAD-RACING-BMX-T-shirt-from-dvd-vhs-Movie-and_W0QQitemZ8382230742QQcategoryZ52405QQrdZ1QQcmdZViewItem#ebayphotohosting <9> how ****ing awesome is that **** <9> ****ing Cru Jones <2> strav, i notice your post put has no length param? <3> no it has <3> it's determined by the string I have so much problems with. <3> strlen($postdata) <2> fputs($sp2,$postdata); <= show me where? <2> if your string hold a zero bit value its getting truncated <3> fputs($sp2,"Content-length: ".strlen($postdata)."\n"); <3> fputs($sp2,"Connection: close\n\n"); <3> fputs($sp2,$postdata); <2> fputs($sp2,$postdata,strlen($postdata)); <= give it a shot you never know <3> ok <3> nope <2> ho well, as far as i go <10> what good is a resource returned from a mysql query? all it tells me is the table name of the table i am trying to SHOW TABLE STATUS or ANALYZE TABLE. there is only one row too <3> argh... I think I have a way to simply avoid that ****in array
<2> you could foreach out of it, .. <2> tried multiple variables in an string? <10> Ophiocus that is what i am doing and i see 1 row <10> with nothing but the table name <3> nah... I kind expect the same result from a for each. <10> yeah <2> mogbit, if you want to see what rows are in a table, shouldnt you be using a SELECT instead? <2> strav, so $postdata = "var1=$var1&var2=$var2" works ? <11> i am running a php login script and receive the following message: Access denied for user: 'test@localhost' (Using p***word: YES) <11> what can i do? <11> i believe the message is from mysql server <3> Oph: yes <11> help, anyone? <11> why i receive the message Unknown database 'phplogin' if i specifyied the correct database name? <1> because you didn't specify the correct database name. <1> Or you didn't correctly login to the server <1> Obviously <11> the name is correct, the server is running <1> then you haven't logged in correctly <11> how can i loging to the server (i use a triad setup wich configured php, apache and mysql manually) <11> i have settled a p*** at the installation <11> but it didn't say tot type any <11> when i ran the server <1> If you don't know the login to your MySQL server, nobody here can help you. <12> whats the best ajax lib for php ? <3> .......... <3> meeeehhhhhhhhhhhhh <12> :p <3> it works when I use for. <3> meeeeeh : ( <3> _TaSm: for now on I will always use FOR when possible. <2> thats some serious ownage right there <3> hum. <3> w8... maybe I spoke too fast. <13> what do you recomend for xml parsing? <13> which lib <14> hi i need help <12> nuSoap <3> nah. was an error, dosen't work with for. <14> i need a simple script that will allow me to add pictures and descriptions to them <13> toast: thank's <15> coti - if it's so simple, make it <16> :p <16> i have one <16> but i'd have to kill you if i let you read the code <12> coti, that simple, get an upload script and use a text box... <15> or again, make your own **** <16> he's just a script user i think... don't be to hard on him <16> coti go to http://www.hotscripts.com/ <16> search for one that suits you <14> thanks <17> when I send a html email with php using the mail() function, for some reason I am getting an "!" in weird places <17> does anyone know why this could be <18> char encodeing issues <17> ya eh <17> what should it be encoded as? <17> this is my header <17> $header = "Content-type: text/html\r\n"; <18> charset not contnet type <14> dudes i need help <14> i have 5 images. i want an admin interface to add them on a page with a description.I mention that i haven't a dadabase on the server <14> can anyone of you help me !? <19> dada <18> ouuuu 5 images, may as well jsut hard code it <19> php.net/file <19> php.net/explode <19> php.net/0800 - 0 - 0 Schlsseldienst S-TEC AG., 65... Wiesbaden, 0800-7711200 <19> errm <19> php.net/features.file-upload <20> lol @ db driven scripts for 5 images <20> that's efficiency right there <20> i suggested deploying a postgres cluster. preferably a rack of sun servers <20> might want to call and ask them if they have anything that can handle the load. 5 images is pretty outlandish <12> lol
Return to
#php or Go to some related
logs:
VS2005 include math.h cmath #AllNiteCafe #linux #linuxhelp gerrijuli shrunkgirl
wget perl udp.pl tomcat fedora gcj JAVA_HOME #linux convert dbi to vga
|
|