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



Comments:

<0> Also see http://curl.haxx.se/docs/httpscripting.html
<1> lemme c
<1> curl -F upload=@localfilename -F press=OK [URL]
<0> read the second link - it has more detail and an "official" example
<2> Guest39640: PEAR:HTTP_Client
<1> hmmm
<3> is it generally a good idea to make lots of objects which inherit each other or large single objects?
<3> is there any good reading material out there for designing a good system using objects?
<2> google :>
<4> hi there, I'm working with a PDF creations cl***, (FPDF), and I'm thinking to create a 'HTML/markup' parser which will automatically create a pdf.. Can anyone give me some directions how I could make a parser for that?
<5> hello
<6> doh
<6> undefined reference to `mysql_drop_db'
<6> collect2: ld returned 1 exit status
<6> make: *** [sapi/cli/php] Error 1
<5> I have preg_match("/abc(.*?):(.*?)/", "abcqw:34", $res); And that work, but I want only to have numbers in the last one, I'll do preg_match("/abc(.*?):[0-9]+/", "abcqw:34", $res); But then the $res will only have "qw" in it



<7> preg_match("/abc(.*?:[0-9]+)/", "abcqw:34", $res)
<7> or preg_match("/abc(.*?):([0-9]+)/", "abcqw:34", $res)
<7> if you don't want to catch :
<5> thanks :D
<5> so if it is between ( and ) it wil be catched by rthe preg_match?
<8> Hey people! Question, is there a way to make variables static out of function scope?!
<8> Or do I have to enable global variables?
<8> any ideas?
<9> tameritoke~ use global
<9> global $varible;
<9> http://www.php.net/global
<8> where is it not desired to use global variables?! In the php.ini is written, expelecitely that global variables shouldn't be turned on.
<8> What is the difference between global and static variables?!
<10> globals are visible and accessible everywhere,
<10> static in public (if defined) and privat: privat static $staticPrivate
<8> I tried to execute a small script, describing a static variable which is increased by a value of 1. It doesn't work on my machine as expected. Is there anything in the php.ini to set that static variables would have to work too?
<10> static variables may only be used in cl***es
<8> ahhhhhhhhh
<10> (i think)
<8> in cl***es, methods or in functions?
<8> This is the big question
<10> defined in cl***es, used in methods functions or whatever
<10> if they are public or got a static getter/setter you may use them in functions to
<8> Wonderfull... so I don't need to use global variables.
<8> I am willing to write a dual language site with php where the IP is determined and the suitable language is displayed.
<8> SO, I could make a cl*** with a public static variable which is once written, and saved... no?!
<10> during runtime of tzh
<11> good day. what's the module name, at compile, of PHP5 under Apache2?
<10> the script
<11> libphp5.c? That's not working for me.
<9> tameritoke~ why dont you use sessions?
<8> If I use sessions I must force users to accept cookies
<8> what if a user has disabled cookies?
<12> then you display a default language (english)
<9> then he is handicapped mentally and its banned from the site :D
<12> yeah! that'll teach em to turn off cookie exceptance!
<8> ip2geo database will be quieried oncethe main script started. If the visitor is from a arabic country he would get the arabic content displayed, by setting the static variable once, all others in english.
<12> bastards!
<12> :)
<10> is it possible to direct the user that does not want cookies to yoursessioncrypt.mypage.com?
<8> is it not saved in the superglobal variables of HTTP_ENV ?
<8> or in _SERVER ?
<10> if you mean prefered languages, yes but not statically saved
<10> does not matter
<13> hello
<13> anyone awake?
<10> yes
<13> yay
<13> umm
<13> can you maybe help me setup php+mysql?
<10> which os?
<13> because I'm a bit lost
<10> which versions?
<13> WindowsXP Pro SP2
<10> which webserver?
<13> PHP5, MySQL5, APACHE 2.2
<10> do you know apachefriends.org?
<8> ****t... it doesn't work as i expected!
<13> yeah I do PA
<10> at aaron, wahts the problem?
<8> <?php



<8> cl*** meinekl***e
<8> {
<8> public static $Werte = 0;
<8>
<8> function __construct()
<13> but I dislike xampp
<8> {
<8> $Werte += 1;
<8> print "Das Ergebnis ist: $Werte";
<8> }
<8> }
<8> $MeinObj = new meinekl***e();
<8> ?>
<8> I don't understand the problem
<13> PA i dislike xampp
<10> tameritoke, use self::$Wert++;
<13> PA its a total resource hog.
<14> Warning: in_array(): Wrong datatype for second argument in /var/www/localhost/htdocs/autonet/functions/functions.inc.php on line 66 - At first sight everything is ok, because the in_array has an string as first argument and and array as the second one.
<10> ok, kill apache, i know the problem
<10> php is hidden from tasks sometime, it killed my notebook each time i did an never ending loop
<13> PA ... are you going to help me still?
<10> yes
<13> ok
<13> when you get a chance
<8> now the output is empty at all....
<13> I'll give you my VNC info
<10> ok, lets try, may i use tightvnc as well?
<13> yes
<13> pm me and I'll give you the info
<13> :)
<8> Has anybody for you an idea how to increment static variables, each time the script executes again with static variables?
<13> PA are you there?
<10> yes
<13> do you have MSN?
<13> PA
<10> Aaron, i have skype and icq (sometime)
<13> o
<13> :(
<13> well
<13> hmm
<13> what is your email. I'll email you the VNC info.
<15> tameritoke: you'll have to store the value somewhere permanent (like a flat file or a database) if you want it to be read and changed every time the script runs
<10> pa at pa2 dot de
<8> http://www.zend.com/manual/language.variables.scope.php
<8> there you can see it, that they do it without.
<15> tameritoke: nope.. that's different.. that's one call to the script, but multiple calls to a function using a static variable
<13> ok PA it sent
<8> that means, multiple users would not initialize the variable forthemself, and would modify the same variable each time the other would visit.
<8> okay, i got it!
<8> Well, I guess, there is no way out beside using sessions.
<10> aaron, i get an bad message sth. like i dont understand the encryption (on mac)
<13> PA please join #aaron
<10> ok
<16> hi
<16> i've an issue with exec() call
<16> i'm trying to create an on line compiler for LaTeX
<8> I use URL_REWRITE... another sollution.
<8> from the apache server itself
<16> but my last exec, which should create the .png file create anything and doesn't return error
<4> hi, i've got an array with strings, and I want to check if one of those strings is in the test string. Is here a function for?
<17> Sp4rKy_: my mind jumps to permissions, but also, have you checked the return code of the program being exec'd?
<17> diederickhuijber: I bet it's one of these http://us3.php.net/array
<4> no, buts the other way ..
<4> so i've got an array with strings I want to search for
<16> schapht_, the permissions seems to be correct because other files in the same directory are created - and exec call return nothing :/
<17> Sp4rKy_: but what about the return code (the 3rd arg)
<4> schapht_: like strstr($string, 'tofind'), but than: strstr($str, array('match1','matchthisaswel'));
<17> diederickhuijber: you could use array_walk to do that
<4> oke, so theres no build in one?
<17> I'd probably just write a foreach or something though
<17> don't think so
<4> oke thanx
<17> no problem
<18> dj_segfault, pm?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

inurl:gentoo amule wxbase
#php
#linux
#perl
could not fetch catalogs mysql server has gone
totem-thumbnailer
up2date php5
#suse
postfix qmailctl
hp scanjet 4670 ubuntu



Home  |  disclaimer  |  contact  |  submit quotes