| |
| |
| |
|
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
Comments:
<0> munti78: I repeat: install GD. <1> imagegd2 is a function, not something you istall <0> true <2> Stormchaser: for what I understand I need to go into php.ini and remove the ";" in ";extension=gd.so" <2> i restarted the apache server but I still don't have it <1> munti78: gd != gd2 <2> so my question is where can i get gd2? <0> munti78: IF you have GD2 extension, then yes. <2> ok <0> GD1 and 2 have gd.so libtaty <3> thx for help ||cw :) <0> munti78: Which PHP? <2> 4.3 <0> then apt-get install php4-gd <2> ok thanks <4> $Array = array(); array_push($Array, "value"); is it possible to add values so that $Array can become multidimensional? Like $Array = array("element" => "value"); ? :)
<2> Stormchaser: that work perfectly, thanks... btw: I'm pretty new to linux :D <5> to only allow strings with [a-zA-Z0-9], what does one do? ereg something? <5> ..just did that the other day but can't remember.. <0> kombi: ctype_alnum() <5> thanks stormchaser <6> CURLOPT_POSTFIELDS with values longer than ~500 chars don't work. How come, and how can I fix it? <7> http://uk2.php.net/manual/en/language.oop5.overloading.php#60703 doesn't look like valid php to me; can someone verify whether this is valid syntax? <7> dot notation and js oo style in php 5.1.2? <8> how do i chop of the first element of an array? <7> array_pop,array_shift <9> damaestro: specifically array_**** <9> heh. array_shift I mean <10> ||cw: i tried recompiling php with --enable-dbx and --with-mysql=true <6> Very long strings in CURLOPT_POSTFIELDS makes it not execute. How come? <8> well this is what I am ending up with -> Array|item1|item2|item3 <8> i am using check boxes as input and ***igned them asdf[0] asdf[1] etc <8> i am adding in the | <8> so the first item ends up being "Array" <8> so i just need to '****' it out :-) <6> Sigh. <6> !"#?%& .NET crap. <9> daMaestro: show where you are adding in the '|' <9> daMaestro: use pastebin if it's alot of code <9> errr if you just added it in for my benefit in here then pastebin the form if you can <8> between each element as I loop through them <8> I think if I just shift it out it will work fine. <8> if not, I will get some code on pastebin <9> k, duct tape can only fix a problem for so long though ;) <6> Why do people never, ever understand my problems? <11> maybe you don't explain yourself very well ? ;) <6> I don't know how else to put this... <10> <6> Very long strings in CURLOPT_POSTFIELDS makes it not execute. How come? <6> I have used cURL a lot successfully, but I have a problem with very long values. <6> It's for some stupid __VIEWSTATE variable that ASP .NET uses... <6> I am 100% sure that it has to do with the length, because I have tested it... <6> So what's limiting this? I can't find any info in the cURL FAQ or at the PHP manpage... <11> KimmoA : http://www.catb.org/~esr/faqs/smart-questions.html;) <6> LMJ: Don't be an ***hole. This is anything but a vague/stupid question... <11> relax, just in case, and it's not depending about the quality of the question, but how you inser it here maybe <9> KimmoA: are you setting CURLOPT_POST too? <6> ds-: Yes... it works if I cut the string. <6> But if it's too long (ie: real size), it doesn't work. <6> It doesn't output any error or anything, though. It just doesn't execute if it's too long. <6> The variable's value is like 500 chars, which I urlencode()... <9> can you have the other side of the connection orint out the raw post? <6> I don't get what you mean by "orint"... :( <9> heh, wow...neither do i <9> oh <9> s/orint/print <6> Oh... <6> The remote box isn't mine. <6> I wouldn't run ASP .NET :) <12> well, if the var is 500 bytes and then you urlencode it, it will triple the size (or at least double it) <9> CURLOPT_POSTFIELDSIZE can be used to set the size but iirc it's not needed <6> jonez: Yeah... but otherwise it ****s up too. <6> ds-: Hmm! <9> kimmoa: howso? <12> KimmoA, this is a PG rated channel, please watch the language <6> ds-: CURLOPT_POSTFIELDSIZE isn't mentioned in the PHP manpage... <12> we could upgrade it to an "R" rating, but I don't think anybody has the cash to bribe the right people :)
<6> jonez: :S <12> you are using the POST method, correct? <6> Of course... <9> heh, i think it gets that raiting around 3:00 pst <6> ds-: Where did you get that from? :S <9> curl docs <6> Hmm... so they leave out stuff? >:/( <6> s/(// <9> also, does the other server expect a big clob of data or does it need to have certain fields? <9> KimmoA: It might not be in the version of curl you are using. It looks to be more of a convenience option. If it's not set curl will strlen() the data and set it that way <6> I don't get it. It must work. <9> KimmoA: does the other server expect a big clob of data or does it need to have certain fields? <6> I have absolutely no idea what you mean by that. <6> I'm telling you that it works if the strings are smaller... <6> But it won't execute if the strings are too long. <6> And this bugs me beyond sanity. <12> clearly. <12> how long is "too long"? <9> KimmoA: can you pastebin the curl code? <6> Well... ~500 chars. <12> even after urlencoding? <6> No. That's the raw size. <12> ok.. is there any other way to get all that data from your program to the msft server? <6> Hmm... now I lied. <12> ahha! <6> They're more like 100 and 200 chars. (There are two ones.) <6> No. That's the only way... <6> I am just wondering how it can limit this all of a sudden... <6> I think I've sent very long "textfields" via cURL before... <12> it's not an "all of the sudden" thing. <9> KimmoA: pastebin your curl code <12> there is a limit of about 1024 characters in the url, maybe it's 2048, I don't remember <12> are you checking for errors at each step? <6> Why would I paste code that I've explained?! <12> KimmoA, please pastebin the code in question. <6> That limit can't be right for POST, now, can it? <9> there is something going on in your code. POSTFIELD is not that limited <6> Would make it impossible to POST submit any large article... <12> KimmoA, please pastebin the code in question. <13> I'm working on a script that converst some html to pdf using htmldoc. It is a scrip that *SHOULD* require login except when queried by the html/pdf converter script. Is there a way that I can check whether the IP is from localhost or not without hardcoding any IP addresses into the script? I can get the REMOTE_ADDR, but where do I find the IP_ADDRESS off of which apache is running? <14> Without running it.. what does the following echo? $i = 1; $i += $i++ + ++$i; echo $i; <12> Myconid, no idea, you tell me. <15> 5? <14> jonez: run it if you want the answer.. <9> coreyp: SERVER_ADDR <16> which function would i use to count the number of instances char occurs in a string? - i.e i would like to count '\n'`s to find out how many lines a string is <9> coreyo: SERVER_ADDR <9> :P <16> s/char/a char <9> grizmy: substr_count($string, "\n") + 1 <16> thanks <13> ds: it's not in the PHP documentation, but it is added as a a user note <13> ds: and I had missed that note, thank you <9> np <17> is there any good method for looking up the temp directory? <17> nm, got it <18> heya <19> hi <18> can someone help me with content-disposition.. binary files just get corrupt <6> Why the hell doesn't it at least output an error? <6> No... it's just not executing. <6> Stupid ****. <12> have you put this code on pastebin yet? <6> No, because it's silly. <19> then delete it <20> anybody here know a bit about dedicated hosting servers? if traceroutes go through "cogent", does that mean my host has a cheap uplink? <12> not necessarily. <6> '&__VIEWSTATE=' . urlencode('/wEPDwUJNTAwM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iBzw6VuZyEWAh4Hb25jbGljawVYamF2YXNjcmlwdDp3aW5kb3cuYWxlcnQoJ0RldCBibGlyIGluZ2VuIHPDpW5nLCBtZW4gZHUga2FuIGbDpSBsb2dnYSBpbiBww6UgcGxheWFoZWFkIScpO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFDmljYkFjY2VwdFJ1bGVz'); <6> Dammit. <18> when i edit the file (although its binary) i see a empty line at the begginning <12> thank you <12> ermm.. thank you, Jymmm
Return to
#php or Go to some related
logs:
#css perl optimize can't call method on an undefined value at /usr/bin/cpan debian smcwpcit-g apt-get deleted portage gentoo xmss #css #ubuntu #nvidia #python
|
|