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



Comments:

<0> Thomazzz: if you can, use my pastebin more frequently please ;)
<0> i've done it yesterday
<1> I have a page that has both php and html codes and submits some information to the database as well as time and date. however, it stores time and date as soon as I enter the page, and not when I click on Submit button. how can I make that it stores the time and date only when I click on the Submit button?
<2> Lol, okay, I'll use it from now on.
<2> Its an offical bookmark
<0> Thanks!!
<2> Its nice and big
<2> Easier to read
<0> yeah :)
<2> The stripslash URL you gave me, did you want me to add all of that posts code?
<3> is there another widely used social tagging site besides del.icio.us and blinklist out there?
<0> Thomazzz: you put that cod ein the very top of the page; it's quite important
<2> Okay
<0> ..because if magic quotes is on, then ' is replaced with \' and so on
<0> but you should always work with raw data instead of midified, so it changes everything back
<4> Drakas, no offence, but I think your colorscheme is hard to read too (for example foreach is)



<0> ok Maarten i will mod it
<2> BRB.
<0> should it be green or something?
<4> I don't care, it should be easy to read
<4> darker
<0> Maarten: i did
<0> :)
<5> I'm getting the error "
<5> Fatal error: Call to a member function on a non-object in /home/element/public_html/aitt/beta01/0.1/test.php on line 17" in my PHP code. I'm using PHP 4.3.3. I've pasted the code at http://papernapkin.org/pastebin/app/view/295. Note that the error is on line 19 of the pasted code.
<1> Drakas: can you help me?
<0> Kartagis: what's the question?
<1> I have a page that has both php and html codes and submits some information to the database as well as time and date. however, it stores time and date as soon as I enter the page, and not when I click on Submit button. how can I make that it stores the time and date only when I click on the Submit button?
<6> hi, would you recommend running PHP 5 with IIS as an ISAPI filter? is it thread safe?
<0> gsr: most likely, your database connection at "$database = dbConnect(); " failed, and dbConnect might be false or etc.
<1> Drakas: I can show you the code if you want
<0> Kartagis: yes, paste the code
<5> It worked when it was all in one file, but it breaks when there are two files, one included (or require_once). Does PHP 4 not support objects over multiple files?
<0> Most likely, you have date outputted in the form..
<5> Drakes: the connection works when it's all in one file
<0> gsr: object over multiple files...? not sure..
<0> it's Drakas ;]
<5> heh, sorry
<0> gsr: line 74; return database;
<0> this looks very invalid :]
<7> Need some advice: making a central login system to site, currently there is a forum and watch video login - for 4-5 months people signed up to each one manually, so emails/p***words may differ - What do you guys suggest i do to transition this all over to one master login?
<5> hmm
<0> gsr: change line 74 to return $database; and add error_reporting(E_ALL); to the top of every document
<1> I don't understand, it used to work before, then I accidentally deleted it and rewrote it
<2> Drakas, it doesn't seem to work? http://moved.od5.co.uk/78
<0> Kartagis: paste :)
<1> somehow, I must have forgotten something
<2> Drakas, no error given, it just didn't write..
<0> Thomazzz: you need to add mysql_query($sql); :)
<5> ahh, I seem to have forgotten the $, lol
<5> hopefully that fixes it
<1> Drakas: for that, I am ssh'in my box
<0> Thomazzz: ..and then after that mysql_close();
<0> Kartagis: cool :)
<8> Anyone that can explain to me why cannot i serialize an object returned by simplexml_load_string() ?
<2> Drakas, sorry for wasting your time :P I shouldn't of known that.
<5> Drakas: yeah, it was the $. thanks
<4> Drakas, sorry for complaining again, but isn't line 5 of http://moved.od5.co.uk/78 a bit short?
<4> I have the feeling that there is missing something there
<2> Drakas: Side navigation would be easier :P
<9> mikefoo, maybe you find some good info here http://www.google.de/search?hl=de&q=single+sign-on&meta=
<1> Drakas: http://moved.od5.co.uk/79
<0> Maarten: .. isset?
<4> Drakas, ?
<0> !tell Kartagis about sql injection
<0> Maarten: what's missing ? [apart from isset]?
<0> ooh
<0> nevermind ;/
<10> Maarten: it just looks wierd because it's continued on line 7, syntactically fine though
<0> i see
<0> Maarten: that is not a bit of my code.. ;]
<4> ah, sorry, I see now...
<1> Drakas: is my problem with sql injection?
<0> Kartagis: might be
<0> here, bit modded @ Maarten http://moved.od5.co.uk/81
<2> Drakas, how odd, it still doesn't work.. I just posted my p***word on your pastebin by mistake... Is it possable to delte that somehow?
<10> Maarten: that's not a very effective solution to magic quotes anyway, see http://cvs.php.net/viewcvs.cgi/pear/PHP_Compat/Compat/Environment/magic_quotes_gpc_off.php?view=markup&rev=1.3



