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



Comments:

<0> !+msg the bot
<1> Unless you're a ##PHP channel operator, please speak to the bot in private.
<2> variable: print_r($_FILES);, there'ds an error field
<3> that bot is good times.
<4> it said:
<4> Array ( [img] => Array ( [name] => kaflim.jpg [type] => image/jpeg [tmp_name] => /tmp/phpe2pkGJ [error] => 0 [size] => 337476 ) )
<5> GregV|Coding: magic line: header("Content-Type: text/xml;charset=iso-8859-1");
<4> it looks like it works to me, but then it doesnt
<4> so i dont know
<6> InsaneHamster: I've never this out, do you use the same !tell syntax if you're pmming the bot?
<7> Er.. I'm designing a file manager and well, everything is going good, but how to I get it to change directorys?
<0> GarethAdams: /msg php-bot <factoid>
<6> aha
<0> variable: Pastebin your code
<4> ok, one second
<4> http://pastebin.com/542369



<0> copy($img, "data/images/gallery/" . $filename ) or die("failed upload"); <-- Um... WHY?
<4> which, the or die part?
<0> no, the copy() part
<4> what did i mess up?
<4> it works on my other site
<4> is it not supposed to work?
<8> move_uploaded_file() is convenient.
<0> wouldn't be simpler to use move_uploaded_file()??
<9> variable: When you're dealing with uploaded files... it's best to use move_uploaded_file()
<4> do i still need to unlink if i do that?
<0> no
<4> ah, never heard of it before, i wrote that from scratch
<4> but thats not the part thats messed up
<0> move_uploaded_file MOVES the file, not creates a copy
<0> variable: first things first
<4> i keep getting agrg or whateve echoed, so there isnt a file at $img anyways
<8> As far as I can see though, move_uploaded_file()'s only advantage is that it plays nice with safe_mode and open_basedir turned on.
<4> im switching it to move_uploaded
<0> $img = $_POST['img']; <-- um... What is this?
<10> hi
<8> Hello lwizardl
<10> if i'm testing a php/mysql connection what should I type to have it say something like connection worked
<8> lwizardl, mysql_connect() returns a resource.
<8> You can var_dump the return value.
<4> i cant figure out why $img would be empty?
<10> Julian|Work: i'm reading this http://www.php-mysql-tutorial.com/connect-to-mysql-using-php.php
<0> variable: $_FILES != $_POST...
<8> lwizardl, see $conn?
<8> That's what I'm talking about. var_dump($conn)
<8> According to www.php.net/mysql_connect, mysql_connect() will return FALSE if it fails, or a resource if it succeeds.
<8> So, you get to check $conn.
<9> If you want to check to see if a connection worked... if (($conn = mysql_connect(...)) === false) { echo 'Failed to connect'; } else { echo 'MySQL connection made.'; }
<11> How does rafb.net/paste sort its data?
<8> hyphen, sort?
<4> i was thinking that, but why on earth does my old code work then?
<4> the stuff using post on the other server?
<9> hyphen: I'd ***ume it stores everything in a database, then uses SQL to sort the results by date.
<10> Julian|Work: thanks i got this "resource(2) of type (mysql link)"
<8> lwizardl, so what do you think that means?
<12> mrturtle, sorry got dc'ed did you reply to my question of weather you were available for hire ?
<10> Julian|Work: that it did connect but indetails no clue
<12> BAD internet !
<13> I'm available if necessary. I'd also be glad for you to learn (cause I think you'd like it :-)
<14> http://pastebin.com/542384 <--- Need a little help.....This is not all of the code, but the code that matters....I thought I had it working before but now it doesn't want to echo over to another page
<12> mrturtle, i wanna learn myself but im always willing to hire help cause i manage 3 businesses :(
<12> mrturtle, always good to know if there someone that can be called upon to help on a particular part of a project
<13> sounds good. Well keep me in mind. I've created some things similar to what you describe, and I can certainly answer questions.
<9> xFlux: Well... including files like that doesn't work. You're getting the result of the PHP page, not the PHP code.
<12> mrturtle, i will everyhting is always a learning experiance
<14> BigE: I also tried sessions with it, and its still not echoing over
<13> that's the best way to live
<12> true true
<9> xFlux: You need to include by path... ***uming that's on the same server.
<9> If it's not, then you *could* potentally p*** it by the query string and use $_GET...
<14> hmm
<14> so your saying if it path it vs the whole url it should p*** over?
<14> *if I
<10> can someone help me with getting this type of setup workig correctly. I'm wantingto take information from forms and have php add it to a table inside a database. I'm wanting to be able to sort ad generate pages based on the ifmation
<9> xFlux: I'm saying that if you use the path, it will work as you expect. Using the URL gives you the same thing you see if you were to open the page in a browser.
<14> pl



<10> info sorta like http://www.animenfo.com/animetitle,553,vxunaj,ad_police.html
<14> ok it works again, thanks
<14> I changed the http://.... to just notice.php
<15> is there a function that will get the intersection of two arrays, and put the intersected values into an array (not an array of arrays?)
<15> eg, ignore any keys..
<16> sketch|work: I dunno... search docs, write your own?
<9> xFlux: I suggest you read the manual pages on include and require again... http://php.net/include It's got all kidns of notes on wha tI was just saying.
<14> ok, thanks again :)
<15> FreeOne3000: .. ask others because chances are if there is one, they'll know the name off the top of their heads?
<14> I had it working before....But for some reason I thought it would be cleaner to have the whole url
<9> schnoodles: See http://php.net/array ... look through all the functions.
<9> xFlux: It would be clearer using the absolute path... /path/to/whatever/notice.php
<12> mrturtle, do you host websites ?
<13> yes
<12> mrturtle, how much for a basic package low bandwith ?
<13> raden, how much disk space do you think you might need?
<12> 10 MB
<12> lol
<13> So not too much :-)
<17> Big E, little E, what begins with E? Eric eats exotic fruits, e e e.
<12> i just wanna get the company site back up
<13> I'd guess about $60/yr (incl. no set up, little bit of technical help, etc.)
<8> TML: elderberry
<8> Eric eats exotic elderberries.
<12> mrturtle, basically just need php5 some email accounts 2 GB transfer a month maybe and like 10 - 20 mb of space for now
<10> Julian|Work: you undersand muh abou the php/mysql conneions ?
<12> down the road gonna need a heck of alot more
<13> raden, sounds good. I'd be glad to help you out. My standard price is 2gb transfer and 50mb of disk space for $100/yr (including unlimited email accounts and PHP 5, unlimited MySQL db, unlimited ftp access, etc.)
<12> any issues with a subdomain ?
<12> whatever.mycomapny.net
<17> mrturtle, raden: Please move the business talk outside of ##PHP. It's guideline #7.
<12> TML, sorry
<13> my bad. I'll read the guidelines right now
<12> mrturtle, wanna join me in #raden ?
<17> We can't afford to be seen as endorsing any particular company or service.
<13> raden, sure
<12> TML, understood
<13> TML, totally understand
<17> And even p***ive acceptance of the conversation may be construed as endorsement.
<12> TML we understand no harsh feeling dont want any issues
<17> :)
<18> anyone know any functions to cure back aches? ;)
<19> gunoo: change to an ergonomic workstation
<20> m***age(BACK)
<21> hi ppl
<22> while ($body->pain("back")) { $body->m***age("back"); }
<21> goods []
<23> !paste
<21> look, i want see the last 3 letters of variable, how can i do that?
<20> substr
<18> jonez: lol
<24> jonez: that's an infinite loop if the m***age never stops.
<18> i love it!
<25> I came across the code: $this->dbh = @mysql_connect( .... what's the "@" do? ie. what's the difference between that & $this->dbh = mysql_connect(
<18> hey, who said the m***age needs to stop
<18> I wont overload
<18> ;]
<20> cube: the @ surpresses error messages
<18> now add a little (if $*** == "female" && $body_part == "privates")
<24> overload('body');
<18> then we can get an overload eventually :P
<20> hehe
<18> wow im bored
<24> $body->oops(ERR_CAME_TOO_SOON);
<24> :X
<20> LOL
<25> lig, thanks
<23> i have that kind of XML-content -> http://nomorepasting.com/paste.php?pasteID=57231 -> i want to get the inner Content of the MYNODE, the attributs or other nodes are no problem, but whats about the innner content ?
<12> mrturtle, what you use for image editing
<22> EvilWalrus, one ***umes that the m***age() method will set the "pain" member variable appropriately. ;)
<26> EvilWalrus: lol
<22> besides.. who cares if it's an infinate loop if the right person is doing the m***age.. but that's another topic. heh
<25> is there a man page that describes something like return $this->last_result[$y] ? $this->last_result[$y] : null; -- I'm unfamilar with the ? : syntax..
<8> cube, search for ternary operator


Name:

Comments:

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






Return to #php
or
Go to some related logs:

jhudora rotten negg uses
#linuxhelp
python freeze.py library
we are nestor
portage delete resuming download
#math
/sbin/mkinitrd: line 2880:
etymology quiznos
ubuntu you need to be superuser lokkit
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes