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



Comments:

<0> if my var is empty or inexistant isstring return false ?
<1> hmm, what was the php to make a string be read without speacial charaters? @?
<2> well, it does
<2> ok, lookju, when you said that <?= is echo
<0> please ?
<2> do you mean i replace all '=' signs with echo?
<2> or just the one's after <?php
<3> [Snipey]: <?= is a short form for <?php echo
<4> hello, i wonder why date('format', timestamp) gives different result on different machines on different timezone...
<3> But you should still use <?php echo
<2> <? should be <?php and <?= should be <?php echo correct?
<3> DbD-: I've never used isstring() myself :D But I would imagine that if the variable is empty or non-existent then yes, it will return false, since those values are not strings :D
<3> [Snipey]: Precisely
<0> thanks Tachyon
<0> then is_string = isset + $var != ""
<5> greetings



<5> we just recently move to php5
<5> we're now experiencing lot of Undefined Variable error
<5> register_globals is already on
<5> wat settings should i change in php.ini. Thanks :)
<6> I have no idea why it won't work
<6> but for a function($array[0]) doesn't work
<6> i know $array[0] has a value in it
<6> but it doesn't get to the function
<7> what's the quick way to do an if with : and ?
<6> wow this LiteOn cdrom is ****ed
<6> if( something ) && (something else) ?
<8> () ? : ;
<9> OK, how can I take an image and make it 20% opacity using GD?
<6> ??
<10> Davey|Laptop use IM bitch!
<9> if (foo) { bar } else { baz } (foo) ? bar : baz;
<8> echo (true) ? 'true' : 'false';
<11> anyone know what the little red period at the end of jedit viewer lines is called?
<10> ternary
<11> i didn't realize jedit was this nice, but that dot is driving me crazy, i want to shut it off
<9> Jymmm, I really don't want to use IM
<8> Davey|Laptop: isn't that an image manipulation job?
<9> deadroot, yes... hence GD
<8> then what is IM?
<12> hmm.. how to test if a given $argv[n] is present and not empty? (cli)
<8> Gibbonz: empty() || isset()
<10> deadroot: http://imagemagick.org/
<12> i wondered about isset.. i'll give it a go
<8> Gibbonz: oh, isset isn't it
<8> isset doesn't check if the variable has a value
<8> Jymmm: oh
<1> Tachyon, here, but will only replace the outside set of ""
<1> $string = preg_replace ("/\"(.*)\"/i", "&#8220;$1&#8221;", $string);
<1> Tachyon, makes it a greedy match
<13> deadroot: thats why he put the empty() in there...
<13> and it really should be
<1> Tachyon, so only works if you are feeding in stuff like you showed - otherwise, needs some work
<14> Quick question on mysql protocol. Before I do a mysql_fetch_array, do I HAVE to do a mysql_query first?
<13> Gibbonz: if (isset($argv[n]) && !empty($argv[n]);
<3> lokkju: I had something similar to that before. The trouble is that the entire $string variable will actually contain multiple quoted sections that need to be replaced. :/
<15> kuhwallskee, Yes.
<1> kuhwallskee, since mysql_fetch_array requires an active query, yes
<12> the problem is that im testing an argv[] that might not be there, thus php throws an undefined offset notice
<15> You can't get a result from a query without first querying.
<8> no need for that. just (!empty($argv['n']))
<14> ok.. got it.
<12> i'll give that a go Gimp_
<14> I wasn't sure...
<8> oh
<1> Tachyon, ah, ok, in that case it will be a lot more complex... I can do it if you really want, but...
<14> so if I do a query, and then do a while(fetcharrayhere) I won't be skipping the first result?
<15> kuhwallskee, Yes you will be.
<15> while($row = mysql_fetch_array($result)) { ...do something with row... }
<14> Touqen: ok.. better yet if I do a query, does it return a row?
<1> acts like a while not EOF
<14> or no?
<15> A query returns a result set.
<3> lokkju: I'm essentially looking for the parser to replace the first quote with &#8220;, then replace the next quote it encounters with &#8221;, _unless_ that quote is preceded by = . . . but my regex knolwedge isn't great enough to code that sort of syntax
<15> You then iterate over the result set.
<6> but for a function($array[0]) doesn't work



<6> i know $array[0] has a value in it
<6> what is the GO here?
<1> Tachyon, I would have to do some research, but I can tell you that you will be playing in backreferance hell
<3> -_-
<14> OH.. I get it... the result of a query is kinda like an object..
<6> why can't i put
<1> Tachyon, how bad you need it?
<15> callipygous, var_dump($array[0])
<6> an $array[0] as an argument to p*** to a function
<6> as maw
<15> Waht do you see?
<14> Tachyon: tons of tutorials out there but none of them really answered my question.
<6> why do I need var_dump?
<8> Davey|Laptop: try setting up a blank image with 20% alpha and merge that with an image
<3> lokkju: Not badly. I just have a desire to dynamically replace ASCII quotes with typographically correct character entities . . .
<14> out of the first 5 good ones.. none of them did.
<6> oh, i know what is in it, it is the number 16
<15> PHP is not going to arbitrarily loose values of variables.
<9> deadroot, hrm.
<8> Davey|Laptop: imagecopymerge might be useful in this
<15> var_dump($array[0])
<15> Just do it and tell us what you see.
<9> deadroot, imagecopymerge blew chunks
<15> Not what you expect to see.
<8> Davey|Laptop: okay
<9> Jymmm, link me up again
<16> I'm doing header('Content-Type', 'text/html; charset=utf-8'); but when I get the document the header is still saying iso-8859-1 (server default).. how do I get it to change to UTF-8?
<8> void[]: you send it as one string, not two strings
<15> void[], read php.net/header again
<14> ok.. where can I find info in the php manual about this: if I use a variable inside of '$somevar' or "$somevar" will it display $somevar or the contents of $somevar?
<15> You'll notice what you did wrong.
<15> kuhwallskee, php.net/types.string
<12> thanks, its not so unhappy now ;p
<6> string (4) 16
<6> string (4) "16" rather
<15> callipygous, pastebin the code you are trying to use
<16> Oops! thanks deadroot && Touqen
<16> Works :)
<17> oops ;)
<10> !!! Happy Birthday EvilWalrus !!!
<15> Paypal works, but i<--
<16> Happy B
<17> Jymmm: in 45 minutes
<6> http://pastebin.com/579634
<17> callipygous: mysql_result is deprecated
<17> has been for some time now
<6> but but
<6> oh well, I had no way of knowing
<6> depreciated means it still works
<6> i like using depreciated thigns
<15> It doesn't have less value.
<12> one other thing, is it possible to require() a file but use your own error message? Or would it be better to just exec 'test' beforehand?
<17> read the manual, it tells you plain and simple
<6> Touqen, work anything out from that code?
<6> i pastebined
<15> EvilWalrus, I wouldn't really call it plain, nor simple.
<15> callipygous, What does datebox do?
<15> It doesn't explicitly say "Don't use this function".
<15> It says don't use this function in these particular situations.
<17> Touqen: wanna get kicked from here?
<17> stop being such a smart***
<6> datebox takes in those values and generates a bunch of <select> <option>s
<15> Well I did say I was going to leave before 12...
<15> callipygous, Well from what I can see there isn't any reason for your code to not do what you want it to.
<6> :(
<6> thats right
<6> so im a bit illusioned
<18> hi folks
<18> I'm having trouble building php 5.1.2 with apache 2.0.55 and 2.2.0 (same problem) on RHEL AS4. Everything builds, but when I go to install the apxs is failing with the error apxs:Error: Command failed with rc=65536
<14> alright if I use an ***oc array inside a double quote "here is $your["info"]" why do I get a parse error saying unexpected \" ?
<15> kuhwallskee, php.net/types.string


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#debian
irssi ctcp version response custom
simple semirings
#oe
deltib
how can i create user defined function in mysql4.x with php
running total +mySQL
#osdev
#mysql
#perl



Home  |  disclaimer  |  contact  |  submit quotes