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



Comments:

<0> k, great! thanks :)
<1> Kaitlyn: filesize() would be affected but the other methods will not
<2> wait
<2> if the system differs in line endings "\r\n" and "\n" the digests will be different
<3> So will filesize.
<0> eek well thats no good :(
<2> uploading as binary will stay consistent
<0> cause its gonna be used on both nix and windows
<1> so just open source it, no problem
<0> tml - haven't seen u around here in a whilee
<0> jtacy: haha :)
<4> Kaitlyn, are you planning on doing if (sha1_file(this file) == checksum) within the file itself? cause you will run into a problem here, no way to know the checksum... cause it will change once you add your if
<2> Kaitlyn: you could strip the newlines before doing the check
<0> mfonda: ... huh? i will have a file, find the sha1_file.. then when others use it, if sha1_file(thefile) != THE_VALUE_I_GOT
<0> wait.. its an image file... there won't be newlines?
<2> no



<4> Kaitlyn, ah, nevermind, was thinking it was only one file
<2> there won't be
<0> :)
<0> okay i'll run some simple tests next couple of days... sha1_file() it is! :)
<1> Kaitlyn: well, I guess the question is, why not just stick with the encoding instead of risking more brittle additional methods
<0> jtacy: because I can protect the code no problem, but if someone just slaps another "main logo".. well that would **** too.
<1> well, it would **** worse to have a scheme blow up in your face when it gets out into the field
<0> that is true too. :)
<5> holy crap
<1> the people who really want to change stuff will still succeed which is what bothers me about the idea
<0> :( ya..
<1> it creates an inequity amongst your customers when they've all paid for the same thing
<0> well, ya..
<6> Hi everyone
<7> is there a easy way todo a navigation menu on everypage ?
<1> being able to verify the integrity of your code programmatically may be important in commercial applications, though
<1> for example, you shouldn't have to support code that the customer has modified and possibly broken themselves
<3> raden: Create the navigation menu, put it in its own file, and use include() to pull it into each page
<1> Wyleyrabbit -> what's up
<6> I'm having a bit of trouble getting php working right on my new linux server under apache 2. When I "hit" a .php file with my browser, I see the source code. I'm sure this is a faq somewhere, but google isn't helping much.
<8> how would i set a timeout (or error check timeouts) with php when grabbing a remote webpage file?
<3> !tell Wyleyrabbit about at
<3> !tell Wyleyrabbit about lm
<8> should i use fsockopen? or does fopen support timeout
<3> Prot: Read about the HTTP streams
<3> Appendix M
<8> thx
<9> Can someone tell me the syntax so that i can do querys for fields that have names such as DEFAULT or ORDER. at the moment i get errors because those keywords are commands for sql. How do i fix this?
<3> Nameless12: Don't create databases that use keywords as fieldnames.
<9> TML, I know there is a way to do what i asked, thats why i did it when i made the database
<2> Nameless12: in mysql you can try using "`order`"
<3> Nameless12: I didn't say there wasn't a way. I said don't do it. Your database documentation warns against it. If you choose to ignore it, I'm disinclined to ***ist you.
<10> Nameless12: that makes no sense
<2> it's best to avoid the reserved words though
<10> Nameless12: i know you shouldn't drink and drive but what happens if a cop pulls you over when you've been drinking to much?
<9> the query is screwed over because sql interprets it as bad sql sytnax, so i cant just use a @ to ignore the error. I want to know how to do this for educational reasons + it works best like this the way i have stuff setup
<1> Wyleyrabbit: well, most likely the php module is not being loaded
<2> Nameless12: you shouldn't do stuff that was advised against, unless you were prepared to figure it out by yourself
<9> look i dont want a lecture from you guys about what i should or should not do. Just tell me how to do it.
<1> lol...nice
<3> Nameless12: No.
<11> this is #php not #mysql ;-)
<10> Nameless12: how is quoting syntax on an anonymous database have to do with php?
<9> well i forget where it was that i found there was a way around this. I think it was php.net So dont lecture me on the php not sql thing
<3> Nameless12: You seem to be laboring under the ***umption that I'm here to do your bidding. I'm not, I'm here to teach. If you don't want to learn, get out of my cl***room.
<7> TML, thank you
<9> you guys have issues, seriously get a life. If someone asks for help and u know how to help them then help them. Dont with hold stuff just because you would do it differently
<1> Nameless12: hrm...have you experimented with backticks or other types of quoting?
<3> raden: If you want it in *every* file, try reading about auto_prepend_file on php.net/configuration under the list of configuration parameters.
<2> what exactly does the +b mean? i've noticed that sometimes you guys also explicitly kick the guy out
<10> deadroot: ban.. unable to rejoin
<2> but they're still able to read even this message?
<2> while they're here?
<10> deadroot: yes
<3> deadroot: +b %foo mutes "foo"
<3> deadroot: +b foo bans "foo"
<10> listen to TML he knows better than me
<2> oh
<3> deadroot: So, +b %Nameless12!*@* means Nameless12 cannot speak in the channel
<1> interesting, has that ban syntax always been or is that a relatively new extension to irc?
<11> it'd be nice to have this power in real life



<1> back in the old days I had never seen the %
<3> jtacy: It's dancer specific
<7> TML, soo ill be able to make a file of all my links and just use include () ?
<3> philip: indeed
<3> raden: Yes, but you'll want to use either some logic to determine relative location, or (my suggestion) use absolute paths in your links
<3> raden: So that when /foo/bar/baz/bat.php, it can still link to /quux/quuz/foo.php
<7> TML, i have alot of readin todo :) just learning
<3> That wasn't much in the way of a sentence, sorry.
<7> tis ok
<11> raden: include() is your friend
<7> very helpful information
<7> philip, im seeing that
<11> many times people will include a header file on top, and footer file on bottom
<12> anyone discourage the use of subdomain? like home.domain.com
<13> if i want to use data from a file do i have to upload it first?
<13> or can you read it directly from $_FILE
<13> $_FILES even
<1> DavidHKMrPowers: depends on what you're doing of course...I wouldn't put a business on a subdomain
<11> you mean, save it?
<3> Zyclops: Erm...what?
<3> DavidHKMrPowers: I use subdomains extensively. As does Google, by way of example.
<13> i've got a csv file, and i'd like to write it into a database. Do you have to save the file to the webserver somewhere or can you work on it just in memory
<12> jtacy : I agree with you. but I don't understand why some biz like yahoo can use subdomains without any problem. I met many problem in using subdomains.
<10> Zyclops: well if the file is uploaded via a HTML form it will have to be handled after it is uploaded
<12> TML: did you meet any problem with it??
<1> DavidHKMrPowers: hrm...there shouldn't be any technical problem ***ociated with using subdomains, I was thinking more of marketing issues
<13> zircu: right
<10> DavidHKMrPowers: what kind of problems did you have?
<11> DavidHKMrPowers: PHP does not care if your code is ran through a subdomain or not :)
<10> unless your links are hard coded via the www.domain.com of course
<12> eg, in some php apps under home.domain.com/app the app searched home.domain.com/home/app sometimes !!
<10> DavidHKMrPowers: that sounds more like a webserver configuration issue
<10> and HTML
<12> anyone ever used mediawiki and wordpress ?
<12> mediawiki and wordpress showed me the problems in using subdomains
<12> zircu : how to set the webserver sonfiguration?
<10> DavidHKMrPowers: it isn't a subdomain issue but how those apps are configured and how those apps create the links
<10> DavidHKMrPowers: well, it sounded but if it is an issue with an application something is setup wrong
<14> anyone know of any open-source billing applictions ?...
<14> as in for allowing an owner to initialize billing or send out billing etc..
<15> join #bots
<16> sonius ?!
<15> sorry :)
<16> ah
<16> thought you were spamming
<15> there isnt anyone in that channel .
<15> btw
<3> DavidHKMrPowers: There's nothing about subdomains that would cause that problem. I know for a fact mediawiki can be run on a subdomain just fine.
<12> TML : um..you tested it??
<12> I could installed mediawiki well..but it showed strangely after installation as it couldn't load some theme files due to the location problem... anyway, thx~
<17> hi. could you please try to help me on this: http://pastebin.com/557233
<18> morning =]
<10> Pincel: what exactly is the problem?
<17> zircu, i wrote it there, a matter of arrays, i believe.
<17> zircu, i'm not into arrays yet but on the other hand i lost too many time with that and i would like to have it ready by morning (here)
<11> $test[] = func(); $test[] = func(); $test[] = func(); print_r($test);
<10> Pincel: i can see you wrote it there in your comment above your code.. it is very hard to read because it is all on one line
<17> ouch
<17> zircu, i thought that would format it
<17> zircu, as it is now it displays only one of the possible errors. what i need to do is displaying all detected errors.
<10> Pincel: there are several issues, i would rather focus on what problems you seem to be having
<17> zircu, thanks :) i know that piece of code might be too simple but it's working and i would improve it as i learn.
<10> Pincel: perhaps you can explain why you have this text: 'return "\$errors[XX] = \" some string \";
<19> is there any place other than freshmeat.net, hotscripts.com, or phpcl***es.org to find PHP apps/cl***es/etc?
<17> zircu, because on the form i have place for errors by their $errors[names];
<10> Pincel: if I read thing correctly instead of your return "\$errors[XX]...." stuff you want to use just $errors[XX] = "something...";
<10> and instead of your last 'else' statement you do something like if($errors) { return $errors } else { false }
<17> ok
<19> Pincel, the flow in that is pretty strange
<17> zircu, how do i call the variable then?
<17> make it global first?
<10> call what variable?
<17> zircu, call it from outside the function
<17> it's ok, i'll do some reading :)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

make disk+ubuntu
#physics
Mario Danic
ultrabios100
ubuntu proftpd Failed binding to 0.0.0.0, port 21:
returning resourced id#* from mySQL
#perl
#gentoo
bash tools solaris seq
apt-get install php6



Home  |  disclaimer  |  contact  |  submit quotes