logs archiveIRC Archive / Freenode / #php / 2006 / February / 4 / 1
`Bryan
SELECT * FROM users WHERE username = " . $_GET['b'] . " ASC, would that order by ascending?
But I want to look for the first character in the username, is there a way to do that?
lpmusic
yes, and you'd also have a nice insecure squery
query*
Jymmm
!+select*
php-bot
You should consider explicitly naming the columns you wish to retrieve in your select statements. See http://www.parseerror.com/sql/select*isevil.html
adoniwon
I know there are no jobpostings allowed here... could anyone point me in the right direction? I need a mod created for vBulletin.
`Bryan
I just need to grab a list of the usernames that start with an A-Z and the b I'm getting is the cap letter.
It's a search function.
ken
hey, got a quick question -- is there a problem with the builtin soap functions in PHP 5.0 for soap services over HTTPS ?
nsanity
Can anyone in here recommend a framework for PHP5?
itrebal
nsanity: /dev/urandom
         

schapht_
nsanity: symfony looks hot, but I've never tried it
nsanity
itrebal: thanks, that really helps.
Jymmm
oh lpmusic was talking about `Bryan sql injection
lpmusic
Jymmm: little slow today? ;)
ken
nsanity: your own framework will always be closer to what you need it to be than others that are available
Jymmm
lpmusic I thought you were talking about the select *
nsanity
ken: indeed.
lpmusic
Jymmm: oh :)
ken
does anyone have the builtin soap functions in php 5.1.2 working with HTTPS servers ?
i can not for the life of me get it to work
nsanity
ken: but I really don't have the time to write one
slide
schapht_, symfony is hot :)
bah
nsanity, i'm using symfony at the moment and its really good imho
ken
nsanity: of course -- from my experience, the other frameworks out there are horribly documented with minimal examples -- the amount of time that you invest in learning one might be more than it'd take to hack up a simple one for your project
Toxygene
how do you set PDO to throw exceptions
nm, i misread the docs, it does exceptions by default
nsanity
ken: the problem is, my project isn't simple
ken
nsanity: all the more reason to write your own framework
darklogic
hi
:)
ken
nsanity: hah!
nsanity
slide: okay, I'll take a peek
ken: indeed :) thanks for the feedback, I guess I just needed to hear it from someone else
ken
ok, really -- does anyone know about the PHP soap extensions for calls over HTTPS ?
darklogic
how do i add whitespace to this regex? "[^A-Za-z]"
         

ken
can anyone try something for me ?
doing a soap call in php 5.1.2 ?
here -- $sc = new SoapClient('https://www.ipaydna.com/cnp/training/system/webservicepayment.cfc?wsdl'); $sc->payment($array());
Teratogen
bah, perl > php.
ken
please, someone try that snippet
mazza[W]
smelly.
(Action) tries
ken
anyone ?
mazza[W]: er, remove the $ in front of the array
heh
are you getting an uncaught SoapFault ?
mazza[W]
i can't type that fast!
ken
mazza[W]: no cut and paste? ;)
mazza[W]
wah
crapload of errors
2006-02-04 09:17:34.902727 soapclient: faultcode = soapenv:Server.generalException<br>
ken
mazza[W]: i'm getting a Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from
with the url
but clearly, you can go to that URL and get it
i can do it with nusoap, but i want to use the builtin soap extensiosn
extensions... this is fu*kin killin me
mazza[W]
oh
hmm
seems i'm using nusoap
ken
mazza[W]: heh -- yeah, it's confusing that they're named the same ...
darklogic
does anyone know how google makes your curser automatically jump to the search field when you load their site?
mazza[W]
so yeah, works fine in nusoap
darklogic: javascript
ken
darklogic: javascript
darklogic
oh cool
guess i should have tried view source first. thanks =)
ken
darklogic: document.forms[0].elements[0].focus(); i think
or is it windows.forms
i can never remember
jiggster
windows.forms? :P
doubtful?
ken
here's google's code: document.f.q.focus();
so they're not doing that
they're just using the id's
f being the id of the form, q being the name of the search element
mazza[W]: any chance you could test that code snippet using the soap extensions ?
mazza[W]
ken: i don't think i have them compiled
ken
mazza[W]: yeah -- seems that i'm the only one in the world with them and/or wanting to use them over HTTPS
damn, i really do not want to look at the source code
oh well
mazza[W]
nusoap for the win!
Kog
mazza[W]: I was actually going with n-child tree for the win
ken
mazza[W]: me no likely nusoap
Kog
mazza[W]: but it seems I'm going to have to write that myself
ken
what's n-child tree ?
Kog
what it sounds like
instead of being binary heh
thespore
in php4, i want to encrypt a string from within a class with the PEAR Crypt_Blowfish class.. i'm confused about ussing a class within another class.
Kog
but a binary tree would suffice... I'd just make children arrays
ken
Kog: i thought it was some kind of library name
Kog
but there's no binary tree either :(
why does php hate trees :(
ken
Kog: an n-binary tree is just a linked list that stores linked lists as its data ... discuss ...
Kog
they should include some data structures in 6
ken: that's one way to implement what I'm doing
but uh, it's not really n-binary
ken
Kog: what do you need a tree data structure in php for ?
Kog
ken: a couple things, but right now I'm doing some hierarchies
and trees and hierarchies make nice matches
ken
Kog: wouldn't a hash-table (ie, an array()) work ?
Kog
I suppose I can just use a linked list of arrays
ken: it would, but I like trees damnit
Teratogen
trees make good lumber and paper
ken
Kog: if it's because you like recursion, perhaps php isn't the best language ...
Kog
no, I try and avoid recursion when not using Haskell
Teratogen
you're just a small Kog in the Big Machine
Kog
Teratogen: and you are very original
Teratogen
=)
Kog
no wait... no you aren't
sorry :(
Teratogen
=(
ok, Hog.
I mean, Kog.
Kog
I wrote a piece of software called HoG
Teratogen
cool
Kog
Heart of Gold
ken
Kog: with a nice CupOfTea class ?
Kog
we didn't have a component for that, but you could easily have written one
ken: it's virtual instrumentation software, originally written to tweak engines
flakrat
hey y'all is there an alternate way to connect to a database in PHP 4 other than using mysqli?
a MySQL 4x database
kuja
flakrat: php.net/mysql
flakrat
thanks
ken
postgresql
Kog
ken++
ken
sqlite
kuja
Yes, I'm sure ken runs SQLite for banking software.
Kog
ken--
ken
kuja: what ? you don't -- dude, that sh*t is awesome
kuja: i mean, the complexity alone of the type of sql queries you can send ... jesus, i mean, that sh*t rivals fu*king ORACLE!
kuja
If I had to choose between Access and SQLite to run for banking software, I'd choose Access
nforbes
I run Access
Access rocks
mattmcc
ken: Um.. That might be pushing it a bit.. :)
ken
kuja: you know, i actually use an excel backend via a ODB data provider
nforbes
Yeah, but SQLite doesn't have a BUILT IN servlet engine!
kuja
m
mmmm..
FlamingCows
Is this like a buzzword competition or something?
ken
FOX PRO for banking !
kuja
FlamingCows: Buzzword? AJAX?
mrrcparish
hmm
ken
FlamingCows: i'll go away if someone will help me with the SOAP extensions in PHP 5
FlamingCows
I don't care if you're here or not, it just seems like everyone is spouting buzzwords.
minDscrm
ken ... lol :)
mrrcparish
Kernal Panic - Not Syncing: drivers/ide/pci/piix.c:232: spin_lock(drivers/ide/ide.c:c03d36)
thespore
err, maybe i shoulbe be more specific: I have a main.php with instantiates a 'data' class. I want to use the Crypt_Blowfish class (from PEAR), within the constructor of the 'data' class. So, do I instantiate the Crypt_Blowfish class in main.php? If so, how do I reference it within the 'data' class.. with Crypt_Blowfish::method() ?
ken
minDscrm: is that funny because everyone knows they don't work and i'm the butt of the joke, or for another reason? because i really do need some assistance with the SOAP extension -- i think it's broken for HTTPS soap calls
« prev 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 30 31 32 33 next »