| |
| |
| |
|
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 30
Comments:
<0> don't you know your buddhism? <0> earth is hell <1> nope, gave it up for Lent <0> tsk tsk <1> *rimshot* <2> hi folks <3> hello <2> I have a question, which is paritally php and partially linux related: I want to run some script on linux machine a which needs to connect to machine b, which is in a VPN. How can I make php use the vpn-connection <2> ? <3> vpn would have to give access to your server's ip address, i would thnk <2> well I guess the vpn connection setup can be done via linux itself. Seems like I first need to do some research on VPN-Setup on linux <4> how do i read the contents of a directory and gather just the filenames into an array? <5> is there a function that will allow me to find out the amount of memory on the computer and put it in a object/array/variable <3> oreach (glob("*.*") as $filename) <6> HI, is somebody able to send me an working PHP5 php.ini file for windows? <3> or if you have php5, scandir()
<4> Coeus82: the oreach function? <3> foreach <3> foreach (glob("*.*") as $filename) { ... } <3> oreach (glob("path/to/dir/*.*") as $filename) <4> so glob p***es everything in the current directory into that array as you hve it <4> ok <4> thats exactly what i wanted, thanks <6> arent there any windows php guys around? <3> s/oreach/foreach <2> squitta: try xampp. Maybe you could use a config file from there <3> or just use xampp <7> !rules <1> woopedy /msg php-bot guidelines <7> I figured that out :) <7> thanks <6> er4z0r, would be better if i could get a working one directly from the binary installation <6> er4z0r, php is working fine, till we load one of its extensions then its just breaking down. <6> the apache doesnt start because it has problems with the php5ts.dll, which has to load the support for mysql for example <8> hello, i'm looking for a good opensource grid php widget, any suggestions? <6> we reinstalled allready that freaking windows version, but still the same behavior occours <6> casnt see whats wrong wit that, I'm allways using gentoo for my development, only one of my colleagues needs windows php5 <3> what's the problem? <9> morning all :) <3> morning <10> t <9> just wondering, with all these active record implementations that are popping up everywhere how would one go about issueing a 'field = field + X' style query? I know you could do something like $o->field++; $o->save(); but then what happens if you get more then one query issued at the same time? <11> Lomat: in some cases one transaction should lock another <9> domas: but that would help if the active record is sending field = 7 each time? <9> would not help :) <11> depends on active record implementation <11> do you lock 'for update' the record you fetch or not <9> domas: It just a random thought, I'm not doing anything :) <11> well, every active record fetch should acquire lock on that row.. <12> is there a php function where i can strip decimal places <9> domas: but wont that then introduce concurrency issues? <11> Lomat: that will. but not too many if you have row/record level locking <9> Axsuul: there are a few depending on your exact needs. Try looking at the math method in the php manual. <11> async conflict resolution is usually rocket science. <13> Hi! Could anybody tell me how can i check whether a directory is empty or not? (or rather how can i get the files of a directory) with php? <14> zzz, readdir() <15> ei guys.. is AJAX an ok kind of question here? <16> ask <14> rmjr, #javascript, #web, or #ajax preferably, but what is your question? <13> CrazyTux: thx, this function wasn' t in the tutorial i used to read ... . Thx again. <9> CrazyTux: you forgot #kitchen and #bathroom <15> ey thanks.. do you guys use AJAX tech? What is the good framework to use? Is SAJAX good enough? <17> Spray n wipe <14> Lomat, Oh yes course! How could I forget? :P <14> s/yes/yes of/ <18> Hey anyone know how the p***word is stored for admin account in osCommerce? Is it MD5? A encrypted p***word looks like this: 9724825b27d70353f9b174590ed9cef2:f3 what is that :f3 all about? <19> will it's 32 charactherrs. <19> so it *COULD* be MD5 <18> yeah... but that :f3 messes everything up... <19> ineed :/ <14> CopyNinja, sometimes people append/prepend a "string" to the hashes to mistify like this, so its probably an md5. <14> It helps protect against straight dictionary attack brute forces. <19> CrazyTux: well, that could explain it <nods> <18> CrazyTux: okay... hmm... that's bad news for me... =( does anyone have osCommerce here who can give me a p***word including the hashed key? <14> CopyNinja, why is it bad news? <14> CopyNinja, Is osCommerce encrypted, I believe it is a GNU shopping cart or something right <18> because then I don't know how to create a new p***word... and I need to do that to log on to a oscommerce admin panel for a customer of mine...
<18> yeah I have the source though... but its rather annoying code =) all messed up =P <14> CopyNinja, here what p***word do you want. <20> all messed up in what way <18> CrazyTux: give me "test" or something =) <14> ok <14> one second please. <18> syf: there are about 10 different people who have modified the code before me... so there are some very wicked solutions in the code... mixed up with perl etc... a real mess! <18> CrazyTux: Thanks a lot =) <20> haha <13> Hi! What can be the reason, if touch douesn' t create the file? (touch('lock'). I checked, there is write permission for the target directory. <14> zzz, fwrite. <14> zzz, touch is for changing file date AFAIk. <18> *** touch -- Sets access and modification time of file <13> CrazyTux: it' s right, but if it doesn' t exists, it has to (?!) create it, isn' t it? <14> zzz, fopen("file.txt", "r/w/a/whatever") <18> zzz: yeah that's true... <18> touch: If the file does not exist, it is created. <18> zzz: have you read the user comments? <13> CrazyTux: i' ll use fopen, i' m just interesting what can be the error. <14> CopyNinja, one second, sorry -- a client is having issue with apache, one second. <13> CopyNinja: what comments do You mean? <18> To spare you ppl couple of hours of valuable time, you can only TOUCH a file that you own! Usually PHP is *nobody* <18> zzz: also read the post from guy at forster design dot com <18> CrazyTux: Any progress with the osComm-p***word? <13> CopyNinja: i have tested it with a perlcgi, and it created the file, but i check the configfiles of apache. <14> CopyNinja, will do it in just a sec. <18> thanks! PM me... I have to go fillup my coffee =) <13> thx the help. bye. <21> Can i do a POST using header? <18> CrazyTux: sorry I got disconnected... you still there? <0> why would you do that? <21> Coz i want to. <14> CopyNinja, yes sir. <14> op32codez, curl() ? <18> CrazyTux: great! did you find a p***word string for me aswell? <14> CopyNinja, what I did really quick was setup a new install of osCommerce, and it appears as if its using .htaccess to protect the admin area? <18> CrazyTux: yeah that may be correct <18> in mysql you have a admin-table, right? <14> CopyNinja, negative, do you? <18> You don't? Yeah I do! <18> TABLE admin (admin_id, admin_groups_id, admin_firstname, admin_lastname, admin_email_address (which I ***ume is the username), admin_p***word, admin_created, admin_modified, admin_lognum) <18> CrazyTux: strange if you don't have the admin table... hmm... <14> CopyNinja, Yes it is, one second though <18> yup! =) <14> CopyNinja, Yes it is md5. <14> CopyNinja, http://2detailed.com/btest/includes/functions/p***word_funcs.phps <18> Aah thanks <18> but still I don't know how to set a new because of the :foo after the md5-string... <14> CopyNinja, looking at the code it dosent matter. <14> CopyNinja, just make it two digits. <22> $expires = 0x7fffffff; setcookie("uid", 1, $expires, "/", ); who know, what mean 0x7fffffff ? And how much time is that ? <18> okay ill try... <18> cant login... the username is the admin email right? <14> CopyNinja, yes <18> hmm... then it doesn't work... I did $p***word = md5('testar') . ":77"; and then I tried with admin email / testar <18> still cant login <18> this damn oscommerce is really getting on my nerves :P <14> CopyNinja, one second. <18> well I solved it... <18> it had nothing to do with the admin table at all... <18> so I just renamed the htaccess-files temporarily so I can reach the /admin without logging in =P <14> CopyNinja, lol <18> =D <14> CopyNinja, Yea, I'm really tired right now but from the looks, their algo is just md5 with a little bit of spice, not much to keep anyone away though :D. <18> Hehe yeah... Thanks for the help CrazyTux! Really appreciated :) <14> CopyNinja, sure no problem! <14> Adrenalin`, still around? <18> =) <22> CrazyTux, yeah, 0x7fffffff seem to mean, as much as possible.. <14> Adrenalin`, what? <22> the girlie ;o) <14> Adrenalin`, 2147483647 is what that equals, and that would be hex. <22> hm, i see, 2147483647 in unixtime mean 19 Jan 2038 03:14:07, thanks <22> CrazyTux, can i know with what tool you have convert from hex to base 10 ?
Return to
#php or Go to some related
logs:
#oe xorg-x11 groupinstall fc5 ubuntu chroot permission denied exec #php #python qemu: uncaught target signal iwmmxt #math #ati #debian boogiemon
|
|