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.67 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 >
[20:11]<efzezz>fires: http://us3.php.net/manual/en/reference.pcre.pattern.syntax.php
[20:11]<efzezz>fires: http://us3.php.net/manual/en/reference.pcre.pattern.modifiers.php
[20:11]<efzezz>fires: http://us3.php.net/manual/en/function.preg-match-all.php
[20:11]<efzezz>fires: Start reading.
[20:13]<mzzcz9q>fires: Do not use preg_match as an html parser, use a proper html parser instead
[20:13]<pyzns>why's that MarkR42 ?
[20:13]<pyzns>got any suggestions?
[20:13]<mzzcz9q>fires: Because it's impossible to make a regexp that matches every possible anchor syntax
[20:14]<mzzcz9q>Imagine <a href='someurl'>
[20:14]<mzzcz9q>Or <a href="someurl">
[20:14]<mzzcz9q>Or <a title="something" style="somethingelse" href="someurl">
[20:15]<d0ddrg>Is it true that Aspartame causes Parkinsons Syndrome?
[20:15]<pyzns>yeah, alright
[20:15]<pyzns>so does php have a built in html parser?
[20:15]<mzzcz9q>PHP5 does, it contains libxml's one, in the DOM::loadHTML
[20:16]<mzzcz9q>I mean DOMDocument::loadHTML
[20:16]<pyzns>i'm still suck on php4 though :-/
[20:16]<mzzcz9q>m0dman: Only in the same what that aliens cause crop circles
[20:16]<jddddd>college students?
[20:17]<ddsvd>I'm very confused about w
[20:17]<ddsvd>t this does: foreach ($row as $item) {
[20:17]<jddddd>!+f foreach
[20:17]<lxl-2jv>Try looking at http://php.net/foreach
[20:17]<ddsvd>does that take the first element in $row (which is an array) ?
[20:18]<ddsvd>I'm trying to avoid the foreach loop since htere will only be one element in the array anyway
[20:18]<ddsvd>can I just say $row = $item;
[20:18]<jddddd>misty RTFM
[20:18]<ddsvd>or vice versa, I mean
[20:18]<jddddd>!+enter
[20:18]<lxl-2jv>Don't use the enter key as punctuation. Think in complete thoughts, then type.
[20:18]<ddsvd>I was correcting a typo
[20:19]<ddsvd>I still don't understand what the 'as' is doing, and how I can do it outside of a loop.
[20:19]<jddddd>misty I gave you the link, go read
[20:19]<jddddd>!+g11
[20:19]<lxl-2jv>Guideline #11) ##php is a manual supplement. Read the manual FIRST, If after reading the manual you still have difficulties, then you are welcome to ask questions in ##php
[20:19]<cs>misty $row=$array[key($array)]
[20:19]<ddsvd>Thank you, ks. That makes sense
[20:19]<cs>that's for short
[20:20]<cs>replace [] with [$key]
[20:20]<ddsvd>ks: thanks, I can figure it out, wouldn't want you to get in trouble for saying too many sentences in a row!
[20:20]<cs>np
[20:26]<cudnfc>thx for ya help guy, after some changes in the nat and such the remote ip worked a sharm
[20:27]<pzsvzfzzsyzg>Solar, Prado, Yawp, Cake, Mojavi, zend framework... where/what can i read to compare them?
[20:29]<zdzxzzmfdgzx>PastaFrasian: Google
[20:29]<zmzycnz>quick question for you all...
[20:29]<zmzycnz>is it possible to store classes within an array?
[20:29]<gn2djoo>hi, im having tremendous difficulty fixing this problem: http://pastebin.com/711810 - 'We would like to thank... is $_POST[text]
[20:29]<zdzxzzmfdgzx>jdaiker: Try it and see.
[20:30]<gn2djoo>and the post[text] doesnt have any double or single quotes in it
[20:30]<mzzcz9q>jdaiker: No, you can only store objects in an array not classes. Of course you can store class names. But probably what you're trying to do is store class instances (i.e. objects) in your array, which is fine
[20:30]<zmzycnz>richardlynch: I think I can store the class in the array, but I'm having trouble calling the functions that are defined within the class
[20:31]<wygduvv>jdaiker: class != object
[20:31]<wygduvv>object is an instatiated class
[20:31]<mzzcz9q>jdaiker: Perhaps if you've serialised your array then unserialised it, you've done so before the class definition exists
[20:31]<zdzxzzmfdgzx>jdaiker: How are you trying to call the functions?
[20:31]<wygduvv>jdaiker: what are you trying to do
[20:31]<suruzr>hi all
[20:32]<pzsvzfzzsyzg>thank you all! byebye
[20:32]<zmzycnz>I defined my own class to help me create PHP images
[20:32]<suruzr>Is there anybody who knows something about MVC ?
[20:32]<nzzzmz>how can i access the value of the first key in an array without knowing the key name and without array_shifting (i.e. deleting) the first element?
[20:32]<zmzycnz>I use the class to automatically space out text, make text different sizes, etc
[20:32]<pgggdwysgo1>Hello1
[20:33]<pgggdwysgo1>I have a strange problem with my script...
[20:33]<zmzycnz>and I want to define all of the classes at once, but need them in an array so that I can reference the class "above" it in the array
[20:33]<wygduvv>jdaiker: $ary['key']=new ImageClasse();
[20:33]<zmzycnz>as each class needs info from the previous one
[20:33]<wygduvv>jdaiker : $ary['key']->method();
[20:33]<pgggdwysgo1>I have this code:
[20:33]<pgggdwysgo1>$table .=<<<TAB
[20:33]<pgggdwysgo1> <INPUT type="submit" name="Invia" value="Modifica articolo!"></td>
[20:33]<pgggdwysgo1> </tr></FORM>
[20:33]<pgggdwysgo1></table>
[20:33]<pgggdwysgo1>TAB;
[20:33]<wygduvv>jdaiker: you want to use a node tree probably
[20:34]<wygduvv>jdaiker: or some kinda linked list not an array of objects
[20:34]<wygduvv>someone kick pennywise
[20:36]<zdzxzzmfdgzx>nebmo88: text is a reseved word, so it's a REALLY bad fieldname. You'll have to put it like 'text' every time you use it if you want to keep using it.
[20:36]<nydp>nebmo88: try to send double quotes to mysql instead of single quotes
[20:36]<wygduvv>nebmo88: dont ever use barewords
[20:36]<gn2djoo>ok
[20:36]<zmzycnz>winmutt: $ary['key'] = new ImageClasses(arg1, arg2, arg3, $ary['$key-1']-method() );
[20:37]<wygduvv>jdaiker: uhm... go read up on nodal trees or linked lists on wikipedia
[20:37]<zmzycnz>that's ultimately what I need.. the current key class needs to call a function from the previously defined class
[20:37]<wygduvv>jdaiker: thats pretty aweful looking but it will work
[20:39]<zmzycnz>winmutt: ah, it does work.. just have to "prime the pump" by declaring the first class by itself (without a reference to a previous class)
[20:39]<zmzycnz>I was trying to get $ary[-1] and that's where my problem was
[20:39]<zmzycnz>thanks for the help everybody
[20:41]<gn2djoo>nimf: if i send double quotes would it not close the sql statment ?
[20:41]<gn2djoo>$sql = "UPDATE and at the end ";
[20:42]<wygduvv>jdaiker: what you should really do is pass a reference to the previous object to the new constructor
[20:42]<wygduvv>jdaiker: that would be much cleaner and more oo like
[20:43]<zpzzznff>TML, caffinated
[20:43]<zpzzznff>if you are teaching someone for the first about HTML and its stateless nature, what is a good way to really make your pupil understand how the internet being stateless relates to the client server model
[20:43]<zmzycnz>winmutt: how would I go about that (I know OO and references, but not in PHP)
[20:43]<wygduvv>there is no such thing as the internet
[20:43]<wygduvv>only clouds
[20:43]<zpzzznff>winmutt, Al Gore would disagree :)
[20:43]<zmzycnz>it's the interweb :)
[20:43]<zpzzznff>internet, its a connection of networks you dolt :P







