@# 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 30 31 32 33 34



Comments:

<0> an html options list
<0> sorry
<1> soop, sure why not?
<1> basic php
<0> whats the syntax for it?
<0> <?php echo $myrow["customerattention"] ?> i know i can use a phpecho ... but how do i ***ign that to the drop down or the radio button?
<2> Where are the Sessions stored, typically?
<3> a tmp file
<2> I'm using WAMP and have no idea where they are
<1> like echo "<select><option value=\"{$myrow['customerattention']}\">{$myrow['customerattention']}\</option></select>";
<1> /s/\\</option>/</option>
<3> jbrimble: its in php.ini where its kept, probably
<2> thankyou
<1> i hate Ws
<2> Are the sessions deleted frequently?
<0> cyhtrawll, then how do i specify the other options in the list? eg a list of five and upone pulling up an entry in the dbase I want the drop down to have selected the appropriate entry as php won't know whhich option is which unless I just add a duplicate entry perhaps?



<0> eg <option>1</option><opt>2</opt><php code></opt>
<1> soop, you loop through your database results with a for loop or similar
<0> k
<4> hey all
<4> can anyone please tell me what does $this refer to in php ?
<5> a variable
<5> $this="something"
<3> $this refers to the object your working in
<5> ;
<1> perlman, $this refers to the current object
<1> $this->something would refer to $something inside the current object scope
<4> object is instance of cl***
<1> yes
<1> ur right
<4> i never made cl***
<3> !tell cythrawll about u
<4> i mean cl*** is not being used in the code i am seeing
<1> lol
<4> still it has $this
<1> hush php-bot
<6> how can I load the contents of a file into an array with one entry per line?
<5> $soul->patrol;
<1> perlman pastebin?
<5> $american_idol="Taylor Hicks";
<1> Gimp_ yes
<6> cythrawll: ummm what?
<6> i asked how... i know there is a function to do it but i can't find i
<6> t
<1> Gimp_ well you know how to loop through a file with fgets with something like while(!feof($fh)){ fgets($fh); } right?
<5> <?php $file = file('file.txt');
<5> foreach($file as $line) {
<5> echo '<a href="', $line, '">', $line, "</a><br />\n";
<5> }
<5> ?>
<5> oops
<5> sorry
<6> Rewt`: file() would have been enough :p
<5> prolly
<5> oh well
<4> ahh
<4> sometmes php confused me bcoz of not declaring the variables
<1> perlman, all variables should be declared
<1> $this is just an exception
<4> in php, is it like that ?
<3> all variables should be declared before using it
<4> by declare, i mean declaring the data type
<4> like int a
<7> ponders perls' int a
<7> perhaps a = [] or a = {} or a = ''
<3> nah, you just have to give it a value before you use it
<4> without defining its datatype, right ?
<7> perlman: there are just two data types you want.. $s = ''; or $a = array(); as the initializers
<7> or maby an object.. but that is a different story
<1> php does use datayptes transparently, but it converts them on a need basis.
<3> somegeek: issues?
<8> hello
<9> http://pastebin.com/736349
<9> can anyone here test this and tell me what mistake i'm doing?
<10> hi. if I've an array like this: http://pastebin.com/736350 how can I sort it from "count" ?
<1> i m not testing nuffin but i'll look at it
<1> ZEUGMA, you get any errors?



<9> no error
<11> kain: array_multisort, or usort
<9> but it's not doing what i expect
<10> arpad, I've looked at those functions
<10> I'll try again, thanks
<1> ZEUGMA, what version of php are you trying this on?
<9> php5
<1> instad of $HTTP_GET_VARS["path"] use $_GET["path"]
<1> on line 7
<12> what's most efficient way to strip ' out of a string?
<9> why?
<12> ZEUGMA: me?
<9> to cythrawll
<9> it does the same
<1> ZEUGMA that method has been depreciated
<1> er not method but variable
<8> cythrawll, you are so generous. I often wonder who we are representing here and whether that representation is beneficial to anyone. My idealism.
<1> im not even sure it works in php5 still
<9> i see
<8> depricated
<9> works
<9> in fact there was never an error
<9> the problem is that it's not doing what it should
<1> well what is it doing?
<9> it doesnt enter any dir
<9> http://pastebin.com/736349
<9> please try it
<9> maybe you can rewrite it to work
<8> omg
<9> looks like m0dman is willing to do it ;)
<13> anybody here have trid phpAGI?
<13> got this error manager.c:575 authenticate: 127.0.0.1 tried to authenticate with nonexistent user 'phpagi'
<1> m0dman he could atleast be consistant
<14> argh
<7> ZEUGMA: do you check to make sure ftp_connect() worked?
<7> or ftp_login() worked, or ftp_rawlist() actually worked or ftp_size() worked?
<13> ?
<7> kernel20: what the hell is phpAGI?
<7> kernel20: the error seems to imply that you arn't authenticating properly
<9> all worked
<1> question about ZEUGMA script, is it good practice to escape in and out of php like that?
<9> just links don't
<7> ZEUGMA: ftp links?
<9> yes
<2> can someone point me to a tutorial for a login page that checks values against a MySQL table, and generates a session?
<15> how do i make "2" into a 4digit string "0002"
<16> TomHung, sprintf
<7> jbrimble: probably google would help, i dont have any around
<7> TomHung: sprintf()
<15> thanks
<9> cythrawll: what do you mean by escape in and out?
<2> zircu, thanks anyway.
<1> you do <? ?> alot
<9> i see
<9> you mean it could be more optimized
<7> ZEUGMA: symlinking on ftp is sort of related to ftp
<1> yes
<9> i like to keep the variables separated from actions
<1> escaping in and out of php alot can slow it down quite a bit
<1> depending on the situation
<7> ZEUGMA: explain more how they dont work
<17> yeah, and if you have stuff like while (1) { $foo .= $foo; } it slows it down a little bit too
<9> i mean that links are showed but i can't enter them
<7> cythrawll: well normally going to php -> html mode isn't much of a slow down, but yeah these in and outs are rather useless
<9> simply one <? and one ?> should be enough
<1> jsoft, infinite loops tend to be hard on execution
<9> at the beginning and the end
<7> <?php if (1) ?><?php { ?><?php echo $foo?><?php } else {?><?php echo $bar?><?php } ?>... not only is slower but very hard to read
<18> Is there any way to get a PHP script to a native executable script-wise, without embedding the entire PHP engine with it?
<1> kamoricks, not that i know of
<7> kamoricks: i believe there are some projects like that, but it would be hard to have an absolute solution like that
<7> ZEUGMA: have you tested this with a regular ftp client?
<17> cythrawll: yeah. they need to write a patch for php to fix that.
<1> jsoft, i'll work on it and submit it to cvs


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#suse
#linuxhelp
ipw_firmware rpm
#css
Fortran is Fun
ndiswapper deb
#kde
runq debian process
hairydairymaid problems
#ldap



Home  |  disclaimer  |  contact  |  submit quotes