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



Comments:

<0> <input type="text" name="<?php $var.$count?>" size="35" maxlength="60">
<0> <SELECT NAME=choose1 >
<1> I said pastebin, not paste
<0> <option value="nl"> </option>
<0> <option value="pm">Stuffed Portobello Mushrooms</option>
<1> stop
<0> <option value="pp">Penne Primavera</option>
<2> fonixz, stop
<0> <option value="tr">Triangle Ravioli Marinara</option>
<0> </SELECT>
<2> anyone got ops ?
<0> <br />
<2> aha
<3> nice
<1> I guess I should of added .com, heh
<2> excess flood :)



<1> sal002: Are you the one invoking it from command line?
<4> Yes
<1> sal002: As long as it registers argv (forget the exact setting), you can manually send a parameter
<1> so like php -q myscript.php cli
<1> And then with if ($_SERVER['argv'][1] == 'cli') { /* from command line */ }
<4> Okay, that will work. Didn't know if there was an environment variable or the like that PHP would instinctively know
<5> Hi! does this reg exp match all chars between 2 <br />, "/<br \/>.*?<br \/>/" ?
<1> sal002: It's a config option, it may or may not be turned off, I think it's register_argv or something close to that.
<0> my bad guys
<4> Thanks!
<0> http://pastebin.com/715456
<1> fonixz: -_-
<0> didn't tab over
<6> *blink*
<1> fonixz: Your script says testingecho.php, yet I fail to see an echo.
<0> ill paste the copy of echo
<0> in pastebin
<0> :P
<0> i was just using echo to test to see if the variables were being p***ed along
<1> Ok I think that was too suttle
<0> http://pastebin.com/715465
<1> fonixz: php.net/tutorial
<7> if i had a url like /home/public_html/images how would i remove the images and just have /home/public_html/
<7> i want to remove everything after the second to last /
<8> http://us2.php.net/manual/en/function.pathinfo.php ?
<7> so if i did pathinfo on /home/public_html/images it would display /home/public_html for the basename?
<9> could someone look at this please? it seems to be messing with my session variables somehow... http://pastebin.com/714787
<6> !tell Jezek about tias
<7> ok
<10> hi guyz.. i have a form that post to it self... but when i refresh.. it keeps on saving in the database... do you happen to know how to handle this?
<11> yah. maybe you could use an 'if' statement.
<10> hmmm cool.. and what variable should i consideR?
<11> the variable of choice not to say yes to?
<12> add a unique field to the important part
<11> or maybe no.
<10> i already did..
<12> and track via session
<10> but that is accessing the dbase still.. how about in client side?
<10> ill ask javascript people first
<10> hehe
<12> if your in session, after post, you set a session flag to true, check this before posting
<12> if true, it wont re-post
<10> hmm session.. yes right
<10> thank u sir.. sir. ask. how to set a session variable?!
<12> $_SESSION["moo"] = "poo";
<10> ok sir thank you.. youre a good help
<10> no need for client side
<1> don't forget session_start()
<11> does the session part have to be exactly '$_SESSION' or could you just put $SESSION.
<7> it has to be $_SESSION
<11> ok.
<10> session start. thank you.... got that
<10> session_start(); on the first when they access the page.. is that triggered again when i use post?
<1> It needs to be in any script that accesses $_SESSION
<10> hmmm ok.. so it doesnt matter if i triggered the session_start() over and over agian?
<1> -_- No
<10> ok.. so if i triggered the session_start(); once.. and set a $_SESSION variable.. when i start it again but not closing my browser.. i can access the same value of the $_SESSION variable if i triggered the session_start() again?
<1> Yes, hence the point of sessions
<10> it is only destroyed if the browser is closed? or how about. i try.... www.mysession_page.com then.. www.google.com at the same browser.. then ill getback to www.mysession_page.com again.. can i still retrieve my $_SESSION?
<1> http://us3.php.net/manual/en/ref.session.php



