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.68 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 >
[09:28]<pjffyvr>lig: What do you have right now?
[09:28]<hzzys>fyrestrtr: Ok ..
[09:28]<hzzys>Why?
[09:29]<pdznsvzvz>Haris: because it can cause security problems. You should only be running scripts with your webserver permissions, not as any other user.
[09:29]<djjsnd>why not use phpsuexec?
[09:29]<jddddd>Pollita: Hey, have you seen TML's beaver? If you haven't ask TML about it.
[09:29]<djjsnd>are you nuts
[09:29]<pdznsvzvz>no, are you?
[09:29]<hzzys>Consider an example.
[09:29]<djjsnd>the whole point is to run as that user so other users can't as well as run mail scripts so they dont send out as nobody
[09:30]<pdznsvzvz>moosey: err, no. Read what phpsuexec is used for.
[09:30]<fyr>Pollita: class: http://pastebin.com/710882 Test Script: http://pastebin.com/710917 Output: http://pastebin.com/710919
[09:30]<hzzys>I have a portal comprising 17 websites. I need inter-account access b/w those websites
[09:30]<hzzys>What's good for this scenario?
[09:30]<pdznsvzvz>Haris: you don't need phpsuexec
[09:31]<pdznsvzvz>Haris: shared user authentication database
[09:31]<fyr>Pollita: Ouput has the print_r of the setting var then a var_dump of the object and last the output and the error
[09:31]<yffusyjgynn>hi guys
[09:31]<pdznsvzvz>Haris: and cookies
[09:31]<yffusyjgynn>I am trying to count up like 1, 2, 3 in a while
[09:31]<yffusyjgynn>how would I do that?
[09:31]<jddddd>for()
[09:31]<hzzys>Ok, good!. Another example ... about mail.
[09:31]<hzzys>This is a cpanel box, with exim on it
[09:31]<yffusyjgynn>but it then counts like how many times the loop goes for
[09:32]<hzzys>I have a customer who runs his own mail server on my server
[09:32]<yffusyjgynn>could I put $i++ at the end of it?
[09:32]<hzzys>he uses my mail server, but uses his own label
[09:32]<yffusyjgynn>and then just use $i
[09:32]<hzzys>do I need phpsuexec anywhere?
[09:32]<pdznsvzvz>illusionize: for()
[09:32]<czzdz>I am using php to write to a file and it is add a \ before all ". Is that something that can be turned off?
[09:32]<pdznsvzvz>Haris: no
[09:32]<hzzys>Good!
[09:32]<yffusyjgynn>I said, I tried
[09:33]<yffusyjgynn>but it just counted like twenty 1's and then twenty 2's
[09:33]<pdznsvzvz>illusionize: you want it to count up to a certain number, or just start counting?
[09:33]<yffusyjgynn>I want it to count until all the data is collected
[09:33]<pjffyvr>That's an.....interresting approach....
[09:33]<gnzzd>lig: well at least I'm understanding you now.
[09:34]<pjffyvr>Unfortunately variable variables don't work that way.
[09:34]<fyr>HEHE - Yeah - I'm odd...
[09:34]<zufn>Quirky, the term is quirky \o/
[09:35]<fyr>self taught tend to think "outside the box" ;)
[09:35]<pjffyvr>You're constructing a property name that has square brackest as part of the prop name (the brackets aren't being used as dimension dereferencers here
[09:35]<pdznsvzvz>illusionize: $i = 0; while($something) { /* do stuff */ ++$i; } echo 'did stuff '.$i.' times';
[09:35]<yffusyjgynn>smooth
[09:35]<yffusyjgynn>thanks man
[09:36]<pjffyvr>lig: the "easy" solution is to change line 96 to: return eval('return $this->' . $depth);
[09:36]<pjffyvr>But that's lazy and may be prone to security related problems
[09:36]<fyr>and what is the hard way?
[09:36]<pjffyvr>The hard way isn't too hard, but involves changing your approach a little....
[09:36]<fyr>rather learn correct - then "it works"
[09:36]<fyr>understood
[09:36]<pjffyvr>gimme a second to refactor this
[09:37]<fdfj>lk
[09:37]<fyr>k- and thanks
[09:38]<crlsj>Anyone here use PEAR's MDB2?
[09:38]<pjffyvr>if(is_array($arg_list)) { $tmp = $this->settings; foreach($arg_list as $arg) { $tmp = $tmp[$arg]; } return $tmp; }
[09:39]<pjffyvr>Toss some isset checks in there to avoid notices and you should be good to go
[09:39]<fdfj>nope
[09:39]<cjd2y>well, we built this great project management tool with lots of flash and ajax and everything and it works fine, but now the customer wants to be able to work offline as well.. Wasn't there some way for desktop apps php-style?
[09:39]<fyr>hmmm
[09:39]<fyr>Will do
[09:40]<pdznsvzvz>kombi: no, there never was a decent way to do them.
[09:40]<rxrsvr>have you considered somehow bundling a lightweight http server and php kombi
[09:40]<rxrsvr>distributable on say a usb stick or as a self extracting executable
[09:40]<rxrsvr>tho you still have to work out when and how to sync the data
[09:41]<cjd2y>Rhasta: is that not too much overhead or fragile install-wise?
[09:41]<pnvpzjrr>kombi: how much "off-line" do they want?
[09:41]<pdznsvzvz>kombi: why don't you just create a front end in flash? Since you are already using it, then just batch update the database.
[09:41]<rxrsvr>it's fragile but it's probably less fragile than trying to make a php desktop app
[09:41]<lrvxyrv>hi guys - anyone here familiar with programming php?
[09:41]<rxrsvr>depends how much effort you throw at it
[09:41]<lrvxyrv>im after determining som einfo about the page request, e.g. the virtual host, from the mail() function
[09:41]<cjd2y>Petfroog: everytime there is no connection..
[09:41]<pjffyvr>Nope, we only do Ruby here
[09:42]<zufn>PHP? Never heard of it.
[09:42]<lrvxyrv>err, soryr i mean
[09:42]<lrvxyrv>programming php on the C side of things ;)
[09:42]<lrvxyrv>worded badly :)
[09:42]<rxrsvr>is php some kind of *nix?
[09:42]<zufn>Lathiat: Ah right :D
[09:42]<pjffyvr>Yeah, I know a thing or two.
[09:42]<cjd2y>firestarter: good Idea, but can flash store data locally?
[09:42]<lrvxyrv>basically, i want to add a header to outgoing mail, with the domain in it
[09:42]<pnvpzjrr>kombi: you mean that if they go offline? or do you mean outside the office temporarly?
[09:42]<pdznsvzvz>kombi: it can write xml, can't it? ;)
[09:42]<lrvxyrv>to make tracking source of mail (e.g. spam) easier
[09:43]<pdznsvzvz>Lathiat: I think this should be handled by your mail server, not PHP.
[09:43]<lrvxyrv>i tried looking in the environment, nothing ther,e so wonder if theres some kind of php internal i can call tog et request information
[09:43]<cjd2y>Petfrogg: the latter I guess it is
[09:43]<cjd2y>tyrestarter: true
[09:43]<lrvxyrv>fyrestrtr: it cant be, as php scripts all run as the same user
[09:43]<zufn>exim has some kind of magic.
[09:43]<cjd2y>Zule: being?
[09:43]<zufn>But I was always disappointed you couldn't force __FILE__ to be in all headers.
[09:43]<pnvpzjrr>kombi: i think fyrestrtr is on to something.. but can flash write to a local disk?
[09:43]<zufn>kombi: I don't remember!!! :)
[09:43]<lrvxyrv>it works with perl for example, as its running suexec, it just comes as the appropriate user and the mta picks that up







