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

Channels


#php

18 October 2007


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

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

--- Log opened Thu Oct 18 00:00:13 2007
--- Day changed Thu Oct 18 2007
00:00 <****> but these can be spoofed
00:00 <****> Hagfish: show your pattern
00:01 <****> probably you are using .*?
00:01 <****> '/.*AA(.*)AA.*/i'
00:01 <****> hmm
00:01 <****> god bless and good night
00:01 <****> first .* is too greedy :)
00:01 <****> ah, clever
00:02 <****> Andy_: Ok so what should I do to be sure?
00:02 <****> is_int()
00:02 <****> I mean mysql_escape_string won't work on integers, so if there is integers, then something will go wrong. Right?
00:02 <****> you can remove external .*
00:02 <****> bovn: no
00:02 <****> Andy_: Ok nice
00:03 <****> http://www.php.net/is_int
00:03 <****> Naktilbalda: You mean it will work either way?
00:03 <****> then you know it is an int
00:03 <****> i would trim it too
00:03 <****> Hagfish: i wonder why you want to search for that instead of making the data esiear to search
00:03 <****> Andy_: So if_int($var) { trim($var) }
00:03 <****> ?
00:03 <****> real_escape don't care, is it number, text or binary, it just escape unsafe symbols
00:03 <****> oh i mean if is_int(....
00:03 <****> zircu: easier to search? like replacing AA with a single character?
00:04 <****> yea, if(is_int()){process}
00:04 <****> Andy_: Ok thanks a lot
00:04 <****> no worries
00:09 <****> is there a php function to get rid of chars like this?
00:09 <****> "YOU&apos;R STRONG YOU CAN BEAT THIS!"
00:10 <****> the &apos;
00:10 <****> the opposite of htmlentities.
00:10 <****> does any easy way exists to take a physical array in php memory and dump it to a string of php code that is that array?
00:10 <****> http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos
00:11 <****> jonwage: serialze()
00:11 <****> jonwage, I didn't get that physical memory thing. is var_dump what you want? or it's something more nerd?
00:11 <****> jonwage: probably var_export. var_export produces code that can be used in php. However, it won't work for resources or objects.
00:11 <****> erm, serialize().. sorry
00:11 <****> I basically just have an array and i want to write it to a php file as the php code it would take to recreate that array
00:11 <****> jonwage: var_export
00:12 <****> ok..
00:12 <****> and that produces php code?
00:12 <****> jonwage: yes... read the manual...
00:12 <****> thanks
00:17 <****> what is more efficietnt while or foreach
00:17 <****> or what takes less server load
00:18 <****> PaulB: use that is more suitable for your situation
00:18 <****> any reason why PDO w/ php 5.1.6 would not be able to run a query that PDO w/ 5.2.3 can?
00:18 <****> 5.1.6 returns bool(false), whereas it works w/ the other
00:19 <****> http://www.php.net/while says foreach is faster
00:19 <****> k
00:19 <****> if you will try to use one instead of other, probably you will have to use additional code that kills all efficiency :)
00:20 <****> PaulB: don't forget 'for'
00:20 <****> k
00:21 <****> _dinosaurus: 5.1 is not something to use 5.2 is more stable
00:21 <****> it is faster for array traversing
00:21 <****> (look at the last comment)
00:21 <****> zircu: looks like it works when i disable the query before it. hm.
00:21 <****> ah
00:21 <****> hm
00:21 <****> but try to use foreach with mysql_fetch_array() :)
00:21 <****> Naktibalda: yeah :D
00:23 <****> Hmm
00:23 <****> If you use a header("Location:") within an IF and add a continue clause, will it continue or just terminate?
00:24 <****> continur
00:24 <****> Okay cheers
00:24 <****> JordanC: header does not terminate execution. You probably shouldn't need to add a 'continue caluse'
00:24 <****> use exit() after header location
00:24 <****> Yeah
00:24 <****> Already done -- I was just curious, that's al
00:24 <****> l
00:26 <****> if speed is an issue - check these rules http://reinholdweber.com/?p=3
00:27 <****> Hey, I need help with this : http://rafb.net/p/4t9U2Q74.html
00:27 <****> hm
00:28 <****> alex_funky_dj: what is wrong?
00:28 * zircu waits for question for pastbin
00:28 <****> I'm just making a HTTP handler anyway
00:28 <****> Andy_: nice link
00:29 <****> thxs
00:29 <****> how do i descide whether or not to use pear http authentication plug in
00:29 <****> dont
00:29 * AlReece45 adds a bookmark
00:29 <****> roll dice
00:29 <****> do you use delicious?
00:30 <****> not too much yet :-/
00:30 <****> i am a fan
00:30 <****> Andy_: i will argure this list
00:30 <****> hmm, fixed my issue, seems google video's flash thing does something odd :/
00:30 <****> i know, but it is a start if people are arguing about while/foreach
00:30 <****> why not Andy_
00:31 <****> this is entirely the wrong channel
00:31 <****> i am not a fan of PEAR
00:31 <****> why?
00:32 <****> Andy_: #1 should be read below and apply it to your situation
00:32 <****> PEAR is quite good
00:32 <****> Some packages within PEAR are good.
00:32 <****> i prefer to just use the functions i need
00:32 <****> i would suppose it depends on the application...
00:32 <****> which version of pear?


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo