| |
| |
| |
|
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 32 33
Comments:
<0> one less character, too! <0> i like smaller code... even microscopically smaller <1> well, its a lot less to code, when you're writing MyPackage <2> what are your opinions on using a single index file as opposed to seperate files to navigate through an application. IE: /?page=profile or profile.php <0> i'm the kind of guy that's happy when i can reduce a 12,502 line program down to 12,500 lines. <1> since MyPackage gets prefixed for you <0> ^Artnez: i don't have a problem with it provided that mod_rewrite is properly taking care of making it look nicer and more search-engine friendly. <3> woooooooooooooooooooooooow <3> hi aaaaaaaaaaaaaaaaaaaaaaalllllllllllllllll <1> maximuse: stop that <4> AcidReign: That's what copy/paste are for <4> /remove maximuse BYYYYEEEEE DOCTOR NICK! <2> b1n0ry: i'm more referring to an application that requires a login to enter -- if it's something like a new site i take a whole different approach <5> Hello <6> can anyone give me some insight on how i would go about capturing the text between body tags of a url. i can read it in full w/ fread, now i just have to slim it down...
<2> i was just wondering if performance can drop if 4,000 people are all hitting index.php, as opposed 2,000 hitting profile.php and the rest hitting index.php <5> I have a PHP related MySQL question <0> ^Artnez: whatever works works :) <3> ok <1> <5> I'm trying to query MySQL, can I query it like $query="select id from paste order by id desc limit 1";? <4> arpegius: Use a preg_match() or a set of strpos() calls <7> Idiot. <2> ShuaiKing: you will need to use PHP's built in MySQL functions to query MySQL <0> ^Artnez: personally, if you have 4,000 hits to your server consecutively, i doubt that which file is opened is going to be the bottleneck. <5> How would I do that? <5> ^Artnez,* <8> they come back if you don't use enough <2> ShuaiKing: some people choose to format their query in a variable first, like you did.. then p*** it in the MySQL functions of PHP <1> enygma: no no, you have to cut off the head <0> ShuaiKing http://us3.php.net/mysql <6> i thought i had a strpos setup that worked, but i cant make it happen. preg_match seems intimidating... <4> no, that's marketing weenies <2> ShuaiKing: Although I wouldn't waste the memory just to stick somthing in a variable if the variable is one time <8> AcidReign - well, of course you do. but it's fun to watch them burn too <1> mattmcc: remember to cut off the head, and burry it in consecrated ground ;-) <1> then you burn the body <4> arpegius: Sounds like the perfect time to learn regular expressions <8> speaking of project managers, the new The Apprentice starts tonight <0> haha, donald trump is a genius <9> ShuaiKing: $linkid=mysql_pconnect(<database identifier here>); $result=mysql_query("SELECT something FROM sometable etc...",$linkid); <10> by genious you mean bankrupt <0> myc: no, i mean genius <11> Anyone here tested PHPUnit2's Mock objects? <8> genius == has fake hair <12> are the xslt functions simply deprecated in php5, or do they not exist at all? <2> IdahoEv_: mysql_pconnect should be used with caution at times <10> ^Artnez: whats wrong with pconnect <5> IdahoEv_, What is "database identifier here"? <7> jcoby: See http://php.net/xsl <10> shadow`: SELECT cx.listing_id <10> FROM Categories as c <10> LEFT JOIN Category_listing_address_xref as cx on cx.category_id = c.category_id <10> WHERE c.listing_type = 'business' <10> and cx.l_status = 'Ok' <10> order by cx.listing_id DESC <10> LIMIT 50; <8> guh <10> Sorry! <8> moron <5> www.pastebin.com <9> ShuaiKing: http://us2.php.net/mysql_connect <7> Don't be sorry, just don't do it. ;) <10> dude.. bad paste <10> didnt mean to paste <5> dang <5> harsh <5> well, I already connected to MySQL. and um, hope I don't get punished for talking about MysQL. <10> my appologies.. hit ctrl+insert <12> mattmcc: yeah, i've been reading that. is registerPHPFunctions supposed to be the replacement for xslt_set_scheme_handlers? <2> myc: read this - http://us2.php.net/manual/en/features.persistent-connections.php <9> ShuaiKing: it might look like $linkid=mysql_connect("localhost:3306","username","p***word"); <0> why is he a genius? The Apprentice -> he gets paid, and his company makes money. why? because he has a bunch of people doing projects for him to get a job. AKA: HE and HIS COMPANY are GETTING PAID to get projects done by people that are working for FREE! and these are educated people, too. <5> something like $conn = mysql_connect($dbhost, $dbuser, $dbp***) or die ('Error connecting to mysql');?
<2> myc: mysql_pconnect() has its issues and should not used unless you really need it, which is rare in most cases <9> ^Artnez is right <7> jcoby: Similar idea, yeah. <0> ShuaiKing: then you need to look at the mysql_query function at http://us3.php.net/mysql and while you're there, read the rest of the section to learn what you're doing ;) <0> ShuaiKing: you likely also need to read up on the mysql_select_db() function <12> mattmcc: ok, thanks. it's a little confusing since the docs don't say anything one way or another about xsl vs xslt in 5. <13> anyone know offhand -- which is faster for getting stringleng -- strlen or count? <7> jcoby: Sure they do. php.net/xslt recommends php.net/xsl for PHP5. <14> absentia, count ??? <12> mattmcc: yeah, i just found that. i just overlooked it <14> count will return 1 for strings <0> faster as in one takes .000000001 and the other takes .0000000015? <9> ShuaiKing: or mysql_db_query() as another option, but b1n0ry's point is better <0> colder: unless you p*** the string with a [] at the end, i think. <5> b1n0ry, I hear you. <14> $string[] won't work. <0> colder: eh, ok. <0> absentia: use the function that's designed for the task. don't pound nails with a screwdriver handle. <15> Hey I was trying to learn some OOage for PHP but I have a syntax error I can't figure out... can someone look at my simple little test script <2> Kurrasoe: pastebin it <2> and post the error <16> how do I get the extension libgd to work under FREEBSD? <17> Supperman: Same as any other unix? <13> thanks <17> make that 'unix-like' OS <15> ^Artnez, http://pastebin.com/575518 <15> line 5 i get the error, scroll to bottom of pastebin <15> for error i get <18> Hey everyone. I'm trying to compile php5.1.2, but when I load the apache module none of the mysql_* functions are available. I have --with-mysql in the my config line, so is there something I should check to figure out what's up? <16> whats the normal way under linux stormchaser? <18> Hey everyone. I'm trying to compile php5.1.2, but when I load the apache module none of the mysql_* functions are available. I have --with-mysql in the my config line, so is there something I should check to figure out what's up? <17> !tell Supperman about modules <17> Like that <0> ok, interesting problem (i think). i have an abstract cl*** that contains private functions. i extend that abstract cl*** to a child cl***. i instantiate the child cl***. when i try to access the private functions defined in the abstract cl*** from functions internal to the child cl***, i'm told that i am unable to access the function. would not the child cl*** have access to private functions internal to its parent? <14> b1n0ry, not private, but protected, yes. <18> b1n0ry, No, you need to declare them as "protected" instead of private to make them accessible to subcl***es. <2> Kurrasoe: you are not cloning the object properly <15> ^Artnez, What does that have to do with line 5? <2> Kurrasoe: actually, you are. what version of PHP are you using? <0> ficusplanet: so declaring variables as private is ok but not declaring functions as private? i can define private variables in the parent and have no problem accessing them in the child. <15> ^Artnez, they have 4.1.2 on there <2> that's why <13> protected <15> Blargh. <2> private/public is not supported <15> blast it all <2> yea, frustrating .. i know <2> Kurrasoe: you will need to use var $whatever <15> I thought it might be that... well thanks. <18> b1n0ry, You shouldn't be able to access those variables either. Not sure what is up there? <18> *. <0> ficusplanet: heh, perhaps it isn't. i'll see. <14> b1n0ry, give me a reproduceible script, because private variables are not accessible. <0> colder: nm, i thought something was going on that isn't. <0> colder: heh, maybe it 'is' doing it <14> err ? <0> seems like i can access a private variable in an abstract cl*** <0> i'll pastebin my script example <14> you can access them if you access them from the abstract cl***. <19> im just trying to insert a hyperlink inside of a php file <0> colder: nope, i'm accessing this one from the child cl***. <19> any reason why <a href="http://www.google.com">google</a> <19> <19> doesnt work <19> sorry i do not know the tags i need to surround it with <14> b1n0ry, I doubt it, paste your code please. <0> colder: http://pastebin.com/575542 <20> d3vlabs, #web <0> when i instantiate the object, the screen shows 'This is an error.' <19> Julian|Work: kind of a php question <19> inserting a link inside of a php file <0> and it shouldn't <0> d3vlabs: i guess that would depend on where you're inserting it
Return to
#php or Go to some related
logs:
modconf equivalent ubuntu #ubuntu new etch install has 169.254 address ubuntu fschk not found quakenet webdesigners channel #css when to use InnoDB #ubuntu #perl html2ps emerge
|
|