| |
| |
| |
|
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> "Well, y'see, Timmy..." <1> The fact that rules never applies to dictators is pretty well ... entrenched <grin> <1> To expect anything else would be fairly well delusional. <2> Luckily for all of you, we generally believe in the BDFL concept. <3> SkramX, I'll write one, it will be short and sweet <3> SkramX, don't use it. <3> there :) <3> SkramX, check out MDB2, and there is good docs on the pear site, and you can search google too... it is pretty simple to get started <4> mfonda: if im only doing MySQL stuff, what is the benefit(s) of MDB2? <3> cleaner code, more portable, easier <2> SkramX: Mainly, that PEAR-DB was the PEAR community's first attempt at a large, cohesive package. <2> SkramX: They made their share of mistakes, and fixed them later in a package called MDB2 <5> I have 2 issues. 1 is that index.php isnt being read as the main file for a directory, and 2. rewrites isnt working, yet the moudle is loaded and .htaccess is in place. Any ideas? <3> #apache <5> ok <6> What is the replacement for the val() function?
<6> I'm trying to update some old php code <6> (which I didn't write) <7> intval() ? <2> setuid: val() was never a PHP function <6> hrm, dumb code <7> was thinking that... and strangely if you do a function search on php.net for val you get to file() <6> yep <2> That's because it uses a soundex-like algorithm <8> TML: Just something I thought you would find 'interesting'... http://www.wyfda.org/member/cj_4.html <2> Where "val" and "file" and near-matches <6> http://rafb.net/paste/results/wYlYH862.html <6> There's the code <6> its short <6> Dies on the $return line in 11 <6> But why? <9> hi <10> !tell setuid about enter <9> q: i have a string like "/home/user/path/subpath" - with which function can i only explode the lats part before the last / -> "subpath" ? <8> explode() <10> setuid what's the error message? <11> What's the command to make a PHP module apxs something? <6> This is so bizarre. No errors, no output, just dies on the $return line in 11. I've put print statements before and after, and it just quits at $return. <10> setuid add error_reporting(E_ALL); ini_set('display_errors', 1); at the top of the file and try again please <6> ah, seems it can't find a function <11> phpize then ./configure? <6> weird that it would die quietly instead of barfing <9> Jymmm: easy - thank! <10> setuid maybe display_errors is off in php.ini, check it out :) <9> ... and how can i address the last entry of this resultiing array? <8> collinj: Just be sure to check that there is a trailing fwdslash before running it thru explode. <6> ho HO! <8> !+arrays <12> [ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well. <6> oops, dates are all in 1969 now <13> Any recommendations on using SFTP in php? <13> must I install ssh lib? <13> sc time <14> Anyone know of a library for getting the quicktime movie meta data, like movie width and height? <9> Jymmm: ty - i know arrays, but is there an easier way to address the last element of the array than going over it via foreach? <9> something like: $marray[LAST] <10> collinj $array[sizeof($array)] <8> collinj Yes, in the link that php-bot provide you will find lots of functions, look over the list and you'll see the one you need. <9> s/maaray/myarray/ <10> php.net/sizeof <15> ok, so I have nothing set for sendmail_path = in php.ini, but yet my phpinfo() page is giving me sendmail_path values of -t -i <8> !+fish <15> any ideas? <12> Give a man a fish, you feed him for a day. Teach a man to fish, you feed him for a lifetime." The moral of this lil story is if you spoon feed someone information that's fairly obvious, you're not really helping them, just preventing them from growing/learning and being able to be resourceful for themselves. <10> Jymmm right :) <10> aamiic php.net/mail <16> can someone confirm for me the languages used on http://www.linemypocket.com, is it just php and mysql tables? and the obvious html? <15> right i've looked there, but if I have nothign set at all for that value, why would it just have -t -i there? <10> aamiic parameters for sendmail ;) <15> right, but shoudln't it have the path statement there? <10> no, it's empty in your php.ini <9> Jymm, xshad: thanks a lot! <10> collinj np, RTFM next time :) <15> ok thx xshad <9> xshad: promised! <15> ok i just tried changing the statement to: sendmail_path = alskdjf <15> still the same -t -i in phpinfo
<10> aamiic did you restart your server? <15> lol <10> aamiic *blinks* <15> fixed <17> Hello all <17> is there a pastbin that users here prefer? <17> or can I past right here <18> www.pastebin.com ? <17> thanks bosko <19> anyone here know of any compatability issues with linux and ioncubes loader? <17> http://pastebin.com/739975 <17> Is the line with the @@ syntaxually correct <17> I keep getting and unexpected ? at line 71 <18> <b><a href="<?=$PHP_SELF?>?start=< <17> that is line 71 in my code <4> what is the easiest way to strip the slash off of $_SERVER['SCRIPT_NAME'] ? <20> basename <17> yep that one bosko <18> i just fixed it for you! <18> i think <18> try it <20> basename($_SERVER['SCRIPT_NAME']) <4> will try that <4> ansimation: what about how to get the filename.. excluding the .php part :) ? <17> what did you do <4> me? <18> I added a = in the <?$PHP_SELF?> part <20> substr ? maybe <17> what does that do <17> $php_self should just evaluate to the scripts file name <17> and I alread had and '=" outside the <?PHP <18> Cause <?$PHP_SELF?> is not syntax correct <0> Not even close... <18> wtf nevermind <0> <?php phpinfo() ?> <17> huh <0> Oh, nevermind, I'm in my own world. <0> <?php echo $_SERVER['PHP_SELF'] ?> <18> same <17> Ok let me try that one mattmcc <8> mattmcc isn't that stating the obvious? <20> substr(basename($_SERVER['SCRIPT_NAME']),0,strlen(basename($_SERVER['SCRIPT_NAME']))-4); <20> that'll work <21> apache on windows is using between 50% and 100% of CPU, could this be PHP thats causing thise? <22> likely <23> to php array have a push method? <20> SkramX: did you get that? <20> array_psuh <20> array_push <24> hello , can any 1 answer this for me pls : http://pastebin.com/739998 <23> nm <20> anyone use imagemagick? <3> mephistopheles, if $query_id is 0, it will always return false, but when they call the function, it probably isnt always 0. that is just the default <17> I will get back to ou guys <24> mfonda, this function is in a cl*** , it makes a new cl*** , $query_id always = 0 , i dun understand why <24> this file mysql.php is in PunBB <24> a free open source BB <24> or may be the arguement $query_id isnt = 0 ? <25> i have a login in which it uses sha1 and it stores it in a mysql table. how long should the varchar be? i set it to 60, but i don't know what would be a good number <11> What is better? GD or ImageMagick? <26> depends on what you're doing <24> here is the full mysql.php http://pastebin.com/740015 <0> It depends, but GD is generally crap. <11> Product images <11> That's what I feel. <0> It can do the job for most basic tasks, like thumbnailing. <11> GD images are big and unproportional. <0> Eh? <0> If you're having aspect ratio issues, that's your fault. So to would be if the image isn't compressed as much as you'd like. <27> Is there a certain PHP function that allows you to strip off a certain part of a string and output it into a $var? like if i had "tbl_foo_bar" could I somehow check for the underscores and set one $var's value to "foo" and another's to "bar" ?
Return to
#php or Go to some related
logs:
#physics snd_mixer_load failure fstab svnserve mrxtv #freedesktop libxml2mod xmlSchemaIsValid .trash-username #perl slackware mouse xps m170 akopov.com
|
|