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: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-26
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
Next >
[01:21]<vnxsvnv>killerspam: you there?
[01:21]<ajfmnz>ZorroSwordsman, so what are you asking ? You want us to write your script ? Start with simple things
[01:22]<zjzzjswjzdsdrg>no... you just ask what I was using preg_match, and I told you I don't know because I didn't write it... I'm just modifing it... :S
[01:22]<zjzzjswjzdsdrg>why I was using preg_match*
[01:22]<grgjvnax>Error: Unknown column 'nanotech' in 'where clause' how would i use php to contain this error, and echo it in a more neater place? ; )
[01:23]<sxndrfn_drrya>hm
[01:23]<ajfmnz>ZorroSwordsman, we're supporting PHP authors here
[01:23]<ajfmnz>nanotech, just use mysql_error() where you want it to be
[01:23]<zjzzjswjzdsdrg>uhh... this is for php help right? I just needed help with pregmatch
[01:24]<ajfmnz>then ask a proper question
[01:24]<lxlmrgm>Can someone help me im trying to insert my files as an array into mysql
[01:24]<lxlmrgm>its not happening
[01:25]<ajfmnz>phpmand, paste your actual code on a pastebin
[01:25]<zjzzjswjzdsdrg>I already ask it, and was told to use angle backets
[01:25]<rdvxzrwff>#regex
[01:25]<zjzzjswjzdsdrg>you said I didn't need to
[01:25]<zjzzjswjzdsdrg>question asked
[01:25]<zjzzjswjzdsdrg>good greef
[01:25]<ajfmnz>ZorroSwordsman, I said you didn't have to escape them
[01:25]<ajfmnz>different story
[01:25]<zjzzjswjzdsdrg>I know, and that was in regards to my question... goodness
[01:26]<zjzzjswjzdsdrg>then you ask me why I was doing it the way I was, and hell if I know. ROFL
[01:26]<ajfmnz>you're just talking about a premade regex, you've no idea about regexes, you don't even tell us what you're trying to match, how the hell am I supposed to help you ?
[01:26]<ajfmnz>I'm no medium as far as I know.
[01:26]<rdvxzrwff>just a suggestion, it's always a good idea to understand what your modifying
[01:27]<vnxsvnv>you're
[01:27]<cyffnzslrd>:)
[01:27]<zjzzjswjzdsdrg>dang colder, you ask me why I was using pregmatch, and I said it's because the script I'm modifiing was... and jokingly I gave you the link and told you to ask the guy that wrote it... grrr
[01:28]<ajfmnz>ZorroSwordsman, so what ? if you want to know how to modify his script, ask him.
[01:28]<zjzzjswjzdsdrg>dang quit making things complicated. :P
[01:28]<ajfmnz>again, we supports PHP authors. If you've no idea about PHP, go learn first and come again with a precise question
[01:29]<aas>does nobody know of free smtp servers I can use to send mails using the swift php class
[01:29]<zjzzjswjzdsdrg>I know php but not to the extent u do... I just needed some preg_match help good greef
[01:29]<ajfmnz>you just came here asking "why doesn't it work". The regex could be completely correct but it may not match what you expect it to. So I am asking you why are you trying to match, and why are you using such patterns.
[01:29]<zjzzjswjzdsdrg>and I came with a precise question...
[01:29]<zjzzjswjzdsdrg>$result = preg_match('/^(.*?)(<{.*?}>|<[.*?]>|\n?$)/s',$str,$matches); is there something wrong with that?
[01:29]<zjzzjswjzdsdrg>$result = preg_match('/^(.*?)(<#.*?#>|<!--.*?-->|\n?$)/s',$str,$matches); works fine
[01:29]<zjzzjswjzdsdrg>goodness
[01:30]<cyffnzslrd>tehstev you about bud?
[01:31]<sxndrfn_drrya>hey
[01:31]<ajfmnz>ZorroSwordsman, the regex is correct, nothing wrong in the syntax point of view.
[01:31]<sxndrfn_drrya>is there such a thing as a php 'application server'
[01:31]<sxndrfn_drrya>is sucha thing needed in php?
[01:32]<sxndrfn_drrya>java jakrta seems to have many frameworks liek turbine
[01:32]<rdvxzrwff>there's probably hundreds of "frameworks" for PHP
[01:32]<sxndrfn_drrya>oh
[01:32]<rdvxzrwff>its the latest buzzword
[01:33]<sxndrfn_drrya>oh crap
[01:33]<sxndrfn_drrya>ok
[01:33]<sxndrfn_drrya>screw fraeworks
[01:33]<vnxsvnv_>killerspam: sorry
[01:33]<sxndrfn_drrya>is the tutorial on php.net suitable for people never did programming?
[01:33]<sxndrfn_drrya>im linux admin
[01:33]<sxndrfn_drrya>want to know bit about application building
[01:34]<sxndrfn_drrya>frustrated with sugarcrm
[01:34]<rdvxzrwff>well being a linux admin, I would hope you know perl or bash scripting
[01:34]<rdvxzrwff>php is just as easy
[01:35]<sxndrfn_drrya>I am not a great admin
[01:35]<zjzzjswjzdsdrg>oh crap. I just ran an endless loop. rofl
[01:35]<sxndrfn_drrya>I am trying to improve
[01:35]<sxndrfn_drrya>I can make rudimentary absh scripts and run em
[01:35]<sxndrfn_drrya>makes software releases a breeze
[01:35]<sxndrfn_drrya>bash
[01:36]<sxndrfn_drrya>when i set it to check out code from cvs and compile java its cool
[01:36]<sxndrfn_drrya>like 12 steps executing he he
[01:36]<sxndrfn_drrya>I feel like magaician
[01:36]<ajfmnz>meh :)
[01:37]<zjzzjswjzdsdrg>dang now I have to reset apache
[01:37]<ajfmnz>for an endless loop ? no way...
[01:37]<vnxsvnv_>killerspam: did you try that latest pastebin? 7221
[01:37]<zjzzjswjzdsdrg>well it's not working. :S
[01:39]<zjzzjswjzdsdrg>nm, working. :)
[01:41]<2zdrguc>I have a script that uses the Pear cache. I need to cache an image that is accessed using an <img src> tag - should I set up a separate pear cache in the file that generates the image, or is there a way to have the main php script cache the image as well?
[01:42]<zjzzjswjzdsdrg>well cya all :)
[01:45]<znmpjpp>woha, it depends on when token has beed verified :)
[01:54]<sxndrfn_drrya>is php simpler than squeak?
[01:54]<znmpjpp>'nite all
[01:55]<znmpjpp>'nite tehstev_, and thx
[01:55]<vdlvzz>nite
[02:00]<rdvxzrwff>never heard of squeak?
[02:00]<myvu>hi
[02:00]<myvu>how can I get all the values for an array like this
[02:00]<myvu>array(2) { [31]=> array(1) { ["qty"]=> int(1) } [33]=> array(1) { ["qty"]=> int(1) } }
[02:01]<rdvxzrwff>heh... oh one of those
[02:01]<rdvxzrwff>i'd say lol
[02:01]<rdvxzrwff>that is all
[02:01]<rdvxzrwff>Mitu, you mean print_r()?
[02:02]<myvu>cythrawll the paste is a var_dump
[02:02]<myvu>but as you see the first position of the array has the 31 value
[02:02]<myvu>so if I put echo $array[0]
[02:03]<myvu>there's nothing
[02:03]<sdyvxw606n>Mitu: you want to iterate recursively through the array?
[02:03]<myvu>how can I get the position 0 of an array that has it's fist position=31 by example
[02:04]<sdyvxw606n>reset($array) current($array), I guess
[02:05]<myvu>let me see
[02:07]<myvu>no smithw6079
[02:07]<myvu>doesn't work
[02:07]<sdyvxw606n>what happens?
[02:08]<rdvxzrwff>probably because $array[0] is null
[02:08]<rdvxzrwff>ie... there isnt' one







