@# 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



Comments:

<0> Keal: rename
<1> just copy and delete, sheesh
<1> that too
<1> rename in Linux is really move
<2> thank you
<3> GNN-Ricardo; Try sending it to another e-mail adress
<4> there is no 'move' in linux. There is 'mv', tho
<5> Stormchaser: lol, someone i was teaching linux to wanted a 'rename' function
<6> sean` what's your e-mail?
<4> itrebal: haha :)
<2> http://www.php.net/manual/en/wrappers.php i still dont understand what a url wrapper is
<3> GNN-Ricardo; Use your websites e-mal adres
<6> ok i will try ricardo@gnn.com.br
<2> is .. a url wrapper?
<4> no.



<3> I believe that would be the function you use
<4> URL is an address...
<3> Oh wait
<3> I'm a little off-track
<2> then what is a url wrapper?
<3> Not the PHP function, but the protocol you use
<3> right?
<7> Keal: in general a wrapper allows something to be used by something else that normaly wouldn't be able to
<2> like a demux?
<7> Keal: a url wrapper allows urls, like http://, ftp://, etc to be use by any file functions, like readfile()
<2> oh ok
<2> ||cw sounds insecure?
<6> sean` i received the e-mail with success, any ideas?
<3> GNN-Ricardo; Then there should be nothing wrong.
<3> Or the hotmail server si chocking or your headers
<2> Or the hotmail server is choking on your headers?
<8> Keal: There are ways to disable that functionality for security. Specifically, allow_url_fopen
<6> can you send e-mail to hotmail by php?
<3> Yes
<3> Keal; Don't copy my answers
<6> please past to me your php mail script
<2> i was fixing your lazy typos
<3> Keal; I'm sorry I was in such a hurry typing them.. I have other things to do you know ;)
<3> GNN-Ricardo; My php mail script?
<6> i mean, your headers...
<3> mail ('Name <email@host.com>', 'my subject', 'fooo bar hey whats up yeah I\'m soo cool!', 'From: ame <email@host.com>' . "\r\n" . 'Reply-To: name <email@host.com>' . "\r\n");
<9> am I missing some other check here ? if($v2=='' || $v2=='0' || is_null($v2) || empty($v2)){
<4> the heck? Why not just use empty()?!?
<10> ks: Uh, depends on what you're trying to do. Might also want to check ===false (or use empty)
<6> i will change to: mail ('Name <toribas@hotmail.com>', 'my subject', 'fooo bar hey whats up yeah I\'m soo cool!', 'From: ame <la@gnn.com.br>' . "\r\n" . 'Reply-To: name <la@gnn.com.br>' . "\r\n");
<9> looking for empty fields from mysql
<9> empty might be 0, NULL etc
<6> sean` this script got error!
<8> ks: http://www.php.net/manual/en/types.comparisons.php#AEN255740
<10> Time for me to head home, yay, work's over. See ya' soon! :)
<3> Then fix them..
<10> well... not so soon. Tomorrow morning.
<6> that is not your script? i think the first colun it's wrong
<3> whats the error GNN-Ricardo ?
<9> frank_farmer thanks
<6> i think it's only toribas... not NAME <>
<3> GNN-Ricardo; 'name' should be changed to YOUR NAME <your@email.com>
<3> Ricardo <ricardo@foo.com>
<6> http://host.gnn.com.br/m.php look the error
<6> PHP Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in c:\domains\host.gnn.com.br\wwwroot\m.php on line 7
<3> You can also just use the e-mail adress.. 'ricardo@foo.com' instead of 'name <ricardo@foo.com>'
<6> line 7: 'Reply-To: name <la@gnn.com.br>' . "\r\n");
<9> Stormchaser cause some values p*** the above check
<3> GNN-Ricardo; Please read php.net/mail
<3> copy the contents
<3> use t hat script there
<3> I'm too tired to be helping people
<11> sean: go to sleep then
<12> I am getting an apache-crash every time I run the following line: $output = file('http://localhost:9013/content/view/2');
<12> Is there some reason apache would crash if you ask PHP to store its own output?
<11> what do the error logs say ?
<8> Seldo: are you calling the script over and over again recursively?
<12> frank_farmer: nope, it's not a recursive call.
<12> I can output the value of $output
<13> what's the ini set function called?



<12> The crash occurs after that.
<13> i can't find it when i search for ini in the docs
<8> r0xoR: ini_set()
<13> it just takes me to the ini directives page
<13> huh
<13> k
<6> i found the problem sean` //This line DOES NOT send mail message correctly
<6> $headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
<7> Seldo: so http://localhost:9013/content/view/2 isn't the file with that file() call in it, right?
<6> //This line sends mail message correctly
<12> alphablue: the error logs say "[notice] Parent: child process exited with status 3221225477"
<6> $headers .= "From: \"".$fromaddress."\"\n";
<14> GNN-Ricardo: using \r\n not \n
<12> Which looks like an overflow of some kind. Do I just have an unstable copy of apache?
<14> s/using/use/
<14> Seldo, yea, no process can exit with any number but an unsigned short (0-255)
<15> do i set configuration directives in an htaccess file or in the scripts?
<12> This is apache 2.0.45/php5.1.1/winXP
<7> Menthol: depends on the directive
<12> I guess I should upgrade apache :-)
<16> Menthol: Whichever is appropriate.
<16> Menthol: Some directives can't be set from scripts, some can't be set from either.
<8> Seldo: are you using a non-threaded version? There's something about php requiring some prefork version of apache...
<15> im looking at register_globals
<15> and session.auto start
<7> Seldo: if you not using the prefork-MPM then certain non-threadsafe php modules can case apache to crash badly
<12> frank_farmer: surely the thread-safe problems could only occur in a multi-user environment? Thread safety is only a problem when you have more than one thread active... right?
<12> Okay, so where do I get a prefork-MPM, whatever the hell that is? :-)
<8> Seldo: I'd think that if a script is calling the same server back, that'd result in the instantiation of another apache thread, no? Since it has to serve two pages at once?
<7> Seldo: no. threading is built into apache. IIRC it's one of te apache compile options, or an install option, or soemthing
<16> It's just a matter of selecting the MPM to use.
<16> Prefork is included by default.
<8> Here's the article in question:
<8> http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
<12> I am using CakePHP, so I have no idea what modules it is using -- certainly mod_rewrite, but it could be using any number of other things.
<4> !+a2
<17> Apache 2 the newest version of the Apache web server. PHP versions 4.3 and above are somewhat compatible with it. Because of Threadsafety Issues, mostly in extension libraries, the Multi-Threaded MPMs should be avoided. The Prefork MPM works in a similar fashion to Apache 1.3.x and appears to work accordingly. See http://news.php.net/php.internals/10491 for a more detailed explaination.
<18> how can i redirect to other page after i sent the Header ???????
<7> Devyll: javascript for http meta refresh
<4> Seldo: How is that ##php question? Try #cakephp
<12> "And finally, this warning against using a threaded MPM is not as strong for Windows systems because most libraries on that platform tend to be threadsafe."
<12> Stormchaser: it is not a php question, it was a clarification of my ongoing conversation about why php keeps crashing apache :-)
<19> Hello, all, I use horde right now, and it seems that there are much better frameworks out there. What do you guys think of cake vs symfony ? Thanks for the help
<12> mtgh: I am using cake, and I like it a lot, but read the manual, not the wiki -- the wiki is very confusing.
<12> symfony seemed a lot more complicated to set up, but is probably more suited to larger projects (especially if you need internationalization)
<20> hey all
<20> anyone awake=?
<19> seldo: it seems that symfony is more mature....or at least has more features.
<20> ah
<12> mtgh: it depends if what you want is a powerful framework, or a framework that saves you time.
<21> hi
<12> I feel that the whole point of a framework is rapid development.
<21> i want to create a file, what must i use ?
<20> only 1 quick questions, >>$m = $_GET['m'];<< what i you dont overgive $m to the file, what value has it got then?
<21> i think touch like in linux, but that's not ok
<12> Zmanu: notepad?
<12> ;-)
<20> i = if*
<8> Zmanu: the touch() function should work perfectly.
<21> Seldo: with php
<18> I want to sent a diffrent ip to the website that a php script connect .... is this possible ?
<12> Zmanu: you should have specified ;-)
<12> GodKilla-: if you don't p*** a value for m, it will be undefined
<12> You can test that with is_defined or is_null
<20> ah
<20> php.net says defined
<20> int defined ( string name )
<8> Devyll: Yes. curl_setopt() with CURLOPT_INTERFACE will do the trick.
<20> so if (defined ($m) == TRUE) { ... }
<2> thank you, rename worked
<8> GodKilla-: defined() is for constants. You're dealing with variables, so you must use is_defined()
<20> ah, thanks
<8> From the docs: defined -- Checks whether a given named ___constant___ exists


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#ai
qemu sendkey enter
xglx gentoo
ubuntu lirc_serial
#nvidia
ResponseText line terminators
ubuntu hangs in firefox repaire
apt-spy not found bug
makko asdfa
#gimp



Home  |  disclaimer  |  contact  |  submit quotes