<0> Thomazzz: sure
<0> Thomazzz: what entry id (number) is it?
<4> Thomazzz, maybe not so smart to announce that here :)
<2> 80
<0> :]
<2> Lucky I know the owner of the pastebin :P
<0> ok, changed
<0> it's ** now
<2> Awesome
<2> Thanks :D
<2> Any ideas why its not working
<2> The script looks perfect.
<0> you need to add validation.
<0> such as...
<0> Thomazzz: http://moved.od5.co.uk/83
<0> look at line 16 in particular
<0> this is used to check if variable are set or not.
<0> never ***ume that something is set and it is set acceptably. always validate
<7> quick question - if I wanted to add a php module more then likely I will need to recompile php, yes?
<2> Good idea
<2> Thanks
<11> what is the function to cut some things from the strings ?
<0> SheriF_WorK: what things?
<2> Drakas, any ideas why it wont place that row into the table ftpd?
<1> Drakas: what about my other problem?
<0> Kartagis: your mysql server might have an incorrect date format.
<0> (sorry, the time line)
<0> Kartagis: best thign is to insert a time stamp, made by time(). it is more convenient when i switched to it
<0> Thomazzz: after mysql_query($sql);, you can add echo mysql_error(); and it should display if there's anything wrong.
<1> Drakas: but my problem isn't that. my problem is that it stores the time and date as soon as I enter the page?
<0> Kartagis: well.... you should validate, as i said to Thomazzz
<0> Kartagis: for the whole dbconnect block, add if ( isset($_POST['var1'],$_POST['var2'] etc. for example
<12> drakas!!!
<11> Drakas: like - and :
<12> DRAKULAS!
<12> :P
<12> we all have wierd names :|
<12> DragonD, DrArcheh , Kartagis , SheriF :P
<2> Drakas, Genious, error reporting! You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1,d41d8cd98f00b204e9800998ecf8427e,2001,2001,/var/www/,0,0,,*,5
<0> Thomazzz: wait,,. there might be an error made by me :/
<0> surfdue !:D
<2> Drakas, Lol okay
<0> Thomazzz: replace $value="'".mysql_real_escape_string($value)."'"; with $fields[$name]="'".mysql_real_escape_string($value)."'";
<0> now it'll do
<11> what is the function to cut some things like ":" "-" from the strings ?
<0> ;/
<2> Drakas, also valication doesn't work :S
<13> str_replace?
<0> Thomazzz: did you edit the line..?
<2> Drakas, doing now.
<0> Thomazzz: that is not the validation really. it just checks if the fields are set, that's all
<0> Thomazzz: if you need to validate the user, lookup http://php.net/preg_match
<13> dimitri1, http://www.pgregg.com/projects/php/code/validate_email.inc.phps
<14> Holla!
<14> anyone know a good ide for OSX?
<14> :>
<2> Drakas, I also forgot to select a database lol. How'd I forget that :S
<14> Got a new 17" macbookpro and i'm giggy as hell :D
<14> You all may even see some kindness from me today :D
<13> dimitri1 and preg_match("/[,;]/", $email)
<13> lith, eclipse?
<14> qube: cool I'll check it out
<1> how is it possible to make php work and give its output to html?
<15> Eclipse !!!! :)
<14> I'll definatly check it out then! :D
<15> Kartagis > echoooooo
<0> Thomazzz: aah. meee too :))
<14> With so much enthusiasm
<0> lilo: nice !:)
<13> lith, you'll probably want "trustudio foundations" as well - makes eclipse understand php
<0> lith: nice!:)
<14> what about irc clients? I'm using conversation right now, but dont really like the multi-window approach
<1> action="whatever.php" again?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
iptables stop log console debian
CL380 fedora
#perl
#php
#css
#perl
#centos
xubuntu mplayerplug-in
#lgp



Home  |  disclaimer  |  contact  |  submit quotes