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



Comments:

<0> www.pastebin.com
<1> the problem is it only works with 2 boxes
<1> show should i enable more boxes
<1> Julian|Work: sorry :/
<0> johhny_b, use a switch
<2> Ok folks, I've got a problem writing to a file... Can someone point me in the right direction? http://pastebin.com/526657 (problem is on lines 6 and 7).
<1> Julian|Work: switch?
<0> www.php.net/switch
<3> RewriteRule ^/countdown/countdown.gif/([0-9]+)/$ /countdown.gif&day=$1 would that be a valid rewrite?
<3> b/c it doesn't seem to work
<0> $ord = $x % 3; switch ($ord) { case 0: $cl*** = "box1"; case 1: $cl*** = "box2"; case 2: $cl*** = "box3"; }
<0> A switch is a way of doing if/elseif/else statements more concisely.
<1> Julian|Work: could you do a paste bin for me please? i am very new to php
<1> i am making this for my father :)
<1> ...trying... :)
<4> ls



<4> err
<1> wrong term ;)
<5> so let me understand, aidan. The problem with dealing post var as common global vars (as in the case of register_globals on, extract, foreach mentioned before) is that someone could p*** fake values to these vars through the url?
<4> yeah lol
<6> Julian|Work: might want some breaks in there
<3> switch($variable){case 0: something; break; case 1: somethingelse; break;}
<0> aidan: good call
<6> ArthurMaciel: php.net/register_globals ... not using $_POST is just lazy.
<1> Julian|Work: could you? please?
<6> GregVernon: can't do ^/ if it's in a .htaccess, just use ^countdown
<5> I'll use them. I just want to really understand in a manner I don't keep thinking about another way.
<2> So can anyone tell me where I'm going wrong with fwrite and fclose?
<3> ahh, okay
<0> http://pastebin.com/526663
<1> Julian|Work: thanx :))
<0> johhny_b: now go learn it on your own
<1> Julian|Work: yes sir
<1> so i can just add more cases?
<3> what exactally does the "$" at the end signify?
<0> Sure
<6> GregVernon: end
<0> But $x % 3 is only going to return 0, 1, or 2.
<0> So you'll need to change the 3 as well.
<1> but if i add them i need to change the $x % 3; to the right nr ?
<3> yeah, I thought so
<1> yeah exacly :))
<1> got it :)
<0> Yeah, you understand what $x % 3 is, right?
<3> just getting annoyed that this isn't working the way it should
<1> Julian|Work: i am not really sure
<6> GregVernon: is countdown.gif a script that can understand $day=1?
<0> johhny_b, it's the remainder when you divide $x by 3.
<0> So if x is 6, 6/3 -- no remainder
<1> but what is $x ?
<0> You tell me.
<1> ah
<1> ok now i get it
<0> 7 % 3 == 1
<0> One left over.
<3> aidan: yep
<0> 8 % 3 == 2, but 9 % 3 == 0 again.
<3> it doens't use the date() function
<7> if i have an http form with an https action, will the data be transmitted securely?
<3> I just found a better tutorial page, so I should be set :)
<6> Lafy: no
<6> Lafy: wait, maybe ... that's a good question
<7> heh
<6> I don't think so ... It seems to me like the broswer would send a standard request (with the values) to the server, then start the ssl
<1> Julian|Work: that did not work
<0> Lafy, I believe it will be secure.
<1> i still get 2 boxes
<0> johhny_b, pastebin your entire script up
<8> aidan: can I PM you, please?
<1> Julian|Work: ok
<6> tek: no.
<7> it seems like it would be secure... but i dont know...
<8> why not?
<0> Lafy, when you click "submit," a POST is sent to the URL specified in the form action.
<3> omg.... I totally forgot to put: RewriteEngine On pfff
<0> The original page doesn't know you did a POST-- it's out of the picture.
<7> right, so if the action has https on it, then the post data should be over an https connection, right?



