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



Comments:

<0> IdahoEv: php.net/flush , comments are probably useful too
<1> thanks I will look that one up
<2> Alright, bedtime.
<2> Thanks again for the help, SuperSim.
<3> np danq
<3> sleep well
<0> danq: good luck
<2> thanks.
<3> and i just relized str_ireplace ain't part of php4!
<3> lame!
<3> at least that's an easy fix :)
<3> if strtolower wasn't part of php4 either though i'd probably whine a lot more right now :)
<4> I have an XML file acting as a database I looked at xml22 and it looks like it would allow php to deal with it, but, should I put a load like that on the server, or should I use javascript, it's very simple and not private data.
<5> Does anyone know how to get tidy installed in php in ubuntu? Right now im using the binary package and i dont even know how to compile it for ubunt
<0> slide: tried "apt-get install tidy" ?
<6> how can I make a reverse order from asort() result ?



<0> ehr, scratch that..
<5> Nomikos, yes, I have that installed, but i dont think its installed in php
<0> yeah
<4> You should be able to get the source just like you got the binary, I forgot the freebsd package getter thing, but I beleave you can add -s to download and compile from source
<5> hrm ok
<5> freebsd?
<4> Wasn't it a fork, or am I thinking of something else?
<4> debian, oh.
<5> debian yea
<4> debian, freebsd, same animal, different species.
<5> heh
<5> freebsd ports is a lot differnet though
<4> I was trying to port a xml reader out of my google map since I am using the same DB, then I noticed it's using G* funchions, so I looked for another javascript based xml reader, rather then dealing with a language I know, now I'm half done.
<7> i have an file bar.php which contains $foo="blub" but if i include("bar.php") it, $foo is empty... what am i doing wrong?
<4> Did you <?php $foo="foo!" ?> ?
<4> Or $foo="foo!".
<7> i did in the file bar.php: <script language="php"> $foo="foo!"; </script>, in another file i do: <script language="php">include("bar.php"); echo $foo;
<6> someone know how to change the order from asort()
<4> I've never used <script language="php">
<8> arsort() eft0
<0> definitely an inventive way though
<0> but not something the parser would pick up on, no
<4> I think php only looks for <?php ?>
<6> [FiRe]Maverick, thanks!!
<8> np
<8> no dancingmonkey <? ?> works too imho
<0> [FiRe]Maverick: if short_tags is enabled, yes
<9> well <? ?> is being phased out too
<8> yeah asp style tags
<4> Nomikos, You want to see inventive, look at my DB: http://neatpleats.com/bins/name.htm
<9> asp style is: <% %>
<0> dancingmonkey: sweet jesus :-)
<0> dancingmonkey: why not use sqlite ?
<8> mhh wasn`t it <? ?> in ASP? well nevermind asp ****s hehe
<7> it makes no difference if i use <script language="php">...</script> or <?php ... ?> the problem that i can't access the variable of the other file stays...
<4> Nomikos, because you just told me about it.
<0> dancingmonkey: that's a bad reason not to use it :-p
<4> I should really use a real DB, but SQL is scary, theres logins that I can never get to work and I have no idea how to contruct the base DB. Best I've done was with dbase in VB6.
<9> dancingmonkey: o_O
<9> SQL is quite easy
<9> I thing it's easier than flat files anyway
<9> and it's also soooooo fast
<0> dancingmonkey: SQL is not scary at all, a good tutorial like sqlcourse.com will get you querying in an afternoon
<4> even easier then 56 variables set in a text file? :)
<0> hey, pen & paper is easier than computers, but... :-)
<9> 56 vars in a text file? sounds nasty
<4> Nomikos, Damn it, I pronounce it See-Quel! Luckly no one I know happens to know what a database is.
<4> cvncpu, http://neatpleats.com/bins/name.htm
<0> biblebelt? ;)
<4> those are the first 56, theres a 2nd 56...
<9> dancingmonkey: here, make your php source files .phps
<9> instead of .htm
<9> l
<9> also, thoose vars would be easy to store in a DB
<9> use phpMyAdmin if you don't want to use mysql-cliet
<9> mysql-client*
<9> and then just create a table like this:
<4> I needed results quick. I have a scripton the site to list all images recursivly and them to the page you are on with links to a mirror image of a dirrectory with full images. The thing is, the images are read in real time, every visitor click queues the reading of folder contents.
<10> hi cvncpu! do u know of another new line char besides \n and i guess \r?
<9> varid (auto-incrementing id/primary key), varname (varchar 50), vardata (varchar 255)



<9> um
<9> no
<9> I always use \n
<9> if you are outputting to HTML though, you can do: echo "<br>";
<11> X10ZION: isn't windows \r\n
<8> yeah
<12> !+nl
<13> Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows=\r\n] [*nix=\n] [Mac=\r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b]
<4> I need to be able to edit the DB from the site as a visitor, can SQL do that easily?
<9> dancingmonkey: you can write a nice script to edit and add vars
<0> dancingmonkey: yeah, SQL can do anything you tell it to, just need to set up the interface (html forms and php code) and make sure they can't do Bad Things[tm]
<4> Off to read that tut so as to remove the nasy javascript :). Thank you for the HOT TIP!
<0> dancingmonkey: plus if you plan on doing PHP for say, another year or longer, you best get SQL down asap :)
<4> I've been doing php for a few years, I always rigg myway out of using a DB.
<0> :-D
<10> thanks trying \r\n now
<10> *all*
<4> But now I am dealing with a company that will have hundreds of things with specific things about those things and multiple people will need to change those things every day.
<0> == database
<4> You know what I hate? I hate when I upload a file to a server and it removes the \r, then I download it and open it in notepad and I see a bunch or \n's and everything is on 1 line.
<0> dancingmonkey: switch to Linux ;-)
<4> Screw that!
<0> lol
<4> FreeBSD or better OpenBSD.
<12> lig: Wanna fool around?
<4> My problem with openbsd is the ports are so slow...
<14> After I query a mysql db and it returns several rows, how can I store those rows?
<15> sure Jymmm - when and where
<14> I tried mysql_fetch_row, but that only fetches info for the current row
<12> lig: your bed, 10 minutes
<4> htns, an array with a /n impload
<4> err
<4> \n
<15> Jymmm: k- but give me bit to leave work and get home
<0> no implodes, just nested array
<14> dancingmonkey: Thx, I'll try that
<15> Oh and don't mind the husband Jymmm
<10> shound'nt work though i coded what im converting originally in perl to php - dont know if its a cl*** im using but im not getting any responses after the intial which should only caused by a return not being sent to intialize a cmd ... \n worked good with perl
<4> ha ha he listened to the idiot. (ME)
<12> lig: Oh, in that case... boss' desk in 2 minutes
<15> htns: use a loop
<0> while ($row = mysql_fetch_row($result) {$data[] = $row} -- now you have a nested array $data
<15> k
<4> missing a )
<15> yep -
<12> lol
<12> yes, you do
<0> left as an exercise for the reader? :)
<4> Thats not funny, I was missing a , once, it took a long time to find it for some reason.
<4> Too much dr pepper me thinks. I was up for 2 days.
<0> oh i've spent entire afternoons hunting those down, not in php, but yeah..
<15> ready to go again Jymmm
<12> lig sure, where now?
<15> lets go to the roof
<12> lig : kinky... let me grab the kneepads... gravel in bloody knees is just icky
<15> Cool
<0> jump off it, that's really gives a kick :-p
<14> Nomikos: Yeah, for some reason, $row should be $row[0]. Thx anyways. (-:
<0> htns: that way you just store one (or the) field value, not the $row array as an item of the $data array, but whatever works for you :)
<15> htns: there are a number of online tutorials showing you how to interact with a DB
<15> Jymmm: caught your breath yet from playing outside?
<14> lig: I presume so, but I can't afford the time. I once did, but it's been so long...
<15> time spent reminding the brain - negates time spent screwing up something simple
<12> lig: =)
<15> now that I'm nice and relaxed - I'll go back to studying
<16> can array() be used to define new elements?
<17> Mapionetka, what?
<17> $array_name[] = # new element here
<16> i want to define the index name aswell
<18> $foo['bar'] = 'baz'


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
Qmail scanner problems encountered
#perl
#ldap
#ubuntu
clock_gettime(CLOCK_REALTIME) = -1 ENOSYS (Function not implemented)
#lisp
what happen to yast online update suse 10.1
#math
tmp_name PHPMailer



Home  |  disclaimer  |  contact  |  submit quotes