| |
| |
| |
|
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
Comments:
<0> i just HATE HATE HATE normal keyboards, and add even more hates on that for laptop keybaords <1> !+fgi <2> http://tinyurl.com/3amw4 <1> ^-- nmatrix9 <3> is there a quick way to simply check if 2 arrays(that contain arrays) all have the same number of elements, as well as their subarrays..? <4> haha funny <1> nmatrix9: Actually, it's sad. WTH are you asking that in PROGRAMMING channel?!? <0> haha <5> !+fgt <0> brb <5> rjokei, do a recursive function <3> bleh k <6> why does int(5) != float(5) ? <7> float numbers aren't precies <7> precise*
<5> function check_r($array, $array2) { foreach($array as $key=>$el) etc etc <7> "5" as float could really be 5.0000000000003 <5> then round() <6> so float numbers can never be used in condition checking? <5> i mean, whats the issue, you're looking for a value. <8> MrNaz, they can. <8> (int)5 == (float)5 <6> colder not in the script i just ran... <7> They can, just be careful of how you're using them. And if you're using numbers in high precision stuff (like banking, etc) use a fixed-decimal system. <6> i just got this output from var_dump on two vars: int(5) <6> float(5) <6> that was inside an (if $foo != $bar) block <8> its not the same. <9> I agree <6> ive never liked floats anyway <10> nmatrix9, hmm... maybe a package store.. like the UPS store? <10> a little common sense nmatrix9 ..... <8> MrNaz, read on http://php.net/float <1> nmatrix9 doesn't have any of that, mfonda... <8> that could look scary that 0.8 != 0.7+0.1, but that's it. <0> i hate laptops ohh so much <8> Bizzy, we got it the first time.... <0> i need to stress the fact so i can get across the real hate i have for them <11> lol <11> he has the right to his opinion about laptops Stormchaser <8> skiddieleet, why ? IRC is not a democracy. <1> skiddieleet: Indeed so. At leas as long as he keeps it for itself. <12> colder: Of course it is. All in favor of IRC being a democracy, say "aye" <13> nay <12> :( <7> Why don't more people use XSL for templating? <12> Dae: Because I never bothered to learn it <14> i'm essentially trying to do a scrape of album tracks off of gracenote. i came up w/ a script that grabs the first track perfectly. now i need to have this function keep going until the end of the album. basically turn it into a while loop. can someone help me w/ this? http://webdeveloper.com/forum/showthread.php?t=95912 <12> And I know everything worth knowing. Therefore, it isn't worth knowing. <15> ty <7> Nanobot: you could start a very successful religion with that attitude. <16> haha, I'm a Major. I control you Captain :P <12> Did the guy who invented scientology work in a way to get a ton of money through it? <15> wizardx; depends in what force <7> comics? neeeeerdddddd! <15> Stormchaser; what commic? life in hell? <12> The nerd was invented by Dr. Seuss <1> nerd? Because I draw my own comics? <15> ahh <15> draw <17> folks $_SERVER["HTTPS"] doesn't work for me, even if I connect through https <15> not read <17> any idea? <15> matt groening started off drawing commics <1> Bizzeh: Watch it <16> It's ' not " <7> What web server, attilla? <17> apache 2.0.48 <15> Stormchaser: what? im interested, was asking if you were reading "life in hell" and then you said you were drawing them, so i showed that i understood that <17> I'm using original CentOS Apache rpm.. <16> Red Hat? <7> attilla: define "not working" <15> so anyway, what are your commics about?
<17> when i do isset(..) it gives false <1> $_SERVER["HTTPS"] <-- this isn't valid, IIRC <7> it is, Stormchaser <7> should be set to "on" when HTTPS is used <17> Dae: yes I've read much about it, people were doing false things like looking at "off" value.. but in my case I don't even get a value <7> Technicaly it should be non-empty when HTTPS is on, so really when $_SERVER["HTTPS"] = "off" it really should be considered as "on" ... empty meaning HTTPS isn't used <15> anyway, back to php, if i include config.php in common.php and include common.php in head.php and include head.php in index.php, will i be able to access var's in config.php, from index.php (does php support multi-level includes) <7> Do you get a value in phpinfo()? <8> Bizzeh, yes <15> very good, do define's work the same? <8> sure <17> nothnig about HTTPS in phpinfo() (when i do HTTPS conn of course) <8> constants are even more global <15> if(!defined('__SCRIPT_NAME_INC_')) define('__SCRIPT_NAME_INC_') or die("do not include script more than once"); this should work then? <18> is there any decent free redirection service? it's been a while and i only remember cjb.net, which seems to **** now... <15> if i include the same script twice <7> Bizzeh: require_once() is your friend. <1> 'define or die'?!? <15> sorry <15> { define('__SCRIPT_NAME_INC_'); } else { die("do not include script more than once"); } <15> Dae: that will block any other include type function from including it? <7> Yep. <7> require_once(), that is. <8> Bizzeh, require/include_once will first check if the file has already been included before including it. <19> sorry for the offtopicness, but the #awstats channel is rather dead, so I'm giving it a try here. I am trying to do exec('/usr/bin/perl awstats/awstats.pl -config=cupnoodles.org -output'), but the output I am getting is https://service.cupnoodles.org/stats/ .. as you see, awstats seems to detect that its called over http, and tries to compile stats for service.cupnoodles.org, while I specified .. <19> that I want to compile stats for cupnoodles.org on the commandline. <1> !+g8 <2> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <15> colder: so if i require_once the file, at line 1, then include the file at line 100, php will stop that 2nd one/ <16> Any help with searching a mySQL database with one Letter, such as showing all last names (lname) that start with M? <7> Bizzeh: no, it will throw a warning with an include(), but will not include it. <7> it will throw a fatal error if you did require() <8> Bizzeh, if you use require_once/include_once the second time, yes. <8> Dae, err ? <1> wizardx: How about actually asking that in #mysql? <20> hello can I set php to use an external smtp in linux ? <7> colder: once a file has been require_once()'d, it cannot be required()'d again <13> fragma, yes <17> fragma: use phpmailer.sf.net <21> hey is there a way to ping a website and display information in php? <1> fragma: Use sendmail wrapper ot some libs, like phpmailer. <20> I have multiple servers and one of them is relayng, not the web server <8> Dae, I doubt it. <16> Wasn't sure if someone here could help, Stormchaser, with things such as special variables to p***, etc. <8> Dae, and no, you're wrong. <7> colder: It oly blocks _once()? <8> using _once will check if the file is included, if it is, it won't include it again, that's it <7> ah, had it backwards then. <7> either way, _once() is better than using his define() hacks. <1> wizardx: What special variables? <16> Thats why I asked, maybe someone had an idea to help. <1> wizardx: So you don't know, what you're asking? <16> Ok, simply, here it is. I was asking a general question about a mySQL problem, hoping indeed, that someone had done this before and could quickly help me, or, someone had done this before and had some advice, etc. Thats all I meant by asking, and all I got was to change channels. Simply put, thats what I was doing. :P <22> wizardx, nah, we're all using php for non-webbased purposes <1> For MySQL problem, ask in #mysql. <16> Stormchaser: I remember :) "Stormchaser wizardx: How about actually asking that in #mysql?" <1> wizardx: So... What's stoping you? <16> Nothing, I did what you said and asked the first time. :) <23> is there a way to use a wildcard for an int in a where clause in mysql: "WHERE id = *" or something like that? <1> *sigh* <16> lies! :) <16> How old are you, Stormchaser? <24> hehe <1> Me? I'm 4 years old. <25> has anyone here benchmarked php with a small set of modules compared to a standard distro set ? <25> i'm just compiling 5.1 myself and i've used the distro configure as a guide.. <26> is it normal behaviour for basename('/dir/tests/') to return /dir/ ? is there an elegant way to fix this? <26> returns 'tests', that is <1> what are you looking for, Akuma? <26> well, my paths dont contain filenames, and i was expecting dirname() to still return the full path. but it treats the last /x/ as the file <7> If you have directories already, why are you using dirname? <26> i guess i could do my own pathinfo() function... its just nicer to use builtin stuff though <7> The functions generally are used to get directory names from full file paths
Return to
#php or Go to some related
logs:
chainge mac on linux #linux ruud bulix mac address ban #web Couldn't load default.cfg doom3 linux mozilla innerHTML createnode /etc linux what does etc mean ubuntu fglrx drirc your session has been saved ubuntu
|
|