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



Comments:

<0> so the php error is "this don't work" ?
<1> i've tried add handlers and load modules and everything, can't seem to get it to do anything but spit the source code
<2> was fixed
<3> die(); exit(); 'abort, end, quit, kill, stop'
<3> spit the source!
<3> <?php ?>
<3> !
<1> no joy
<3> .php or ***igned file type
<3> is .php ***igned as php if you wish to use it
<1> it acts as though no agent is loaded...
<4> philip: the error is -> Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
<3> php could be loaded just not ***igned
<4> its not ment to be connecting to the localhost to get to the database
<1> yes...if i try this "echo '<? phpinfo() ?>' > info.php" from the command line, i get the goods over http, but just the contents of that file over https
<0> you should never be using mysql_query() if you cannpt connect, check for errors before that



<3> over http you are not ***igning it
<4> my code tells it to connect to the server address
<1> Adam1213: you mean via addmodule?
<1> err add handler
<4> philip: thats my first error on the page
<0> i lack the energy this morning
<0> search google
<0> do not run mysql_query() with a bogus connection either
<4> lol i understand what you mean
<4> i just dont understand it. it worked 3 days ago. just stoped working today
<0> php takes days off too you know
<4> lol
<0> how about you look at your phpmyadmin source code and see what it's using to connect
<5> philip: thing is i did this fine with php 5.0 and mysql 5.0
<4> cant i dont own the servers
<5> ]for some reason 5.1 is being disagreable
<0> it must be frustrating
<2> hmm
<2> i have an app that has it's SOAP working fine, heh
<2> this one that's broken is returning stdCl*** Object instead of arrays
<6> illegalc0de: the error means mysql isn't running possibly
<5> if this dpesnt work
<5> ill forgo database support for now
<5> till i can get a better look at it
<0> jfro: if i were you, i might type something like this in google: "stdCl*** Object" soap
<2> philip: nice, found a bug on bugs.php.net, heh
<4> Pher: i know the server is running as i can connect to it via the web using my host's phpMyAdmin service
<6> illegalc0de: is the phpmyadmin on the same server as your code?
<4> the tech support are just fobing me off again saying its a scripting problem
<4> host is on a server with my own domain, database and PMA are on the same server which is on a seperate domain. but both are owned and controled by my hosting company. (the database server is on a subdomain of their web server)
<4> web host the first bit should say^
<0> all you can do is ask them what host to use to connect with
<4> the host to connect to, my username and p***word are all correct i cant see a problem
<6> all I can say is the local sock isn't created, which is that error
<6> either they did an upgrade last night or something stopped running
<4> right. so its a problem with the web server not the database server?
<0> $conn = @mysql_connect ('thehost', 'theuser', 'thep***'); if (!$conn) { echo 'Error: cannot connect: ' . mysql_error(); exit; }
<0> do that now
<7> hi.. is there anyway to send an SQL insert statement *through* magic_quotes ?
<0> wrong question
<8> heh
<7> erm
<7> im the admin of a site getting hacked btw :)
<8> magic quotes aren't your problem then
<0> oghran: use addslashes() or better yet a function specific for this task, such as mysql_real_escape_string()
<9> oghran: if you're doing: mysql_query( $user_input ); then absolutely. as long as it has no quotes in it
<7> well magic quotes are on, but they still managed to execute a SQL statement from their browser, from what i can tell
<6> illegalc0de: you trying to connect to localhost or mysql.blah.com?
<4> philip: same first error -> Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
<0> that is nothing like my code
<0> illegalc0de: please do as i say
<7> philip, so you think it would be possible ? and i should use mysql_real_escape_string on all user input just to be sure /
<9> oghran: absolutely
<0> you should disable magic quotes and run that yes
<4> Pher: mysql.blah.com
<4> philip: i did
<0> illegalc0de: your error would not result from my code
<7> ok thanks
<0> illegalc0de: make a new file, place that code in it, then execute
<0> python?!?!



<4> mysql_connect.php has no errors
<4> by its self
<0> i am unsure what you are saying
<0> okay, next line: if (!mysql_select_db('yourdbhere')) { echo 'Error: Could not select db: ' . mysql_error(); exit; }
<10> use PDO
<11> anyone know of a way to get the name of the cl*** from within a cl***?
<10> get_cl***(self)
<11> or, how to refer to a constant without using the Cl***:: syntax inside the cl***
<11> really?
<10> u have to refer to self::
<12> YEs at last i found the room
<12> Ey guys any1 here have used phpmailer before?
<0> this room does not support phpmailer
<0> or any third party scripts
<12> Why its php?
<4> no errors
<2> wow, this problem stinks
<0> illegalc0de: pastebin the code please
<12> Heres the problem i have.
<0> illegalc0de: the one without errors
<10> opCoder32xz: its an application.. we dont support apps, we HELP with php problems
<13> Hmm, even when I use the "Full Hard Coded Connection String" recommended in oracle.com for $db for my PHP connect script, I still get TNS:could not resolve the connect identifier specified
<12> Okay, thanks anyway PEACE :)
<10> bye
<10> good riddance
<0> woah, come on now
<0> a simple "No problem :)" would do :)
<4> mysql_connect.php -> http://pastebin.com/713652
<0> i don't even know what
<0> if (!mysql_select_db) { would do, maybe check for a constant? :)
<0> so fix that
<4> sorry i misse the db out
<4> code in file -> http://pastebin.com/713657
<0> okay
<0> require_once("http://www.hodoh.org.uk/includes/mysql_connect.php";); <--- bad :)
<8> hehe
<0> that explains a lot :)
<8> require_once("http://http://www.hodoh.org.uk/potentially_harmful_code.php";);
<0> do not include this through http
<8> code_that_could_change_at_a_moments_notice.php
<10> dont ever INCLUDE ANYTHING over http
<10> thats about retarded
<4> i know its bad but the host isnt letting me do the full path or ../ to it at the moment
<10> illegalc0de: why not
<0> well, you must include it locally
<0> illegalc0de: do this: echo ini_get('include_path');
<6> require_once('./include/mysql_connect.php')
<2> heh wtf
<2> plus doing http would end up just getting the processed php
<2> which wouldn't work...
<8> jfro: well, it could be served as text
<8> jfro: with a .php extension
<2> yeah could
<8> beats me
<4> lol
<8> not likely though
<2> like youd' have to exclude it on a dir or something
<2> just bad idea, heh
<0> it's about as useful as doing: echo "please connect me to mysql, my username is john";
<4> of course it would
<8> foreach(explode('00', '10400101001080010800111') as $key) echo chr($key);
<8> :D
<4> thanks
<4> :0 working now
<14> O_o
<15> 104 101 108 108 111... i'd need an ascii table :p
<16> hello?
<8> hartym_: that's what chr() does :P
<8> GarethAdams: hi
<16> :P
<8> GarethAdams: ;)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

google ftp hosting
#debian
wrieress
#linux
cannot find terminfo entry for rxvt-unicode
crapweasel defined
#linux
#osdev
vcftpd deamon
gnomesharp_gnome_moduleinfo_get_name_offset ()



Home  |  disclaimer  |  contact  |  submit quotes