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



Comments:

<0> duanear, GIYF
<1> Touqen: I just downloaded it, its not in there
<0> Serge Vaudenay examined weak keys in Blowfish; there is a cl*** of keys that can be detected--although not broken--in Blowfish variants of 14 rounds or less.
<0> Vincent Rijmen's Ph.D. thesis includes a second-order differential attack on 4-round Blowfish that cannot be extended to more rounds.
<0> |splat|, Are you sure?
<2> Touqen: thanks
<3> WIN 3
<1> yes, its not in the extensions dir or the dlls dir
<1> libmysql.dll is there
<2> I imagine any encryption method's strength is directly proportional to key length correct?
<2> Ah, no, wait.
<4> duanear: More to do with its algorithm
<1> but when i use "mysql" in phpmyadmin, it tells me that my client is old, and when i set it to "mysqli" it tells me it can't load the mysql extension
<0> |splat|, I don't think the mysqli lib is distributed with the windows version of php actually (I'm not sure about this though).
<1> you mean the windows installer?



<5> i belive a .dll is just needed to be enabled for mysqli
<4> Touqen: It is, but people should really use Connector/PHP from mysql.com
<0> Oh. Well there you go.
<2> Does key length matter in encryption strength?
<0> duanear, Depends on the algorithm.
<0> In the case of something like blowfish, yes.
<0> However, there are a cl*** of keys which are detectable with blowfish, so in the case of those keys no.
<6> Hey guys.
<0> duanear, What exactly are you encrypting?
<6> Is there an alternative to cURL that allows me to post data to an URL?
<2> Touqen: i have two servers
<2> one runs my website, one runs downloads
<7> MihewaCANADA: curl is the easy way...
<8> is there a way to get the amoutn of files in a dir without doing a opendir() readir() loop?
<2> some downloads require authentication, but that's handled on the website server
<6> ak47: I know, but I'm asking if there's an alt.
<0> MihewaCANADA, Yes.
<0> You can write to the web server manually
<2> i want to build a url to the download server that proves the user authenticated
<6> Touqen: Explain?
<0> I think there are some PEAR cl***es which do it.
<9> dman ping timeouts are driving me crazy
<7> MihewaCANADA: what Touqen said... fopen
<6> Thanks.
<7> well, fsockopen
<6> Yeah.
<6> Thanks, never thought of that. : )
<0> duanear, How much control do you have over the servers? And how close are they to each other in terms of latency?
<2> Touqen: they are on the same network
<2> well, same dc
<2> total control
<0> Why not just p*** some shared data between the two servers directly which identifies the user by say a cookie...
<2> so have server1 tell server2 user x is allowed to download said file?
<0> Yea
<2> then give user a link server2 knows about?
<0> Yep
<2> Good idea. is there a nice cl*** for handling that, or do I have to write it myself?
<2> I guess the whole encryption thing just sounded cool.
<2> :P
<0> That's a pretty fringe case which I think you are going to have to tackle yourself.
<0> duanear, When all you have is a hammer, everything becomes a nail.
<2> heh
<9> Rewt`, any luck getting hold of em? *grin*
<2> thanks for your help
<0> That's what I
<0> 'm here for.
<2> Touqen: for the request, can I do something like server2/read.php?urlencode(serialize($array))
<10> how can you insert a variable inside an echo without escaping the quotes ( echo "blah blah" . $var . "fdg d"; )
<2> then urldecode and unserialize?
<2> Or is there a better way?
<11> thsaintlivn: your question is?
<12> how do you get sessions working on sles 9.3 with apache2 and php4
<10> asking if there is a simpler way
<10> so i dont have to escape the quotes and add a .
<0> You might be able to do that, but some servers limit the size of the query string
<0> duanear, ^
<5> as well as clients
<0> thsaintlivn, php.net/string
<0> thsaintlivn, php.net/types.string
<0> Look at what double quotes afford you



<11> thsaintlivn: normally escaping qoutes mean: \" but you could do echo "blah blah $var fgh g";
<11> thsaintlivn: escaping basically mean putting a \ infront of it so it is seen as a normal char rathen a syntax symbol where echo " \" "; will out out ` " '
<13> is this a good way to get the filesize in MB? $filesize=sprintf("%1.1f", filesize($game) / (1024 * 1024));
<14> hello, i have a file like: http://nopaste.php-q.net/203122 what is the best way to parse this file? i want use the variables and the values from this file...
<15> deadcat, if it works, it's probably "good enough"
<13> k
<13> i figure there would be a easier way. or a efficient way
<15> idl0r, the solution is non-trivial
<15> it would be much easier if the data was xml or csv
<14> mhh
<0> idl0r, If you know anything about recursive parsing it'd be fairly easy to do.
<16> Does anyone know how to make php work in subdirectories? It's only working in my /var/www/localhost/htdocs directory and not subdirectories, regardless of permissions.
<14> the original developer of the complete script works with that file too
<14> this is my first time with php...
<14> normaly i write only perl etc..
<5> parser generators?
<0> zircu, yea...
<0> metaphp.sf.net
<16> What on earth do you want a parser generator for, in php?
<0> You could use that to create a parser for that file...
<0> Solifugus, For parsing things.
<14> mhh
<16> Ah.. you are not talking about like yacc, bison or antlr?
<16> programming languages
<17> can i get the mimetype from $FILE if i convert it to an array with just the value and drop the key
<0> Well I am talking about them, but not them specifically.
<0> omnipresence, What?
<0> Why not just do $FILE['type'] or whatever php gives you.
<18> is it possibly to disable PHP (modular) on a per-vhost basis?
<16> Does anyone know where/how to specify what directories PHP is to recognize .php files within?
<19> Touqen ?
<19> Solifugus See apache.org or #apache
<20> Solifugus, what the system are you using ?
<17> touquen: http://pastebin.com/641457
<16> netcatc: gentoo
<12> how do you get sessions working on sles 9.3 with apache2 and php4 (they disable sessions by default, but have a php4-sessions package, after installing, it still doesn't work though)
<17> i get: Warning: Illegal offset type in /home/shepherd/public_html/CONTROL_PANEL/include/add_file.php on line 6
<0> omnipresence, Why do you loop through all the keys?
<17> because theres going to be 6 file uploda boxes
<20> Solifugus, /etc/php4 or /etc/apache/php4/php.ini
<17> and i need to determine what format they are
<0> omnipresence, what?
<16> netcatc: thanks.. I will check those
<20> Solifugus, I think so guy.. I'm using debian here..
<0> 1. $FILE['key'] is another array
<17> ahh
<0> foreach($FILE as $file) { if ($file['type'] == 'image/jpg') { .. do something .. } }
<17> i thought it would be the name of the files field
<0> omnipresence, READING is fundamental.
<0> http://us3.php.net/manual/en/features.file-upload.php
<18> foreach($_FILES as $file) { while( list($key,$val) = each($file) { // code ... } }
<17> thanks guys
<18> You need to add a loop there
<16> It seems to be in /etc/php/apache2-php4/php.ini
<20> Solifugus, yes man
<16> netcatc: now lets see if i can figure it out, being as this is the first time i've ever seen a php.ini file..
<0> It's got the same format as every other .ini file you've ever seen
<0> [section]
<0> key = value
<20> Solifugus, you also can use it? <?phpinfo()?> and look path of php.ini
<16> cool.. but i don't see anything in php.ini that looks like it specifies directories from which to recognize .php files.. so i think it must be an apache thing.
<5> netcatc: to make sure that works you might want to specify <?php phpinfo()?>
<21> i'm reading a remote file via file_get_contents/file/fopen (depending on server configuration). if the site is down, i don't want it to take like 60 seconds to time out. how can i set it to like 5 seconds?
<21> stream_set_timeout perhaps?
<5> that would be my first guess
<17> http://pastebin.com/641467 ..(i only have one file input right now and when i upload a gif into it, i get back the following results:
<17> Array ( [0] => IMAGE: name [1] => IMAGE: type [2] => IMAGE: tmp_name [3] => IMAGE: error [4] => IMAGE: size )
<17> Array ( )
<20> Viper007Bond, set_time_limit(5) no?
<17> is that because $key and $value are arrays?
<5> netcatc: no, that will cause php to just give an error to the browser, he most likely wants to catch the error that the remote server isn't responding
<21> netcatc: i don't want the script to time out, just the connection
<20> zircu, huummm


Name:

Comments:

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






Return to #php
or
Go to some related logs:

gd5480 cirrus logic fedora
remote applications dont work with kdm
ubuntu compiling links2
#debian
#ubuntu
not enough to start the array
ieee-734 float
haiku 0x9090
#web
+k3b +scanning for cd devices +hangs



Home  |  disclaimer  |  contact  |  submit quotes