@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 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



Comments:

<0> Zule: being?
<1> But I was always disappointed you couldn't force __FILE__ to be in all headers.
<2> kombi: i think fyrestrtr is on to something.. but can flash write to a local disk?
<1> kombi: I don't remember!!! :)
<3> it works with perl for example, as its running suexec, it just comes as the appropriate user and the mta picks that up
<1> But it can tell you the path the script was running from
<4> Lathiat: Do you have experience working with internals?
<2> if it can... you can allways write down and later on have flash sync it
<0> Petfrogg: that's what I was wondering..
<3> Pollita: not with php internals :)
<4> 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
<5> kthx?
<2> kombi: i am asking in #osflash
<3> ok cheers Pollita
<0> 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..
<4> Generally it comes down to exploring SG(server_context) for apache's http_host value



<4> Then shoving in an fprintf() into ext/standard/mail.c to inject it into the message sender
<6> Out friggin standing!
<0> Petfrogg: great, didn't know of that one
<3> where does the server context usually come from?
<4> *BUT* that won't stop people from using fsockopen('mailserver', 25)
<3> im thinking it may not have it at the point mail() is called
<3> Pollita: sure, but it helps 99% of cases
<2> kombi: jump over and we can ask them
<3> Pollita: whcih is idiots with open formmail scripts that use mail()
<4> true
<3> so i may have to go up above mail()
<3> an dp*** an extra paramter
<3> anyway
<3> i'll have a play
<3> cheers
<0> maybe installing wamp with it is a feasable way
<0> coming, Petfrogg
<4> There's another option.
<3> oh?
<4> One that'll save you from messing with PHP's internals.
<7> Pollita: is your booke out yet?
<4> Write yourself a nice simple bash script: #!/bin/bash echo ${HTTP_HOST} cat -
<4> And set your sendmail_path to that
<3> i tried that
<3> something funny is happening on these servers
<3> and when i set the sendmail_path it stops working
<3> even to the default sendmail path
<8> lig: did you find an answer?
<3> and i was goign to tyr quick hack ti this way
<4> hrm.... maybe that's not in env....
<3> and HTTP_HOST isnt in the env anyway
<3> but
<6> Gerry: yep...
<3> i can set sendmail_path specifically for each virtual host
<3> with php_admin_flag, biut hacky
<4> You can use Apache's SetEnv to put it there
<3> but would work
<8> you can do a switch on the number of args and then use case 2: return $this->settings[$arg_list[0]][$arg_list[1]];
<3> hrm
<3> might be able to do that
<3> and call getenv() from mail()
<4> SetEnv HTTP_HOST %{somethingorother}
<4> no, you don't need getenv
<4> just use that bash script (or something close to it)
<3> Pollita: as i said
<4> no need to hack php at all
<3> 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 :)
<3> even if i set sendmail_path to "/usr/sbin/sendmail -i -t" which its calling now
<0> wow, you two use up a whole channel, is that extreme chatting?
<3> it just disappears
<4> Well, it would be easier to hack internals, but only if you know your way around :)
<3> and we're replacing these servers in a month anyway
<3> Pollita: :)
<4> http://www.zend.com/php/internals/ <--- start there
<4> If that doesn't work, buy my book :)
<3> haha
<3> righton
<9> lol
<3> what book is that



<4> http://blog.libssh2.org <--- top right corner has a link
<3> cool
<4> zircu: sorry, didn't mean to ignore you
<4> zircu: three weeks
<6> hehe - men's egos are so fragile :D
<10> Zule, You'll have to tell those dolphins to go easy on your back. :) Good morning also.
<7> Pollita: np, i was just trying to pressure you in an answer before i go off to bed
<11> 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!
<1> I should never have mentioned dolphins :)
<10> Zule, That's true. :)
<1> I did just say I liked them :)
<4> lig: Did I hear you say that code snippet worked?
<6> yep...
<10> Jymmmm, Hehe, was that a warning? :)
<11> eml: you're next
<4> groovy
<10> Jymmmm, Did you ban him? Cause I didn't see anything happen. :(
<6> :D
<1> Apparently having someone else bring it up makes it my fault, I feel injustice.
<11> eml let me show you...
<6> Jymmmm: Damn straight! like a cat I demand attention when I want it
<12> 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
<4> tried is spelled with an 'i'
<12> k:)
<11> eml: you two were given a warning yesterday. No need to repeat it today.
<4> Now, why are you using regex for any of this?
<4> Why not store the form data as CSV values and use fgetcsv to retreive it back out?
<12> since i need to get <input's and <textarea only from the whole txt file and then get values from there
<4> wait.... you're storing HTML?
<12> yep
<13> hi guys :)
<13> just a question... :D i've a little problem
<13> [Thu May 11 08:41:55 2006] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/htdocs/DbbS/includes/connect.php on line 13
<13> ummm.. why ? ;)
<4> You don't have mysql support installed
<12> Jejem: check phpinfo();
<12> Jejem: if you dont have mysql in there, install it
<12> Pollita: have any ideas for me?
<4> idan: if (preg_match('@<tag>(.*?)</tag>@i', $filedata, $matches)) { $tagdata = $matches[1]; }
<11> Pollita: have any ideas for ME?
<4> Though you'll want to adapt that to preg_match_all() if you have multiple instances of <tag></tag> to match
<12> thanks
<12> i will search for it in php.net
<4> Jymmm: For you? ***-Change
<10> Jymmmm, Yeah, I'll speak no more of them. I did remember my warning though, and I didn't intend to go any further, I'm sorry and it wont happen again.
<11> Pollita Can we have a three way then?
<4> depends if you wind up being hot or not
<4> At 2m/100kg, I'm skeptical
<6> lol
<14> hi
<11> Pollita What, you no like back alley chinese take out and *** change center?
<14> im having a mystrious problem with apache and php :(
<10> sharmeen, Just state your question and we might help you.
<13> idan: i have mysql .. :)
<4> Jejam: But you don't have the php-mysql extension installed.
<13> idan: phpmyadmin works well ...
<14> im rewriting url with mod_rewite
<13> > /usr/lib/php/extensions/mysql.so
<14> http://localhost/kingpin/naveedse <- its a member
<13> Pollita: ;)
<14> http://localhost/kingpin/action-games/ <- its a game category
<4> Jejem: But is it loaded by default? Or is phpmyadmin loading it dynamically.
<14> the two url should look the same
<14> im rewriting it like this
<14> RewriteRule ^([a-z0-9-]+)/?$ category.php?catname=$1 [NC,L,QSA]
<10> Jymmmm, BUT. To be fair, we never talked about any of that ugly stuff, if you would read the logg all we talked about was science. I will not complain anymore, just wanted to say that.
<4> Jejem: I hear you saying you have mysql loaded, but PHP is calling you a liar
<14> its working perfect till i add a _member_check.php file
<11> eml 1) I didn't ba neither of you, I REMOVED you guys. 2) It went WAY too far yesterday, I *HATE* repeating myself, and it's far easier to type /r eml<enter> then to explain the whole thing like I'm doing now, and far more effective too. 3) You don't have to apologize, just dont do it.
<4> sharmen: That won't match anything.
<14> which checks all categories
<4> sharmen: You forgot the leading /
<14> ^([a-z0-9-]+)/?$


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#web
#math
#css
Gnome keyboard preferences not working
#ubuntu
#fedora
debootstrap.deb
#math
installshield +PROGRAM_NAME
etch 2005fpw



Home  |  disclaimer  |  contact  |  submit quotes