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



Comments:

<0> i figured it out if anyone wants to hear about it :D
<0> w+ was giving me an error so i thought it was wrong so i was using r+
<1> OmiKron. you executing from shell? 'cause the commands you're using uses the shell.
<1> or not exactly ftp.
<0> w+ gave me an error because it erased the file before i read it
<0> so i had to do 2 fopns, one to read with r+ and then one to write with w+
<0> :D
<2> da`bahny: that is some snippet of the code followed bu how it looks the sourcedir and the dstdir (yeah ls -al)
<1> have you tried going with the else statement instead of the first if statement?
<1> Cyno. that's practically like C programming.
<2> huh?
<3> quick question: is still Apache 1.3 recommended over Apache 2.x ?
<1> ' tried removing the first if statement and going just with the 'else' statement '.
<1> wombachi. it's been around a looooong time so i recommend it.
<3> you mean the 1.3 version I suppose? It was rasmus opinion some months ago iirc
<1> yah.



<1> should work. i've been using it since '02 for the matter.
<4> Hi there, question: I'm trying to add 536K of text to a variable $text on my providers server, they switched from PHP3 to PHP4 recently, and while this used to work it seems to be limited to about 256K, should I ask my provider to change the PHP settings? If you think so, what should I ask them?
<4> I hope any one of you has a clue...
<3> ok thanks
<5> how do i get a proper octal for mkdir's mode?
<6> How can I destroy an object (i.e an instance) from within itself?
<4> question after question... ;-)
<5> when i do $mode = 0777, then do mkdir('some/dir/', decoct($mode));, it strips off the leading "0", which makes mkdir not work right
<5> no one?
<5> wow...
<7> Hello all
<1> no. it looks right.
<1> does php have a shell to use when it comes to using different OSs? like it has commands and all?
<8> da`bahny, there is a CLI, if that is what you mean
<8> Shadowhand, 0777 is already an octal value
<8> Shadowhand, no need to use decoct on it.
<9> Is there an easy way of parsing XML in PHP?
<5> colder, sure there is, because when you ***ign it to a variable, it changes it to a decimal value
<5> spyro_boy, yah, PEAR php Serializer
<8> Shadowhand, err ?
<1> anyways, what's wrong with using xml with PHP?
<9> Shadowhand, er.. what?
<9> What's that?
<1> i say xml is very undertaken for its capabilities.
<5> spyro_boy, http://pear.php.net/package/XML_Serializer/docs
<9> Thanks :)
<8> Shadowhand, mkdir is ment to receive the mode in a decimal format.
<7> One of my servers got rooted this morning. I think it was because of the xmlrpc bug. Anyone know which versions of php were vulnerable to that?
<5> colder, then why is it when i do this { $mode = 0777; mkdir($dir, $mode); }, then 'stat' $dir, it tells me that the mode is 1411 ?
<8> Shadowhand, it would work just well, no need to specify the mode in this case though, as 0777 is the default value
<5> colder, obviously it doesn't work, because my mode is 1411
<5> colder, ah, i figured it out.... { mkdir($dir, octdec($mode)); }
<5> thanks though
<8> err.
<8> tessier, which version of xmlrpc did you run ?
<7> colder: Loosk like php-3.2.10
<8> gasp
<8> tessier, take a look at that: http://www.hardened-php.net/advisory_152005.67.html
<10> hello, is there a way i can get a clients browser ip even if there going thougha router or a proxy?
<8> scotepi, if the proxy is nice enough to forward it, yes
<11> Sebastian:on television?
<10> hmm then is there another way to get it using some simple clientside scripting?
<11> erm
<8> scotepi, nothing to do with php then.
<10> do you know what is capable and is in every browser?
<11> $_SERVER['HTTP_X_FORWARDED_FOR']
<11> Not that you can 100% trust that
<10> Pollita that for me?
<11> scotepi: yes
<10> its blank without the proxy and unknown with it :(
<12> I have a site that I need to switch from using cookies to p***ing PHPSESSID in GET instead. Do I need to manually put ?PHPSESSID=$phpsessid at the end of every url in every link, or can PHP handle this for me? There's a lot of code that needs to be switched.
<8> IdahoEv, it will handle that for you
<12> colder: even on hard-coded URLs in flat pieces of HTML that are include()'ed in the page?
<13> IdahoEv, try setting session.use_cookies to 0
<8> IdahoEv, and enable session.use_trans_sid
<12> Can I set session.use_cookies and session.use_trans_sid from inside my code? this is on a commercial hosting acount where I can't edit php.ini
<8> IdahoEv, you can set it in a .htaccess file
<13> IdahoEv, it would have to be put in a htaccess file
<12> okay, I am googling that now for an example. Thanks a ton, guys!
<8> you would also have to change arg_separator.output if you want your code to be XHTML compatible
<12> colder: yes, the site is XHTML 1.0 trans compliant



<14> I have a problem with sendmail + phpadmin, usually phpmailer works, but sometimes I see this message
<14> May 18 18:19:27 mlwb704 sendmail[17367]: k4IGJRa6017367: Syntax error in mailbox address "giovanniarico@camaraitaliana.com?" (non-pr
<14> intable character)
<12> The reason for this is pretty annoying: we started allowing our clients to embed our DB-backed product list directly in their website via an iframe. But it turns out that IE's default cookie settings won't retain cookies that are set in frames, only in top-level windows. So I have to persist sessions with GET instead.
<14> any idea? I use trim, but does not helps :(
<15> for those that do frontend and backend work, do you prefer to work on the frontend first?
<13> Mysta_, work on both at the same time
<15> would you recommend one way over the other?
<15> pros and cons? maybe
<13> depends how you like to work.. i like to make sure things are working instead of guessing
<16> Mysta_, design it first (conseptually) before doing anything
<10> is there a way i can change or add variable to a url withought having to know whats all ready set?
<16> then think of how the application will work and interact w/ the database
<17> how unsecure is it to set the varial $HTTP_POST to http://mydomain in the main php config file?
<15> mick_work: that makes alot of sense, i'm trying to see how others do it the other way around
<16> Mysta_, there is a great book from Jesse Liberty called "From Clouds to Code" that goes over those things
<18> Is it not possible to enable mbstring's function overloading programatically?
<16> it is from Wrox Press (it goes over C++ but the consepts are all the same)
<15> mick_work: thanks, I wonder if that is on Oreilly's Safari Bookshelf... I'm going to check now.
<17> how can I allow the use of HTTP_POST without turning on register_globals?
<19> hey all. anyone any suggestions why mysql_connect('<ip>', 'condolences', 'jkh63madf') would result in a Access denied for user: 'condolences@<host>' (Using p***word: YES) where the IP address doesn't resolve to that host?
<10> tkup $var = $_POST['postvar'] ;
<10> pookey can you ping the ip from the server? and is there a extra space or something on the ip
<19> scotepi: yes, and no.
<20> hi :-) any good library that extends session handlers?
<21> is there any way to find the max key of an array? Just get the number?
<22> DogWater: http://php.net/max http://php.net/array_keys
<22> DogWater: Although I'm not sure why it'd be important.
<10> DogWater i normaly do $max = count($array) - 1; echo $arrary[$max] but think there is a function too
<21> because I need to look at all of the values of an array for their values and compare them from 1 to the max
<21> and i need to know the max
<17> scotepi, I'm managing virtual webserver and this would mean making all the users change their php scripts. anyway this could be avoided?
<10> pookey dont know.. that seams strange. can you try its dns?
<19> scotepi: same problem oddly.
<10> tkup dont know then
<10> pookey does that user have remote access rights?
<21> matt: referencing an array from a for loop
<19> scotepi: yes, but the error suggests it's trying to use the local SQL server, not the remote one.
<19> scotepi: actaully... ermm.. no it doens't. I'm misreading the error
<19> scotepi: I'm beign a complete idiot infact :)
<10> lol
<19> thanks :)
<18> Does anyone have experience with using ming with utf-8 text? (Specifically, text in Japanese)
<23> hi
<23> how can i register variables globally . i mean how can i create such varibalbes like $_POST for example which are accessible form everywhere ?
<18> I'm seeing it render text exactly as I'd expect a browser that didn't grok utf8 text to render
<23> Ox41464b: ideas ?
<24> $_GLOBALS['yourvar']
<23> Ox41464b: is there a nicer way for it ?
<24> global $yourvar;
<25> russleon: By using runkit
<23> Ox41464b: for example i define an array with values in a file. then i include() it into another file. and i want to access this defined array in one of the methods of a defined cl*** there
<25> php.net/runkit
<23> kuja: php4 ?
<1> tkup. it's all about how to configure the httpd.conf in apache.
<25> russleon: Maybe, maybe not. But this is generally bad practice.
<23> kuja: constants
<23> kuja: for example a global list of types
<23> and it is array of arrays
<23> each type has also a function defined for it
<26> hio.
<25> russleon: So use a regular variable.
<23> kuja: then it is not defined in the context of cl***
<23> for example i have
<25> Then p*** it into the cl***.
<23> fomr where ?
<23> on creation ???
<23> no it is not a good idea
<23> it would mess up interfaces
<25> Yes, yes it's a good idea.
<23> i would like to access it globally
<23> not in this case
<23> no
<23> nononono


Name:

Comments:

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






Return to #php
or
Go to some related logs:

genkernel all iptables
samsa+MTP
#oe
smtp_discard_ehlo_keyword_address_maps
#php
#debian
#css
open suse real video
Error cracking CSS key for
debian perl mysql perl Client does not support authentication protocol requested



Home  |  disclaimer  |  contact  |  submit quotes