| |
| |
| |
|
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 29
Comments:
<0> thanks I`ll check it out <1> yup <2> How can I check if people are not inputting html code in my forms in order to hijack my website? <3> Equin, you can use htmlspecialchars() to output the HTML entities instead of HTML code... <1> Equin: you can do striptags <1> er... strip_tags <4> can you do a case-insensitive str_replace? <3> str_ireplace(); <5> hello <5> i've got troubles in making apache-2.0.55+php-5.1.2 to work with mysql-5.0.18 <4> thanks TeXHaPb <3> LLPGuest, glad to help you! <1> NeverBorn: it'd be easier to help if you told us more <5> ok
<5> i've built mysql and set the unix socket path to /var/run/mysql/mysql.sock <5> i've built php with the options --with-mysqli=shared,/usr <6> is it possible to run a php-function in a preg_split ? Also like: preg_split("/abc:([0-9]+)/i", $text, -1, PREG_SPLIT_DELIM_CAPTURE); <- so it only vill split when the "testfunc" returns true? <5> and with --with-mysql-sock=/var/run/mysql/mysql.sock <5> i've added the mysqli extension to php.ini file <5> when i try to open a mysqli connection, all i get is "can't connect to local mysql server through socket '/var/run/mysql/mysql.sock'" <5> both httpd and mysqld daemons are running... <1> erm.. thats more of a mysql issue, than php issue - i'd recommend going to #mysql and ask the same questino <5> the file /var/run/mysql/mysql.sock is there... I don't know where the problem is <5> ok, thx <1> yup <7> trim($value, "\n..\r..\0..\x0B"); <-- this should in theory not trim \t right? <8> DogWater, in theory <9> what do you get when you compile php without java support? <7> I just used rtrim instead since the newlines are always at the end. <9> is it -critical- to have? <10> crashmatrix_: If you compile PHP without Java support -- You get PHP without Java support! <11> but... <10> *nod* <12> What to do to avoid such msg: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 32768 bytes) in /home/gilles/.sinologie-server/includes/culm.inc on line 107 <11> xiaogil: why do you need so muhc memory anyway? :P <11> xiaogil: you can edit the maximum memory usage i php.ini <11> xiaogil: the parameter is called memory_limit <12> niraj: to put a complex dictionary (from mysql database) <12> niraj: I put a dictionary into variables <11> o_O <13> so <13> hello... <5> ok, i asked the same question to the mysql channel, and they told me it's a php problem <4> if i need to use strireplace, but i only have php 4 is there any way to use it anyway <13> Is there an exempla of a system that theres, add, edit, delete records into a database(mysql), using php... <11> xiaogil: ever considered only loading into memory the data you'll only actually use? :P <4> like add the code myself? <13> Id like to see a example to try to develop my self the myone.... <12> niraj: I'll think about it... thanks <13> Is is dificult ? <13> To have a little system, using forms <7> $newarry = "$zonenum[$i]$endnum[$i]"; can anyone tell me whats wrong with that line? i'm trying to make a 2 value array <7> err sorry its $newarry[] <1> er... $newarray = array($zonenum[$i], $endnum[$i]); <7> itrebal: isnt that going to make 0 => $zonenum[$i] and 1 => $endnum[$i]? i'm trying to make 0 => [$zonenum[$i]][$endnum[$i]] <1> ..wah? <7> an array where one key has two values... <1> sorry, $newarray[] = array($zonenum[$i], $endnum[$i]); <7> itrebal: I already have two arrays; one is zonenum and one is endnum, and im trying to put the values of those into a single array <1> ok <4> how do i replace a part of a string with another string <1> then $newarray[] = $zonenum[$i].$endnum[$i]; you can only access teh entire value, not either part <4> i tell which part by the position <14> hi <4> i know c++ has that <14> I need a specific directory within the same virtualhost not to use php5 (installed), but php4 (installed, too). any way to do this <4> DocTomoe: i think with the whole addtype thing in .htaccess <4> set all .php to be processed by php5 in that folder <8> LoadModule doesn't work in a per virtualhost fasion. <8> LLPGuest, both PHP4 and PHP5 use the same mime type <1> Touqen: d'you have any links on commenting style? i have an awfull one that needs to be replaced <8> itrebal, Commenting style? <8> Don't give comments for anything that's obvious.
<15> how do I do a multi line comment? <15> . /* */ <15> ? <8> pimpwell, Yes <15> hmm <1> Touqen: i mean.. i'm an awfull comenter, i'm looking at some pear scripts and various other public scripts, and trying to learnf rom theirs <8> itrebal, It's just something that you learn to get better at with time. <8> Clearly commenting anything that's obvious is pointless. <8> Comments are best reserved for explanations on why you did something the way you did it. <8> And depending on what you are used to, documenting the parameters for functions. <16> so I've been doing some XML parsing, and I'd like to know whether it's possible to parse S-expressions in a similar, simple way. <17> how do i escape a comma in an sql query? i wanna do something like "select name from table where id like ',$id,'"...but that doesn't work because of the commas...what can i do? <16> either that, or plain S-expression to XML conversion. <1> ok <1> jcurry: what sql DB? <17> itrebal, mysql <1> http://www.nytimes.com/2006/02/03/nyregion/03mattress.html?ei=5088&en=640db6327127f06d&ex=1296622800&adxnnl=1&partner=rssnyt&emc=rss&adxnnlx=1139155208-fpRmK7tmLAJ885DxvHHZYg <1> jcurry: mysl_real_escape_string() <16> anyone knows what I'm talking about? <17> itrebal, use that instead of mysql_query()? <8> jcurry, no <1> Touqen: can you explain this one? <8> I don't see how commas would be causing a problem. <17> Touqen, oops, i'm looking up the docs now <8> Are you _sure_ that's the problem? <8> zce, What is an S-exp? <17> Touqen, sorry for the stpuid question <16> well, have you ever seen Lisp code? <16> http://en.wikipedia.org/wiki/S-expressions <8> zce, Yes. I have seen lisp. <16> S-expressions pretty much map naturally into XML, but for my own reasons I want to write S-exps, not HTML/XML. <8> itrebal, Have you tried to rent property in a major coastal city? <16> well, Lisp code is all in s-expressions. <8> zce, Okay <16> Lisp is a semantics over S-expressions. <8> So what's the problem? <8> zce, I don't need the lisp lesson. <16> S-exp'ed HTML would be like (html (head (title "Hey")) (body (ul (li "This") (li ("list"))))) <8> I just wasn't familiar with the term S-exp. <8> gezzus <8> Keep it up and I'm going to block you. <16> well, do you see how S-exps can be mapped into XML? <17> Touqen, ok, oops, it wasn't the problem...i was missing an ' <8> s/block/ignore/ <8> zce, YES <8> FOR ****S SAKE <16> so, how is there a simple way to convert that IN PHP. <16> Some pre-made library, wh atever? <17> Touqen, thanks <8> Not one that I know of. Have you checked pear? <16> Isn't Pear a VM for dynamic languages? <8> ... <8> pear.php.net <4> could i add a php 5 function to my website <4> even though it uses php4 <16> oh. like CPAN for PHP. <8> And FYI it's parrot that is the vm <1> str_replace('(', '<', str_replace(')','>',$string)); <16> nah, nothing there. <1> hehe <8> zce, An S-exp is just a recursive list. So take a php _array_ and add to it. <16> hmm. I first have to transform a string into an array. <8> Okay. <8> Recursive parser. <8> The parens make it _very_ easy to parse. <16> I'm surprised no one has done it before. <16> Hmm. This is developing into an actual programming project. <8> heaven forfend you actually have to program <1> hehe <18> hello <8> heaven-o <18> have problem configuring PHP5.1 with MySQL5 OS:WinXP. Don't know why, but PHP cant find php_mysql.dll, but others modules like php_gd2.dll found. Where is the problem? extension_dir sett corectly, php_mysql.dll is in that dir. i can't figure out this noncenc. (sry for english) <19> Tokeiito your english is good, tis php_mysql.dll there? maybe you have an old version of it? try copying it to C:\windows or C:\php C:\windows\system32
Return to
#php or Go to some related
logs:
protocol.js ajax bitchx autocomplete nick #php #python mysql 4.0 ORDER BY SUM Rhthymbox libjpeg suse10.1
CELTIC STONEWORK TATTOO #mysql qmail-tcpok: not found
|
|