| |
| |
| |
|
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
Comments:
<0> i think i have it at like 100MB <1> you think or you have? <0> i know it's 100MB <2> what do you mean, 'the bigger problem it has'? does it just work or not work depending on the size of the file? <0> it works depending on either the file size or type <3> anyone know where i can get regex help? <4> !tell theotherlight about MRE <1> Dereck: What's your post limit size? <5> Dereck, have you check the upload size limit in php.ini? <0> where is php.ini usually located. <6> ~/etc/php <6> */etc/php <6> No ~. <6> Or C:\Windows\php.ini. <1> ... <1> Dereck: phpinfo()
<5> run phpinfo(); it should tell you <7> hi <0> what is the setting i'm looking for in it? <7> 66.666666666667 <7> how can i trim that number to just 66 or 67? <7> is there a round up? <2> ceil() <7> ty <1> regex is good. <3> not if you **** at it <1> theotherlight: There is an obvious solution to that, isn't it? <3> don't ****? <3> i just don't have the time to learn something im only going to use once <3> you want to help me? <3> i just need to match a word only if it's not within: title="someword" <3> if that's even possible im not sure <8> im using php's file_get_contents of a URL taht's 302 redirecting me to another url, it fails and doesn't grab the url, any ideas on what i can do <1> shoot yourself in the foot? <3> wow, i think i made php crash <3> sweet <7> its funny how you overlook the simple things <7> thx again for the help <1> test1234567: You might want to have a peek at the round() function... <7> youre right i should <7> ty <7> ceil gives me 101% when it should be 100% <7> so i think round would be better <7> yep and ty again for the help <7> yall have a nice one <9> did everyone leave? <10> yup <9> cool <9> altoid, you around? <11> hello anyone here has used PEAR's DB.php module? <12> hello ... anyone familiar with suphp ? <12> or php as cgi for that matter <12> problem is with $_SERVER[SCRIPT_NAME] var ... for instance, if the script is foo.php, that env var will have /username/foo.php and not foo.php <12> is there any configuration option to correct this? <13> leOn $_SERVER["SCRIPT_NAME"] ? <14> any body have a nice php chat ?? simple but god working ?? using socket and ping pong ? <15> Ignoring the fact that all arrays are ***ociative internally in php ... is there any way to tell whether an ***ociative or indexed array is p***ed to a function? <15> And secondly a way to check if $param is an array or a scalar .. <16> Woosta: is_scalar(), and if (array_keys($a) === range(0, count($a) - 1)) <12> bruno: yes <16> le0n: basename() <15> arpad .. ta .. that words for me .. but it does make me wonder about ***ociative arrays with progressive numbers for keys :) <12> the problem is that i'd like a global solution, since it's a shared web server <12> i.e. ... i'm not going around the users php scripts making changes <12> isn't there a way to configure such a thing .. ? <16> le0n: why is it a problem anyway? it's the normal behaviour.. <12> arpad: it's a problem because most applications around that make use of that env var are prepared for use with mod_php only <16> le0n: oh i see what you mean. use vhosts? <12> i'm using suphp for privilege separation, vhosts, etc <17> hm <17> what would be causing error 500's ? ;\ <16> nanotec: normally a misconfigured server <18> How can I upload multiple files from a HTML form? <18> Not just one <16> le0n: no experience with that i'm afraid. as a very last resort, you could fix it in an auto_prepend_file script, but i'd really advise against that <16> Mc_Fly: with multiple file inputs
<12> i was hoping that the cgi.fix_pathinfo would do anything about it .. but not ... =P <14> wcare esti roman ? <18> arpad: can php do ftp and would that work? <16> Mc_Fly: php can do ftp as a client.. that's pretty far from html file uploads though <18> arpad: ya, but how can I browse from say a form to select a folder, not a file. So that I know the folder to be uploaded <19> i'm getting an undefined index notice... wondering what is the proper way to handle this, i don't want to just turn error_reporting off like some places suggest. <16> Mc_Fly: you can't do that with a normal browser, maybe use a java applet or something <20> hmmm cssFloat in other browsers <20> sighhh <16> bignose: just check variables/array indices with isset() before you use them <21> hello guys, im gettin this error : <21> Warning: Invalid argument supplied for foreach() in /usr/share/freeradius-dialupadmin/lib/attrshow.php3 on line 5 <21> Could not include SQL library functions. Aborting <19> arpad: k. <21> i dont know what foreach() means, <10> Meaw: foreach wants an array, not whatever your giving it - and we don't support 3rd party scripts <21> it's simple, i dont know what to change in line 5 <21> foreach($ARR as $val){ <22> what would be the best way to check if a string begins with www. <19> arpad: thanks eh <21> this is line 5 <10> Meaw: regardless, we do not support third party scripts, which this is <21> who does <21> please <16> Jezek: i'd use substr() <10> email tech support, call them, see if they have a channel on freenode, i dont know the script your working with, nor the developers <22> ok <22> if(substr($this->fd_row[7], 0, 4) == "www.")) <22> that look good? <10> zelazny going funny? <15> Is there any way to do a replace that mutates the string in question and returns whether it was successful or not? preg_replace returns the mutated string (or array) <10> Woosta: take the outputted string, so if($outstring == $original_string){/* it didn't do anything */} <16> Jezek: yeah <22> kk coo <16> Woosta: or just supply the $count argument to preg_replace <10> that too <15> So it mutates AND returns the mutated string? So I could do if($mystring = preg_replace('X', 'Y', $mystring){ nothing changed, but $mystring now has a new value } <15> I don't have php5 so count won't do anything for me .. <12> i'm fscked ... <23> count() should work with older php's <23> no ? <15> count()??? We're talking about the $count argument to preg_replace which was added in v5 <23> oooh <23> interesting, I'll have a look at that myself <23> love preg <24> trying to compile php4, I have a non-RPM version of mysql 5 installed. <10> snakeman: did you get the mysql libraries? <24> when I do ./configure -with-mysql=/usr/local/mysql it dies <10> snakeman: try not supplying a directory <24> itrebal: you mean just put a slash on the end? <10> no, --with-mysql <24> well...okay...you're talking about using php's built-in mysql, right? <24> yes, that's what I had before <10> ohk <16> snakeman: --with-mysql=/usr/local <24> but now that i've upgraded to mysql 5, i'm getting authentication erros <8> PHP Fatal error: Can't use function return value in write context <8> waht is this? <8> in write context? <24> arpad: I'll try that <10> acidjazz: ***ign the return to a variable <8> if (empty(trim($torrents['title']))) { <8> itrebal: no <10> then use the variable <8> itrebal: i have no need to put it in a variable <8> this crap didnt occur until i went to php 5.1.4 <10> i know that, i've gotten that too, and fixed it by asigning it to a variable <10> and what version are you using? <8> i just compiled 5.1.4 <8> itrebal: thats stupid <8> itrebal: you shouldnt ahve to do that <16> um, doesn't empty() only work for variables anyway? <8> avlues
Return to
#php or Go to some related
logs:
g_log: gaim_dbus_pointer_to_id: assertion #suse #perl setting up mysql Suse 10 #python postfix/cleanup fatal: unsupported dictionary type: pcre #gaim #lgp notice nuxil #php
|
|