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



Comments:

<0> I have heard of html tidy
<1> ve got
<0> And I am not so much talking the look of the code
<0> I am talking, dare I say it, making the page look "jazzy"
<2> well: CloCkWeRX[a] i would say you have more discretionary access control
<0> which is my major problem in web design
<2> and role based is what you need
<3> surffy: for starting sessions i do isset($_SESSION)?null:session_start();
<0> Making the page NOT look like it was made by an engineer/programmer
<0> <---------
<4> Shaba1: hire a graphic designer and use smarty
<5> that can produce any and all html that can normally be made. there is no difference between echo'd html and pre-written stuff so anything that can be done in html can be done by echo'ing html. Though thats not the best way.
<3> Shaba1: you mean... the actual appearence?
<6> CloCkWeRX[a]: Personally, I prefer RSBAC, because while a role can be defined via an arbitrary system of rules, arbitrary rules cannot always be defined via use of a role.
<4> nife: how come?



<2> well yo don' thave to use smarty
<2> but use templates in an mvc :p
<3> nife: probalbly 90% of serious PHP devs dont like smarty
<5> just a personal preference though. Too big for what its usually used for
<2> and have a web designer make the templates
<4> this is true
<5> yeah I prefer a template and a good mvc framework
<4> i have a number of guys that know how to use smarty and i don't want them mucking with my code, just as i don't want to muck with theirs
<2> well i think smarty is nice cuz it allows an easy way to let web designers do what they need to do without mucking around with the code
<5> haha yeah without smarty just seems cleaner though I understand its use in huge multidepartment projects
<6> Pollita: Feeling any better?
<2> but, any template system can work that way
<4> right
<4> i just use smarty because that's what a number of the interface dudes know
<4> plus, it makes my life easy
<4> although, if i could figure this out
<7> guys
<7> does zend studio include zend safeguard ?
<4> is there a way to refer to the field names in a mysql_fetch_***oc?
<7> site is bague
<7> ague
<7> vague
<1> ah hell: whitepapers make my head hurt
<5> kris__: http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.php.net%2Ffunction.array-keys
<5> blah wrong link hahah
<5> http://us2.php.net/function.array-keys
<4> okay
<2> i kno CloCkWeRX[a]
<4> thanks.
<4> though i think for my purposes, i'll need mysql_field_names
<4> but i think i got it. thanks.
<1> are there existing implementations of ***orted security models i could look at and grok in PHP / java ?
<1> (that you'd recommend)
<8> Is there a function that will remove a cl*** from the list of declared cl***es? e.g. if ( cl***_exists('Foo') ) { remove_cl***('Foo'); } ?
<0> Ok here is another newbie question.
<0> Anyone ever use xdebug
<1> http://www.tonymarston.net/php-mysql/role-based-access-control.html -> ours seems to sit about half way between group based and responsibility based at the moment :(
<0> to debug their php code.
<0> I took a look at the web site and couldn't make heads or tails of it.
<2> cant say that i have
<8> CloCkWeRX[a], we did full on rbac, it was a PITA but well worth it. We had object, operations, roles and users
<5> Yeah I'm in the middle of it and its a royal pain right now
<9> java forever:)
<8> Which is great, since you can ***ign an object/operation mapping to a role, like role PostEdit has update permission on post objects, and then ***ign the PostEdit role to users
<1> i should kill the $#%$% with the not invented here attitude that stopped us from using LiveUser
<8> Anyone? remove_cl*** function?
<2> hmm i dunno
<2> lets think on this
<10> After i do this: $rs01 = $con->query("INSERT INTO agent (us_name,us_gender) values ('$add_us_name','$add_us_gender')"); How do i get the us_id (auto increment)? maybe possible without do "select us_id where us_name='$add_us_name'", because maybe there is duplicate name :(
<2> you know you can remove an object with unset
<5> I doubt it thats screwing around with the low level compilation storage so I doubt it
<2> but you want to this based on cl***name rather than object name?
<8> cythrawll, either is fine, but I think unset just decrements the reference count on an object and doesn't actually remove it from the return of get_declared_cl***es
<10> i mean how to get the inserted us_id which is already set auto increment in mysql
<5> jake: acording to the webpages this is impossible
<5> http://us3.php.net/manual/en/function.get-declared-cl***es.php read the first comment
<6> "quality control is more important than release schedules, feature requests, and even usability
<8> nife, thanks :)
<5> yup
<11> require('includes/config.php') or die('Cannot locate config.php!');



