logs archiveIRC Archive / Freenode / #php / 2006 / April / 14 / 1
TML
T_V: Also, are you on Gentoo?
Or perhaps centos?
Feldon
CryWolf: I'm just concerened with the number of if statements required to process the thing. There's a first stage: if(isset($_POST['options'])) and then a switch( $_POST['options']) which results in 21 if statements. But then at the end of all that each of those 20 options results in a multi-page form which means checking for each of those form's submit buttons too.
T_V
no. the complete error is.. (a debian error. )
ione moment
CryWolf
Feldon: answer the question with a simple "radio" or "submit", please.
S^Gerbitz
att error
T_V
getting the error :)
TML
T_V: You're using debian?
S^Gerbitz
Gots to love it when ATT is having network issues
TML
T_V: Are you on a 64bit platform?
         

Feldon
CryWolf: lets worry about the submit buttons first
CryWolf
Feldon: in that case, my technique will work
T_V
TML: im using debian. i686 GNU/Linux
Feldon
this? -> <CryWolf> Feldon: name="option[$x]". $action = key($_POST['option']); switch ($action) ...
T_V
TML: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/lib/libc-client.so.2002edebian: undefined symbol: mm_dlog
TML
T_V: How did you build PHP? "apt-get -b source php5"?
T_V
TML: that the complete error
CryWolf
Feldon: yes. That will replace all the if's with a switch.
T_V
TML: no by source
AfroTurf
CryWolf: oh radio
T_V
TML: it should be somewhere in the IMAP function
TML
T_V: The short answer is "recompile without the IMAP extension"
T_V
TML: the problem is. i need the iMAP extension :(
TML
T_V: The long answer is "Figure out the broken linkage between libc-client and libmm"
Crell42
T_V: IMAP, not iMAP. It's not an Apple product. :-)
TML
T_V: This is why you should use apt...it knows how to deal with this.
T_V
Crell42: sorry crappy keyboard ;-)
TML: hehe.. ah well. i think its an debian package error. i think i first recompile libc-client by hand
Crell42
You're on debian and you're compiling stuff by hand?
ntengineer
guys, how is it possible to return the result of a search request (search engine of another site) and populate it on my own style
T_V
TML: thanx for the help
         

