IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-04
[21:49]<jyylln>ive done that because i need to have some sort of authentication for the files too
[21:50]<nfsxrr>Lateralus: thanks
[21:54]<-- syzzzyus xzs puyv>http://www.bagdadsoftware.de")
[21:54]<nfsxrr>Lateralus: perfect. works. thanks
[21:55]<nfsxrr>Lateralus: Do you know the reason why my previous basic stuff did not work ?
[21:56]<nfsxrr>arg, no actually
[21:56]<nfsxrr>it doesn't lists the files neither.
[21:58]<xrrvfyg>Hi!
[22:00]<dwrxrnf>does an ssl certificate work for all sub domains?
[22:00]<pjffyvr>If it's *.exmaple.com, yes
[22:00]<pjffyvr>Most are host.example.com though
[22:01]<dwrxrnf>hm.
[22:03]<pjffyvr>good god Comcast's DVR sucks ass
[22:03]<dwrxrnf>so if i buy a geotrust cert for $189/$169renew, i can use it on example.com for cc processing and admin.example.com ?
[22:03]<pjffyvr>It works juuuuuuuuuuuust well enough to use
[22:03]<pjffyvr>michael: You should ask geotrust that.
[22:04]<pjffyvr>I can only guess what their cert signing policies are
[22:04]<vj2djjw>whats a method to remove something from the end of a string in php?
[22:04]<vj2djjw>i tried unshift but that didnt work
[22:05]<vj2djjw>do i have to use a substring for that or?
[22:05]<pjffyvr>$str = substr($str, 0, -$x);
[22:05]<vj2djjw>k
[22:12]<psnumjpfran2j>Does anyone know of any tutorials for building a PHP IRC bot?
[22:14]<wjlllrws>google does
[22:14]<vnsvycrffs>Pollita, how long did it take you to write that book?
[22:16]<zzmzjzmnz>I'm in the middle of switching to eclipse from zend studio
[22:17]<vnsvycrffs>that good camcorder?
[22:17]<zzmzjzmnz>just missing svn support
[22:18]<vnsvycrffs>ah
[22:18]<zzmzjzmnz>but I think there's a plugin for it
[22:20]<vnsvycrffs>o
[22:22]<jjnfr>how do i do, so a sttring like: $row->horas_consumo_$mes gets interpolated correctly?
[22:23]<sugmnv>JoelR: use a . to concatenate.
[22:23]<zzmzjzmnz>$row->horas_consumo_{$mes}
[22:23]<jjnfr>camcorder, no it doesn't work.
[22:24]<jjnfr>sundev: ok like what? echo "$row->horas_consumo_" . $mes; ?
[22:24]<g1d>is indexing an array by string with a space inside posibble?
[22:24]<zddzz>G3D: yes, a space is just anothe value
[22:25]<g1d>atually i have some <option name="string withspace"> and i want to read $_POST['string withspace']
[22:25]<sugmnv>JoelR: yea, that should work, if i'm understanding your question correctly.
[22:26]<g1d>and whats more, im indexing that post with another associative array
[22:26]<zddzz>JoelR: try something this: $func = 'horas_consumo_'.$mes; call_user_func_array(array(&$row), 'horac_consumo_'.$mes);
[22:27]<jjnfr>sundev: emm no.. look, i have a table where there are columns like these: horas_consumo_enero, horas_consumo_febrero, ... and so son until horas_consumo_diciembre.. as you see everything after the last "_" is variable..
[22:27]<zddzz>JoelR: sorry, i did the concat twice, but you should get the main idea
[22:28]<jjnfr>so i'm using PEAR DB.php to access the database and object fetching mode.. so after i do this: $query = $db->query("select ...") when i try to access a column value that is "horas_consumo_enero" like this: echo "$query-->horas_consumo_$mes" doesn't work..
[22:28]<jjnfr>did i explain well? :$
[22:31]<g1d>ok i should make my question more precise. i have in a form a <select name="string withspace"><option>xxxx etc... and reading it with $_POST['string withspace'] gives empty string... can i make it work somehow?
[22:31]<sugmnv>JoelR: $var = "enero"; echo "text_" . $var; will output "text_enero"
[22:33]<zddzz>G3D: oh i see... yeah, that space will not work, replace it with under score
[22:33]<jjnfr>sundev: i know man.. but if i do echo "$query->horas_consumo_" . $mes; it prints "enero" (that is $mes' value)
[22:34]<jjnfr>and that's not what i want..
[22:34]<jjnfr>but if i do echo "$query->horas_consumo_enero"; then it works.. :s
[22:34]<g1d>ammar: i see. what is at fault here? php or html?
[22:35]<zddzz>G3D: hmmm, i guess both :)
[22:35]<g1d>ammar: hehe ok thank you
[22:35]<zddzz>JoelR: you are right. do the column name building alone, not as part of the call... that is not supported
[22:36]<jjnfr>ammar: for example something like this: $column = "horas_consumo_$mes"; and after that $query->$column?
[22:37]<sugmnv>almost. use $column = "horas_consumo_" . $mes;
[22:38]<dzsvzjcnz>hey
[22:39]<jjnfr>sundev: negative.. doesn't work either :'(
[22:40]<sugmnv>echo $column after setting it
[22:41]<prrrnf>I'm trying to convert capital letters to lower + _... so far I'm using preg_replace('/([A-Z])/e', "strtolower('\\1').'_'", $str) - but the uppercase char is missing.. what am I doing wrong?
[22:41]<jjnfr>sundev: horas_consumo_enero ... apparently it's good
[22:42]<sugmnv>JoelR: what error do you get?
[22:42]<zzggdzf_lzydg>i need to clear the $_SERVER['PHP_AUTH_USER']
[22:42]<jjnfr>sundev: but when i do echo "$query->$column"; doesn't show up nothing
[22:42]<zzggdzf_lzydg>cab that be done with $_SERVER['PHP_AUTH_USER']=null?
[22:42]<zzggdzf_lzydg>or is there some thing like clear $_SERVER['PHP_AUTH_USER'])
[22:43]<sugmnv>JoelR: that's weird. something else must be wrong.
[22:43]<dzsvzjcnz>i have a question: i need a script to generate a website, and all the script makes is a nice display of the contents from the dirtory of a windows drive
[22:43]<guzzdyzgzvjdjs>I'm sure this has been asked before, so I apologize in advance. :) I'm getting a "The configuration file now needs a secret passphrase (blowfish_secret)." error with phpMyAdmin. Yet both my blowfish_secret.inc.php and config.inc.php have the exact same line to setup a blowfish key.
[22:44]<dzsvzjcnz>how would i get the contents of the directory
[22:44]<guzzdyzgzvjdjs>Any clues?
[22:44]<sugmnv>drstroker: opendir() and readdir()
[22:45]<dzsvzjcnz>sundev: thanks i'll read into it
[22:47]<zddzz>JoelR: after contact, you do $query->{$column};
[22:48]<sugmnv>ahh, good spot there, ammar.
[22:49]<guzzdyzgzvjdjs>tell GuardianAtomos about g9
[22:50]<krysvk>hi all
[22:50]<krysvk>I have a problem with setting up apache2+php5
[22:52]<krysvk>I have apache up and running but when I open index.php browser asks me what to do with a file index.php which is surprisingly a php script :{
[22:52]<krysvk>!help
[22:52]<vnsvycrffs>o
[22:52]<vnsvycrffs>that
[22:52]<zddzz>KaiSVK: you need to add type handler for php files
[22:52]<vnsvycrffs>you need a line in your conf
[22:52]<krysvk>TestiCalls: what line ?
[22:52]<jjnfr>ammar: i aleady could do it by other way thanks anyway
[22:53]<vnsvycrffs>did you install as cgi or module?
[22:53]<zddzz>JoelR: no problem. good luck :)
[22:53]<krysvk>cgi ...
[22:53]<krysvk>I think yes
[22:53]<krysvk>php5-cgi
[22:54]<zddzz>KaiSVK: all you need to know is in the manual... in painful detail. http://www.php.net/manual/en/install.unix.php
[22:57]<zzggdzf_lzydg>no way to clear $_SERVER['PHP_AUTH_USER'];
[22:58]<zddzz>grendal_prime: unset doesn't do it?
[22:59]<syggnzg>you have to send an error I think
[22:59]<syggnzg>like 'wrong auth info'
[22:59]<wjlllrws>SinnerG: Send error 401 in the header







