@# 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> !+0
<1> 0 == FALSE, but 0 !== FALSE. Some functions, such as strpos(), can return 0 as a valid (boolean true) result. For these, you must explicitly check === (or !==) FALSE. Yes, it does break logic and was intentional for some reason or another --> http://cvs.php.net/co.php/ZendEngine2/zend_operators.c#259
<2> or only NULL?
<2> thank
<2> s
<2> is there a way to output a FALSE value as 0 instead of nothing?
<0> 0 is fasle
<0> anything else is TRUE
<0> except for some functions.
<3> Alright. How do I get my php script, which I'm making as a CLI script, handle input arguments?
<4> does anyone know of anything lighter-weight than wordpress?
<4> err, recommend ...
<4> looking for minimal blog app
<4> -- spaghetti code
<5> word press
<6> anyone here have any ideas on how to do this? I have a mysql table with id as auto increment, however in the URL I do not want to display the ID, and I also don't want to use pOST.. is there a way I can randomize the ID while its in the URL and then derandomize it for the mysql SELECT?



<5> it's not minimal, but it's also not crufty
<5> trizem: sure, tons
<4> StoneCypher: no other recommends besides wordpress?
<5> trizem: any reversible hash on the ID and some salt
<7> Psi-Jack, you checked out the cli page in the manual - http://www.php.net/manual/en/features.commandline.php
<4> StoneCypher: I like wordpress, but thought I'd ask
<5> egospun: eh, there's a ton of stuff out there. WP is what I chose, but I started blogging yesterday, so YMMV.
<4> StoneCypher: hah, yeah I know there's too much
<5> what i can say is that word press is standards compliant, elegant, extensible and painless
<5> and i'm a picky mother****er
<5> whether other blogs are similar i can't say
<5> but word press impressed me
<3> lig: Hmm, am now. Does this mean, if I want my own args, I have to execute the script using scriptname.php -- <args>
<7> define "want my own args" - You mean values coming into the script or varables created and used in the script
<0> !+cli
<1> [Command Line Interface] http://php.net/manual/en/features.commandline.php
<8> i need to have a php file send <?xml version="1.0"?>
<8> how can i do this, obvously php is reading <? as a php open tag
<7> Shaun2222, maybe turn off short tags
<3> lig: I'm making a CLI script that I intend to make have arguments, because it'll be run in cron every 5-10 minutes, as well as nightly with two different modes, by use of the arguments p***ed to it. heh
<0> Psi-Jack: man php
<8> lig: must be a better way
<3> Shaun2222: Actually, turning off shortags is the ONLY way to properly use XML like that. There is no "better" way. That is literally the ONLY way.
<2> Jymmm: I know
<2> but when you echo FALSE; it echoes NULL, not 0
<2> I was wondering if you could force FALSE to echo as 0
<0> IamEthos: What do you want it to echo?
<0> just echo 0, hows that?
<3> lig: Heh. On the shebang line itself? Hmmm, Dunno. Possibly.
<9> if you just inserted a record in mysql, how can you find out what the new id of that last incerted row was ?
<2> well, what I'm doing is more complex than that
<7> Psi-Jack, try it and le me know
<0> omgwtfbbq
<0> eeeesh
<3> lig: I think I will, after I finish my argv test script. ;)
<10> compubomb: mysql_insert_id();
<2> Jymmm: was that directed toward me?
<0> IamEthos yep.
<2> lol
<2> sorry
<2> I think just using 0 in the first place might work
<0> it's ****ing php, nothing that is written in php is *THAT* complex.
<7> compubomb, mysql_last_id() I think
<2> though it will make my code a bit less clear
<0> then define false as 0
<7> compubomb, sorry it was mysql_insert_id
<2> thanks for your help, sorry for being frustrating
<0> IamEthos Nah, you weren't THAT bad, just close =)
<0> lig thanks, but not necessary
<0> more pissed off (irritatade) that you feel obligated to go
<0> paying your repsect is one thing, but bah nm.
<3> lig: No, you can't, BTW. :)
<7> :(
<3> Can't even use #!/usr/bin/php -- to make it take any arguments on the CLI as actual program args.
<0> G'Night Folks!
<11> anyone had problems with $_FILES var? It seems that the only data i see with it is $_FILES['userfile']['name'] and there rest are blank, any idea how that can happen?



<6> StoneCypher: can you give me some more info in reversible hashes?
<5> they're hashes which are reversible
<6> ok, where abouts could I find some info on this?
<5> um.
<5> a book? the internet?
<6> I'm trying to search google but no dice so far
<6> it doesn't have to be fool proof.. the big companies like ebay etc.. they use reversible hashes?
<12> I never know that hash can be reversed.
<13> trizem: The point of the kind of hash you're talking about is that it _can't_ be reversed.
<13> trizem: What you really want is encryption.
<14> hello, how to change text in table, without refresh/reload the page?
<13> iuziud: Learn a lot of JavaScript.
<12> iuziud: Javascript. And pray even harder that the user enable Javascript.
<14> only with javascript?
<12> iuziud: And lots of prayer. :)
<13> iuziud: Well, if you want to be pedantic, VBScript would probably do in a pinch ;)
<14> ah, ok. thanks =)
<6> CWhiz: can you point me in the right direction? It doesn't have to be super secure, would just like something simple that scrambles/encrypts $id and the decyprts it to use in a SELECT statement
<13> StoneCypher: Yeah, I looked it up. It's late <shrug>.
<6> CWhiz: maybe I could convert it to binary/hex? or something? and then convert it back?
<13> trizem: So you're trying to protect a p***word, right?
<7> crap - what is the simple encryption that takes the chars and simply forwards them certain # of chars
<13> ROT13.
<7> ha - http://www.php.net/str-rot13
<15> help
<15> please
<15> anybody?
<5> you haven't even asked a question
<15> oh ya
<12> lig: Eww ...
<15> haha
<7> :)
<15> I just built a new fedora core 4 server
<15> I had a fedora core 3 server
<16> i guess this must be #PrettyHornyPervs
<15> but now php doesn't seem to work
<15> I mean when I try and view my php web site now it says
<7> close hlslaughter - pretty horny people
<15> don't know what to do with it
<5> web servers don't say that.
<15> it wants to save it to disk
<16> that's good and vagu mike__, php works fine out of the box on fc4
<15> I know the client browser says that
<15> I know it work but my browser won't read it
<15> hmmm
<15> try this
<16> won't read php?
<16> you don't have apache configured properly
<15> http://4x4specialty.com/newindex.php
<16> did you mux with apache at all?
<15> I copied my http.conf file from 3 to 4
<15> no
<16> and did you install the php mod rpm?
<15> no muxing
<16> 1 sec
<15> no I installed fedora core 4 then updated with yum
<15> then I copied all of my files to new server
<16> seems like apache is not configured right
<16> mime types
<6> CWhiz: no, I'm trying to just ecrypt the id to a page
<16> er, not mime types
<16> modphp or whatever it's called
<16> but that works outta the box
<16> there's something you're not telling
<15> hmmm like what?
<15> I did add this but didn't make any diff
<16> you got a hello world script ?
<15> AddType application/x-httpd .php
<17> uh... wrong
<17> AddType application/x-httpd-php .php


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#css
utf-8 slap_startup failed
normal cdf TI-89 titanium
taboo ıove
edgy eft gnomebaker error
stop kasbar
xlib-static
#suse
#centos
SIS965L fedora



Home  |  disclaimer  |  contact  |  submit quotes