@# 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 27 28



Comments:

<0> Is it possible to port a mysql-using application to postgresql just by changing all instances of "mysql_" to "pg_", or are there hidden gotchas?
<1> rkd: i would think there might be some hidden gotchas.. but thats why most big apps create a wrapper cl*** for all DB work
<2> anyone know any belarusian channels dealing with linux/php?
<3> http://au.php.net/functions is a bit wierd
<4> lol yeah that is quite worrying
<4> hmm strange so is it true that if you do session_unset(); session_destroy(); then the session cookie is still on the user's browser?
<3> until they close their browser, yeh
<4> hmm that's not what i expected; so i'd have to explicitly delete that cookie using session_get_cookie_params?
<4> and then when i start session then the cookie is placed again
<4> or will starting session overwrite that cookie anyway?
<5> Hiiii
<5> Parse error: parse error, unexpected T_CL*** in /home/dmfnet.nl/public_html/brain/index.php on line 2
<5> abstract cl*** A{ <- line 2
<6> can anyone tell me what is wrong with this line? $subje = $_POST['subje'];
<5> I cant use things like 'public' 'abstract' 'private' 'protected'
<7> redalpha: which version of php are you using?



<5> just wanted to check it cuase i dont think its 5
<7> redalpha: well abstract/public/private/protected are only available in PHP5
<5> damnit
<5> PHP Version 4.4.1-0.dotdeb.2
<7> upgrade then :P
<5> not my own host
<7> oh
<5> yourhosting.com
<5> :P
<7> lol
<5> IllegalC0de nothing wrong with your line
<6> redalpha: thats what i thought but im getting an error message about it
<3> redalpha: line above it
<5> aidan ?
<5> IllegalC0de what is your error
<7> i think he meant that message for IllegalC0de
<5> niraj got it fixed without abstract, but ****e, i want php 5 on my server :P
<6> Parse error: parse error, unexpected T_VARIABLE in /home/fhlinux203/h/hodoh.org.uk/user/htdocs/login/postchk.php on line 7
<3> IllegalC0de: check the line above it
<7> IllegalC0de: check line 6. i'm guessing you forgot a semi-colon
<5> Check if the previous line was closed propperly
<5> Thats gotta be clear, 3 times :P
<6> blank then above that is lol yea ok im missing an ;
<6> lol
<5> :)
<8> niraj, upgrading isn't always a good idea
<7> basix: he wants to use php5 features.. so it is for him
<6> cant belive i mised it lol
<6> thanks guys
<4> i still don't get why people generate their own session ids when php has so many capabilities built in and even configurable via php.ini; it baffles me
<8> niraj, i still say upgrading isn't a good idea. And there isn't anything in PHP5 which you cant do without ;)
<9> i'm installing php on windows and need to use the soap extension... i've made sure that in php.ini the extension_dir is correct and other extensions are loading fine, however extension=php_soap.dll just appears to be ignored
<9> i restarted the apache service of course
<5> basix can you tell me how to make a proper hierarchy of cl***es (for plugins) ?
<7> basix: depends what you mean by "do without".. if you design an object oriented system, then want to implement it in php5, but are stuck with php4's crappy oop, i'd think it's best to upgrade
<9> i don't see the point in implementing anything in php4 anymore :-p
<8> redalpha, no.
<8> niraj, if you say so
<7> basix: sure you can work around them and stick with php4. but why do that when it's supported in php5..
<5> no cause its not possible or no u dont feel like it
<7> Fastly: majority of my scripts are still php4 compatible. it's still the most popular version of php.. :P
<8> redalpha, whatever you think is right :)
<9> don't worry about the soap thing.. i'm being dyslexic!!
<9> extension <> extention
<10> Lets say I have two times... 1AM and 7PM. What would be the easiest way to calculate the time between them, that lapsed?
<10> (using minutes as well and I only want to have to put in the hour/minute/AMorPM
<9> niraj, i suppose in that case php4 may be a better choice if you are selling scripts that must run on a customers server
<9> but wherever i have admin right php5 will be supported :p
<7> Fastly: i added a "extension=php_soap.dll" line into my php.ini and SOAP works now..
<9> yes... i wrote extenTsion instead of extenSion
<9> that's why it didn't work
<9> now it does
<9> thanks
<7> ahh hehe
<10> No help for me? ;_;
<7> Kcaj: what format is the time in? UNIX timestamp?
<7> Kcaj: if not, i think you should convert it to a UNIX timestamp, subtract, and convert back
<7> Kcaj: see mktime()
<11> http://www.youtube.com/p.swf?video_id=kKGxaol4qws&eurl=&iurl=static13.youtube.com/get_still.php?video_id=kKGxaol4qws
<7> kestas: see it. but still funny ;)



