| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<DWism> if you want on the basic, that's cool <PapaBear> hold on <DWism> i'll null the invoice and flip you over <PapaBear> no hold on <PapaBear> bah i'm wrong <PapaBear> :D <DWism> :D <PapaBear> hate being sick, mind ****s up <DWism> if you wanna switch that's cool though <Tamahome> Neo Citran, dude <PapaBear> nah lets upgrade it actualy <PapaBear> getting ready to go live with my schedualing system <DWism> ahh, cool <DWism> That's even easier... you don't even need me to do that :D <coti> hi <DWism> hiya <Tamahome> 'sup in the hizzouse? <coti> does anyone of you have any ideea if is possible to get files (download) with a php script, based on a url list <DWism> coti: of course <coti> i have more than 3000 files to get <DWism> anything you can do, php can do better <coti> and i need a bit of automatization <DWism> unless it's ssh... php doesn't seem to like to do ssh :D <coti> :) hehe <coti> how can i do that <DWism> which bites the BIG ONE, let me tell you. <coti> i need an example <DWism> if your host has it enabled, you can use the http:// and https:// wrappers with fopen/file_get_contents/file/whatever <DWism> or you can use curl, which is a little trickier <DWism> something like.... hrm <coti> but i have more than 3000 urls <DWism> $files[] = 'http://www.somedomain.com/file.exe'; <DWism> foreach ($files as $file) { <DWism> $filename = basename($file); <DWism> $f_to = fopen('downloaded/'+$filename, 'wb'); <DWism> $f_from = fopen($file, 'rb'); <DWism> while (!foef($f_from)) { fwrite($f_to, fread($f_from, 1024)); } <DWism> fclose($f_from); fclode($f_to); <DWism> } <DWism> :D <_TaSm> Thats much more complicated than it needs to be. <kaneda_> Warning: that script is riddled with typorgraphical errors. <DWism> _TaSm: sure <DWism> kaneda_: typographical errors? <kaneda_> A few. <DWism> oh, haha <DWism> + instead of . <kaneda_> There's that. <DWism> i've been working on javascript all day <kaneda_> Ahh <kaneda_> ALso, fclode() is a custom function, yes? <DWism> fclose, lol <kaneda_> :) <coti> :)) <coti> thanks dudes <kaneda_> If you phoenetically pronounce it, you're "****-closing" <kaneda_> "****-loading" rahter <Tamahome> LOL <DWism> heh <kaneda_> foef()? <kaneda_> I can't even think of a witty joke for that one. <Tamahome> wishes! :) <Tamahome> for debugging purposes, is it possible to echo the contents of a form submit? <irzyxel> php.net/print_r <Tamahome> coo' <wishes-> hey Tamahome :) <PapaBear> El Mondo Trunko! <wishes> El Mondo Trunko? <Tamahome> no clue <wishes> Tamahome, so what are you doing here? <Tamahome> wishes: been starting to teach myself PHP <Tamahome> writing an RSS/Atom feed generator <wishes> ahh easy nuff and handy skill :) <cmac66> ok I need some help, I have been using a login script for my administrative programs, and I use the same login script for one of my other programs but for this one, it is giving me all kinds of errors and complaining about mysql connection <_TaSm> So fix your script. <dravine> lemme guess <dravine> you didn't write it yourself <dravine> and don't know how to fix it yourself <cmac66> can anyone help me with this, the address that I posted the script on is http://www.cartridge-supplies.com/RMA/index.php <cmac66> no I didn't write it myself but I changed alot of it, and it was working in another folder no problem, but for some reason it wont work now <_TaSm> So remove your changes and contact the author. <cmac66> eh, it should be an easy fix once I find the problem <cmac66> I mean it was working perfectly and I just copied the login scripts into another directory <irzyxel> uh uh uh, pay me to fix it <cmac66> but all of a sudden, its no good <irzyxel> pay me <irzyxel> PAY ME !!!! <Eldritch> i'll do it for 1 cent less than irzyxel <wishes> ill do it for $150 an hour <irzyxel> but he takes twice as long in stead <dravine> I'll claim to do it for $20 via paypal <Eldritch> $149.99 an hour but it will only work on the full moon and during a solar eclipse <_TaSm> Heh secureserve.net is for sale. So I could probally buy it, and sniff cmac66's p***word. <dravine> but really, I'm just going to pwn your box, steal all your db data, and sell shell accounts to rotards <_TaSm> mysql_connect(): Can't connect to MySQL server on 'mysql99.secureserve.net' <_TaSm> SecureServe.net is for sale! <DWism> that's nice... <_TaSm> hah <DWism> heh <cmac66> http://pastebin.com/547173 <_TaSm> So either its some sort of internal DNS his ISP does, which is stupid, or its accually for sale, possible, or he made a typo. <cmac66> ya that was a quick mistake, i fixed that <cmac66> no it was a typo, just cuz of the crap that Ive been trying to do to fix it <cmac66> check again <_TaSm> Sorry, we only provide one answer per month, come back in 30 days. <DWism> this is why I like using objects and constants :D <cmac66> I pasted the database.php and sessions.php to pastebin <DWism> $db = new DBAO(DB_CDS); ... safe to show :D <wishes> Eldritch, darn we just past the full moon <_TaSm> cmac66 Why dont you go ask "Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)"? <cmac66> Ill send him an e-mail I guess, but... <cmac66> but nobody has any idea why it gives me those errors? <cmac66> they shouldnt come up, there is nothing wrong with the code... which is why its so confusing <Eldritch> im betting its because your an idiot, I'll even offer odds, say 5 to 1 <cmac66> so nobody can help? <cmac66> why would it give me this <cmac66> Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/content/c/m/a/cmaclean66/html/RMA/include/database.php on line 223 <Tamahome> you have to specify the connection you are using <Eldritch> self explanatory <cmac66> $q = "SELECT * FROM ".TBL_ACTIVE_GUESTS; <cmac66> $result = mysql_query($q, $this->connection); <cmac66> $this->num_active_guests = mysql_numrows($result); <cmac66> theres nothing wrong with that tho, the $result should be a valid resource <_TaSm> Your query is obviuosly bad. <_TaSm> There obviously IS somthing wrong with that if your getting the ****ing error. <irzyxel> echo a mysql_error in between <_TaSm> Why dont you take your head out of your *** and pay attention to the ****ing errors. <dev_null> exactly <_TaSm> Trust me, when you get an error it REALLY is YOUR fault. <_TaSm> Its not just PHP or MySQL trying to be cute. <PapaBear> anyone here Ever use the <acronym> tag? :D <_TaSm> I have. <S^Gerbitz> hey guys <Eldritch> i did for a while decided i hateed it <_TaSm> Wherd. <PapaBear> <cite> <Tamahome> hm, I can't use arrays of checkboxes and get useful input <Tamahome> if I look at $_POST["foo"], I get the value of the last checkbox in the list <Tamahome> n/m... found what I needed <_TaSm> You can use an array just call the input name's name[] <_TaSm> foo[] <Tamahome> yeah... found that on the site <Tamahome> thanks <kaneda_> Papa: it's late, but I use acronym, abbr, and cite all the damn time.
Return to
#php or Go to some related
logs:
#asm TUSKED CREATURE HELPED EMBELLISH SAILORS' TAILS OF UNICORNS #linux #c++ #linux [fglrx:firegl_init_module] *ERROR* firegl_stub_register failed lsof.rpm #linuxhelp #c #mysql
|
|