<10> do i need session_register(''); even if im not gonna use it on the other pages?
<8> php.net/session_register is very much depreciated
<1> axscode: Don't use session_register, use $_SESSION
<10> oh ok. there..
<10> ok sir... just went through the refs.. i cant find answer to my question earlier..
<10> it is only destroyed if the browser is closed? or how about. i try.... www.mysession_page.com then.. www.google.com at the same browser.. then ill getback to www.mysession_page.com again.. can i still retrieve my $_SESSION?
<10> forgive me for my poor comprehension..
<13> axscode - why don't you just try stuff out and see.... it's a good way of learning ;)
<10> lizards_online: just askin sir.. coz someone already did...
<10> RogueJedi: one last question sir... do i really need to set cookie-enable for that? or p*** it through url?
<1> axscode: Cookie would probably work best
<10> hmmm.. is it automatically set to cookies?
<2> any idea why xml_parse refuses to parse (and generates no errors) an xml file encoded in utf-8 regardless of if i p*** the encoding or not
<2> is it possible to turn on debugging for xml_parse ?
<2> (i've searched google but to no avail
<1> axscode: Depends on your php.ini
<10> ohh... RogueJedi: can u point me to a keyword in php.ini?
<1> do a find for session
<8> !tell axscode about u\
<8> !tell axscode about u
<10> you.. im so sorryu...
<8> its ok
<10> bad sms/txting habit..
<10> phonetics crap....
<8> yes, yes it is.
<10> thanks RogueJedi anyway..
<1> yup
<14> is there a way to ignore case when selecting a key in an array ?
<6> no
<15> hello! I am wondering is there a way to get info from an html file, I am specifically refering to a shoutcast index.html page on the server that outputs the latest song info can I grab that info and display on a php page?
<13> surfdude - sure, use file_get_contents() to get the entire file into a string
<15> any clue what to do then lizards_online ?
<13> surf - do you just want a part of the file ?
<15> lizards_online, take a look at the page http://radio.orbno.com:8060/ I wanna set all those to a varible
<15> stream url, stream title, stream song etc
<13> surf - from the source of that page I can only think that you'll have to programatically strip out the parts that you want, maybe using substr()
<15> lizards_online, could you give me an example
<15> sorry :P
<13> surf - $pos = strpos($file_contents,'Stream URL') ; $file_contents=substr($file_contents,$pos); that will strip all the stuff before 'Stream URL', you'll have to use multiple search / substr() calls to get at what you need
<13> surfdue should read the string functions in the manual ;)
<15> i am
<15> :)
<15> very complex
<14> is there a way to ignore case when selecting a key in an array ?
<13> computergeek - no, there still isn't stormchaser said that 10 Mins ago
<13> surfdue - the first line you want is this right "Stream URL: </font></td><td><font cl***=default><b><a href="http://www.orbno.com">http://www.orbno.com</a>";
<14> oh whoops didn't see that sorry
<15> got it
<15> lizards_online, it seems shoutcast has a page 7.html that outputs all into a variable already
<15> :P thank you though :)
<7> there is this function that allows u to get like each variable from a query string, but i cant remember it. does anyone know it?
<16> hi
<8> $_SERVER['QUERY_STRING'] Jezek ?
<7> no its not that
<16> is there a way to make functions like highlight_file() not echo the output but get it into a variable?
<8> LeonWP: there *is* its not the best way, but ob_start(); and ob_get_clean();
<7> aha its parse_str
<13> jezek - there is extract() but it's recommended you manually check your GET vars in case someone's trying SQL injections or something ;)
<7> ok
<16> itrebal, how to use it? ob_start(highlight_file('file.php'));?
<8> LeonWP: read the manual on them
<16> ok
<17> http://hashphp.org/pastebin?pid=6676 -> please
<17> someone knows whats wrong?
<18> how can I add months to a given date?
<8> mktime?
<18> lemme see if it does it...
<19> hmm
<18> seems not to
<18> I can do it in sql :) select '2006-12-01' + interval '1 month';
<19> I have a question, if you have a function inside a cl*** that returns an array when called with $cl***var->function, where does it go? must it be ***igned to a variable or is it part of the cl*** now
<20> Yes, if you return something, to keep it you must ***ign it somewhere.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

mplayer mozpluggerrc ubuntu
udev-event exec of program
#fluxbox
mysql workbench debian sid
unrar executable for ubuntu
#linux
PhpAGI Tutorial
#mysql
#awk
#css



Home  |  disclaimer  |  contact  |  submit quotes