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.59 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:43]<zufn>But it can tell you the path the script was running from
[09:44]<pjffyvr>Lathiat: Do you have experience working with internals?
[09:44]<pnvpzjrr>if it can... you can allways write down and later on have flash sync it
[09:44]<cjd2y>Petfrogg: that's what I was wondering..
[09:44]<lrvxyrv>Pollita: not with php internals :)
[09:44]<pjffyvr>Then I suggest searching the Marc archives.... I've given this answer on one of the mailing lists a couple times but it's a bit late at night to pull the precise answer out
[09:45]<vj2djjw>kthx?
[09:45]<pnvpzjrr>kombi: i am asking in #osflash
[09:45]<lrvxyrv>ok cheers Pollita
[09:45]<cjd2y>the thing is just having to code it all again, it might be a notorious question in the future how to migrate web apps to desktop..
[09:45]<pjffyvr>Generally it comes down to exploring SG(server_context) for apache's http_host value
[09:45]<pjffyvr>Then shoving in an fprintf() into ext/standard/mail.c to inject it into the message sender
[09:46]<fyr>Out friggin standing!
[09:46]<cjd2y>Petfrogg: great, didn't know of that one
[09:46]<lrvxyrv>where does the server context usually come from?
[09:46]<pjffyvr>*BUT* that won't stop people from using fsockopen('mailserver', 25)
[09:46]<lrvxyrv>im thinking it may not have it at the point mail() is called
[09:46]<lrvxyrv>Pollita: sure, but it helps 99% of cases
[09:46]<pnvpzjrr>kombi: jump over and we can ask them
[09:46]<lrvxyrv>Pollita: whcih is idiots with open formmail scripts that use mail()
[09:46]<pjffyvr>true
[09:46]<lrvxyrv>so i may have to go up above mail()
[09:46]<lrvxyrv>an dpass an extra paramter
[09:46]<lrvxyrv>anyway
[09:46]<lrvxyrv>i'll have a play
[09:46]<lrvxyrv>cheers
[09:46]<cjd2y>maybe installing wamp with it is a feasable way
[09:46]<cjd2y>coming, Petfrogg
[09:46]<pjffyvr>There's another option.
[09:46]<lrvxyrv>oh?
[09:46]<pjffyvr>One that'll save you from messing with PHP's internals.
[09:47]<eyzau>Pollita: is your booke out yet?
[09:47]<pjffyvr>Write yourself a nice simple bash script: #!/bin/bash echo ${HTTP_HOST} cat -
[09:47]<pjffyvr>And set your sendmail_path to that
[09:47]<lrvxyrv>i tried that
[09:47]<lrvxyrv>something funny is happening on these servers
[09:47]<lrvxyrv>and when i set the sendmail_path it stops working
[09:47]<lrvxyrv>even to the default sendmail path
[09:47]<gnzzd>lig: did you find an answer?
[09:47]<pjffyvr>hrm.... maybe that's not in env....
[09:47]<lrvxyrv>and i was goign to tyr quick hack ti this way
[09:48]<lrvxyrv>and HTTP_HOST isnt in the env anyway
[09:48]<lrvxyrv>but
[09:48]<fyr>Gerry: yep...
[09:48]<lrvxyrv>i can set sendmail_path specifically for each virtual host
[09:48]<lrvxyrv>with php_admin_flag, biut hacky
[09:48]<pjffyvr>You can use Apache's SetEnv to put it there
[09:48]<lrvxyrv>but would work
[09:48]<gnzzd>you can do a switch on the number of args and then use case 2: return $this->settings[$arg_list[0]][$arg_list[1]];
[09:48]<lrvxyrv>hrm
[09:48]<lrvxyrv>might be able to do that
[09:48]<lrvxyrv>and call getenv() from mail()
[09:48]<pjffyvr>SetEnv HTTP_HOST %{somethingorother}
[09:49]<pjffyvr>no, you don't need getenv
[09:49]<pjffyvr>just use that bash script (or something close to it)
[09:49]<lrvxyrv>Pollita: as i said
[09:49]<pjffyvr>no need to hack php at all
[09:49]<lrvxyrv>Pollita: its not working for me, and i had a fiddle and id ont know why and was thinkign this might be easier than chasing that down :)
[09:49]<lrvxyrv>even if i set sendmail_path to "/usr/sbin/sendmail -i -t" which its calling now
[09:49]<cjd2y>wow, you two use up a whole channel, is that extreme chatting?
[09:49]<lrvxyrv>it just disappears
[09:50]<pjffyvr>Well, it would be easier to hack internals, but only if you know your way around :)
[09:50]<lrvxyrv>and we're replacing these servers in a month anyway
[09:50]<lrvxyrv>Pollita: :)
[09:50]<pjffyvr>http://www.zend.com/php/internals/ <--- start there
[09:50]<pjffyvr>If that doesn't work, buy my book :)
[09:50]<lrvxyrv>haha
[09:50]<lrvxyrv>righton
[09:50]<pdznsvzvz>lol
[09:50]<lrvxyrv>what book is that
[09:50]<pjffyvr>http://blog.libssh2.org <--- top right corner has a link
[09:51]<pjffyvr>zircu: sorry, didn't mean to ignore you
[09:51]<lrvxyrv>cool
[09:51]<pjffyvr>zircu: three weeks
[09:51]<fyr>hehe - men's egos are so fragile :D
[09:52]<ndf>Zule, You'll have to tell those dolphins to go easy on your back. :) Good morning also.
[09:53]<eyzau>Pollita: np, i was just trying to pressure you in an answer before i go off to bed
[09:53]<jddddd>lil: Oh.. and I bet if you got ignored by your husband/family/kid you would be the first one to throw a hissy fit!
[09:53]<zufn>I should never have mentioned dolphins :)
[09:53]<ndf>Zule, That's true. :)
[09:53]<zufn>I did just say I liked them :)
[09:53]<pjffyvr>lig: Did I hear you say that code snippet worked?
[09:53]<fyr>yep...
[09:53]<ndf>Jymmmm, Hehe, was that a warning? :)
[09:54]<jddddd>eml: you're next
[09:54]<pjffyvr>groovy
[09:54]<ndf>Jymmmm, Did you ban him? Cause I didn't see anything happen. :(
[09:54]<fyr>:D
[09:54]<zufn>Apparently having someone else bring it up makes it my fault, I feel injustice.
[09:54]<jddddd>eml let me show you...
[09:55]<fyr>Jymmmm: Damn straight! like a cat I demand attention when I want it
[09:58]<ymrg>Hi and good morning, i dont know alot about regex but i am trying to figure out a way so i could get every thing related to form within a text file, so i loaded it and now trying to do the regex part.. i was having lots of trubels and tryed 4 or 5 tutorials.. can anyone give me an exmple or even a good tutorial that he or she knows (dont google for me, can do it my self) thanks
[10:00]<pjffyvr>tried is spelled with an 'i'
[10:00]<ymrg>k:)
[10:00]<jddddd>eml: you two were given a warning yesterday. No need to repeat it today.
[10:00]<pjffyvr>Now, why are you using regex for any of this?
[10:01]<pjffyvr>Why not store the form data as CSV values and use fgetcsv to retreive it back out?
[10:01]<ymrg>since i need to get <input's and <textarea only from the whole txt file and then get values from there
[10:01]<pjffyvr>wait.... you're storing HTML?
[10:01]<ymrg>yep







