Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

29 September 2007


Total 29 pages. You are browsing page 1/29.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Sat Sep 29 00:00:17 2007
--- Day changed Sat Sep 29 2007
00:00 <****> to the output?
00:01 <****> deshymers, nope
00:01 <****> I've used it before and this is the first it happened :s
00:02 <****> deshymers, I doubt "it" is
00:02 <****> when I comment out the code DOM class code, it isnt there, and I'm not putting it there
00:02 <****> VWJ1bnR1: both, the name in the form and the one you use with $_POST have to be the same
00:03 <****> What strip_selected_tags function do you use?
00:04 <****> is there a way to retrieve data into a form field ?
00:04 <****> vBrent, I'd rather havea strip_tags_unless_the_ones_i_select function.
00:05 <****> cheater: Beats me. I'm not US citizen
00:05 <****> like make it so when i retrieve data it ends up in a form ?
00:05 <****> NilsLindenberg: Right, I checked, and they are.
00:08 <****> Wolfy[drawing]: i'm asking about general pointers - i guess anyone with work experience can give them :)
00:08 <****> VWJ1bnR1: build on this example: http://www.php.net/manual/en/tutorial.forms.php which explains about security, too+
00:08 <****> -+anyone know a class that will enable you to resize and crop an image as well as add a watermark?
00:10 <****> wanderingii: imagecopyresample
00:12 <****> is there a sql function to take a result set and 'join' it into a newline delimited list?
00:12 <****> why don't you ask in the SQL channel?
00:12 <****> DDustin: there's a PHP function called join
00:12 <****> Wolfy[drawing]: thought someone here might know
00:13 <****> PerlJam: yeah exactly, i want to do that in mysql
00:13 <****> DDustin: why?
00:13 <****> speed
00:13 <****> simplicity of code
00:13 <****> cleanliness
00:13 <****> This isn't something mysql would be appreciably faster at.
00:13 <****> premature optimization is the root of all evil.
00:13 <****> mattmcc: oh and sending useless unnecessary temporary data is faster?
00:14 <****> over tcp, which is ofcourse faster then anything...
00:14 <****> Er, what useless unnecessary data?
00:14 <****> DDustin: what temp data?
00:14 <****> You want the data, you just want to insert newlines between the rows.
00:14 <****> the result set i want to implode
00:14 <****> DDustin: are you saying that you need a result set joined with commas as part of a larger query?
00:14 <****> implode / join
00:14 <****> mattmcc: and then insert it
00:15 <****> Into the DB?
00:15 <****> PerlJam: no i need to take a result set and make it into a newline delimited string
00:15 <****> where else am i going to insert it? Yes.
00:15 <****> Ah. So you were leaving information out of the original question.
00:15 <****> sorry, s/commas/newline/ then
00:15 <****> is it possible to get an array of defined constants?
00:15 <****> it was unnecessary information
00:15 <****> No, actually it wasn't.
00:15 <****> NilsLindenberg: Sorry, still doesn't help.
00:15 <****> yes, actually it was.
00:15 <****> Because until you said that, your question didn't make sense.
00:15 <****> mattmcc: no you needed proof i wasn't an idiot. i could spend all day doing that, its a futile cause
00:16 <****> ah, turns out GROUP_CONCAT will do just what i want
00:16 <****> DDustin: found http://dev.mysql.com/doc did you? :)
00:16 <****> PerlJam: i found that ages ago
00:17 <****> that page says nothing about GROUP_CONCAT
00:17 <****> nevermind... get_defined_constants()
00:19 <****> VWJ1bnR1: try method="get" to see if the params get passed
00:21 <****> NilsLindenberg: Already done that.
00:21 <****> and get works?
00:23 <****> Hey :D
00:23 <****> Got a bit of an issue
00:23 <****> Im trying to add /usr/share/php to my open_basedir but when I add it to the /etc/php5/apache/php.ini file it is refled in the master value col, but not in my errors from file-exists(/usr/share/php/HTML/QuickForm.php) any ideas?
00:23 <****> I've got the line:
00:23 <****> if($_COOKIE['Forum_userID'] == '$') header('Location: http://server.com/foo.html'); else header('Location: http://server.com/....
00:23 <****> Right, now...
00:24 <****> That means people with a cookie to the forum go to one place, and those without go somewhere else
00:24 <****> verification at this stage isn't nessecary (and i couldn't do it anyway if i wanted to :P )
00:24 <****> just found this image class which seems to do everything i need it to, so if anyones looking something similar, heres the link: http://www.weberdev.com/get_example-4626.html
00:24 <****> only problem is, it only directs people if there Forum_userID is liturally '$'
00:25 <****> yes, that's what you have written
00:25 <****> I want it to be *any* thing as long as it's called "Forum_userID"
00:26 <****> Sorry NilsLindenberg, i'm new to all this :(
00:26 <****> if(isset($_COOKIE['Forum_userID']))
00:26 <****> RusH_: you want to redirect to foo as long as $_COOKIE['Forum_userID'] is set?
00:26 <****> cyth: you make it too easy :)
00:26 <****> PerlJam: yup
00:26 <****> hehe, thanks cyth ^_^
00:26 <****> 'isset' makes sense to me :3
00:27 <****> PerlJam, because I have no time to drill poor newbies right this second
00:28 <****> usually I make it harder
00:28 <****> i'd like to define more error types than the ones defined by php, is there a way to do it, or to do that throwing exceptions doesn't end the script?
00:29 <****> Oyama, trigger_error?
00:29 <****> I'm using linux, currently using just gedit/vim -- is Eclipse pretty much the only larger-scale IDE worth note on the free side of things?
00:30 <****> cyth: trigger_error uses only php defined error constants no? tell me if i'm wrong
00:30 <****> Alconquian: linux is the IDE :)
00:30 <****> lol
00:30 <****> Oyama, oh you want to add your own error_level?
00:30 <****> cyth: yes
00:31 <****> Oyama, I use Zend_Log for that
00:31 <****> it supports it :)
00:31 <****> zend_log, i take a look
00:31 <****> how do I get the number of entries of an array?
00:31 <****> ztcptxm1bx, count()
00:31 <****> ty
00:32 <****> count (array ('a', 'b')) is 2, right?
00:33 <****> ztcptxm1bx: ask php :)
00:33 <****> : x
00:34 <****> if I have a PHP installation compiled with --enable-safe-mode, how can I override it?
00:35 <****> Anyone of any opensource scripts that will read a directory of truetype fonts (ttf) and generate image previews of them, as well as download links?
00:35 <****> *Anyone know
00:40 <****> ktdreyer: I think there is a way to turn it off in php.ini.


Total 29 pages. You are browsing page 1/29.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo