@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22



Comments:

<0> They could sure use bloat code.
<1> i use smarty though :)
<1> anyay my crappy belkin wireless setup :(
<0> Drakas: I figured that much. That might explain why you write crappy code too.
<1> i can resolve the domain to an ip address but cant connect!:(
<2> whats the difference between a 2/3 and 4U case?
<3> Drakas: are you forwarding the right ports to the server?
<1> name773 huh? what server?
<1> look, simply i do "ping google.com"
<1> it resolves the domain
<1> but it gives ping timeout
<1> i've tried 15 other servers
<3> nm, i thought "belkin wireless setup" -> router and you were hosting something
<1> kk
<1> anyway, went to market and got a 20m phone cable :) great,, now im working faster than ever



<3> anyone here use cgi php?
<1> name773 lots of people
<1> some use php module and some - cgi
<4> !tell Drakas about enter
<1> oh sorry .
<3> is writing for cgi any different than writing for a module version of php?
<1> well php's module is loadable by apache, and the cgi version can be used in a lot more different servers. at least thats what i think
<3> ok. do the scripts have to be in a certain directory to be executable or anything like that?
<3> or can i copy my apache+mod_php webroot to a cgi php server and it will still work
<1> name773 what?
<5> i am getting a 'unexpected $ at line 62' with this code:http://pastebin.com/549912 can anyone help?
<6> pacopacino: methinks you truncated your code. there is no line 62.
<5> bin0ry, no truncation here..thats what is so weird
<3> maybe the problem is in another script that gets called by your program
<5> i think i have a missing ; or something somewhere and i am not seeing it
<3> it looks fine to me
<2> pacopacino: is 62 the last line?
<5> yes
<7> anyone can tell me why this: <META HTTP-EQUIV=Refresh CONTENT="5; URL=javascript:document.login.submit()"> works only for internet explorer, and Mozilla/Firefox fails execute that ???
<2> !tell pacopacino about error last line
<2> Char0n: go to #web
<2> dont p*** go, and dont collect $200
<3> pacopacino: try erasing the linebreak between 19 and 20, idk if this helps though
<6> pacopacino: your logic is flawed between lines 37 and 49, but i don't think that's causing your error
<8> :)
<5> ok
<8> Also, the code has no syntax errors, I blame browser cache or something
<9> Is there any neat way of knowing how much bandwidth a PHP script has wasted so far?
<4> philip: I blame coders :)
<4> KimmoA: um... No?
<6> KimmoA: php scripts don't use bandwidth
<6> KimmoA: bandwidth is determined between your server and the client
<9> URL fetching does...
<6> KimmoA: now memory usage, that can be determined
<9> I said "bandwidth usage"...
<6> KimmoA: and url fetching is still determined between the server and the client, just in that case your script becomes the client.
<9> So? What about it?
<6> KimmoA: php scripts don't use bandwidth, that's all i'm saying
<9> I'm fetching remote Web pages with file_get_contents(). Is it unclear somehow?
<6> KimmoA: nope, not unclear at all. i figured that's what you were doing.
<9> I guess I can count the strings' size and add them together or something.
<9> Since PHP has a function for almost everything, I asked you if there is a neat solution first.
<6> KimmoA: the bandwidth used is determined between your network connection and the server's network connection -not- by php or the webserver.
<6> KimmoA: you could use microtime();
<9> "Return current Unix timestamp with microseconds"
<9> I don't see how that relates to my problem at all...
<6> KimmoA: here, let me write an example
<8> no there isn't a function specific to this task
<6> KimmoA: $start = microtime(); $string = file_get_contents('http://www.google.com'); $timeused = microtime() - $start; $downloaded = strlen($string); $bandwidth = $downloaded / $timeused;
<5> i submitted the code to beautyphp, and still i could not find a missing ';'.
<8> pacopacino: there is no parse error in that code
<9> b1n0ry: Hmmmm...
<8> pacopacino: be sure the error isn't stuck in your browser cache
<6> KimmoA: determine the amount of data downloaded and the time taken to achieve the download. divide them for the bandwidth. bytes per second.
<5> okay...but i think i do see a missing '}'
<9> b1n0ry: Am I being a moron now, or can't you just check the number of chars in the resulting string?
<5> philip, in line 19, where it says "If ($words) {" i do not see whre it closes the {.
<9> Maybe you think I wanted to see how fast it fetched it?
<8> pacopacino: apparently you pasted different code
<6> KimmoA: bandwidth = quantity of data transfered / time to transfer that's why bandwidth is measured in Kbps, bps, etc. notice there's always a a factor of time
<9> Dammit. I fell into my own trap.



<6> KimmoA: i think if you don't take into consideration the time taken, then you are asking the wrong question. you said "bandwidth' which has a time factor
<9> Sorry. I meant data traffic, of course. :$
<10> is there anything like an enum in php?
<6> KimmoA: that's relative to time, as well. you can determine the number of bytes transfered just by measuring the string size. but if you download 100 bytes over 100 seconds, that's hardly any traffic on your network. if you download it in a single burst, that's enough traffic to clog 4 parallel T1s... so it's still relative to time.
<8> php has an array
<6> DigitalReaper: ***ociative arrays
<9> b1n0ry: Well... at least I pay for total data -- not the data being transfered at a given time.
<10> nothing static? (i'm ***uming it'd execute faster that way)
<9> (And I pay waaaaay too much for it!)
<11> Are there any refactoring browsers for PHP? I'm looking for something similar with bicyclerepairman for Python.
<6> KimmoA: so then you're looking for data transfer size
<6> KimmoA: and for that, you can just look at the size of the string that you transfered + the size of the request that you sent to get the string (which is usually only a couple of bytes)
<9> Yeah.
<6> KimmoA: plus the transfers for any DNS resolution that needed to be done to get the name
<12> hi
<9> This is the stuff that I thought that perhaps PHP could take care of.
<12> is there a cool IDE for php in windows ?
<6> demian: about a half million: Zend Studio, Dreamweaver, HTML-Kit has PHP plug-ins, and buku others
<12> which one is free ?
<6> KimmoA: php doesn't have constants for DNS resolution overhead, HTTP request overhead, etc. if that's what you're asking. i would just say use strlen() to determine the download size and add 128 bytes for overhead. that should get you pretty close.
<6> demian: html-kit is free, i use it all the time
<12> i dont want an editor, but a HTML designed, like WYSIWYG
<6> demian: ah, then good luck. i thought you were looking to program php
<11> demian: try quanta
<12> well.. a designer with support for php.
<12> ok
<9> b1n0ry: Alright. :[
<11> demian: use something like smarty to design
<11> Are there any refactoring browsers for PHP? I'm looking for something similar with bicyclerepairman for Python.
<4> PYthon libs have funny names :)
<11> it is not a lib
<13> does anyone know if the php supplied with os x tiger is compiled with mysql support?
<11> kezz: echo php_info(); would answer that i guess
<2> Igareok22: echo is not needed
<13> is says dbx supports mysql
<10> indeed, it's just php_info();
<13> yeah i did that
<13> how does it know where to find mysql tho as that needed installing afterwards
<2> and actually, its phpinfo not php_info
<11> itrebal: sorry, coded in php 2 years ago last time
<6> actually, it's phpinfo();
<6> itrebal: nm me, just being a smart***
<14> what is PHP ?
<14> :)
<11> Stormchaser: and this is not funny: Paamayim Nekudotayim ? :)
<6> thegladiator: lol
<11> sounds like orkish language
<6> Igareok22: which dialect?
<2> !tell thegladiator about php
<2> :)
<6> the southern orcs or the orc picts?
<2> !tell thegladiator about ##php
<2> sorry
<11> Are there any refactoring browsers for PHP? I'm looking for something similar with bicyclerepairman for Python.
<14> lol
<6> Igareok22: i think most people here already read the question
<11> sorry, i wait 10 minutes before reposting :(
<14> i can understand that manual and all lolz
<14> i am going to ask my friend google
<11> b1n0ry: nobody does refactoring in php at all ?
<6> Igareok22: i'm not sure what refactoring is
<6> so i can't answer
<15> PHP isn't much of a best practice language ;)
<11> b1n0ry: you can think refactoring as modifying the look of code without modifying its functionality
<14> php is used to create websites ?
<14> noobs are useless ppl :(
<6> thegladiator: php is a hypertext preprocessor similar to ASP for IIS or JSP for java servers
<11> insin: unfortunately most server sysadmins are too lazy to attach mod_python, so everyone wants brains coded in php :(
<16> http://pastebin.com/549959 < can anyone tell me why $count is empty?
<17> can anyone point me to a whitepaper or anything that points out why php5 is better than php4 ?
<16> i've echoed out the query and run it manually, and it works fine
<11> thegladiator: not only websites, but also gui apps for Windows
<14> i use linux
<14> i see


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#ai
modulated clock repair
bitmap eeyore
liedentd debian
#centos
Use of uninitialized value in scalar assignment utf8_heavy.pl
+SiS Mirage +ubuntu
#css
mdadm dismantle --zero-superblock
freebsd ndiswrapper ATI 7500



Home  |  disclaimer  |  contact  |  submit quotes