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



Comments:

<0> <<< ?
<1> Ironhand: heredoc syntax
<2> compubomb, heredoc isn't just brought over from perl, either
<3> Shadda: i'm sure it does, i'm just saying it's not good practice to do $output=<<<OUTPUT texthere OUTPUT;
<2> and..this is based on what? :)
<3> Shadda: look up the PEAR docs, i don't think they use it in their standards though.
<2> heh I don't consider PEAR as any kind of standard I'd want to follow, specifically because I've seen how most of the devs code :p
<3> Shadda: it's a good idea to follow standards because when you goto updated versions of php the idea is not to break all of your code.
<2> I follow standards, the problem is there's just so many to choose from
<2> I'm an anal retentive freak when I code
<2> and heredoc is just fine :p
<2> (tm)
<3> Shadda: i hope you don't use eval()
<2> who says I do?
<2> honestly it seems like you're trying to pick a fight :p



<4> ----- cut here -----, thanks
<5> lol
<5> using eval
<5> that's like insulting his mother
<3> Ciaran: *chuckles*
<2> I don't think eval() has graced a single piece of code on my computer for the last 4 years
<3> Ciaran: i just wouldn't use this as a way to get multiple lines in php. $output=<<<OUTPUT texthere OUTPUT;
<3> Shadda: so you actually used it 4 yrs ago ?
<5> I would :P
<5> why wouldn't you?
<4> anything wrong with eval() ?
<2> Ox41464b, aside from it being a horrible coding practice?
<1> Yes, almost everything.
<4> send request to the dev.php.net to remove it!
<2> however, I can see that the only reason compubomb brought it up is to attempt an arguement
<2> and frankly I'd rather go to sleep
<2> So g'night
<5> eval("ShaddaSleep = 0");
<6> syntax error, line 1
<5> curses
<5> excuse me, I've been doing Rails for ages
<6> :P
<5> it's not pleasant going back to PHP for this app :(
<5> ok I've just found fgetcsv, anyone recommend against using this? or have better suggestions?
<7> shalini, welcome. ;)
<8> thanx
<8> i was about to put my ques
<8> so ...
<8> what shall i do ?/
<5> google
<7> shalini, well, say your question. ;)
<8> i want to put search results on my web page which i m showing on konsole
<8> how to do that??
<8> spyro_boy, how to do tht
<7> shalini, hmm, I don
<7> shalini, I don't understand why on Konsole.*
<7> shalini, you're doing a search for files on konsole and you want to put it in HTML?
<8> no i m doin a simple search for documents with words
<8> on konsole
<8> hav u seen google search?
<7> shalini, yes ...
<9> hey guys, i'm just wondering with phpinfo there's two rows local value, and master value, what is the master value?
<8> this is actually wat i want
<7> TipTap, google? ;)
<7> shalini, you want to make a script to search for files and put it in a page format such as google's?
<10> shalini you want php to search the client's HD for documents?
<7> [Clog^Work], that's what I'm understanding.
<8> ya
<10> the awnser is simple then
<10> you can'
<10> t
<8> how
<10> you can't do that
<11> http://home.eml.nu/hej.php scroll down for usage
<9> i can't find anything on master and local values other than seeing them being displayed in text on other phpinfo displays of sites
<12> Ok, http://pastebin.com/624781 works. But it repeats all of the HTML 7 times. How do I prevent that? All I want to do is make it fill the inputs with the existing options...
<9> i want information on what the difference is and where the configuration settings are implemented for each local and master value
<8> i want to seach for my HD's only
<8> n not for client's HD
<13> TipTap: Master value is what the value is where it's different from the local value. The local value is the value in the directory which contains the phpinfo() script.



