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



Comments:

<0> it's called syntax highlighting HoofMaGoof
<1> HoofMaGoof: Lines 49 and 50 become thus:
<2> HoofMaGoof: it the die() line ?
<3> Parse error: parse error, unexpected T_LOGICAL_OR in /home/skylynx/public_html/files/logging.php on line 50
<1> if (!mysql_query("CREATE TABLE logs ( datetime varchar(100) NOT NULL, agent varchar(100) NOT NULL, url varchar(100) NOT NULL, ip varchar(100) NOT NULL)")) { die(TBL_ERR); }
<3> ok thanks :D
<1> that is your new 49/50
<2> yeah, HotKarl gave the answer
<1> :P
<2> hahaha
<2> its funneyh
<2> wheres dravine!
<1> dravine?
<2> ai



<3> hmmmm
<3> thats confusing
<3> gettin no errors now... but nothing is happening!
<3> if not errors, it should do this:
<3> echo "Created Table 'logs' with success";
<4> are you sure errors are turned on in your php.ini?:)
<3> yep, hence why I was gettin errors earlier
<4> oh..sorry i havent been following.
<3> http://pastebin.com/518963
<3> can you see anything wrong in there?
<4> not really :S looks good to me
<4> and you're calling the function properly i ***ume?:)
<3> yep
<4> the if-syntax there is very weird, but i'm stuck with my old if(){do this;} thing
<4> it's probably just as good to do it the way you're doing it
<2> HoofMaGoof: DEBUG
<3> ok
<5> hey guys - i'm trying to convert an excel file into a .csv - and the import that to a DB. but some of the cells have commas in them..is there a way to get around the fact that it gets mucked up once its i try to upload it?
<2> phatlip: you mean without saving the xls to csv but function convering ?
<5> pieg: i don't even know now...i had the script working perfectly
<5> then checked the rows...and they were a bit skewed
<5> now i realise why
<5> but there is a comments row - so i can hardly tell the client 'don't use commas'
<2> phatlip: tryusing ; as a separator
<5> know if i can do that in excel :p
<2> yeah
<2> its easy
<2> i dont have excel installed right now tho:D
<5> how do you do it?
<2> there is an option somewhere to shoose the separation sign
<2> choose
<2> i dont quite remember now how was that called :/
<0> y0 dravine :)
<2> dravine: what do you say bout hot karlin CarlH
<6> w0rd
<2> hahahaha
<0> now let's get to work
<6> bhahahaha
<0> a good editor for Linux with syntax highlighting and **** ?
<2> CarlH is a nice target
<6> jedit
<2> Weapon-: SciTe
<0> maybe with a table creator included ?
<2> lol
<2> table creator
<2> you lame bitch
<0> I know SciTe but I don't really like it
<6> jedit
<2> SciTe is good
<0> kk
<2> jedi contr-attacks ?
<0> sudo apt-get install jedit
<6> jedit > scite
<0> oups
<0> sorry
<0> wrong window
<0> :D
<5> pieg: If a cell contains a comma, the cell contents are enclosed in double quotation marks <- from excel help.
<6> Weapon-, you need the sun-jre first
<5> what could i do with that?



<6> aight, back to work with me
<6> l8er
<2> you can do a lil check
<2> if before and behing a comma there is a ", its a separation comma
<2> esle not
<2> so, you can juust explode via ";"
<2> oh
<0> oh dravine **** jedit and java
<2> but its just if the comma's inside ?
<5> yeah, so like
<5> comments row = "comments regarding, you know, stuff"
<5> and then, name row
<5> ,foobar,
<7> *burp*
<2> then
<2> explode via comma
<2> and do a array walk function
<2> if a cell contains " then make one cell from all cells to the next "
<2> am i right ?
<2> whats when a cell contains " ?
<5> exploding by comma will spereate cells starting with " as well though..
<2> if excell makes \" from it, you still can be saved
<2> yes phatlip thats my point
<7> umm, no
<7> " becomes ""
<2> then its bit more thinking:D
<7> so you might have nice things like "pieg ""thepig""","foo"
<8> http://pastebin.com/518985 a little help with session variables would be nice
<5> hmm, hack-it and explode by " - then every even key i str_rplace(',', ';', $array);
<5> ugly hack...
<7> thats pretty much a waste for a function
<0> rolemodel: and what do you want us to do?
<7> and why you care for the sessionid ?
<0> on that script are only atrib commands...nothing more as much as I see...and oh, there's session_start()
<8> Weapon- the session variables arent set even if that is called during login
<9> anyone here
<9> ?
<7> no
<9> :))
<9> i have some question
<7> http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
<8> irzyxel its being stored in the database
<0> rolemodel: I'll give you a tip: when you make scripts like that use function isset in every page
<9> is it possible to run php script on one server connected to mysql on another?
<7> LUDI^^: yes
<9> ok
<9> thats all
<7> if the mysql server is set to allow it
<0> check if a username and p***word exists and valid, and then give them the "logged-in" status
<7> by default it will only allow connections from localhost
<9> u mean i need to change the host?
<9> the db host right?
<7> depends
<0> do it like this: if(!isset($_SESSION['username'])) $_SESSION['username']=' ';
<7> the mysql server must allow your login from foreign hosts ...
<9> if my host on server2.com is server.server.com i need to type that?
<7> *sigh*
<7> http://dev.mysql.com/doc/refman/5.0/en/adding-users.html
<9> thx
<10> hi, I need help with the mail() function, I've been trying to send mail using mail("from","subject","message"). The function returns true but doesn't send any mail
<5> pieg - yeah i think exploding by " will work nicely - then string replacing all the even keyed array records.
<0> Farhan: but you're sure you've configured the mail server in php.ini right?
<7> how bout supplying a TO ?
<0> and that too :D
<10> no I'm not sure about that. can you please tell me how do I do that
<7> iuuuh+
<11> the **** is this
<7> now whos running a bot net
<2> phatlip: good luck
<7> better op up, heh
<0> some ****ing geeks...ohh, I hate this type of things
<5> pieg: lol, i think i'll need it
<0> ban them all madbovine
<2> you can send me some cells and i can fight with it this evening


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#MissKitten
#java
commands emechs
postgresqlcould not start postmaster
#linux
linux 620lx
#linux
saffic
#AllNiteCafe
#javascript



Home  |  disclaimer  |  contact  |  submit quotes