<7> s/see/seen
<11> yeah its one of those vids that probably shouldnt be funny
<12> hey dudes. I've got a file manager built, but it requires the uploaded files being place within the document root of the webserver for future downloads. Is there a way to have the files placed outside, then downloaded via downloadFile.php?file_id=### (or simmiliar). Does anyone know how to somehow open a file in binary mode, the stream the contents to the browser specifying the filename, etc...?
<7> dmar-_-_: yes..
<11> getting the file type in the content headers right will be the most annoying thing
<7> dmar-_-_: but it's not very simple, and i'm lazy
<8> suppose you are making a database of files. what details would you store about the file? These are the 4 most important attributes I have identified Name, md5, Size, MIMEType. Do you think I should store anything more??
<7> kastas: well, he seems to want downloads only, so i suppose application/octet-stream will do for all
<11> basix, depends what you're using the database of files for obviously
<11> niraj, I guess if you don't want it to display images or movies normally then yeah
<8> kestas, hmm...its for temporary storage / allowing people to just backup some important files on my intranet.
<13> Ya'll use graphical diff apps or the command prompt?
<8> kestas, btw getting the content header right isn't that difficult if you are on a linux host. You can identify the mime type using the "file --mime" command & shell_exec();
<11> basix, bleah messy :P
<8> kestas, not really
<7> "diff apps"?
<11> basix, I'd have permissions, but again this depends on whether it has to be secure
<13> Yeah, that you install on your computer for a nice graphical diff.
<13> For comparing two files.
<11> basix, system dependant is messy
<7> ahh
<11> graphical diff? that's like graphical grep
<13> I created a diff web app. http://www.polisource.com/diffnote/
<8> kestas, hmm...no i dont require security. the whole point is to make it easier for people to "share" their files easily.
<12> niraj: can you point me in the direction of some documentation?
<8> kestas, i think php has a similar command which is system independent
<12> kestas: do you know of an example, doc that would help me out (re: file download stream)
<11> basix, err can't think of anything else, unless you want to have download counters etc etc.. you know, depends what you want
<11> dmar-_-_, grab some source from an app which does something similar
<8> kestas, hey thanks! I forgot the counters! :)
<8> W***ercrats, i dont think i will be using that web app. I'd rather download a binary for my system to do that.
<7> dmar-_-_: actually i have some code you could look at for streaming the file
<13> basix: me to, if I knew of a good one and I didn't already create mine.
<12> niraj: well, I would appreciate that as well :P
<13> And if I had some RAM to spare.
<8> W***ercrats, you didn't get my point. people wont upload their files to your server. there are privacy issues attached to it ;)
<13> That's another thing...I'm not sure how most people use diff. For webpages, there probably wouldn't be a privacy issue.
<7> dmar-_-_: check your private messages :)
<14> when i see $socks->shoes, what does the -> thing mean?
<14> i'd look it up, but i don't know the little thing's name to start to look
<8> cheesecheese, $socks is an object / object reference. shoes is a variable / object
<7> it tells you shoes in an attribute of an object called $socks
<8> that reminds me. why is p*** by reference deprecated in PHP?/
<14> how do i set the attribute?
<8> cheesecheese, read a programming book maybe?
<14> basix: very funny. i'm trying the best i can here.
<14> and i don't have access to those sorts of books.
<8> cheesecheese, perhaps Google, then?
<7> cheesecheese: http://www.php.net/oop
<8> hello? p*** by reference anyone???
<15> hey could someone tell me why my div is taking over my entire page? http://www.gwmc.com.au/about.php
<15> plz
<14> thanks niraj :)
<7> ph8ory: #html
<15> #html are bitchiing about tables/css and wont answer questions :(
<13> ph8ory: Page cannot be displayed.
<7> lol
<15> oh hrmmf, nameservers havent updated
<8> i am unable to resolve gwmc.com.au!!
<15> hehe
<8> niraj, why is p*** by reference deprecated in PHP?!
<15> okay thanks anyway
<7> basix: dunno..
<13> Hey, a web based diff app might be good for a web hosting service to offer it's customers who have websites stored on their servers.
<14> basix: get a programming book, ask it?
<8> cheesecheese, i will unleash my mouse on you. >_<
<14> yeah, and i'll go back to my *** life :)
<7> basix: i just looked it up.. it seems only call time p*** by reference is depreciated..
<8> niraj, tell me, how am i supposed to p*** an object to a function which wants to modify it? and get back the modified object as a result?
<7> basix: instead of using the & at call-time use it on the argument when declaring the function
<8> niraj, i am currently using a stupid hack to do it: function myfn( $ob ) { ...blah... return $ob; }
<8> niraj, you mean something like function myfn( & $ob ) { } ??
<7> yup
<7> thats the "right" way to do it now


Name:

Comments:

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






Return to #php
or
Go to some related logs:

rpmq ubuntu
w32codec.deb ubuntu
#xorg
+mplayer +sound +lags +ubuntu
gaim2 popup
Knoppix lock-session
#physics
#osdev
#kde
gentoo +font +terminal[dec]



Home  |  disclaimer  |  contact  |  submit quotes