<0> Correct
<7> thanks
<6> Lafy: better double check if it is important though
<3> aidan: I got it working, thanks for all your help :)
<1> Julian|Work: http://pastebin.com/526672 here you go
<1> Julian|Work: i changed select too :)
<2> Can someone PLEASE look at this snippet (http://pastebin.com/526657) and tell me what's wrong with the last 2 lines?
<3> one sec, lemme mac a new paste
<0> johhny_b: your p***word is in there
<0> johhny_b: you want to remember you take that out in the future
<1> Julian|Work: hehe no its not
<1> Julian|Work: i changed it
<1> hehe
<1> $dbcnx = @mysql_connect("localhost","admin", "myk00lpazzwodh");
<1> hehe
<1> thats not my real stuf
<1> f
<0> Good
<0> It looks like that script should work.
<3> Cuddles_in_KY: Try that: http://pastebin.com/526675
<0> Do a View Source on the page and see what the ids are on the <div>
<6> GregVernon: great :)
<2> GregVernon: That fixed it, thanks!
<3> Cuddles_in_KY: np :)
<6> Cuddles_in_KY: $_POST not $HTTP..
<2> aidan: Will it work the same?
<3> aidan: isn't HTTP_POST_VARS still supported?
<0> Very much deprecated.
<0> Any version now, they'll take it out.
<9> yes, but it is supposed to be removed in php6
<3> ok, I didn't know that
<3> but, then again, I use $_REQUEST for most of my stuff :)
<2> aidan: Sorry, but $_POST isn't working right. Before, it gave me the actual user input. But with $_POST it just says "Array"
<10> is there i can remove the line breaks from variables i'm using? they're obtained using the file() function, but i don't want the line breaks. Is there a way to get rid of them?
<9> file() returns an array...
<9> oh, I see
<10> it leaves the line breaks in. Trim gets rid of those?
<6> Cuddles_in_KY: they're exactly the same array, except $HTTP deprecated
<9> right, but trim takes string input.
<6> Mewshi: str_replace
<9> see array_map
<2> aidan: Then why do they retrieve two different things?
<6> Cuddles_in_KY: they don't
<2> aidan: Yes, they do. I'm looking at the output of them side-by-side right now.
<2> the $HTTP variable outputs whatever the user inputs, while $_POST just says "Array"
<6> Cuddles_in_KY: whatever you think you're looking at, you're incorrect
<2> aidan: I know what I'm looking at.
<11> LOL $_POST is an array
<6> Cuddles_in_KY: var_dump($HTTP_POST_VARS); var_dump($_POST);
<6> Cuddles_in_KY: the output will be exactly the same
<6> epichero: so is $HTTP_POST_VARS
<2> I'm sorry aidan, but this time you're wrong.
<11> $HTTP_POST_VARS is deprecated though THATS the difference
<6> Cuddles_in_KY: ... I'm not wrong
<2> Thanks again GregVernon!
<3> Cuddles_in_KY: i'm taking aidan's side in this one
<6> what a twat.
<3> haha
<3> I wonder what she did differently to get the 2 things
<9> probably echo($_POST);
<3> yeah, prbly
<11> she didnt think about the examples aidan gave her... or didnt understand the difference between what she was doing and what was being shown to her
<3> lol, that would work
<12> a simple question: on a free php-hosting without sqlite suport, is posible to access run a sqlite-db?
<13> xfan: if the sqlite module is compiled in php (user phpinfo) and you have a remote database to connect to - there should be no problems
<12> http://www.gulaspy.org/phpinfo.php
<12> there isnt sqlite :(
<12> postgresql also have !
<14> hey folks... Im having a problem, Its not giving me an error for the mysql_query but its dieing on it. code http://pastebin.com/526695
<14> I have the database and table made already.. Im confused
<3> cptbrutal: could you do a die(mysql_error())?
<0> That's a good start.
<14> oh right kk


Name:

Comments:

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






Return to #php
or
Go to some related logs:

selinux wsftpd
#css
#linux
No module named win32clipboard
#debian
ubuntu AND list users command
#perl
error: structure has no member named `rlim' nvidia
mysqldb use_result fetch_row array
johnFlux



Home  |  disclaimer  |  contact  |  submit quotes