@# 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 23 24 25 26



Comments:

<0> k
<0> I feel old
<1> I play q4 and qw in linux, works great
<2> oh god here we go
<3> I play poker... works nice aswell ;)
<0> try torus trooper
<3> cant believe how people want to play games on a computer... computer is a worktool... nothing else!
<4> coding games in php is stupid
<3> onki: thanks for the information! I will NOT forget that ;)
<0> onki: works well for puzzle games
<2> making sweeping statements is stupid
<5> CopyNinja are you serious?
<2> except for that one :P
<3> as serious as a man can be ;)
<5> ....
<4> then again, one could learn at the age of 17 :-)



<6> `amithere`
<0> kestas: your statement was specific, not sweeping :)
<2> lechunk, it's making a sweeping statement about sweeping statements isn't it? :o
<5> All sweeping statements ****!
<5> or
<5> better, All sweeping statements are incorrect!
<5> now, theres a paradox for you
<3> well... I'll better get back to work... cant sit here and chit chat all day, even though its entertaining =)
<5> lol..meh, its 6AM i've been up all night...
<7> All statements are false.
<6> so i just did a "benchmark" double quoted string against sprintf.... but, am i doing it right ? lot of thing can influence perfs.. but it tells me that sprintf for the same task is 2 times faster. http://pastebin.com/548284
<8> i hate this '\n' gag
<5> Getty - what?
<6> ... ?? what's the problem about \n ?
<8> you know.. if you make '\n' instead of "\n" you get no return
<0> well yeah..
<6> :| of course
<8> i mean its logical, but i always fall over it
<0> that's a feature
<3> it has to be "\n", not '\n'
<9> vinadelmar: you only run them once.. and you run them both in the same file... it's pretty badly flawed :P
<8> lechunk: yeah of course, you need that
<6> niraj, that's what i wanted to know... benchmark is almost a science
<7> almost isnt is
<5> run both 1000 or perhaps even 100000 times
<6> ok
<6> you mean, simply 10000 times in a single loop ?
<5> yes
<6> brb then
<9> vinadelmar: yes
<5> time to sleep
<9> vinadelmar: and your time calculation is messed up.. you're only counting msec..
<6> right
<9> vinadelmar: my benchmarks show quoted strings being almost 4 times faster (looped 1 million times)
<6> wow
<6> can you show me ?
<9> vinadelmar: do you have php5? the source i wrote is for php5
<6> i do
<9> vinadelmar: http://pastebin.com/548306
<6> thanks, running
<9> vinadelmar: i hope you're doing this for curiosity.. :P
<9> vinadelmar: because if a million times makes like 3-4 seconds of difference, a couple times means there's pretty much no difference
<9> vinadelmar: so don't let performance be the only deciding factor :P
<6> indeed
<6> yesterday, i've been told that sprintf is more "readable" and should be used in opensource project.
<6> i'm looking at a file with like 50 lines of double quoted strings... replacement will be the last job. but i would like to adopt a coding policy for the next cl***es
<10> http://ruler.student.utwente.nl/files/colorpage.jpg
<10> :)
<11> any idea how to replace ereg("([A-Za-z0-9_-]){4}") to ereg("([*]*)") ? my goal is to enable ALL signs.
<12> can anyone give me a suggestion of web stat tool? I want to log the footstep of each visiter
<13> DavidHKMrPowers: Do you want stats or do you want a breadcrumb trail of individual users? Two different things.
<13> DavidHKMrPowers: For enough stats to keep any actuarial happy, I recommend http://www.mrunix.net/webalizer/
<14> anyone here familiar with mambo?
<12> dj_segfault : I don't understand what breadcrumb trail is...
<12> dj_segfault : is it a php app ?
<14> ive imported a set of articles via phpmyadmin and a .sql i setup the .sql just like the mos_content table.. and imported it with success.. the stories show up on the site.. however under the adminsitrator section, they aren't listed anywhere!
<13> DavidHKMrPowers: Where you can see page for page where a particular user went. They started at this page, then the next, then the next..
<12> dj_segfault: yes !!
<13> DavidHKMrPowers: Webalizer generates html and images offline.
<13> DavidHKMrPowers: Yes what? I mentioned two options, and your answer was Yes!



