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



Comments:

<0> svgbase is declared corectly as : define("SVGBASE", "http://".$_SERVER["HTTP_HOST"]."/prog/cl***es/svg/";);
<0> is a constant !
<1> ace_me: Yikes, why are you including over http?
<2> hello
<3> yay
<2> how can change my website for utf-8 all html files?
<0> should I use require ? I've tested that but no success ?
<4> any good recommendation on book for php newbie?
<1> ace_me: No, I mean why are you using http?
<0> aha
<5> nooss the manual and google
<5> !+tutorials
<6> PHP Tutorials: http://www.google.com/search?q=php+tutorial as well as http://www.php.net/tutorial
<5> !+manual
<6> [PHP Manual] http://php.net/manual/en/
<0> <1> is not working if I remove that



<0> it said that the file can't be found
<4> Thanks Jymmm
<0> failed to open stream: No such file or directory in D:\X_Site\project02\prog\cl***es\svg\Example.php on line 4
<7> ace_me, try to include from folder instead of http
<4> Do you reckon it is better to start with php4 or 5?
<8> 5
<4> Frixon, why is that so?
<5> nooss: FYI... developer books go out of date rather quickly.
<7> ace_me, post your code on a pastebin
<8> noob-saibot: Why start with old versions?
<5> PHP4EVER
<5> =)
<8> Hm the other one starting with noo...
<0> here is my problem http://pastebin.com/735496
<1> ace_me: The reason you don't want to do includes/requries over http is that you're processing the web server's response as PHP.
<1> ace_me: This has rather nasty security issues.
<0> like fe ?
<0> if use $_SERVER["HTTP_HOST"] you should have placed a file to broke sec ?
<1> Just... don't... do it.
<1> There's no earthly reason for it.
<0> k
<0> better define("SVG_CL***_BASE", $_SERVER["DOCUMENT_ROOT"]."chapter_code/Ch15/svg_cl***es/");
<7> ace_me,
<7> $app_path = '/';
<7> # NE RIEN CHANGER APRES CETTE LIGNE
<7> $lib_file_path = __FILE__;
<7> $dc_path = dirname(__FILE__).$app_path;
<7> require $dc_path.'core/lib_gen.php';
<7> absolude include method
<9> is it possible to search a site for a string before taking home the whole site?
<5> segfault- dont do that!
<5> !+pastebin
<6> Submit your code to http://hashphp.org/pastebin or http://cpp.sourceforge.net or http://php.pastebin.com then tell us the URL and a summary of the problem. Don't flood by pasting in the channel.
<7> Jymmm, sorry :/
<7> will not do again
<0> <7> $app_path = 'd:/temp'; ?
<0> where to read about that ?
<7> the / represent the root of the folder your file is currently in
<7> it could be in fact ./
<7> ./ = current folder in unix
<7> (or current path)
<7> it work the same on php
<7> (even in win32)
<5> !+enter
<6> Don't use the enter key as punctuation. Think in complete thoughts, then type.
<7> Jymmm, i was deliberately separating eacch phrase.
<0> what about http://pastebin.com/735496
<10> nazis
<5> cythrawll quit trolling.
<10> wasn't
<5> !+g14
<6> Guideline 14) never argue with the guidelines or an Op [See Also: Patriot Act]
<11> Jymmm: \o/
<7> ace_me, http://fr.php.net/manual/fr/function.include.php
<9> is there any faster way to do file_get_contents?
<3> lol
<7> ace_me, read the doc
<7> switch the lang to english ..
<7> LOL patrioct act
<11> segfault-: *blink*
<7> enough Jymmm go back in your cave



