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-07-27
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 >
[06:27]<vggvxfycgfyjgs>yea
[06:27]<rupdg>you need to make sure the session is established before any of the inclusions
[06:27]<vggvxfycgfyjgs>still the same
[06:27]<rupdg>hmm
[06:28]<vggvxfycgfyjgs>i have session.auto_start on in php.ini
[06:28]<vggvxfycgfyjgs>http://artax.homelinux.com/
[06:28]<vggvxfycgfyjgs>check it out
[06:28]<vggvxfycgfyjgs>click on 'music'
[06:28]<vggvxfycgfyjgs>the uname is foo and the pw is bar
[06:28]<vggvxfycgfyjgs>see what i mean
[06:29]<v2r2dd>Hello
[06:30]<v2r2dd> i wrote this template class and just see if any one can give me some oppion on how to make it even better http://hashphp.org/pastebin.php?pid=7758
[06:30]<v2r2dd>i am still working on a foreach loop for the class
[06:31]<vggvxfycgfyjgs>$_SESSION vars are automatically globals, right?
[06:31]<v2r2dd> yes
[06:31]<vggvxfycgfyjgs>man, this is perplexing
[06:32]<sajvnly>anyone got any clue how to have php handle 192.168.2.1 as a ip/string and not a int?
[06:32]<vggvxfycgfyjgs>gufmn: is it just me or does this make zero sense?
[06:32]<vggvxfycgfyjgs>quotes?
[06:32]<vggvxfycgfyjgs>scotepi: $ip = "192.168.2.1";
[06:32]<vggvxfycgfyjgs>right?
[06:32]<v2r2dd>you can type cast
[06:33]<gjsjw>wow compiling in GD really sucks ass
[06:33]<sajvnly>thats kind of what i have
[06:34]<sajvnly>but its not sorting right
[06:34]<yvzn2rf>GoSox: "compiling" ?
[06:34]<gjsjw>wtf this thing keeps complaining about libjpeg even though I just installed it
[06:34]<yvzn2rf>oh
[06:34]<sajvnly>http://rafb.net/paste/results/Md5tpe44.html
[06:35]<rupdg>teethlikelions: for some reason the parent frame isn't picking up the session, without seeing all of the code involved, it's hard to say
[06:35]<rupdg>don't have time to look over it all right now anyway
[06:35]<rupdg>sorry
[06:36]<vggvxfycgfyjgs>gufmn: well i appreciate the effort anyhow. thanks
[06:36]<vggvxfycgfyjgs>it's just so annoying because it's picking up all my other $_SESSION vars
[06:36]<gjsjw>Its telling me "configure: error: libjpeg.(a|so) not found.", but libjpeg.a IS in the libjpg source folder, which i specify with the --with-jpeg-dir switch
[06:38]<ryddygxrgssjg>GoSox follow the instructions from boutell.com/gd (FAQ) regarding flags and also make sure that youve got atleast libjpeg6-2 and headers installed
[06:41]<lynzr>nite kiddos
[06:41]<gjsjw>seems like GD or ImageMagick are my only two choices, and neither of them will work for me :-(
[06:41]<ryddygxrgssjg>nite nite, i'm off too
[06:42]<alnr>GoSox: php's configure thinks a --with-x-dir is a dir that contains at least a lib/ and include/ directory. the lib/dir must contain libwhatever.(a|.so) and the include must contain relevant .h files.
[06:42]<alnr>so it's not about finding libwhatever, but finding that directory structure.
[06:44]<alnr>and usually the dir that you pass is either /usr or /usr/local
[06:44]<rdvxzrwff>jpeg, yes
[06:47]<gjsjw>i compiled jpeglib and installed
[06:48]<gjsjw>do i also compile gd
[06:48]<gjsjw>or just php
[06:48]<gjsjw>with gd
[06:49]<txnsxrmjw>where in the help docs does it talk about get and set ?
[06:50]<rdvxzrwff>TheShadow, does this look like php.net/search?
[06:51]<txnsxrmjw>cythrawll: of course not but had I been able to locate it I wouldn't have asked here
[06:51]<rdvxzrwff>try overloading under php 5 classes and objects chapter 19
[06:53]<txnsxrmjw>cythrawll: thanks for that, but I thought php 5 classes supported properties like c#. Was I wrong?
[06:54]<gjvgedns|svjede>hi can someone give me an example of an unlink syntax please?
[06:56]<gjsjw>this fucking thing still can't find the jpg library
[06:56]<gjsjw>this sucks
[06:56]<gjsjw>not worth the headache AT ALL
[06:57]<rdvxzrwff>TheShadow, I am not familiar with anything microshaft
[06:57]<rdvxzrwff>what about properties with c#?
[06:59]<txnsxrmjw>cythrawll: in c# you can have a private variable like int m_iCount; and define a property like public int Count { get { return m_iCount; } set { m_iCount = value; } }
[07:00]<txnsxrmjw>then on a class object just call myObj.Count (instead of having an accessor function
[07:00]<clxw00>anyone knows where to find a user login/registeration example?
[07:00]<rdvxzrwff>you can do the same thing TheShadow why would you need documentation on that?
[07:00]<clxw00>i need good quality... not some crappy three line script.
[07:01]<txnsxrmjw>cythrawll: cause I was getting an error and wasn't sure if I was implimenting it correctly
[07:02]<rdvxzrwff>what error?
[07:02]<txnsxrmjw>syntax
[07:02]<rdvxzrwff>that was extremely discriptive
[07:03]<txnsxrmjw>when I define public Count { get { ... } set { ... } } it says expecting function parameter list ()
[07:06]<rdvxzrwff>public $count;
[07:07]<rdvxzrwff>public $count; public function getCount(){ $this->$count; } public function setCount($count){ $this->count = $count; }
[07:08]<txnsxrmjw>cythrawll: yea but thats with accessor methods. I thought php 5 classes supported properties but apparently it doesn't. Thanks for helping me though
[07:10]<pnvnzfa>How do I execute system commands?
[07:11]<rdvxzrwff>TheShadow, what are you talking about?
[07:11]<rdvxzrwff>of course php 5 supported properties
[07:12]<pnvnzfa>I don't know the name of the function to use.
[07:12]<rdvxzrwff>public $count; private count; <--- are properties when declared in a class
[07:13]<clxw00>can anyone tell me how to organize page navigation in a multi-page signup script? signup.php is page1, for page2, do i use signup2.php?
[07:17]<rxrsvrw>depends
[07:17]<rxrsvrw>you could always use a get value or cookie to indicate which page they are on
[07:17]<rxrsvrw>for instance if you have 'nice' urls /signup/1/, /signup/2/ etc
[07:20]<clxw00>ok
[07:24]<sajvnly>can anyone help me with this foreach loop? http://rafb.net/paste/results/Md5tpe44.html it doesnt return the ips in the right order, i beleve its thinking the ips are int, like 172.1841
[07:25]<mz-mznw>if there's multiple periods i think its treated as a string
[07:25]<sajvnly>da-drew, thats what i would think but look how its sorted
[07:26]<cxu>I fail to see a way to filter even and odd keys from an array without flipping the keys and values beforehand. Would anyone know of a way?
[07:27]<jdddd>%
[07:30]<clxw00>What is the difference between require_once and include??
[07:35]<rdvxzrwff>a better question is what is the difference of require_once and include_once
[07:35]<rdvxzrwff>or the difference between include and require
[07:35]<mz-mznw>if its already been included it wont include it again
[07:35]<rdvxzrwff>or the difference between include and include_once
[07:35]<rdvxzrwff>or require or require_once
[07:36]<mz-mznw>require is the same as include except produces a fatal error if it cant find the file
[07:36]<ayzzsvnz>er, sorry i dont know what came over me
[07:36]<rdvxzrwff>but don't mix and match kph100
[07:36]<fyr>re
[07:36]<ayzzsvnz>rheeee!
[07:37]<fyr>hehe
[07:45]<clxw00>s