<11> will that not work?
<11> I dont want it to output the junk this is not a file bla bla errors i just want my simple error :P
<2> thats a good question CyberMad I have been dealing with somethign similar for awhile
<5> surffy: I think that you want include, let me check for a sec
<2> but i usually had some fields that were unique enought to select to get the id back
<5> CyberMad and cythrawll: mysql_id()
<10> nife just do echo mysql_id() ?
<10> will return the id of inserted row?
<5> http://us3.php.net/manual/en/function.mysqli-insert-id.php
<2> oh
<2> i was gonna say i couldn't find that function
<5> yeah though its insert id not just id
<5> bad memory hehe
<2> it's mysqli too
<2> which is what i prefer
<5> there is a mysql one too
<2> oh ok
<10> is that problem if there is more than 1 user insert new row at a moment? does every user will get their own inserted id ?
<5> Primary keys are always unique so that shouldn't be a problem
<5> hehe sure
<10> i should try it :) cos.. looks like impossible :) thanks nife
<5> yup I just found it a while ago hehe
<2> so
<2> any of you kids zce?
<12> there is any function that returns if an instance of mysql db is opened?
<11> hey i am making a theme system how can i get for example {VARIABLE} replaced that is in the header or footer file?
<13> hell
<13> o
<11> lol
<6> surffy: php.net/str-replace
<11> str_replace("{VARIABLE}", "blablabla") ?
<2> eddiestone, i think mysql_info() is close to what you want
<5> yeah read the whole template file into a variable and then string replace the namesof whatever you want then just echo the result
<11> im confused :|
<11> lol
<13> hum.
<14> str_replace for template parsing? too slow (?)
<2> smarty
<14> surffy http://g1.tigris.org/source/browse/g1/html/TemplateParser.php?rev=1.7&view=markup check this out :)
<11> xshad, what should i use? I just need to replace {VARIBLES} < like that
<5> $contents = fread($handle, filesize($filename)); str_replace( '{TEMPLATE_VAR}', $value, $contents);
<14> only for variables ? this one I've given, parse blocks, include files, etc etc
<11> um
<14> aaaaaaaaaaaand need php5 :)
<4> so, if i do something like while ($data = mysql_fetch_***oc($query)) { $blah = $data['blah']; }
<4> $blah is not an array of all row results
<4> correct?
<12> does somebody knows a good dao framework for php?
<5> true only one at a time
<15> http://69.134.230.201/scripts/source3.php
<4> what would be the easiest way to get it to be an array?
<2> $blah is just the value of a field name "blah"
<15> can someone take a look at that, here is the program itself
<15> http://69.134.230.201/scripts/Port_Scanner.php
<8> eddiestone, check out creole/propel
<2> its already in an array
<2> $data
<15> i can scan 127.0.0.1, but it will not work when I try to put in any otehr IP
<15> including my own external IP
<15> i'm trying to learn socket programming
<5> probably your host has sockets disabled
<15> it would otehrwise be far simpler to go get one of the many apps im sure are widely avaiaalbe online
<15> available*
<4> yeah, but i'd like for $blah to be an array (keyed) of all of the values of the 'blah' field in the DB
<5> kris__: you will have to do that yourself
<4> yeah
<4> i was hoping for some magical function that would do it for me
<2> well
<2> you could just select "blah" from the mysql connection
<4> right
<2> and then mysql_fetch_***oc would return that magic array
<2> if that was the only field you need


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#css
#math
Invalid module format kmilo
#python
#mysql
SenderID baracuda
wincvs extra line feeds checkout
verlihub Permission denied
#perl
#ubuntu



Home  |  disclaimer  |  contact  |  submit quotes