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



Comments:

<0> http://www.php.net/file-get-contents
<1> @file!
<0> (PHP 3, PHP 4, PHP 5)
<0> array file ( string filename [, int use_include_path [, resource context]] )
<0> Reads entire file into an array
<0> http://www.php.net/file
<2> oops yes i see what you mean, i said i put the images into a database. excuse me i didnt even know that was possible! i mean i am calling the file source
<3> Ah I see.
<2> i.e. picture1.jpg
<4> there are some benefits to images in a db.. you just have to weigh them against the drawbacks for your situation
<4> really the only drawback is the extra overhead involved
<3> And the only advantage is....oh wait there isn't one.
<2> lol
<4> in a cluster, you only have to make the database replicate
<4> backups are simplified
<5> does it make it less code to transfer from one db to antoher?



<3> in a cluster you can rsync
<3> and backups are simplified
<3> :P
<5> or a dump perhaps..
<4> no, because then you have to replace the db AND the files system
<3> so?
<4> and likewise for backups
<4> theres less chance of corruption -- ie missing files, because the data is actually stored alongside the metadata
<4> well like i said, you have to weigh it for your environment
<3> Well, when a database fails or corrupts, your entire filebase corrupts.
<3> if you store files in a database
<4> huh?
<4> so.. if a hard drive fails, your entire system dies
<3> yup
<4> thats what backups are for
<3> either way you're restoring from a backup
<4> and if your backup is just a big .sql file it's simpler than if your backup is a .sql and a .tgz file
<6> And if you have db corruption you lose everything
<5> some fool across the asile eating popcorn like wer're in a damned theatre
<5> the kid eats all day
<5> i swear
<3> groogs: I don't really see how. Plus then if your SQL database is corrupt and your files are fine, you have a lot shorter restore time
<2> well i am going to get some hosting and i can show you my site in action, any of you guys got mysql hosting to reccommend?
<3> but if you keep your whole filebase in a DB and your db fails, you lose both simultaneously
<6> Plus blobs are **** for db changes
<3> EddieFelson: www.1and1.com does good.
<2> although the last bits just whooshed like a cluster over me :)
<4> Poutine_crackberry: ?
<2> nice i will check them
<3> blobs hinder the caching systems of databases.
<6> Groogs if you use more than one type of db it is hard as hell to migrate blobs
<5> sounds as if ultimately its best not to store them, but it would be a fine thing to do if you're not worried about advanced features (caching) , and corruption
<4> Poutine_crackberry: i could see that, its a valid point. but not that common of a thing..
<5> say a simple db for you and mom to share photos
<4> corruption is a non-issue .. because well, if your db is corrupt (and you lose all meta data) than likely the images are useless too
<4> not to mention the rest of your app is dead
<5> tru
<5> hm
<5> so back your data up?
<4> uh.. yeah.
<4> sys admin 101
<5> ;p
<4> *AUTOMATED* backups
<5> like my mirc script
<2> i am also doing networking! man that is fun
<5> teehee
<4> sys admin 102 teaches you that sys admins are lazy ****s, and will eventually forget to do backups
<2> lol
<2> is that offical?
<5> heh yeah
<7> yes
<4> and as you learned in physics 101, moore's law infers that you never need a backup until you forgot to make one
<5> i try to do it every day
<5> tought *ahh it aint that bad*
<5> but spannind an entire network, gets to be a chuck of time when you do it every day
<5> automation is definately beautiful
<6> Backing up your data hurts the data recovery industrya
<5> fine by me
<6> **** you
<5> haha
<2> at the moment i am learning about the osi/rm internet archeticture, which the sys admin at my place says is rarely used



<4> yes, like secure OS's hurt the anti-virus industry
<5> EddieFelson: its not that its rarely used, its just that your brain learns to use the architecture of it for troubleshooting
<3> hah
<3> I just got an email from dice.com
<5> comes naturally eventually
<2> its part of a ciw foundations course i am doing, which he also comments has a lot of wrong answers in it! but you have to answer how the book tells you
<3> that started with "Get out of your @*#&?%>!#^* dead end job."
<4> thats because OSI is too ... academic
<6> Me2
<4> ie, in HTTP, tell me what parts make up layer 5 6 adn 7
<4> application ,session and presentation
<2> yeah those three
<6> Groogs that's bs knowledge
<5> lol
<2> although we have app pres sess, transp, netw,dlink and physical i think
<4> Poutine_crackberry: exactly
<3> unless you're writing an HTTP server.
<3> heh
<2> but its quite interesting to learn these t/shooting things for example
<8> ****ing A, bob ross is on my PBS affiliate
<6> Bye
<3> haha
<3> DESTROYED
<3> b00m
<2> well thanks for the help guys, i better get back to the grindstone
<8> if painting doesn't make you happy, you're doing the wrong thing.
<9> how can i set a variable when pressing a link?
<8> that's the joy of painting.
<8> you make your own world.
<10> jedzilla: that's the joy of drugs too. you make your own world.
<10> well.. the drugs make a new world for you. can't be sure that you'll like it though
<8> haha, bob ross makes me so happy
<8> "let's build us a cabin out here, shoot, it's cold. we need us a cabin."
<8> "we don't have mistakes, we have happy accidents."
<10> that's what grandpa says when he wets himself
<11> yeugh this external drive was using fat32
<10> though it sounds more like "god dammit!"
<12> can i set php to be able to use exec() command only in one folder on server ? else the command is disabled ?
<8> "no pressure"
<11> Bl4ckB1rD: yes
<10> Bl4ckB1rD: well.. it's possible. but whether or not YOU can do it, is another matter
<12> Rashonda22F any particular information how to set that in php.ini ?
<11> safe_mode_exec_dir or something
<11> you need to have safemode on, though
<12> i have safe_mode off... and i cannot set it to on... since of some scripts...
<13> hey guys
<13> thanks for help
<13> have a good night all
<13> Cya
<14> hi, im reading in "10:30 AM" from a text field and storing it in $time, then i try to use the date() function to get only the hour and the AM ... date("i A", $time); and i think it's using the server's local time rather than the one im specifying...any idea why?
<10> @strtotime
<0> (PHP 3 >= 3.0.12, PHP 4, PHP 5)
<0> int strtotime ( string time [, int now] )
<0> Parse about any English textual datetime description into a Unix timestamp
<0> http://www.php.net/strtotime
<14> i was using strtotime
<14> but i couldnt get that to work either... i tried strtotime($time) and i think i got a unix timestamp
<11> yeah
<11> that's because that's what date() accepts
<10> !php $t = strtotime("10:30 AM"); echo date("i A", $t);
<15> 30 AM
<10> !php $t = strtotime("10:30 AM"); echo date("h A", $t);
<15> 10 AM
<11> ok, the ircops gone, lets turn this back into a kiddie porn channel!
<14> yeah i meant H, not i
<14> i see....
<9> I have a arkive of files, maybe 500. how can i make a varibale when pressing a link so i can print the information of the specific file into another?
<10> MAS84: you could also maybe use sscanf
<10> !php list($hour, $am) = scanf("%d:%d %s", "10:30 AM"); echo "Hour: ($hour) AM/PM: ($am)";
<15> Fatal error: Call to undefined function scanf() in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1
<10> !php list($hour, $am) = sscanf("%d:%d %s", "10:30 AM"); echo "Hour: ($hour) AM/PM: ($am)";


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#india
#php
#allnitecafe
#allnitecafe
#kl
#photoshop
perl bitmask bit-shifting
azerionline
dsadfdfs
#india



Home  |  disclaimer  |  contact  |  submit quotes