<15> hi all! is it possible to call a function using a variable name - e.g. $foo = "echo ''"; - run foo?
<16> RolandU: yes, but echo is not a function, whereas print is
<12> dj_segfault : "They started at this page, then the next, then the next.." Do I need to put a little bit php code in each page that I want to track?
<16> RolandU: I believe $foo()
<13> DavidHKMrPowers: If it were me, I would grep for their IP in /var/log/httpd/access_log. I've never seen a tool to do it, but it must exists. Try googling for "breadcrumbs web report"
<12> dj_segfault : webalizer needs me to modify apache setting but I do not have permission to this
<15> mjec, not eval()?
<12> dj_segfault: http://awstats.sourceforge.net/ could grep log from access.log but I failed to install it
<13> If you want to see what the output of webalizer looks like, check out this dump of one of my websites http://devel.agilerules.com/usage/usage_200601.html
<13> DavidHKMrPowers: What failed?
<12> dj_segfault : I did not understand the instruction to install awstats as it needed me to do "perl awstats_configure.pl".
<13> DavidHKMrPowers: And what happens when you do that?
<12> dj_segfault: I don't know where to type this. I use web hosting
<13> DavidHKMrPowers: If you don't have shell access, you're not going to be able to install ANYTHING.
<12> dj_segfault : :(
<13> Are you sure you don't have shell access? Or will they let you ftp the log files to another box?
<17> Is there stuff in PHP for like... printing documents?
<17> (as in using a printer...()\\)
<13> Kcaj: PHP is all server-side. You can use PHP to generate javascript that will print, though
<17> See, I need to like... print a report so I'm using PHP/MySQ to generate it, but right now it kind of looks ugly (especially with the stuff IE and other browsers might add to someone trying to print stuff)
<18> Um...
<18> <style type="text/css" media="print"> <!-- your print style --> </style>
<18> Most browsers will make sure to use that style when printing.
<13> Kcaj: So you're not trying to get the PHP to trigger printing, you're trying to produce a page that will look nicer printed? Kuja is (for once) right. Use CSS to adjust how the page renders when printed
<18> This is convient because you don't want to waste people's ink, and just make it very black and white with minimal graphics.
<18> I'm right, for once?
<18> I'm always right :P
<18> :(
<13> I'm just joking. kuja is always right.
<13> Except when he's wrong.
<18> :D
<18> ...
<13> Which is all the time.
<18> -_-;
<19> hi, i need to control download for my website, if download not complete, dont save log for this download, its possible using php?
<20> i've got this question about cl***es and the session, it seems like you can have serialized objects in the session that don't have access to their cl***es any more
<13> lordao: How are you doing the download? Is there just a file on your server they click on (or right click on) to save it? Or is it the output of a script?
<20> are those objects ok as long as you don't interact with them?
<19> dj_segfault exists a file to control access.. the user dont see the url of file
<13> zeasier: Session data is flat, serialized data. If you put an object in there, that object has to be serialized. When you get it out again, you can unserialize the data back into an object (which will work to a degree determined on the cl*** does).
<18> Serializing an object is like serializing an array.
<18> All the serialized data holds is what cl*** it belongs to and the properties and values it contained in the state it was serialized.
<18> When you unserialize it, you can use it normally where you left off.
<20> yeah i know about serialization
<19> i think about ob_() functions... its possible?
<20> i'm just interested what happens if an object can't find it's cl*** when it deserializes
<13> lordao: I thought there might be something in the apache or http functions, but I haven't found it so far
<18> zeasier: Sounds like something you'll have to test :)
<20> i've seen errors thrown about orphaned cl***es
<20> kuja - yeah
<19> dj_segfault but apache cant show me about user cancel or no a download file i think
<20> but on the otherhand i've used sessions that may have orpaned objects that don't care
<18> Serializing an object and attempting to unserialize without having the cl*** definition rarely happens.
<20> sure it does, if your autoloader isn't present
<20> or if you have dynamic include paths
<18> zeasier: In which it should be. Not having definitions is like forgetting your session_start()
<18> Which doesn't happen much, you see.
<18> Also, one comes to learn with experience that you should always be using absolute paths when including files =)
<21> lordao, implement through socket ?
<19> Ox41464b no..
<21> what no? im not finish yet
<20> my problem is i'm sharing a session with many other applications some of which have imcompatible include paths
<20> anyway i have to write up that test
<19> Ox41464b i dont understand..
<21> [downloadFile.php] is the one what user clicked for, [filereader.php] is loaded by downloadFile.php (through fopen to localhost)
<20> 0x means it's hex
<20> oh wait lol
<21> with this, you filereader.php can have 'reports' of how many stream uploaded/downloaded
<21> your*
<21> er....
<21> lemme explain in buggy <?php pastebin ?> hold on
<19> Ox41464b hmm, but how i see if file is download at your end..
<22> hi


Name:

Comments:

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






Return to #php
or
Go to some related logs:

+kftpgrabber +SLES +install
ajax permition denied firefox
bcmwl5.sys+driver win2k+ubuntu
loadxml +lt +gt
#php
+iterable objects +php
djpirate
mozilla-dev etch
konqueror vidieo
create table table1 as select * from table



Home  |  disclaimer  |  contact  |  submit quotes