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: 1822.57 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
Pages: < 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Next >
[13:27]<zjw>whats the function meant to do?
[13:27]<djjsnd>last_insert_id();
[13:27]<zjw>can you pastebin it?
[13:28]<gjzmj>moosey: thanks. im learning new functions every day :)
[13:28]<djjsnd>and your next question will be, what if someone else inserts into the db
[13:28]<djjsnd>the answer is, don't worry its session based, so will only return that scripts last insert
[13:29]<gjzmj>naaa, its only a uni project so im not too worried about that situation....but if i was the answer would be something along the lines of?
[13:29]<gjzmj>ahh too fast...
[13:29]<dnznvx>moosey: doesn't your computer rot away? :)
[13:29]<mzzayg>row: yep, w8
[13:29]<djjsnd>we dried it very good first but it's starting to stink
[13:29]<gjzmj>moosey: muchos gracias, your a life saver
[13:29]<mzzayg>row: http://phpfi.com/117287
[13:30]<mzzayg>row: f.. w8, i think i found it :D
[13:31]<mzzayg>row: my fault, it's working
[13:31]<mzzayg>:D
[13:31]<mzzayg>sorry :D
[13:31]<zjw>Marcin: why are you not using preg_replace?
[13:31]<mzzayg>row: a mistake with variables :d
[13:31]<mzzayg>hmm
[13:31]<mzzayg>well i dunno why i'm not using that :d
[13:31]<zjw>it would be faster....
[13:31]<czysl>anyone know how to output an ods toan html table?
[13:32]<mzzayg>erm
[13:32]<mzzayg>hm
[13:32]<dnznvx>krisp: what's an ods toan?
[13:32]<mzzayg>i forgot one function :/
[13:32]<czysl>file :P
[13:32]<czysl>sorry
[13:32]<czysl>feeling ill today
[13:32]<mzzayg>what is the name of a function that will remove the elements like : <i>, <u> from html code?
[13:32]<czysl>openoffice cal docyment :P
[13:33]<czysl>Marcin striptages
[13:33]<mzzayg>krisp: thx :D
[13:33]<dzvnaxrud>I have an if statment which says if ($process == %2B) etc although the part where is has %2B is creating an error the reason for the %2B part is that i am just translating that form a GET to a + does anyone know how to make php like the %2B part of this small piece of script
[13:33]<dnznvx>krisp: get some sleep, dude
[13:33]<dnznvx>:P
[13:33]<czysl>i'm ill - not tired :
[13:33]<czysl>O
[13:33]<czysl>:P
[13:33]<dnznvx>krisp: kind of the same :)
[13:33]<zjw>striping removes them out right does it not?
[13:34]<czysl>yuh huh
[13:34]<ymrg>i really need help since i cant mange to do that in regex.. i have a form <input type="submit" value="Submit dkhfsdkhfksd"> looks like this the value can be without the quotes with 1 quote or with 2 quotes like in the exmple, i need to get the value but i really busting my head off.. thanks
[13:34]<ymrg>value location can be changeable like this <input value="Submit dkhfsdkhfksd" type="submit">
[13:35]<ymrg>what i have so far is this.. but without no luck <input[\s\S]*?value=["\']?([\s\S]*?)["\']? [\s\S]*?>
[13:36]<dnznvx>moosey: arggg.. I found the problem
[13:36]<rymrg>mrtechguy: ... %2B is a string, quote it like a string?
[13:36]<dzvnaxrud>double or single?
[13:36]<dnznvx>I've so many iterations and all that I missed a header("location: " somewhere, which apparently is called
[13:36]<djjsnd>:)
[13:37]<djjsnd>always assume your wrong
[13:37]<dzvnaxrud>here it is
[13:37]<mzzayg>row: ok now it's working perfectly :D
[13:37]<dzvnaxrud>http://pastebin.ca/55078
[13:37]<djjsnd>i know too many good coders now working at mcdonalds because of self righteousness :)
[13:38]<dzvnaxrud>moosey: why would coders be working at mc donalds
[13:38]<dnznvx>eheh
[13:38]<ewl7q7>lol
[13:38]<djjsnd>cuz i fired them :)
[13:38]<zjw>ian: '/\<input type="submit" value=(?:"(.+)"|\'(.*)\'|(.*))>/iU'
[13:38]<dzvnaxrud>ok
[13:38]<djjsnd>too lazy to test their shit, write 200 lines of code without testing, then i get the rest of the week telling em how stupid they were
[13:38]<rymrg>mrtechguy: I suggest reading the manual
[13:39]<zjw>and if you don't have to match submit you can simply replace it with a non capturing .*
[13:39]<dzvnaxrud>the manual is very very very logn
[13:39]<zjw>er
[13:39]<djjsnd>since im the one who gets the go thru all their code, they usually have 1 bug per function
[13:39]<dnznvx>moosey: it's not that.. it's a class I have for a long time, which I expand all the time
[13:39]<fjzm_>PHP looses my $_SESSION during payment transactions ... it goes: mysite -> payment portal -> my site .... and when it comes back, nothing is inside $_SESSION any more
[13:39]<zjw>ian: '/\<input(?:.*)value=(?:"(.+)"|\'(.+)\'|(.+))>/iU'
[13:39]<dzvnaxrud>I really don't have 10 years to read the manual
[13:40]<dnznvx>moosey: so then I forget what is exactly done under the hood, as it works fine
[13:40]<djjsnd>yereth, whats funny is when i came in, the first thing i WAS going to say, was header
[13:40]<rymrg>mrtechguy: that's excellent, because it certainly doesn't take 10 years to read
[13:40]<fjzm_>anyone? ... really critical problem :(
[13:40]<dnznvx>but then some side-effect conflicts with a new functionality
[13:40]<dzvnaxrud>well it takes longer than a day
[13:40]<ymrg>thanks
[13:40]<djjsnd>but not knowing the whole situation i refrained :?
[13:40]<zjw>idan sorry :/
[13:41]<zjw>got your name wrong there
[13:41]<dnznvx>moosey: well yeah, I juts don't a sitewide search on 'header("location:' :)
[13:41]<zjw>'/\<input(?:.*)value=(?:"(.+)"|\'(.+)\'|(.+))\s*>/iU'
[13:41]<ymrg>row: <input value="Submit dkhfsdkhfksd" type="submit"> dosent work with this exmple
[13:41]<zjw>would be safer infact
[13:41]<zjw>new one does
[13:41]<zjw>checks
[13:41]<dnznvx>moosey: heh.. I thought this wasn't it, but I missed a line.. that's the problem when you write large classes in php :)
[13:41]<zjw>ah k
[13:41]<zjw>one sec
[13:42]<ymrg>and not with this <input value=Submit dkhfsdkhfksd type="submit">
[13:42]<ymrg>=)
[13:42]<rymrg>mrtechguy: you don't have to read the whole manual to work out what quotes do what, stop being stupid.
[13:42]<rymrg>mrtechguy: if you're a "tech guy" you should be able to navigate a manual
[13:42]<dzvnaxrud>could someone please just tell me whats wrong with it because i wish not to read the manual at this point in time
[13:42]<ymrg>row i have tryed so many ways.. thanks for helping :)
[13:42]<dzvnaxrud>i am a light sound tech guy not a manual reading tech guy
[13:42]<rymrg>mrtechguy: QUOTE THE STRING
[13:42]<dzvnaxrud>double or single quotes