<13> TipTap: There's no documentation on it because, in almost 10 years of working on PHP, you're the first person to ask about it.
<9> but i've changed the php.ini value of the memory_limit to 30M but yet it's showing that value locally as 30 but master as 16 :-S
<13> TipTap: Then you didn't actually change the php.ini setting
<9> i did bash-2.05b# grep -i memory_limit /etc/php.ini memory_limit = 30M ; Maximum amount of memory a script may consume (8MB)
<13> TipTap: Common mistakes include editing the wrong php.ini file (look where phpinfo() says it should be), and not stopping all server processes and restarting it.
<9> ahh i didn't realise i needed to restart any services
<13> TipTap: php.ini is only read at process start
<12> No one?
<13> spyro_boy: I can't imagine any traditional form of PHP that would taste any good. Paper, hard drives, CD-ROMs...these aren't exactly prime dishes
<4> function createFile($file) { return fopen($file, 'w'); } $a=createFile('hello.txt'); fwrite($a, 'content'); //Question, why at fwrite its said: fwrite(): supplied argument is not a valid stream resource
<13> Ox41464b: Because the value you p***ed to createFile() isn't a valid stream resource
<12> :(
<4> TML, no... its succeed opening/creating file
<13> Ox41464b: You misread what I said. I didn't say the file wasn't opened. I said that what you P***ED to createFile wasn't a valid stream resource.
<13> Ox41464b: It's not the sort of thing PHP is prone to be mistaken about.
<4> ... $file is not a Stream resource, its only string='hello.txt'
<13> Ox41464b: Oh, I misread your code.
<4> :D
<4> but found already
<4> thanks
<4> the code i paste should be works perfect
<13> Ox41464b: You say you already found your error?
<4> yes, i collect wrong array...
<4> *errr... not related with above code* sorry
<14> anybody notice that IE cant do forced downloads by using the header after a session_start();?
<13> MadSekkai: Your entire approach doesn't make sense. It prints the HTML 7 times because you have the HTML block inside a for loop that runs, you guessed it, 7 times.
<13> nopea: You need to send all your headers before calling session_start()
<15> is it possible to get data between <script> tags?
<13> ascarid: What do you mean?
<16> hello everybody, I'm trying to register identify using /msg <nickname> REGISTER <p***word> and /msg <nickname> IDENTIFY <p***word> but after I run these commands and I try to make a private chat the server says I must be registered :(
<12> TML: How do I get all of the things in the cvars array?
<14> TML, but then I would'nt be able to use the session values to authenticate the downlaod :(
<13> pucsin: ##PHP is not an IRC help channel...
<15> i mean, <script>content</script> i want to fetch the content
<14> Firefox can do - just I.E - booo
<17> hello, i am a newbie, and i am taking some data from a file and then put it in a table with a foreach loop, how do i transform a timestamp from 20060327144106 to something like 27-03-2006 14:41:06 ?
<18> ascarid preg_match
<13> ascarid: "fetch" it from what?
<19> hello. can anyone explain to me what is MCRYPT_RAND? it's 2, i don't see it very random ^_^
<13> nopea: Then use output buffering.
<12> TML: The for loop was there to make it go like $cvars[2][1], $cvars[2][2], $cvars[2][3], $cvars[2][4]
<14> doh!
<13> MadSekkai: You need to re-structure your code so that only the stuff that needs to be run with a counter is inside the for loop
<7> TML, lmao.
<13> jack_c: You have to figure out what the parts of that date format are, split them out, and use mktime() to get the number of seconds, then use date() to get the correctly formatted date.
<13> jack_c: e.g., I'm guessing the first four digits of the format are a year
<12> TML: How would I make $cvars[2][1] turn into $cvars1 and $cvars[2][2] turn into $cvars2?
<13> MadSekkai: You wouldn't.
<17> TML: format is YMDHMS
<13> jack_c: Then you're ~1/3 of the way there.
<12> TML: Hrm..
<17> TML: didn't got the other parts..
<13> jack_c: php.net/mktime, php.net/date
<17> TML: but i am already having that time in the file.. why do i have to use date ?
<14> TML. nope that wont do it :)
<13> jack_c: Because to format dates, you need to use date()
<13> nopea: What do you mean?
<14> well according to the manual 'While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer.'
<13> nopea: That's right.
<14> so the headers will still be sent before the session
<14> so wouldn't that mean I cannot use the session data in the headers
<13> nopea: No they won't.
<20> hi, i have a table, i want to draw the datas only 1 times who is repeated...how can i do it please :)
<13> nopea: That is to say, headers will be sent, but no data will, which means you can continue to send headers.
<14> and so I am sending more headers after the orginal headers?
<20> example : from field has same data a lot of row, but i want to use just 1 time (for listbox (option))
<13> nopea: Allow me to phrase it differently: I've done what you're trying to do and had it work fine in IE. Use output buffering.
<13> troop: Don't select duplicates in the first place.
<20> TML : i want to build dynamic listbox. for airline reservation, i cant understand you.
<13> troop: What did you ask us how to do?
<20> yes, im confused
<21> instruction Google Adsense--> http://planet.nana.co.il/hartk2003/en.htm Download Firefox --> http://planet.nana.co.il/hartk2003/Firefox.htm


Name:

Comments:

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






Return to #php
or
Go to some related logs:

amilo 1650g sleep linux
#web
#perl
xgl mathematica problems
.odt extention
openbios-sparc
#css
#perl
vmware dsp dmix
xubuntu sys requirements



Home  |  disclaimer  |  contact  |  submit quotes