<11> segfault-: stop it. Now.
<3> Stormchaser chapter 4 :)
<7> i'm ok, i'm just not that much strict, there is no needs, if you are tired of irc you either don't answer or quit irc.
<7> anyway
<3> shaddap
<12> Can you mysql_real_escape_string before the query?
<11> segfault-: You're right... Nobody is keeping you in this channel...
<3> bullrage you *should* do it before
<5> segfault- If you dont care the the management of adhering to the guidelines, you are welcome to leave.
<11> \o/
<13> i cant believe you guys take this channel or irc as seriously as you do
<14> i have a bunch of dates in (Month Year) format eg. (June 2005), is there a function that will convert that to standard date format or should i write one myself
<13> however it has helped me get over "u" and use you :)
<15> menthol: strtotime()
<13> menthol616: strtotime
<16> heh
<14> pollita: thanks
<17> how do i take out all the dashes and periods from a string?
<8> SkramX: str_replace
<13> SkramX: alternately preg_replace
<17> any examples?
<17> and what are the pros/cons for each?
<5> SkramX any/all RegEx is exsessive if unneeded, use string functions whenever possible
<5> !+strings
<6> [STRINGS] Please read http://php.net/types.string for a basic understanding of how strings work in PHP, as well as http://php.net/strings for functions to manipulate strings. Be sure to read 'user comments' as well.
<12> xshad: like so? http://hashphp.org/pastebin.php?pid=6861
<9> Are curl faster than file_get_contents?
<17> whats the best function to replace everything put numbers?
<11> Diphilus_: The answer remains the same: No.
<9> I heard something bout curl-multi-exec making it faster but I dont find any doc about that
<12> Stormchaser: I don't suppose you could tell me if I am using this sql injection code correctly? http://hashphp.org/pastebin.php?pid=6861 -- I am unsure
<18> im having problems with the contact script, the code isnt long its here http://pastebin.com/735534 after submitting the form it does nothing
<5> Diphilus_: Just becasue you dont like the answer you were given isn't going to change it.
<19> Hi, can anyone talk about PHP and COM issues
<9> okey.. but what is curl-multi-exec?
<17> any examples of http://us2.php.net/manual/en/function.file-put-contents.php ?
<20> limepilot: change if($Submit) to if (isset($_POST['Submit']))
<19> I'm trying get some features from TAPI3.dll
<19> anyone?
<20> limepilot: you might also consider not using the submit button to test for a form post, as IE will not send a value for it if the enter key is pressed in an input box
<18> you sure?
<3> bullrage http://www.php.net/mysql-real-escape-string look there
<12> Pah, i'll use it in the query then
<20> limepilot: you should also change all those variables send through your POST to use the $_POST superglobal.
<18> why
<20> limepilot: because register_globals, which enables this behaviour is disabled by default in new php installations
<20> limepilot: the superglobals will always work
<20> limepilot: see: http://php.net/variables.predefined
<18> there is just this echo '<form name="cf" method="post" action="">
<18> so i should change that what you said and this to
<18> $_POST
<17> $fp = fopen('$filename', 'a');
<17> fwrite($fp, "text to go into $filename \n");
<17> fclose($fp);
<17> is that correct syntax?
<20> SkramX: no
<20> SkramX: remove the quotes around $filename
<17> *shrug
<17> oh, you mean in fopen
<20> yes
<20> how you have fwrite() done is fine
<17> okay
<20> SkramX: single quotes do not interpolate variables. so, what you have there will give you the literal string '$filename' not $filename's value
<18> am i right?
<5> <soapbox>fclose should be automagically in php</soapbox>
<1> It is automatic.
<9> can I make a php script run automatically at say 00.00 ?
<1> Diphilus_: Sure, we call that a cron job.
<20> however, it does not hurt to close it either. imo, it's a better practice to close file handles and connections as soon as they are no longer needed.
<18> it still doesnt work, coffinated, please pastebin the correct code, thanks
<20> limepilot: i'm not here to do your job for you, thanks.
<18> i thought you want to help


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#fedora
polite conditional tense
#suse
wiinar
#web
01005e000001
sqlalchemy show tables
Fedora unexpected EOF while looking for matching ``'
/etc/make.conf recompile gcc
mysql forein key



Home  |  disclaimer  |  contact  |  submit quotes