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-12
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Next >
[05:25]<fy2yfr>stabbby: k so it says RPC_Table doesn't exist... do I need to tell it to 'use database' somehow first?
[05:25]<svr222d>Silivrenion: "the file"?
[05:25]<eyzau>or die('stop yourself in the chest');
[05:25]<eyzau>stab*
[05:25]<syfyvzggyjg>http://pastebin.ca/85600
[05:25]<svr222d>Libila you need to create the table first
[05:25]<syfyvzggyjg>stabby
[05:26]<fy2yfr>nah, the table exists. I'll keep at it. Thanks
[05:26]<dgzyd>anyone know what function checks to see how old a file is or when it was last modified?
[05:26]<advx|sfnnl>and I don't see how that would make a difference
[05:27]<svr222d>Silivrenion: .....yuck
[05:27]<syfyvzggyjg>thats an understatement
[05:27]<svr222d>Silivrenion: it should exec fine
[05:27]<svr222d>functions in the same file is not the problem
[05:28]<syfyvzggyjg>its not, it executing blank until I comment out both functions
[05:28]<suv9w9>cyth|sleep, ok can i ask for a different example. A portal with 10 panels. One of the panels has top 10 articles about something with sortable columns, user clicks column name, and the page should reload and reflect articles sorted by name. How is this working inside MVC?
[05:28]<svr222d>Silivrenion: thats why I said yuck
[05:29]<svr222d>Silivrenion: $valid ??? does that work fine?
[05:29]<svr222d>there is an extra , in the last one
[05:30]<svr222d>Silivrenion: also echo "this is a string with {$var['arrayname']}"
[05:31]<svr222d>that might help clean up the php+html Code
[05:31]<syfyvzggyjg>where is the extra , ?
[05:31]<svr222d>Line 8
[05:31]<advx|sfnnl>suv4x4, unfortunatly now you are dealign with my unexperience with MVC.
[05:31]<advx|sfnnl>come back in a month when I have made something
[05:32]<suv9w9>cyth|sleep, thanks for your time and help cyth|sleep, I do understand MVC better now
[05:32]<suv9w9>cyth|sleep, I'll go annoy RoR people with my 10 panels question ;)
[05:32]<syfyvzggyjg>stabbby :: where does that echo need to go?
[05:32]<advx|sfnnl>suv4x4, I imagine that the view can call multiple actions
[05:33]<svr222d>Silivrenion: no where, I am just saying when you want to join php varibles into a string use Double or HereDoc method to help clean up your html+php code
[05:34]<syfyvzggyjg>oh
[05:34]<advx|sfnnl>i'd recommend reading tutorials on cake, it's probably the better of MVC frameworks when it comes to documentation
[05:34]<advx|sfnnl>lol if you find somethign from them let me know, im curious now myself
[05:34]<2uzgyg>I have an index.php which uses require_once to load a php class from a sub directory, starts a session, and then saves a new instance of the class object in the SESSION array. I then use a method in the class to include another php file in a different subdirectory but that php file can't see the object in the SESSION array.
[05:34]<2uzgyg>is that normal?
[05:34]<fxyfyf>i played with cake, agreed that it has good docs
[05:35]<2uzgyg>hmm, did xchat just hose that line?
[05:35]<2uzgyg>I have an index.php which uses require_once to load a php class from a sub directory, starts a session, and then saves a new instance of the class object in the SESSION array.
[05:36]<svr222d>burnin: make sure to include "session_start();" at the top
[05:36]<2uzgyg>I then use a method in the class to include another php file in a different subdirectory but that php file can't see the object in the SESSION array.
[05:36]<2uzgyg>stabbby: I do the session start after the require_once(myclass.php) in the index.php
[05:36]<2uzgyg>stabbby: the start session isn't needed in all files included, is it?
[05:37]<svr222d>nopw
[05:37]<svr222d>nope
[05:37]<syfyvzggyjg>stabbby :: any idea why the script won't output if the functions are there?
[05:37]<svr222d>try this print_r(array_keys($_SESSION));
[05:37]<svr222d>um... Silivrenion isolate
[05:37]<svr222d>use only one function at a time
[05:37]<syfyvzggyjg>I did.. both functions cause all output to be null
[05:37]<syfyvzggyjg>either together or individually
[05:38]<dgzyd>i figured it out
[05:38]<dgzyd>fstat
[05:39]<dgzyd>anyone know how many unix microtime seconds are in a day?
[05:39]<dgzyd>is it 64000 ?
[05:39]<2uzgyg>hmm, I'm getting Undefined variable: _SESSION in my apache logs.
[05:39]<2uzgyg>shouldn't a start_session() create the variable?
[05:39]<svr222d>Silivrenion: okay start spamming your functions with echos
[05:39]<syfyvzggyjg>mk
[05:39]<svr222d>burnin: what version of PHP do you have?
[05:39]<fdfj>burnin, no. you should do $_SESSION['tag'] =var
[05:40]<syfyvzggyjg>the functions should even be executed then, only interpreted
[05:40]<svr222d>Silivrenion: try like after every line and see where the echo stops
[05:40]<fdfj>burnin, session_start() ?
[05:40]<2uzgyg>session_start();
[05:40]<svr222d>session_start creates a Session not a session variable
[05:41]<2uzgyg>if( !isset($_SESSION['sessgirder']) ) { $_SESSION['sessgirder'] = new girder(); }
[05:41]<lygcdrg>session_start(); session_destroy(); session_register(); session_unregister();
[05:41]<syfyvzggyjg>stabbby :: it stops after the first line of the first function
[05:41]<lygcdrg>session_unset();
[05:41]<syfyvzggyjg>function validate_data($type,$value)
[05:41]<syfyvzggyjg> { echo "start of validate data";
[05:41]<syfyvzggyjg>that doesnt appear
[05:41]<svr222d>Silivrenion: did you remove the , in line 8?
[05:41]<syfyvzggyjg>yes
[05:42]<lygcdrg>silivrenion: whats the problem?
[05:42]<2uzgyg>this is bizarre, it was working when the included php file was in the same subdirectory as the class.php file.
[05:42]<2uzgyg>I'm going to move the file back and see what happens...
[05:42]<svr222d>ok look @ line 121... in the code you gave me
[05:42]<syfyvzggyjg>pinkman :: the presence of two declared functions causes all schoed output to cease
[05:42]<svr222d>Communicate should be the fuirst fucntion ran
[05:43]<nrndys>has anyone ever compiled PHP from source on windows?
[05:43]<svr222d>that is if foo.php?variable=something
[05:43]<lygcdrg>silivrenion: the same functions?
[05:43]<syfyvzggyjg>stabbby :: does it really matter? i mean doesnt the PHP come back to that function to run its code when it needs to, then return to the last place it was when it has to return?
[05:44]<syfyvzggyjg>pinkman :: two functions of my own design.. function validate_data($type,$value)
[05:44]<syfyvzggyjg> { echo "start of validate data";
[05:44]<syfyvzggyjg>err, sorry
[05:44]<syfyvzggyjg>http://pastebin.ca/85600
[05:44]<svr222d>Silivrenion: I am just saying it should run the coomunicate first
[05:44]<2uzgyg>hmm, that's not it, I hosed something :(
[05:44]<syfyvzggyjg>alright, i'll switch them
[05:44]<svr222d>so that being said you should get printouts of commincation
[05:44]<svr222d>does that happen?
[05:44]<2uzgyg>for some reason there is no _SESSION variable anymore.
[05:44]<svr222d>burnin: tell me if you are doing this...
[05:45]<svr222d>$_SESSION = 'foo';
[05:45]<syfyvzggyjg>after switching the two, nothing happens
[05:45]<svr222d>cause that will happen
[05:45]<syfyvzggyjg>there's no output on the file
[05:45]<syfyvzggyjg>(there would be no output from the functions until they're called anyway)







