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.65 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 >
[10:36]<vxdcj>because the resource is used in the while
[10:36]<vxdcj>you dig?
[10:36]<ndf>okay, just do{whatever}while(); mysql_free..
[10:36]<vnc_>em1, what I have now is a database called "objects" and another one called "users_objects"
[10:36]<ndf>!tell thyko about AOLbonics
[10:36]<sddffd>anyone around?
[10:36]<vnc_>and I just add an object like "photos" and a user can adjust the photos object in their edit screen
[10:36]<cwxye>symply: No.
[10:36]<sddffd>whoops
[10:36]<drscyns>symply, No
[10:36]<sddffd>it was stuck up further :-x
[10:37]<sddffd>what is the easiest way to print information in tables?
[10:37]<vnc_>and basically I thought about making 2 functions, edit($object);, and show($object);
[10:37]<sddffd>out of mysql
[10:37]<cwxye>tek_: Typically, portals store a module's information within the context of a page. For example, you may have a row with columns for page_id, column, row, or something like that.
[10:37]<vnc_>CWhiz, that's what I have, sort of
[10:37]<vnc_>CWhiz, but these "objects" or "blocks" are dynamic in a sense htat
[10:37]<vnc_>everything except for the information itself is stored in a script
[10:38]<ndf>tek_, Okay, I'm not sure I fully understand what you want. But say that you have a lot of div's in your HTML, now they can all have CSS-classes, and in the database you store something like "usr_blog_position" that could be "lowerLeft" or similar. Am I on the right track?
[10:38]<vnc_>so like the "photos" object, all of the functionality is in a PHP class, the POSITIONING needs to be stored in a DB?
[10:38]<ndf>Hmm, sounds like I'm totally off track, hehe. :)
[10:38]<vnc_>em1, precicsely
[10:38]<cwxye>tek_: What part of the problem don't you understand?
[10:38]<vxdcj>eml: but i need the resource to be freed every time the loop runs :(
[10:38]<vnc_>It's like this, there's a container div (of course) then there is a "Left-column" div, and in that there's "left-blocks"
[10:39]<vnc_>and each one of those blocks is filled with an object, depending on what order they want it
[10:39]<ndf>thyko, Why would you want that?
[10:39]<vnc_>CWhiz I have already built a CMS but this is different, these features/objects could be changing on a weekly basis.
[10:39]<cwxye>symply: Adodb has some functions that do that, but we don't support third-party scripts here. The documentation for it is pretty good.
[10:39]<cwxye>tek_: What have you done so far?
[10:40]<vnc_>So far I have a table for the objects themselves with their description. Example: name -> photos, description -> lets users create a photo album... etc and then there is a users_objects table that basically tells me what objects go where on their "profile" page.
[10:41]<ndf>tek_, Just create CSS-classes and store which object inherits which CSS-class (inherit might be the wrong word).
[10:41]<vnc_>em1, I don't think that will work
[10:41]<vnc_>em1, I thikn you're missing my point
[10:41]<vxdcj>eml: http://www.rafb.net/paste/results/3BiTgI76.html
[10:41]<vnc_>I want to be able to ADD objects with full support
[10:41]<vxdcj>check that out
[10:41]<vnc_>so lets say I finish hard coding the functionality for "blog", then I immediately add a "blog" object and make it active
[10:42]<vnc_>then a user can move their blog where they want (or to the center column) and continue editing it in their edit screen (control panel)
[10:42]<vnc_>nevermind I'll figure it out. Just wondering if anyone had any clever ideas or experience with something like this or similar
[10:42]<cwxye>tek_: We all know what you want; we just don't understand where you're stuck.
[10:43]<cwxye>tek_: You don't know how to do the positioning?
[10:43]<ndf>thyko, You don't have to mysql_free_result each time you use mysql_fetch_array
[10:43]<vnc_>CWhiz, no, ironically, that is taken care of.
[10:43]<vxdcj>eml: wait a minute!
[10:43]<vnc_>CWhiz, there are 2 possibilities for these objects a "edit" mode and a "display" mode, so a user can edit their photos, and then on their PROFILE it should be displayed
[10:43]<vnc_>I think I just answered my own question just by typing it out
[10:44]<cwxye>tek_: That's good, because I still don't understand what it is :)
[10:44]<vnc_>CWhiz, I'll show you when I'm done
[10:44]<vnc_>CWhiz, it's using a sort of AJAX feel drag&drop method to align the blocks
[10:44]<vnc_>Working pretty nicely til I hit this wall
[10:44]<cwxye>tek_: No need - I know what you want. I just don't know what your question was.
[10:44]<vxdcj>boom!
[10:44]<vxdcj>that worked!
[10:44]<vnc_>CWhiz, my question was, how do I ask a good question =p
[10:44]<cwxye>You want a Google IG/Netvibes.
[10:45]<vnc_>Well, not that big, it's for my family =P
[10:45]<vnc_>but I guess you could say that
[10:47]<vnc_>I <3 netvibes
[10:47]<cwxye>it'd be better if they didn't insist on having every password on the Internet.
[10:48]<vnc_>what do you mean by that?
[10:48]<gnzzd>cwhiz: yeah what you mean?
[10:49]<ndf>thyko, Actually, you CAN'T start freeing a result before you're done with it. Because mysql_fetch_array uses that result as its resource to mysql.
[10:50]<[snffjuv]>anyone know a way to set a given files current final htm sourcecode as a varible
[10:50]<gnzzd>CWhiz: I'm really interested to hear what you meant by that.
[10:51]<cwxye>Netvibes gives you lots of cool modules, but the best ones - Gmail, POP mail, Yahoo! Mail, box.net, Writely, and Flickr require you to give them the password for the respective service.
[10:51]<aand_fznsx>long night
[10:51]<ndf>[sellout], current final htm sourcecode?
[10:51]<gnzzd>CWhiz: How would you like it to work?
[10:51]<cwxye>I really don't trust a single company (let alone a foreign one) with that kind of data about me. Google makes me nervous as it is.
[10:52]<cwxye>Gerry: http://www.sourcelabs.com/blogs/ajb/2005/09/passwords_by_proxy.html
[10:52]<cwxye>Gerry: Like that.
[10:52]<gnzzd>I'll take a look, thanks for the info.
[10:53]<vnc_>I agree with that
[10:53]<[snffjuv]>html sourcecode
[10:53]<ndf>[sellout], I don't think anyone understood that question, you'll have to explain it. And please keep it on one line.. ;)
[10:54]<vnc_>CWhiz, don't send cleartext passwords?
[10:54]<vnc_>what isthat?
[10:54]<[snffjuv]>i want basically the contents of a right click>view source to be set to a php var tha ti can echo
[10:54]<vnc_>CWhiz, hash a password WHEN its typed?
[10:54]<[snffjuv]>i want to echo a said pages html source inside of itself
[10:54]<ndf>[sellout], There's lots of server variables that can tell you what page you are running from.
[10:54]<jndv>Greetz. I was thinking (yes, actually :) - is there a limit on how big a session can be? I'm storing objects in sessions - and it has become quite a large object model now. So I want to make sure that I'm not running out of space. Also, I think it is possible to specify that sessions should be saved as cookies instead - and I'm quite sure there is a limit on the size of a cookie (something like 4096 bytes as far as I know)
[10:54]<[snffjuv]>source code*
[10:55]<cwxye>tek_: Hashes only save you if they get something temporary - like a timestamp - hashed with them. Otherwise, the hash _becomes_ your password, and you're back where you started.
[10:56]<vnc_>CWhiz, then how do you manage? because right now I have different salts for passwords
[10:56]<vnc_>I have even used a persons email before
[10:56]<vnc_>like, sha1($email . $password);
[10:56]<vnc_>What are the odds that someone would be able to break that anyway?
[10:56]<[snffjuv]>in other words is there a way to echo a pages sourcecode inside of itself somewhere
[10:57]<vnc_>even IF the password itself was just hashed with a sha1();, isn't that secure enough?
[10:57]<vnc_>I mean how MUCH more secure does it need to be?
[10:57]<cwxye>tek_: That's not the point of that article. The point is to prevent Netvibes from having my Gmail password, while letting Netvibes do stuff to my Gmail account.
[10:57]<vnc_>CWhiz, I realize that
[10:57]<vnc_>I'm talking about something different now
[10:58]<cwxye>tek_: You really need to learn to provide context to your questions ;)
[10:58]<vnc_>What in your opinion is the most secure way to store passwords in a adatabase?
[10:58]<ndf>[sellout], As I said, server variables. var_dump($_SERVER); Take a look on it's output.
[10:58]<cwxye>tek_: The SHA-1 you suggested should be fine.
[10:58]<[snffjuv]><looks>







