04:41.48 | *** join/#uphpu jsmith (n=jsmith@smithfam.dsl.xmission.com) |
04:42.00 | jsmith | jbot: OnJoin -jsmith |
04:42.00 | jbot | ok, jsmith |
06:22.17 | *** join/#uphpu jnbek (n=jnbek@c-67-166-97-223.hsd1.ut.comcast.net) |
15:09.21 | *** join/#uphpu wps (n=wps@38.119.178.10) |
15:09.22 | *** mode/#uphpu [+o wps] by ChanServ |
15:33.54 | *** join/#uphpu jsmith (n=jsmith@64.0.192.125) |
16:50.23 | *** join/#uphpu harm (n=harm@70.103.239.58) |
17:01.15 | *** join/#uphpu _psychic_ (n=john@71.32.228.156) |
17:21.13 | *** join/#uphpu jsmith (n=jsmith@64.0.192.125) |
17:21.52 | jsmith | jbot: onjoin -jsmith |
17:21.52 | jbot | ok, jsmith |
17:21.56 | *** part/#uphpu jsmith (n=jsmith@64.0.192.125) |
17:22.03 | *** join/#uphpu jsmith (n=jsmith@64.0.192.125) |
18:04.03 | *** join/#uphpu Alphahawk (n=Alphahaw@70.56.105.158) |
18:04.40 | Alphahawk | Hello |
18:05.00 | Alphahawk | question about a session I am trying to create a logout how do I terminate a session? |
18:08.40 | _psychic_ | try session_destroy() |
18:12.36 | Alphahawk | I looked at that but issue I read that may pose a problem is that if I destroy the session and someone doesn't close out there browser I run into issues later with trying to write sessions. Have you had any experience with the session_destroy();? |
18:21.43 | Alphahawk | _psychic_ okay found it if intrested and that is to do a $_SESSION=array(); |
18:30.14 | *** join/#uphpu fungus (n=fungus@2001:470:1f00:645:20a:95ff:fec5:636a) |
22:43.26 | *** join/#uphpu Epilog (n=duckman@217.129.133.89) |
22:43.30 | Epilog | hi there |
22:43.37 | Epilog | having some problems with classes |
22:43.40 | Epilog | anyone awaken? |
22:44.51 | Epilog | got it |
22:45.02 | wps | go ahead and ask… if they know the answer and want to respond… they will :) |
22:45.12 | Epilog | was doing $this->$myvar instead of $this->myvar |
22:46.04 | fungus | if $myvar = "blah" and you call $this->$myvar it will actually call $this->blah |
22:46.11 | *** join/#uphpu _psychic1 (n=john@71.32.228.156) |
22:46.15 | fungus | also referred to as variable variables |
22:46.36 | Epilog | yes I but I keep getting this warning, Notice: Undefined variable: myvar in /tmp/teste.php on line 16 |
22:46.37 | fungus | http://us2.php.net/manual/en/language.variables.variable.php |
22:46.54 | fungus | That means that $myvar hasn't been defined. |
22:47.00 | macnewbold | also called "soft references" in some places |
22:47.12 | fungus | it should be defined previously before calling it. |
22:49.01 | Epilog | it was |
22:49.22 | Epilog | can I paste 4 line here? |
22:50.55 | fungus | 4, yes |
22:51.41 | Epilog | now I get seg fault in php4 cli |
22:51.44 | Epilog | strange |
22:51.59 | fungus | doh. Got ZendOptimizer installed? |
22:54.15 | Epilog | Zend Extension => 20050606 |
22:54.19 | Epilog | Zend Memory Manager => enabled |
22:54.33 | fungus | nope, those are normal. |
22:56.23 | Epilog | fungus: http://pastebin.com/508962 |
22:57.13 | Epilog | if I do a $this->$str i don't get a warning... |
22:57.17 | Epilog | strange |
22:58.25 | fungus | oh, you aren't using variable variables. |
22:58.39 | fungus | just change your $this->$str to $this->str every time. |
23:00.02 | Epilog | yep |
23:00.11 | Epilog | figured that out after a while :D |
23:00.44 | Epilog | PHP4 doesn't have the protected, public and private members right? |
23:00.48 | Epilog | only php5? |
23:00.54 | fungus | yuppers |
23:00.55 | wps | correct |
23:00.56 | dataw0lf | correct. |
23:01.01 | Epilog | oki |
23:01.13 | Epilog | is there any good reason for still using php4? |
23:01.39 | wps | are there any reasons to continue using it? |
23:01.48 | Epilog | yes :D |
23:01.58 | fungus | only that is is almost universally available. that's it. |
23:02.22 | Epilog | if I have my own server |
23:02.27 | wps | I understand that there are some times when you can't upgrade, such as when you do not administer your box, or if you host multiple clients and they won't update their code, but otherwise, why wouldn't you ugrade? |
23:02.28 | Epilog | and have all made in php4 |
23:02.34 | Epilog | should I change? |
23:03.00 | fungus | If you control your own server and don't plan to move it to a hosted solution, YES use php5 |
23:03.18 | Epilog | is php5 already very stable |
23:03.25 | Epilog | ok |
23:03.33 | Epilog | getta check if its on sarge |
23:03.44 | wps | yes, PHP is plenty-good for prime-time |
23:03.51 | wps | s/PHP/PHP 5 |
23:03.54 | wps | s/PHP/PHP 5/ |
23:04.06 | Epilog | :D |
23:04.08 | Epilog | ok |
23:04.11 | Epilog | one more thing |
23:04.26 | Epilog | I have a lot of funtions in a seperate php file |
23:04.27 | fungus | yay! |
23:04.36 | fungus | very exciting phrase. |
23:04.37 | Epilog | should I pass them to some classes |
23:04.48 | Epilog | I mean |
23:04.54 | fungus | uh oh, I see a flame war coming |
23:05.08 | Epilog | create my own class named menu for everything wth menu |
23:05.27 | Epilog | class auth, every aspect of authentication |
23:05.28 | Epilog | etc |
23:05.29 | wps | Epilog: that is a pretty hard question to answer without knowing more about your project/application/site |
23:05.40 | fungus | IMHO only use a class if it is logical to encapsulate those functions w/ related data. |
23:05.54 | Epilog | I have a pretty done php app |
23:06.12 | Epilog | and I boss wants us to module the work |
23:06.20 | Epilog | to create some modules |
23:06.40 | Epilog | so that the next time I need to do menu's in page foo |
23:06.45 | fungus | module != class. |
23:06.52 | Epilog | and simply instanciate the class |
23:06.56 | Epilog | and do it |
23:07.03 | fungus | module can be a file that has a group of functions. |
23:07.26 | Epilog | if I have a class |
23:07.31 | Epilog | I can set some parameters |
23:07.39 | Epilog | like html style to use |
23:07.51 | Epilog | and then simply a menu->addItem(bla bla) |
23:08.27 | fungus | That might be a good use for a class then. |
23:09.04 | Epilog | i would have some members that set the style, |
23:09.07 | Epilog | layout etc |
23:09.16 | Epilog | and some insert members to put the html code |
23:10.58 | Epilog | also another thing |
23:11.22 | fungus | "one more thing" <applause> |
23:11.28 | fungus | :) |
23:12.05 | Epilog | what is the best pear, free, non free php class to generate some histogram graphics? |
23:14.38 | macnewbold | gd works well, Epilog |
23:14.55 | macnewbold | there are even quite a few places you can find code you can copy and customize |
23:15.18 | Epilog | gonna google fot hat |
23:15.22 | Epilog | for that |
23:15.34 | Epilog | its way to cold to be typing :D |
23:15.48 | Epilog | also, since I'm in a ask day |
23:16.12 | Epilog | is Zopo studio worth the money? what other alternatives do one have for a good IDE? |
23:16.17 | Epilog | Zope |
23:19.04 | *** join/#uphpu _psychic_ (n=john@71.32.228.156) |
23:26.16 | dataw0lf | Epilog: IDE? Eclipse, Emacs, Komono |
23:26.19 | dataw0lf | err Komodo |
23:26.39 | Epilog | dataw0lf: the last I don't know |
23:26.55 | Epilog | been using vim and gPHPEdit |
23:27.10 | dataw0lf | I use vim almost exclusively |
23:27.14 | dataw0lf | but it's not really an IDE |
23:27.32 | Epilog | yep |
23:27.49 | Epilog | is there any good script/package for vim for php? |
23:28.17 | dataw0lf | http://www.schlitt.info/applications/blog/index.php?/archives/372-Comfortable-PHP-editing-with-VIM-4.html |
23:32.42 | Epilog | dataw0lf: thanks |
23:32.59 | Epilog | dataw0lf: regarding Zope Studio or Komodo |
23:33.05 | Epilog | are they worth the money? |
23:33.37 | _psychic_ | (if by Zope you mean Zend, i've liked it quite a bit) |
23:34.11 | Epilog | yes Zend ... |
23:38.52 | Epilog | dataw0lf: how can I execute a script that changes a line in the beggining of my file and make it return to the same place it were? |
23:43.44 | Epilog | another thing |
23:43.51 | Epilog | phpdoc or doxygen? |
23:46.20 | *** part/#uphpu _psychic_ (n=john@71.32.228.156) |
23:57.29 | macnewbold | I'm pretty sure phpdoc is more widely used |
23:58.00 | macnewbold | Epilog: I'm not sure what you mean - you want to open a file, write a new first line, and then start reading from the beginning again? |