| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> also, storing p***words clear-text in a database is trouble, use the P***WORD() function in mysql <0> <?php some php here ?><form><30 lines of html...><?php echo "some php"; ?></form> <0> your life will be much easier <0> anyhow... <0> Jstr: are you familiar with if() ? <1> oh this I gotta see. <2> pizza_milkshake: nope. <0> instead of having a blank form and an entire separate error form page <0> just combine the 2... one page, that, if they've submitted the form, checks login... if it fails, print error message, and regardless it prints the rest of the form <0> i don't really know how to say it any more basically than that <3> it's basically what i said <3> <?php if ($login == "no") { echo "OMG DIE"; } ?><form><input ...></form> <0> yes indeed, it is <0> but i don't think Jstr understood your code <0> in fact, i'm certain. <3> holy christ netbeans, be a little slower!
<2> ok fine. <0> Jstr: do you understand what i said? <2> more or less.. <0> have one login page that basically does this... <2> but i don't know what you mean w/ p***word() <0> don't worry about that for now, baby steps, baby steps <4> mornin peoples. <0> mornin ansimation ! <4> sup pizza man <0> life is ***y <4> indeed <3> i think knee-high argyle socks are my kryptonite <4> !addquote <3> i think knee-high argyle socks are my kryptonite <4> :) <3> hot coworker was standing at the copier. i was staring at her legs on the way to walk by her. she turns around and says hi. i continue to stare at her legs <4> heh <0> haha <0> hey, at least you've got hot cow-workers <4> right on <4> !part <5> your bot is wigga? <5> lol <4> yea. :P <3> sourceforge is down!?!? <6> hi, i have a question. I had this script that writes some results to a file working perfectly fine for some time. We changed hosting and now it gives me the error "couldn't open file.txt" <6> what can it be. I emailed support and they told me the permissions are set correctly <7> Hello everyone! I want to set up an if statement that says "if $start divided by 60 = a whole number". In other words, if $start/60 = 15 do something, but if it = 15.5 don't do something. Is this possible? <1> yeah <7> $start2=$start/60; if($start2=????){ <1> if($start % 15 ==0) <1> right <1> make that $start2 <7> Hmm, what does the "%" do? <1> divides by 15 and takes the remainder <1> if the remainder is 0, then it's evenly divisible <6> mod <8> i think he wants % 60 <6> it gives you the reminder... <6> any1 can help me? :S <7> For example, if $start=1020, then the if statement should go through. If $start=1050, it should error out. <1> oh, my bad <7> Sorry--not error out. <7> Oh, okay. I didn't know why 15 was selected. <1> so ditch the start2=start/60 <1> and just do if($start % 60 == 0){ <8> % gives the remainder after division. when the result of division is a whole number, there is no remainder. hence the % is 0 <7> Makes sense. Thanks so much! <1> glad to be of service <6> two-bits can u help me? <8> bWax: did you write the script? <6> yes <8> is the path correct? <6> yes <8> pastebin? <6> let me paste you the line that opens the file <6> $filename = "archivo.txt"; <6> $fp = fopen( $filename, "a" ) or die("Couldn't open $filename"); <6> it dies :S <1> doesn't it give an error? <8> for ****s n giggles, try "./archivo.txt" <1> are permissions set?
<6> yeah.. the problem is that i don't run the host computer. It works fine offline and it works fine in another host, however on that host it doesn't work <8> http://php.net/error_reporting make sure this is set to E_ALL <6> and support tell me everything is allright.. so i want to have some ideas on what may be wrong to tell them exactly "hey check this out, or fix this" <8> prolly a silly question, but they DO know that you want to WRITE to the file and not READ it, correct? <6> jumm... I think I might have tell them that.. but well... I'm not sure <8> well try the ./ thing and check your error_reporting just the same <9> omg, i've inherited a project written with PHP4 and all the html is jumbled in with the PHP code. <6> thx two-bits :) <10> that's not uncommon <10> freaking small-to-mid size business doesn't seem to know how to do it any other way <9> yeah, i know. don't even ask about the asp.net code that i am maintaining. that's a monstrosity. <2> heh u got snow :D <2> our snow is finally melting. <6> two-bits Couldn't open ./archivo.txt <8> and did you apply E_ALL to the error_reporting level? <8> you *should* be getting an actual error warning from php in addition to your own error message <3> heh. i think i'm going to start cleaning up my mess of a project <3> it started off simple <3> but every day i hear "hey can you add xxx?" two or three times <8> draft some "necessary paperwork" forms and hand them out saying "not until version 2" <3> haha <3> i have SOME stuff abstracted.. not nearly enough, though <3> i'm not going to worry about mvc fully, it's not quite large enough for that, but some stuff keeps getting repeated <8> i had lots of stuff abstracted, just not the way i eventually needed it <8> an unusable framework is sometimes worse than no framework <3> most of my stuff is pretty straight forward, though <3> like editusers.php is <?php code to get list of users and process form stuff ?><form><table><?php print list ?> <3> the funny thing is, this is the first project i've ever actually had go live <3> that i did from scratch <6> two-bits i added error_reporting(E_ALL); and i still get only "couldn't open file.txt" <8> well try a file_exists on the file. that should at least tell us if it's a "cant see the file" or "cant write to the file" issue <6> I get "file exists" <9> i'm working on something for a local bank. sad thing is that I'm going to have to redo this thing from scratch in asp.net <2> is there a way to export a db to sql file from either command line or MySQL Administrator <9> we wanted to go with microsoft sharepoint portal server, but that would have cost around $13k <9> mysql_dump <2> command line ? <9> yeah, that's command line <2> ok what do i put then mysql_dump dbname; ? <8> rtfm? <9> let me ssh into my linux server. <8> thar be options in yonder util me thinks <2> Two-Bits: apparently i haven't found the answer. <2> i dont ask until i have looked.. <8> you looked for 2 minutes after being given the utilities name? <2> Two-Bits: ummm i tried to rtfm... <11> hrm... <8> does the util not have a -h option? <9> ugh, name is mysqldump <8> or -help or -? <9> mysqldump -u user -p database > filename.sql <9> learn to use unix, you might like it :) <8> ... shouldn't p*** follow -p ? <9> yeah, actually it should, come to think of it. <9> i'm getting confused between mysql and postgresql. <8> hrm.. actually, the docs say it'll just prompt you for one if omitted.. nm, that's prolly the better way anyway <9> and why must i continue to be stuck on php4... if i wasnt so worried about a bunch of production code breaking, i'd migrate our linux server to php5 and apache2 <8> it's mostly backwards compatible. cant you swap in php5 and find out? <12> what's the best way to stop cross site scripting? <9> Two-Bits: yeah, i can during down time. <8> didnt we discuss that yesterday un1x? <12> did we? <12> i must have not seen it <8> i dont know if it was you who asked or not, but someone did <8> basically, test all your input <0> and escape all your output <12> what does that mean? <8> if it should be a number, make sure it's a number. text, make sure it's text, if it's ever outputted to the browser, htmlspecialchars it or strip tags, etc <9> escape anything going into the database... <0> un1x: it means never trust data from users <4> http://www.ansimation.net/temp/business.jpg <4> how's it look ****ers? slogan ****s and will be changed so dont bitch about it eh. <4> :P <8> i dont like the title image ansi
Return to
#php or Go to some related
logs:
Antonella vassallo picture #kl #allnitecafe #india #chat-world #allnitecafe don't know which soundcard i have Kainan, Yin
#kl cuteanne
|
|