| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> they could... just take them longer <1> netsplit? <2> yep <3> reboot of server - new code <2> i just got offered $45/hr by Honda <2> design - not development <2> i might take it' <2> mm its been a good day <2> i wont have to write shoddy poor inefficient php anymore <2> i'll just design sites for other people to fill with shoddy poor inefficient php <3> Stylezed, thats not bad <3> fulltime? <4> man <4> I can tell you a lot about shoddy poor inneficient php <4> my co. is stuck with php 4.1.x and a 15K line function library with zero comments
<4> later people <4> I'm off to get as trashed as possible before I have to go confront the code monster in the morning <2> yeah full time <2> 35 hr week <2> at Honda in Gardena , CA <2> i might take this. company car too. <2> im outta here for now. <2> bbl <5> Hi guys <5> well i got a question here... well asp got autopostback method and im wondering if PHP has this method too? <5> like when u click or selected a dropdown list example country it automatically display informations to text box <5> anyone? <6> "autopostback" ? <6> PHP is server-side <6> if something happens on the clien-side you probably want #javascript <5> oh <5> hmmm so ill just embed it with java hmmm ic <6> not java <6> javascript != java <5> i mean java script <5> :) <5> sorry typo <5> thanks for the info man :) <5> appreciated it <7> ok, this is ultra picky really... but javascript is all one word :) <6> sweet.. The Shield on TV <5> lol alright javascript :P <8> and you forgot a comma <7> lol <6> Squirrel: You never start a sentence with "and" <6> . <8> true <8> ;P <7> You can start a sentence with and, but only in special cases, and it should probably be capatalized :) <9> I have an external text.txt i would like to include on a page, but i need to format some [cr] into </br>, whats the smartest approach for this ? fopen into an array,use nl2br, and then echo..or any smarter way ? im new to php so please keep it simple :) <7> file_get_contents would probably be better if you want the whole file, and nl2br is probably the best bet for making the carriage returns into breaks <7> or you could use good old <pre> or something like that <10> would you $external=nl2br(file_get_contents('outer.txt')) ? <9> Ophiocus: that looks like something <10> am wondering if it nests alright though <9> examancer: i need to do a few tricks with it so the PRE isnt smart, ill try the file_get_contents yo suggested <11> anybody here that really knows how to play with regex? <10> on xbox? <9> Ophiocus: it works flawles! Thank you, and thanks to examancer too! <7> you should see some of the awkward string function routines I come up with to avoid regex... i've used them, but not enough to help anyone... <11> why avoid regex? <11> I have to extract the operators and the operands from a logical expression <7> cause it gets complicated... and really its overkill for a lot of things that could be solved more efficiently with string functions <7> in your case though, it sounds like regex is definately the most appropriate way <6> http://se.php.net/substr_replace <11> (blah > 10) and ( (bum = lala) or ((lala = blah) and (bum = blah)) ) <11> something like that... <11> it can take any form <7> that, strpos() and stripos() are some of my favorite functions <11> :) I would have to create a big cl*** to evaluate this and I'm sure it can be done in 2 rows of regex <7> yes, in your case regex makes far more sense <7> but for like cleaning up text before it goes into a database or is displayed on a page, or finding a peice of data hidden in some website... i usually find a way to use string functions <10> could use both, heck even explode the thing by the equals and then regex the bits in a foreach <11> Ophiocus: for my problem? <10> yes <10> divide and conquer :P
<11> heh, it won't work <10> exploding by the equal will leave you with strings that either start or end with your paydata <11> = is not the only operator in there <11> there are also > < >= or and != <11> and I have to get the result in a vector that gets deeper <11> so I can start evaluating the deepest sequence <11> and then get to an upper layer <11> dividing stuff won't help me too much, I'll have to analize the parantheses, to count them to do a lot of stuff that may introduce small bugs <11> the way to do it is to define a regex that will match the regex from inside: so for my example it will match (bum = blah) than "and" then (lala = blah) then the whole substructure and so on <12> hi <12> how do i unistall php on fedora? <13> yum remove php* ? <12> 0_0 <12> mm <12> will it work? <13> What does this look like? #fedora? <12> ups <12> sorry then <13> I'm pretty sure what I said will work, but then again, this is a PHP channel. <12> mm <12> ok <12> i will give it a try <12> i want to install php with gd <12> i think its better remove php first <13> You don't have to remove anything if your using fedora's package management system. <13> Or are you talking about compiling from source? <12> yes <12> i think it s better <13> Oh well thats different then. <12> because i need gd <13> Ya, in that case, just 'make clean', 'make', 'make install' <12> true type fonts and so on <12> i don't find the php directory :\ <14> I'm trying to set up a script that uses nice urls, but the way i'd like it is www.domain.com/foo/bar with foo being the controller and bar being the action for that controller. Anyone know how I would get started? Do I need one file handling all requests to the server? <13> pib www.php.net/install.unix <12> ok tx <13> codi, is your webserver apache? <14> yes <13> Then you need to read about mod_rewrite. <13> http://www.google.com/search?q=mod_rewrite+php+tutorial <14> I have read up on mod_rewrite, but all the examples pertain to people just wanting nice urls, i want nice urls with meaning. Are they the same thing? <13> http://www.google.com/search?q=php+friendly+urls <13> You apply the meaning. <13> The mechanics are the same. <14> Similar to the way Ruby on rails does theres? <14> ok cool, thanks then. <13> Apples and oranges. <14> are you calling me a fruit? <13> The way RoR deals with URIs is fundementally different. <13> But you could fairly easilly create the same sort of funcitonality with mod_rewrite and php. <13> There are probally PHP frameworks that have already done simular things. <14> what would be the workflow? <14> request comes in for /foo/bar and it's handled by mod_rewrite and sent to index.php, parsed from there <13> mod_rewrite -> controller script -> functionality. <13> Yep. <13> In its basic form, sure. <14> is there a better way to do it? <13> Not really. <14> does it end up screwing with stats programs? <13> Unless you want to write some sort of C addon for PHP. It is opensource afterall. <13> I suppose it depends on your stat package, but typically no. <13> If a request comes in as /foo/bar you will get a log hit as /foo/bar no matter where mod_rewrite redirects to. <14> ahh, fantastic <14> thanks for the help <13> No prob. <15> bitches <12> in my phpinfo i have this <12> Configuration File (php.ini) Path /usr/local/apache2/conf/php.ini <12> but i also have /etc/php.ini <12> i wonder if this last one is doing anything? :\ <16> isn't it a link? <12> no <15> pib: What it /etc/php.ini listed as? <12> file
Return to
#php or Go to some related
logs:
Don Quixote's imaginary love
#chatzone #linux what sport is played on the largest field #AllNiteCafe #MissKitten gty onlain #linux KB892130 torrent #c++
|
|