TML
T_V: It's not a debian packaging error. It's an error from trying to mix-and-match package managed stuff with hand-compiled stuff
Crell42
ntengineer: If the other site has a web service, use their web service. If not, you can try site scraping but that's a PITA.
T_V
Crell42: somethimes i have to do that when its not working ok :)
ntengineer
Crell42: yeah that will suck
Crell42: dont think they have web service...
Crell42
I don't remember the last time I compiled anything on Debian except the kernel, which it has a special facility for.
ntengineer
Crell42: maybe I can parse it out..
Ahroun
Well gents & any ladies we might have with us. Time for me to head my butt home. Ya'll be good, failing that, be good at it! ;)
TML
T_V: Why are you not simply using the apt packages for php?
T_V
Crell42: even that u are able to do it with apt :)
TML: i just need some extensions that the packages dont support :(
TML
T_V: So compile those extensions using phpize
Don't rebuild PHP from source for an extension
T_V
TML: its a clean install :) but i will reconsider that! :D
Crell42
T_V: Exactly my point.
If it's not in Debian, you don't need it.
T_V
Crell42: php5 isnt in debian ??
Crell42
Sorry, I misspoke.
If it's not in Debian, you don't need it(tm). :-)
TML
T_V: Yes it is
Crell42
PHP5 has been in Sid for some time now.
And will be in etch.
TML
php5 -v
PHP 5.1.2-1 (cli) (built: Jan 18 2006 06:49:47)
numist
php5 is in etch
and its in sarge
Crell42
Sarge ships with 4
numist
ships with 4, but apt-get install php5 still works
Crell42
Fascinating. Didn't used to.
T_V
hmm. lets try that :)
numist
iirc it did recently before it was closed as stable
Crell42
Must have been an 11th hour addition.
vache
you can also use dotdeb.org
for debian/ubuntu packages
Crell42
Like, 11:59 :-)
im_with_stupid
i have a text area which im using to update a database field, but all the qoutation marks are being escaped with \ , how do i turn that off again ?
AfroTurf
\'
T_V
euhm: The next release of Debian is codenamed ‘etch’ -- no release date has been set ??
AfroTurf
magic_quotes
"\""
TML
T_V: That's correct, there's no release date for etch yet. Tenatively, they're shooting for pre-Christmas 2006.
im_with_stupid
ahh, stripslashes is what i want thx
AcidReign
im_with_stupid: or disable magic_quotes_gpc
Crell42
There are decent odds that we'll see both KDE 4 and Debian Etch before we see MS Windows Vista.
S^Gerbitz
okay guys back to my code "http://pastebin.com/658517 " Im having issues with lines 47-54, its changing the first [br] but not anymore, what have I done wrong
im_with_stupid
thx
TML
Wow...DDJ consumed both CUJ *and* SDmag
I can't help but feel this is a bad move on CMP's part...
Andy298
whats best way to enable for apache 2?
CGI or Mod?
||cw
depends on what you want
most people want mod
Andy298
whats the difference then?
||cw
uses more ram, but doens't spawn the cgi so much which helps on high load sites
AfroTurf
S^Gerbitz: maybe a loop of the $str's you want to change
||cw
mod embeds itself in apache, cgi has to be spawned for every request
S^Gerbitz
AfroTurf - can you show me how?
||cw
S^Gerbitz: um, you are overwriting $summary each time. lines 49-52 need $summary instead of $data['summary']
T_V
TML: but how do i install php5 with apt at arge ?
arge = sarge
||cw
T_V: find a apt source with php5 and install it
T_V
hehe ok..
||cw
but you could do better with arrays... $summary = str_replace(array('[br]','[b]','[u]','[/b]','[/u]'), array('<br>]','<b>','<u>','</b>','</u>'), $data['summary']);
S^Gerbitz: ^that's for you
S^Gerbitz
||cw - thanks
||cw
S^Gerbitz: but I'd recomend going out and finding a BBCode class/function to do ti for you, cause that's gonna replace things you may not want it to
like a [b] inside a [code] should not be touched, as well as [[b] should end up as [b] in the output
cyphor
I have images outside of web root that I'd like to insert into html pages as if they were inside web root. Any functions come to mind that might help me do this?
chico_marx
hello, i did a very simple web site with php. everything seamed to work when i tested in firefox and ie. but i got one e-mail saying that it's not showing in Safari, i can't test that at all, since i don't have a mac and it's pretty hard for me to find one that i can use. the site is www.mauricioarraes.com
||cw
cyphor: readfile(), man page has an example of exactly what you want
jbpros
chico_marx: http://www.snugtech.com/blog/
||cw
chico_marx: also try #web
cyphor
bah, I'm familiar with readfile(), I used that for forced downloads... I figured it wouldn't help though, but I'll go search through the examples =)
||cw
chico_marx: but first run your site through a validator
Cody`
Does anyone here have experience with the mysqli slave/master cluster commands?
The docs are nonexisting
||cw
cyphor: you just stick a php script in the img src that readfile the image you want, get vars are valid there too
cyphor
that's it? lol
chico_marx
||cw: thanks!
lig
Morning
el-homo
I'm trying to get phpmyadmin to work, but it wont. I get "Please verify that the current setting of session.save_path is correct". But this session path is correct. It's set to /tmp as described. Ideas?
cyphor
||cw: ty =)
||cw
el-homo: do you have an htaccess overrriding it?
AfroTurf
cyphor: working with images now :)
el-homo
||cw: no its a brand new copy of phpmyadmin
||cw
el-homo: what's phpinfo() say
el-homo
session.save_path /tmp /tmp
cyphor
AfroTurf: yuppers =)
AfroTurf
cyphor: you making a script for thumbs on the fly or just resizing images as you upload them?
winmutt
can i connect to mysql5 without mysqli?
TML
winmutt: Sort of
will[werk]
Yes
winmutt
?
TML
winmutt: You have to use old_password()
will[werk]
TML, Not if you compile mysql extension with 4.1+ libraries.
||cw
el-homo: and your /tmp is world writable?
cyphor
AfroTurf: well, the function accepts jpg, gif, and png images, then depending on how I call it, it will create avatar sized copies or photo gallery & thumbs copies...
TML
will[werk]: I've never been able to get that to work, but *shrug*
winmutt
ok but mysqli is NOT required for connectivity to mysql5 ?
el-homo
||cw yes I did something now no idea what, but now phpmyadmin wont list tables inside databases
but I can login woho :p
will[werk]
TML, It'll work :) --with-mysql=/path/to/4.1+/mysql
winmutt
phpmyadmin is for suckers
el-homo
winmutt what should I use in your opinion
TML
will[werk]: I spent an entire afternoon trying, never could get mysql extension to link correctly.
will[werk]
winmutt, Not for connectivity. But if you want some of the cool features of MySQL4.1+, you'll need mysqli.
AfroTurf
cyphor: hehe i just did something like that
cyphor
fun huh
Cody`
Does anyone here know how to use the mysqli cluster api functions? Do I need to use multiple connections, or is a connection to the master enough?
will[werk]
TML, ??? Maybe because it knows you don't like MySQL...
TML
will[werk]: Could be
winmutt
will_: cool features?
will[werk]
winmutt, php.net/mysqli
cyphor
||cw: if I'm outputting the image this way should I set Content-Disposition to 'inline'?
nvm
||cw
cyphor: probably, but I don't think it really matters inside img
cyphor
k
will[werk]
TML, privmsg?
TML
will[werk]: Sure
« prev 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 next »