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.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-18
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
48
49
Next >
[14:04]<rgjdrfd>Acs, pastebin the script :)
[14:04]<aas>wait wait
[14:05]<aas>I've seen the error lol
[14:05]<rgjdrfd>=o
[14:05]<rgjdrfd>:D
[14:05]<aas>I forgot that I changed the images directory
[14:05]<aas>sorry
[14:05]<aas>lol
[14:05]<rgjdrfd>;)
[14:05]<gvyavjz>johndoe: sorry I was afk, no I use json
[14:05]<aas>hahaha
[14:06]<aas>thanks for the help Anomaly
[14:06]<rgjdrfd>np :)
[14:06]<aas>it now works :)
[14:06]<pegged>hi...
[14:06]<rgjdrfd>hi
[14:06]<pegged>I have a statement ...
[14:06]<pegged>$HD_Form -> FieldEditElement ('name, type')
[14:06]<pegged>when I add name-one
[14:06]<pegged>it won't work...
[14:06]<ajfmnz>simmerz, isset() works pretty fine on array indexes, but if you want to be able to have values being NULL, isset will return false and array_key_exists will return true
[14:07]<pegged>the issue is with the hipen..
[14:07]<ajxgmjn>nvictor: guess you are right about JSON. JSON is the way to go for my case
[14:07]<pegged>how do I get the hiphen to work in
[14:07]<pegged>$HD_Form -> FieldEditElement ('name, type, name-one');
[14:07]<rgjdrfd>frenzy, you could try \-
[14:07]<rgjdrfd>not sure if it would help?
[14:08]<pegged>nop didnt work
[14:08]<gvyavjz>johndoe: but xml is more portable than json
[14:08]<ajxgmjn>nvictor: any function on php to generate JSON format?
[14:08]<gvyavjz>johndoe: yes
[14:08]<pegged>anyone?
[14:08]<gvyavjz>johndoe: let me send you the link :)
[14:08]<ajxgmjn>nvictor: thanks
[14:09]<pegged>please can someone help me with this [ $HD_Form -> FieldEditElement ('name, type, name-one'); ]
[14:10]<pegged>it doesnt work becuase of the - (hiphen)
[14:10]<rsr61>jestery: didn't work the parser don't give error, but when i try to get the query only return the info until the < , like this , "select * from xpto where a < 3" return -> ""select * from xpto where a "
[14:10]<gvyavjz>johndoe: http://mike.teczno.com/JSON/READ-ME-JSON.phps
[14:10]<gvyavjz>johndoe: all you have to do is download this http://mike.teczno.com/JSON.tar.gz
[14:11]<ajxgmjn>thanks
[14:11]<gvyavjz>johndoe: I've writtent a little class, let me paste it
[14:11]<gvyavjz>-t
[14:11]<ajxgmjn>ok
[14:12]<pegged>?
[14:13]<gvyavjz>johndoe: http://phpfi.com/132630, but you have to modify it a bit, since it's part of a complete system of commands coming from client...
[14:14]<ajxgmjn>ok thanks alot man
[14:14]<gvyavjz>no problem
[14:14]<ajxgmjn>nvictor: when are you going to try xml?
[14:15]<pegged>I have a PHP statement... $HD_Form -> FieldEditElement ('name, type, name-one'); but it wont work becuase of the hiphen... what is the correct syntax ?
[14:15]<gvyavjz>nvictor: whenever the client can't decode JSON, you see xml is well know even with mobile phones
[14:16]<gvyavjz>s/know/known
[14:16]<gvyavjz>json is just growing
[14:16]<pegged>?
[14:17]<ajxgmjn>nvictor: are you saying xml is more stable than json?
[14:17]<wjlllrws>o.O
[14:17]<gvyavjz>johndoe: no, this is not a stability question, xml -> w3c
[14:17]<ajxgmjn>oh yes
[14:17]<ajxgmjn>:)
[14:18]<_dugk_>say I have a simple "select * from table where -blah-", what is the best way to test if that row exists? I have written it many different ways, and was hoping for some input on which way you guys think is best
[14:18]<aas>when I am listing the files in a directory
[14:18]<aas>is there any way of knowing the extension of the files
[14:19]<aas>or do I have to use explode to get the extension?
[14:21]<ajxgmjn>nvictor: do you happen to unable to decode JSON?
[14:21]<pegged>I have a PHP statement... $HD_Form -> FieldEditElement ('name, type, name-one'); but it wont work becuase of the hiphen... what is the correct syntax ?
[14:22]<rymrg`>frenzy: can you type the actual php?
[14:23]<pegged>its basically greping data from mysql
[14:23]<rymrg`>frenzy: can you type the actual php?
[14:23]<pegged>you mean the whole page?
[14:24]<pegged>its only the hiphen thats causing the problem
[14:24]<rymrg`>no, the specific line of PHP that is giving you the error, and the error itself
[14:24]<pegged>well there is no error
[14:24]<pegged>it simply wont pull any data
[14:25]<rymrg`>okay, so ... how exactly are we meant to help you?
[14:25]<pegged>if i remove name-one
[14:25]<pegged>the code works..
[14:25]<rymrg`>frenzy: ... we didn't write FieldEditElement
[14:25]<gvyavjz>johndoe: yes, when it's not well formed
[14:25]<pegged>well I would like to know how I can get the - to work
[14:25]<pegged>the correct syntax
[14:25]<gvyavjz>johndoe: see a http://www.json.org for examples
[14:26]<rymrg`>frenzy: ... the correct syntax for what?!
[14:26]<rymrg`>frenzy: ask the person who wrote the function you are trying to use
[14:30]<ajxgmjn>ok
[14:30]<ajxgmjn>nvictor: in that sense, it will be quite troublesome
[14:32]<rymrg`>I'm going to bed
[14:32]<rymrg`>good night
[14:33]<mgvyrgs__>if you declare some variables and then include or require a file, do those variables become available in the scope of the included file?
[14:34]<ajxgmjn>nvictor: anyway, thanks for the info.. really help alot
[14:34]<aas>if I pass a parameter as null in a function will it go to a default value?
[14:34]<aas>let's say I do this
[14:34]<aas>function hello($msg ="Hello")
[14:34]<aas>code..
[14:34]<aas>and then I call it like this
[14:35]<ajfmnz>devians__, yes
[14:35]<aas>hello(null)
[14:35]<ajfmnz>Acs, no
[14:35]<mgvyrgs__>mmm i thought so
[14:35]<aas>will it go with hello..
[14:35]<mgvyrgs__>doesnt seem to be working though
[14:35]<ajfmnz>check again then, because it works.







