| |
| |
| |
|
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
Comments:
<0> Gerry: give an ErrorDocument 404, to the local .htaccess <1> Sp4rKy: What is ovh?... <2> hmmmm <2> Yeah I had considered that. <3> will_ host asp/mssql/IIS on it <3> lol <4> richardlynch, a french server for web hosting <0> viva la france! <5> AfroTurf, I don't know ASP :) <3> thats why it works good <5> heh <5> I'm considering learning it though. <6> Gerry: sending a 404 header doesn't cause apache to display the error page. <7> will_, I setup a box for my college like that. this was after I setup a gentoo version, which they decided not to use because they 'figured' out no one in the college knew how to run linux... <1> Sp4rKy: If you have an account, you can check fast... If not, you'd have to ask them. Or find one oftheir clients. But your odds finding one in IRC this minute are real low <7> soon they will be e-mailing me, 'hey, the server got hacked'...
<5> AfroTurf, Since apparently PHP was written by 8 year olds, and I know that MS wouldn't hire <18 because of US laws... <3> will_ well i'll stick to php because it works with just about everything <5> (that was a joke btw...) <2> CryWolf: what does? <5> cyphor, Wouldn't know what to say. Maybe someone didn't patch it up? :) <6> Gerry: the file not being there <8> Gerry: The apache 404 error page is something the Apache does internally. <7> lol, it didn't get hacked, I was just saying... <2> heh <3> lol cyphor <3> cyphor: gentoo is nice <7> my point was I set them up an awesome gentoo server and they bailed because they are lazy.. <1> cyphor: It didn't get hacked. ... Yet. <7> yes, exactly richard, that was my point... why they took a junk win box I'm not sure... <1> cyphor: They don't want to learn anything new. It's a school! <2> CryWolf: is there a way to tell apache to display the error page? <7> heh, yea.. <3> cyphor: except i got pissed the other day cause i went from apache-2.0.52 to apache-2.0.55 and gentoo's ebuilds decided to change all the directories <9> hey there. <1> Gerry: require 'errorpage.htm'; <9> is there an easy way to parse the current URL? <6> Gerry: not that I know of. If you have a custom error page, include it. <7> that stinks... I don't emerge my stuff, at least like apache php and so forth.. <2> parse_url <5> cyphor, What is funny is that our company had a jr. unix admin install RH or FC... can't remember which version. That did get hacked. It was one of our Web servers. Rooted. <1> jirwin: http://php.net/parse_url $_SERVER['PHP_SELF'] <2> Thanks for your help guys. <5> cyphor, Unix boxes are just as likely to be cracked. <7> will_ , any box can get hacked... <10> gentoo takes a lot of time to do some packages <7> the point is how much time you put into securing a box... <10> like i think PHP 5 was hard masked a year after it came out <3> 4.4.0 works pretty good <1> jirwin: Actually, the full URL isn't PHP_SELF, it's something else... <?php phpinfo();?> will say. <7> as far as fed hat is concerned, I can't stand it... <7> I came along gentoo and won't budge.. <10> AfroTurf: yeah but it's not PHP 5 hehe <5> That's not the point... <3> gentoo and bsd is my pics <7> yup =) <3> picks* <10> debian is pretty good too i think <3> i have like soo many things running and its flawless <10> tho i havent used it in a couple years <7> yea, I've been running gentoo/apache/mysql/php for a couple years and I've had no problems at all... <7> I turn the server on, and it just works, never complains, hehe... <3> ya <10> i'll give any linux distro that has an apt-get/emerge style package system a chance <3> havn't restarted mine in 2 months <1> cyphor: Why did you turn the server off? :-) <7> lol, I don't, but you know what I mean =) <3> :) <5> AfroTurf, Uptime means you have and old kernel :) <3> :) yep <5> "My box has been up for 2 years straight!!!" <7> heh, that's a long time will_ <3> only time i restart is when i update something in the kernel <5> I think I might have one or two boxes that have that. Of course, they are internal boxes only. <3> or change modules
<5> I thought the point of modules was so you didn't have to reboot? <3> yes you don't <3> but i do sometimes <5> ok :) <3> anyone working with ethernet bonding? <5> Bonding over Ethernet? Like match.com? <6> AfroTurf: I'm not into that kind of stuff <3> yes <3> taking 2 nics for reduntancy <3> 2 or more <3> but thats off topic in here... lets stick to php <1> Yeah, we've been Sooo on-topic tonight.:-) <3> an admin will pwn us if we keep talking :) <3> oh and hi CryWolf <1> I'm reading PHP Source. TSRMLS_DC... I know the TSRM part, but what's LS_DC et al? <9> i am interested particularly in the subdomain of the url <1> jirwin: parse url will break it down to domain, but after that, it's just explode('.', $domain) <1> jirwin: Note that it could easily have .co.uk or x.y.z.php.net or... <11> jirwin: parse_url() <9> richardlynch, but [0] of the array the explode will return the very first listing? <11> jirwin: parse_url() provides an ***ociative array <3> you could do array_shift <1> jirwin: Yes, the first one. <1> $parts = parse_url($_SERVER['I_FORGET_WHAT']); <9> ok <1> $domain = $parts['domain'; <1> $domain_parts = explode('.', $domain); <1> print_r($domain_parts); <11> richardlynch: $parts['host'] iirc <9> server_name returns the domain <9> so if my page was referenced as jirwin.mirwin.net <9> it returns "jirwin.mirwin.net <9> " <9> so could I just explode that with . ? <1> Yup. <9> alright cool <9> thanks <9> those are in $_SERVER ?? <1> The whole URL is in $_SERVER, I think. print_r($_SERVER) and see what's what. <3> heres maybe a dumn question <12> hi all <3> why can't you just $domain = $_SERVER['HTTP_HOST']; <3> $domain = explode('.', $domain); <3> $subdomain array_shift($domain); <1> AfroTurf: Cuz his first question was about getting all the parts, so we ended up here... <3> $subdomain = array_shift($domain); * <3> oh ok <3> but it seems like he just wants the subdomain <11> AfroTurf: it might not be the actual server he's interested in <11> as in.. it might be some other url <3> ah that would make the differnce <1> I've always found it best to make folks dig through phpinfo() to find what they want... <1> It's there somewhere, and that's the easiest way to teach yourself what's there. <13> wow so quiet <5> shhhh <14> Hm <13> :-) <13> i just woke up, i won't shhhhhhhhh <1> about to get quieter... <15> hello there, I have a script(A) which includes another one with functions(F). Is it possible for a function in F to know from where it was called within A? <3> ndee: so let me get this strait... you have a function in a different script that your including? <15> AfroTurf: jep <3> ndee: yep it will work <6> ndee: see debug_backtrace <13> ok, let's no be quiet anymore: check http://pastebin.com/657136 <13> a question about inheritance: what is missing in the upper if ? <13> or is this all wrong? <15> ok, gonna check that, thanks. <13> i have to check which user it is and then call a function on a user. (the function for the inhereted cl***es is slightly diff) <13> my question is: can i do that and what do i have to write in the IF <13> ****, too quiet <10> Aap: i may be wrong but i think you have it backwards: if an object is of cl*** WindowsUser it will automatically call the WindowsUser bootcomputer <13> yes it will, but what do i have to write in the IF clausule <10> wait does WindowsUser inherit from User?
Return to
#php or Go to some related
logs:
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' btsco x86_64 8mb in kb inherit SimpleXMLRPCRequestHandler
sussudio crc howto kooldock gnome toolchain-glibc_src_compile debian gnomebaker audio/mpeg is not installed unrar -l ubuntu install dialog
|
|