| |
| |
| |
|
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
Comments:
<0> caffinated, that just confounds my problem. <1> muteW: someone may have a suggestion for a good php book. unfortunatly, I don't have any. the ones I have seen are .. laughable. <0> kk <2> caffinated, my fault... the script got corrupt on the copy from my old server to my new server, so infact, it does not work... <3> I've read few PHP books... They are okay, if you want to code with obsolete items... <1> CppIsWeird: yes, which is why I wanted to see it. generally you want to rule that out first before you go digging. <4> hello Wolfpaws <2> i figured it was how i set up php, because the script worked fine on my last server :-P... one of my employess did a wonderful thing of formatting the server hard drive whent hey were supposed to format the new hard drive... soo... the entire site had to be recovered from the drive... *bangs head on desk* BACKUP! BACKUP! BACKUP! <2> :-P <1> CppIsWeird: anyhow, no big deal. I'm not out to get anyone :P <2> whew... *wipes my brow* :-P <5> ok this is a really ghetto quetion <5> question <5> how do you divide, in php? <3> xshad: this one is funny, too: http://animearcadia.com/index.php?p=2&c=1 <3> GoSox: /
<6> $answer = 12 / 3; <6> echo $answer; <3> GoSox: php.net/operators <5> oh crap <5> haha these are arrays not regular variable <5> s <5> :-D <5> no wonder its not working <6> you'll run into just about the same math operators for any language <5> i was doing $var/$foo instead of $var[0]/$foo[0] HAHHA <5> ok later <6> hope he doesnt start dividing strings by integers, cause im going to laugh when he comes back :o <7> Wolfpaws hoho nice one :) <3> xshad: I'm a ****er for furry comics ;) <7> goooooooaaaaaalll!! brazil :) <3> o.O <1> xshad: we don't need the sports commentary here <8> Has someone gathered experiences with PHP-Sockets? <9> hi <8> I'm having some issues with socket_read() <9> i hope this is the right place to ask, but can anyone suggest me a good opensource bulletin board, not phpbb <10> ryu: punbb.org? <3> fudforum? <9> ok thank you, i googled a big list, but i do not really have an idea about good php code <3> ryu: There are gazillion forums, that aren't phpbb... Put some effort in it, dammit. <4> I really haven't understood sessions properly, to what I read, I say, session also sends a cookie, but what happens when the browser has blocked cookies? <11> i'm looking for a short hand way to print something conditionally. i want to do echo((condition) 'one':'the other'); but it gives a parse error. does anyone know a way of achieving something like this? <12> Luckys: Test for that and inform the user they need cookies enabled. <4> Gargoyle, there is no other alternate to that? <4> so even session require a cookie? <10> ryu: punbb is lightweight and nice <9> Wolfpaws, what schould i do? download them all, an test if there are bugs <9> ok, ill test it, thank you. bye <12> dools (condition) ? (echo 'one') : (echo 'two') ; <11> Gargoyle: cool, thanks <4> Wolfpaws, have you kept me on /ignore ?!?!?! <13> Is there any function similar to in_array() which instead of matching the needle exactly, returns true even if the needle is found to be a part of something else in the array? As in, the needle is "foo" and one of the values in the array is "foobar" and it matches it because it contained foo. Or, would I need to write my own function? <14> array_search <10> ryu: opensourcecms.com; they have a list of forums installed for you to test :) <12> Luckys: You can tell php to add the session id to all url's but that is a security problem 90% of the time. <11> Gargoyle: doesn't seem to like that either, says unexpected T_ECHO <15> Gargoyle, ? <16> anyone here use PHPUnit? <17> I have php installed on IIS (2003) and am trying to write to a file...I keep geting permission errors on the file... and I think I have the correct permissions on the file. Any advice <16> quit <12> dools: <?php echo ((false)?'true':'false'); ?> <12> that one works, I just tested it! <12> dools: By now, you could have written a full if{} block though! <12> ;) <15> :( <18> Hey guys, which php.ini file (for php5) do i enable php-gtk2 ?? is it the /etc/php5/cli/php.ini or /etc/php5/apache2/php.ini or /etc/php5/cgi/php.ini ?? <14> see your phpinfo() for locating true php.ini <11> Gargoyle: okay, i tried it with echo((1>0)?'is':'not'); and it doesn't work, but it works for testing a variable which is what i needed. cheers <19> what is the best way to check if an array has a value in it 2 or more times? <12> errr, a foreach loop checking every other value. <19> Gargoyle: ok thanks <20> hey <20> what's the best way to split a string by all whitespace and newlines? <20> preg_split? <21> Probably. <20> how would i go about constructing such a regex?
<12> firefly: Read the docs! <11> firefly_: www.regularexpressions.info is the best site for regex tutorials i've ever seen <20> thanks! <12> firefly: "Tip: If you don't need the power of regular expressions, you can choose faster..." <20> Gargoyle, how can i do that without regular expressions? <18> Guys does anyone know? <22> dusty_, depends which PHP you want to change settings for, the CLI, mod, or CGI one <12> firefly: I was getting replace and explode mixed <12> firefly: replace can use arrays, explode doesn't <22> dusty_, and as aibo stated, run phpinfo(); to see which php.ini file is used in that context <11> firefly_: what do you need to do with it? <23> Is there a $_SERVER var (like PHP_SELF) that also stores all the $_GET arguments as well? <22> jonathan`, what's wrong with $_GET :-) <21> Have you tried looking at the contents of the $_SERVER array? <21> Might be enlightening. <20> dools, I want to get an array of the rows in the commonitemno column in http://bmw-dealers.info/spider/itemlist.sql <24> mattmcc: Pfft, what a silly concept. <20> The problem is that the file is whitespace delimited with a seemingly variable number of spaces between columns <22> firefly_, use preg_split with \s, check http://php.net/manual/en/reference.pcre.pattern.syntax.php <11> firefly_: appears to be tab delimited <20> oh sweet <20> so preg_split("/\s/", $line) would do the trick then? <11> firefly_: i'd use file to get the contents into an array then loop through and explode() <20> explode by what though? <24> firefly: You could use http://php.net/fgetcsv to read the file... that would do all the hard work for you. <20> by " "? <11> firefly_: tab <22> firefly_, TIAS :-) <25> i am using php gd to apply some filters on images, but it loses alot of quality <25> how can i prevent that <12> firefly: That file looks like tab delimited to me <20> okay <22> Adeel, save as higher quality? <20> what's the representation for a tab? anyone know? <12> \t <22> "\t" <11> firefly_: i don't know what you'd write, explode("\t",$line) maybe? <20> ok cool <11> there we go <20> thanks everyone <20> ^_^ <26> is 'if $p***word == $p***word_again { }' the correct syntax to compair p***word and p***word_again? <25> also some hebrew characters are being inserted into the image in reverse order <25> using gd <25> why is that <27> how can I do logout from http auth? <28> hello <21> eddiestone: The short answer is you can't. Browsers don't implement a useful way. <22> CLucas916_x64, add () around the comparison bit <26> k <26> thanks <28> what is the fastest way to do change all the occurence of " href='anythinghere' " in a string to <28> " href='#' " ? <22> regex, but don't ask me for the pattern ;-) <27> mattmcc, that is what I was affraid from... thanks <11> mattmcc: can't you do $_SERVER['HTTP_AUTH_USER'] = ''? <29> eddiestone: You can send a 401 header, which convinces the browser they're not logged in anymore. <28> Nomikos, I can do regex, but I was wondering if there is anything faster <29> dools: That doesn't persist. <21> dools: Sure. It won't affect the next script instance, but you're welcome to do it.. :) <22> spudse_, if anythinghere is variable, not really afaik <27> TML, I will try thanks <11> mattmcc, TML: ahh, i see <28> Nomikos, anthinghere is indeed variable <29> eddiestone: mattmcc's point is that it just re-prompts them for u/p <22> spudse_, though you can always abuse substr and strpos <28> Nomikos, thanks <29> eddiestone: Which can confuse some people. <28> Nomikos, I doubt that would be faster <10> spudse: I can only guess what is the fastest way, but it's better to test it for yourself <28> Ahmad, thats right :) <10> spudse_: and I'm interested in the results :) <28> hehe, to tired right now, I will just do what seems most simple :) <10> yeah, going with the simplest way makes much more sense :)
Return to
#php or Go to some related
logs:
policydb fedora5
courB08.bdf: Command not found #suse #web INSTALL ATI7000 REDHAT pureftpd install guide gentoo #perl *** Fatal error: dev: seek failure. ubuntu ahrd drive
love the smell of code in the morning
|
|