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



Comments:

<0> phreak: should have think about it earlier... stupid me
<0> phreak: it's fixed now :)
<0> thanks
<1> GregVernon: Does it suppress error display to the output (browser) only or does it suppress error output to the error log too (***uming that its set up in php.ini)?
<2> Cuddles_in_KY: echo implode("\n", array_reverse(explode("\n", file_get_contents("yourfile"))));
<3> I'm not entirely sure, I'd probably know, but its 2am where i live and I really needed to get into bed along time ago
<4> !seen lukian
<1> GregVernon: Its 2am where I live too. :) Therefore I know you're on the east coast.
<3> :P
<5> phreak: One last thing (that fixed it, btw). Any way to NOT have it wrap lines?
<5> phreak: It's wrapping everything into one big line.
<2> Cuddles_in_KY: Put <PRE> </PRE> around it :)
<3> ugh, I have 3 XHTML errors, I really want to fix them...
<3> this is so annoying
<1> Alright, thanks.



<2> Cuddles_in_KY: Or, nl2br() on the whole string, if you want to convert \n (newline) to <BR />
<5> phreak: You just lost me.
<3> haha sorry EricL, but I can't help you right now...
<2> echo nl2br(implode("\n", array_reverse(explode("\n", file_get_contents("yourfile"))))); :P Check the manual for nl2br to see what it does.
<2> Cuddles_in_KY: Or, use the html-tag <PRE> around the block, that way it won't wrap it.
<1> GregVernon: No problem. The first answer was the one I really needed.
<3> okay, that works :)
<5> phreak: That fixed it, thanks! :)
<2> Cuddles_in_KY: use "\n<BR>" as the argument to implode instead, more efficent and prettier :)
<1> Night, I am gonna try to tackle my cookie problems in the mornings.
<1> Thanks again.
<5> phreak: You're right, that does look better. :) Thanks again!
<6> Does anyone know of an open source paste bin? Besides the one on SF, that one isn't any good. My host doesn't support ROR.
<2> Heh, _newbie_'s little counter adds TWO for each hit :)
<7> hi guyz.. whats the difference between $config[general_use_session] and $config['general_use_session'] ?
<2> axscode: The first one is bad, one day general_use_session might be a predefined variable and BAM your code get's b0rked.
<2> And also it's ugly as hell :)
<3> omfg, Im an idiot
<3> another Sleep related stupid moment!
<7> phreak: yeah.. right.. im debuging the script and adding '' on all variable..
<7> geeh.. how troublesome
<8> Damnit, I want .com.
<3> scratch that, no fix :(*
<9> is there a debugger for php
<10> vimman, sure.. plenty of debugging. Check zend studio, PHP Unit, PHP Eclipse, etc.
<9> i use vim.. so will not use Eclipse.. i look for a commandline debugging tool...
<11> where's the php6 notes?
<12> google for "pdm php6 notes"
<12> http://www.php.net/~derick/meeting-notes.html
<13> is there a function to check is a function is already defined?
<13> *if
<2> Akuma_: function_exists()
<13> thanks
<14> Pollita CMT Channel
<14> Pollita If you like 'Pimp My Ride', you gotta watch the redneck version 'Trick My Truck' on CMT Channel right now
<15> Is it possible to code so if userlev is balbla the design and everything in the site should look in a specific way and if userlev is blablablabla the design and everything should look in a diffrent wway?
<14> Pollita and were NOT talking pickup truck either... 18 Wheeler baby!
<2> NiGHTFiRE: Uhm, yeah?
<15> good, would i use the if else statement
<2> Sure? That's one way of doing stuff? :)
<15> Okey, well thanks then. I'll try that :)
<15> Can you use the header and exit function later down in the application cause i've read some where that you can only have it in the top
<2> NiGHTFiRE: Well kind of, you can't use header() after something is already sent (Unless you use output buffering and clear it etc.)
<15> Yeah.
<15> What function should i do then?
<2> NiGHTFiRE: que? :)
<16> is there a way to take a directory with like a whole bunch of members directories... transverse them and change the file permissions on all of the sub directories and files in this parent directory? or am I looking at a major pain in the butt script to do this?
<8> http://code.bulix.org/index.phps
<8> Will that just run, or do I have to get other stuff?
<15> phreak: Well what else should i use to transfer them if they dont have access ?
<2> NiGHTFiRE: Transfer who/what where? :)
<15> Well if the userlev isn't correct when the user tries to log in, they should be transfered.
<2> NiGHTFiRE: I'd suggest that you checkout some simple auth scripts (or perhaps even a from the ground up tutorial about php)
<2> FlyingFrontier: I'm pretty sure nobody will even try to guess WHAT you are talking about :P
<8> phreak: Thats a pastebin, they released the source and that is it.
<8> phreak: Can I just copy and paste that while changing the datebase, and then just have it work? Or will I have to get other feels.
<2> FlyingFrontier: Mkay, well, you have to have mysql :)
<8> Have it.
<2> FlyingFrontier: With the right table structure etc?
<8> No. I don't know it.



