| 00:31:20 | | <-- LarsKL has quit stating (Quit: ) |
| 00:32:41 | | <-- LarsKI has quit stating (Quit: ) |
| 01:40:35 | | --> kyleabaker has joined #webapps |
| 01:40:54 | kyleabaker | quick php question. anyone willing to give it a shot? |
| 01:52:40 | kyleabaker | Looks like I've got not takers, but just in case.. My question is this..I have a phpBB forum and I've made a custom home page that gathers stuff like total number of users, posts, recent posts, most visited links from my site, etc. Would it be better to run all database queries from the start and store them to a strings and place the strings in the correct place in the layout? or is it better the way that I currently have it where |
| 01:52:40 | kyleabaker | database as it needs to throughout the layout? The reason that I ask is because it seems that the home page takes a bit longer to load than it does for the forum. I'm just looking for a faster/more efficient method. After that I'll be doing some fun ajax tweaks..y@y, lol. Just let me know. Thanks. |
| 02:01:49 | | --> Vaz has joined #webapps |
| 02:02:15 | | <-- Vaz has left #webapps stating () |
| 02:11:53 | | <-- Lars_G has quit stating (Quit: Leaving) |
| 02:34:52 | | <-- janbar has quit stating (Quit: papapa...... - lece) |
| 03:29:29 | | <-- Do`` has quit stating (Ping timeout) |
| 03:33:02 | | --> Do`` has joined #webapps |
| 04:14:15 | | <-- kyleabaker has left #webapps stating () |
| 04:28:34 | | <-- roentgen has quit stating (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org) |
| 06:10:08 | | --> ROBOd has joined #webapps |
| 06:12:14 | | --> Masud has joined #webapps |
| 06:13:20 | Masud | Hi Everybody |
| 06:14:00 | Masud | I am Masud from Bangladesh, want to outsourced with w big developers team |
| 06:14:37 | Masud | we develop web and web application for our clints in US and Australia and also for UK |
| 06:15:19 | Masud | Please contact with me if anybody need to outsourced thier project |
| 06:22:36 | | <-- Masud has left #webapps stating () |
| 08:03:59 | | --> roentgen has joined #webapps |
| 08:16:48 | | -!- Ramunas_ is now known as Ramunas |
| 08:45:35 | | --> Ramunas_ has joined #webapps |
| 08:46:42 | | <-- Ramunas has quit stating (Ping timeout) |
| 09:09:49 | | -!- Ramunas_ is now known as Ramunas |
| 09:34:32 | | --> LarsKL has joined #webapps |
| 11:27:38 | | --> Ramunas_ has joined #webapps |
| 11:28:44 | | <-- Ramunas has quit stating (Ping timeout) |
| 11:33:26 | | -!- Ramunas_ is now known as Ramunas |
| 11:50:24 | | <-- roentgen has quit stating (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org) |
| 12:20:19 | | --> mustafa63 has joined #webapps |
| 12:25:02 | | <-- mustafa63 has left #webapps stating () |
| 13:20:14 | | --> LarsKI has joined #webapps |
| 13:56:26 | | --> DrLaunch has joined #webapps |
| 16:03:55 | | <-- DrLaunch has quit stating (Ping timeout) |
| 16:10:05 | | --> DrLaunch has joined #webapps |
| 16:11:47 | | --> janbar has joined #webapps |
| 16:18:17 | | <-- janbar has quit stating (Ping timeout) |
| 16:18:23 | | --> janbar has joined #webapps |
| 16:40:01 | | <-- janbar has quit stating (Ping timeout) |
| 16:40:06 | | --> janbar has joined #webapps |
| 16:49:28 | | --> roentgen has joined #webapps |
| 18:31:45 | | <-- janbar has quit stating (Ping timeout) |
| 18:33:58 | | --> janbar has joined #webapps |
| 18:36:58 | | <-- janbar has quit stating (Ping timeout) |
| 18:37:05 | | <-- DrLaunch has quit stating (Ping timeout) |
| 18:42:17 | | --> janbar has joined #webapps |
| 18:54:17 | | <-- janbar has quit stating (Ping timeout) |
| 19:09:12 | | --> DrLaunch has joined #webapps |
| 19:14:54 | | <-- DrLaunch has quit stating (Connection reset by peer) |
| 19:15:48 | | --> DrLaunch has joined #webapps |
| 19:20:37 | | --> janbar has joined #webapps |
| 19:23:37 | | <-- janbar has quit stating (Ping timeout) |
| 19:26:58 | | --> HoM9|4oK has joined #webapps |
| 19:32:32 | | --> janbar has joined #webapps |
| 19:34:25 | | <-- HoM9|4oK has left #webapps stating () |
| 19:35:33 | | <-- janbar has quit stating (Ping timeout) |
| 19:36:04 | | --> janbar has joined #webapps |
| 19:39:04 | | <-- janbar has quit stating (Ping timeout) |
| 19:41:59 | | --> HoM9|4oK has joined #webapps |
| 19:47:37 | | <-- HoM9|4oK has left #webapps stating () |
| 19:48:02 | | <-- DrLaunch has quit stating (Ping timeout) |
| 19:58:01 | | --> janbar has joined #webapps |
| 20:02:03 | | --> HoM9|4oK has joined #webapps |
| 20:03:07 | | <-- HoM9|4oK has left #webapps stating () |
| 20:11:58 | | <-- ROBOd has quit stating (Quit: http://www.robodesign.ro ) |
| 20:38:43 | | --> zomg_ has joined #webapps |
| 20:39:18 | | <-- janbar has quit stating (Ping timeout) |
| 20:40:37 | | <-- zomg has quit stating (Ping timeout) |
| 20:44:55 | | --> janbar has joined #webapps |
| 20:47:55 | | <-- janbar has quit stating (Ping timeout) |
| 20:48:35 | | --> janbar has joined #webapps |
| 20:55:19 | | --> DrLaunch has joined #webapps |
| 21:08:10 | | --> b has joined #webapps |
| 21:09:20 | | --> virtuelv has joined #webapps |
| 21:09:20 | | -!- ChanServ sets mode +oa on virtuelv virtuelv |
| 21:11:10 | | <-- b has quit stating (Ping timeout) |
| 21:16:50 | | <-- virtuelv has quit stating (Quit: Leaving) |
| 21:22:30 | | --> _rusti has joined #webapps |
| 21:22:34 | | <-- _rusti has left #webapps stating () |
| 21:24:54 | | --> virtuelv has joined #webapps |
| 21:24:54 | | -!- ChanServ sets mode +oa on virtuelv virtuelv |
| 21:31:38 | | <-- DrLaunch has quit stating (Connection reset by peer) |
| 21:31:46 | | <-- roentgen has quit stating (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org) |
| 21:31:50 | | --> DrLaunch has joined #webapps |
| 21:34:11 | | --> roentgen has joined #webapps |
| 21:34:59 | | <-- virtuelv has quit stating (Quit: Leaving) |
| 22:01:04 | | <-- DrLaunch has quit stating (Quit: Leaving.) |
| 22:03:25 | | --> Hottie has joined #webapps |
| 22:03:30 | | <-- Hottie has left #webapps stating () |
| 22:03:53 | gmoz | nnnnoo |
| 22:04:02 | gmoz | I found a real usage for PHP's variable variables |
| 22:04:08 | gmoz | :P |
| 22:11:36 | Remco | You did? |
| 22:20:25 | gmoz | Yes! |
| 22:21:12 | gmoz | I'm using a simple template approach in a project |
| 22:21:26 | gmoz | I just assign vars in PHP then include() a template file which is html+php |
| 22:21:52 | gmoz | and that can use the variables assigned in the PHP code because it is included in the same scope |
| 22:22:17 | gmoz | but I wanted to be able to do echo $foo and not get an error if $foo doesn't exist |
| 22:22:42 | gmoz | doing that is easy, set error_reporting(0) |
| 22:23:03 | gmoz | but I didn't want to do that for the whole site so I made a function that does that and includes the template |
| 22:23:17 | gmoz | but then I realized that then the template won't be in the same scope anymore |
| 22:23:32 | gmoz | sooo I pass an array with the template vars to the function |
| 22:23:45 | gmoz | and assign the variables from the array to the current scope with variable variables :P |
| 22:27:46 | Remco | Set error reporting to 0 before the include and reset it after? |
| 22:28:15 | Remco | Or is that including a whole lot more complicated? |
| 22:30:16 | gmoz | Well I don't like the idea of doing that everywhere where I include a template |
| 22:30:49 | gmoz | if I ever wanted to see the errors (or change the way the templates are included) I'd have to go through all the code |
| 22:30:58 | gmoz | instead of editing the function |
| 22:31:06 | gmoz | so there are things like that too |
| 22:33:15 | Remco | So you include the vars from the template and those need to be available in the normal scope? |
| 22:34:14 | gmoz | Nah no longer because they need to exist inside the function scope |
| 22:34:43 | Remco | I'd just use a global variable, much easier I think |
| 22:35:27 | Remco | If it needs to be available everywhere, make it global :) |
| 22:35:41 | gmoz | Well it doesn't need to be available everywhere |
| 22:35:47 | gmoz | and globals are evil |
| 22:36:06 | Remco | Variable variables are way more evil ;) |
| 22:40:42 | gmoz | Naw =) |
| 22:40:54 | gmoz | globals don't work very well if you want reusable code |
| 23:38:46 | | --> Klio has joined #webapps |
| 23:45:59 | | <-- Klio has left #webapps stating () |
| 23:57:21 | | <-- LarsKL has quit stating (Quit: ) |
| 23:59:33 | gmoz | Opera Mini beta 4 @ Daily WTF :D |
| 23:59:39 | gmoz | or.. the simulator |
| | |