<2> FlyingFrontier: (Why not try the damn thing? :P And then fix whatever doesn't work)
<2> FlyingFrontier: Did you ask for it? :) Anyways, you could try figuringen it out, can't be that hard. Look for some INSERT querys.
<2> ShadowMstr: Sure? :) I don't suppose it would be that difficult. Go checkout readdir()
<8> phreak: Well...Im not the most skilled in PHP.
<8> :p
<15> How do you get something from an database without the userperson has requested? I mean. I want to check if 'username' has acccess to this site. How would i get what username 'username' has?
<2> FlyingFrontier: Well search for INSERT INTO and you'll probably understand what fields to use.
<8> phreak: http://code.bulix.org/1203
<8> Thats all there is with "INSERT INTO".
<8> How do I know what to put in the mySQL db?
<14> !+sql
<17> [SQL] Structured Query Language - the language for most DB Systems. See http://www.w3schools.com/ http://www.sqlcourse.com/ http://www.onlamp.com/pub/ct/19 and #mysql, #postgresql or #sql
<8> Jymmm: ?
<18> how to get the root path?
<18> wanna get something like /home/usr/xxxxxx/xxx
<14> !+gv
<17> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<18> um....there are many root variables in $GLOBALS, which of them is the correct one??
<8> Is the pastebin on hashphp.org open-source?
<19> FlyingFrontier: I'm not sure.
<20> i was thinking about getting a mac mini tomorrow afternoon.
<21> how would i write an if() that checks if $_FILES['userfile']['size'] is smaller than 4194304?
<21> hmm i think i got it
<22> hello
<22> http://pastebin.com/549543
<20> omp, dont tell me ur solutoin was as easy as if( $_FILES['userfile']['size'] < 4194304 ){ }
<22> what package i need to download ?
<23> lol
<24> Hello?
<24> >_>
<25> hi there guys
<25> I am trying to compile php5 for my Debian/Apache2 server
<25> --with-apxs2=[path] gives me this error:
<25> apxs:Error: Sorry, no shared object support for Apache available for your platform
<25> is there any other way I can install php5 for apache2?
<25> I don't seem to see any Apache2 (not shared) module option
<26> does anyone know how to make a connection statement to a database iwth php
<26> i.e. i want the user to query a datbase via the web.
<27> bladhasd: there's are many ways. are you querying a mysql db?
<26> yes
<24> You want mysql_connect(), then
<24> If I'm not mistaken
<26> i think so
<26> never used php
<26> i know equivalent in jdbc
<26> how would the syntax look like
<24> http://us2.php.net/manual/en/function.mysql-connect.php --> http://us2.php.net/manual/en/function.mysql-select-db.php --> http://us2.php.net/manual/en/function.mysql-query.php
<26> if i would make a query.html file
<26> thanks
<27> bladhasd: it's $db=mysql_connect("host", "user", "p***"); then mysql_select_db("dbname",$db); then run your $sql
<26> would i write that in query.html
<26> at the beginning
<28> bladhasd: consult a tutorial
<27> bladhasd: in your html... then you do your mysql_query($sql) on your sql code and then mysql_close($db) your connection to your database.
<29> hi. id like to get the quota or usage of a mailbox. ive tried imap_get_quota and imap_get_quotaroot but just get a warning saying it failed. anyone give me a hand?
<25> let's try again: anyone compiled php5 for apache2 and wants to give a newbie a hint? :)
<20> rysiek, ur compiling on your own?
<28> rysiek: 1000 people do it every hour ... what exactly is the problem?
<24> Blad, the .php file would look like this, somewhat:
<24> <?php
<24> mysql_connect(blah);
<24> mysql_select_db(blah);
<24> mysql_query(SELECT blah FROM blah WHERE blah);
<24> ?>
<25> aidan: apxs:Error: Sorry, no shared object support for Apache available for your platform
<28> rysiek: ask in #apache
<25> I am compiling with --with-apxs2=[path]
<25> aidan: already did
<25> no help there :/
<26> ah would i have to name it query.php
<26> or can i name it query.html
<28> I'd just wait, that's an apache problem and I don't know the specifics
<28> bladhasd: this is NOT a tutorial channel


Name:

Comments:

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






Return to #php
or
Go to some related logs:

pygoscelis ebuild
password stored in kopeterc
tcpdump reverse
kuickshow xgl
ktorrent sarge deb
#perl
bash: : Permission denied gentoo conky
#asm
#css
raiserfs mke2fs



Home  |  disclaimer  |  contact  |  submit quotes