@# 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> require 'thumb.php';
<1> perry_: try remvoing the " marks when you call the funciton
<0> same error
<2> Jymmm: If gets to PHP as a value, yes, but \000 won't. It'll stuff up before it can get that far.
<1> perry_: well the code is fine, perhaps your include isn:t working as you think it is..
<0> ok, i'll double check that
<3> is there any else way to ,refresh a site ,besides using headers?
<1> DjDarkPingvin: javascript or the meta command in html
<1> s/command/tag
<3> emostar: do you know a good manual on the net where i can find some reference about it?
<4> does the predefined $_FILES variables have to be manually enabled on the php parser 4.3.1 ?
<5> i got disconnected, did anyone make a comment on my code? http://php.pastebin.com/536569
<0> ok, it's sort of working now (i had two copies of different thumbnail functions i was playing with earlier, and i thought i deleted one)
<0> but my img is showing as gobbledigook.
<6> culhudop: tried a print_r on $_FILES to see if the structure is what you're expecting?



<0> does anyone know how to NOT get ascii characters instead of an image when you're using the gd library?
<6> perry_: tell the browser the right type with header();
<0> i've done that
<6> what does the header look like?
<0> header("Content type: image/jpeg");
<0> forgot the hyphen!
<6> :P
<0> oh, that didn't work either
<0> now that i added it, there's a blank page and the titlebar says (jpeg image)
<6> pastebin the relevant code?
<6> heh
<6> ok, well that's different :P
<0> so now all the browser gets is the image?
<6> that's the idea
<0> how do i make it get the image, inside the page?
<6> you'd have to have a seperate call to a seperate page
<6> er, that is
<6> something like <img src="http://yoursite.com/somescript.php">;
<6> where somescript.php generated the jpeg
<0> i see
<6> (could be the same script but with some kind of post request instead so the script knew it had to output the image- like /script.php?image=1 or whatever
<6> but yeah... all php does is output html to the browser... html can't contain an image within itself
<5> kyelewis yes i tryed that, its coming out with an empty Array()
<6> ok, umm
<6> do you know how to do uploads in forms?
<6> it looks like the form is missing a few things
<7> kyelewis put in envelope mark "Business Reply Mail"
<5> i was thing about that
<6> such as the enctype= attribute in the form tag
<6> Jymmm: heh
<5> usually i use a db cl***, but with this one i didnt, so i might be missing stuff
<5> oh, yeah, forgot about that one. lets see
<6> http://php.net/features.file-upload might be a good read also
<7> kyelewis QUIT MAKING SENSE! You're confusing the noobies
<6> lol
<5> ok now i got something
<6> Jymmm: yeah, don't ya hate that :P
<5> dont be calling me no newbie, i just forgot a line... hehe
<7> kyelewis: ME personally? Hell no, I figure if they get confues enough they''ll forgot how to eat, then die.
<6> no, i mean don't you hate it when you make sense
<7> kyelewis: Wouldn't know, never have.
<5> i cant feel my ***
<7> culhudo pull your head out of it.
<4> :/
<8> culhudop: buttsecks?
<4> still having problems with $_FILES[], eventhough i got a filled array
<7> nmatrix9 tmlis really looking for you
<7> nmatrix9 TML is really looking for you
<6> culhudo: problems such as?
<4> $_FILES[$file[$i][0]['tmp_name']] is not set
<6> blink
<4> not getting into the if($_FILES[$file[$i][0]]['tmp_name']) {
<6> double blink
<8> Jymmm: oh crap yeah ok
<4> what?
<6> where did $file come from, out of interest?
<8> Jymmm: he leave a message
<2> nmatrix9: No
<7> nmatrix9 No,
<6> (i have trouble reading your code, probably doesn't help having comments and variables in a language i don't speak :P)
<2> nmatrix9: I just wanted to ask if you've read "Across the Nigthingale Floor"



<4> right, learn portuguese then
<4> lol
<2> nmatrix9: And, if you haven't, to recommend it. Highly.
<4> $file is an array set at the beguining
<8> TML: looking it up now at amazon.
<4> line 26
<2> nmatrix9: No clue about the rest of the series, but the first book is *extremely* well written
<6> culhudo: ok, but i still don't get it
<4> but $_FILES[$file[$i][0]]['tmp_name'] is set, just not getting into the if
<4> it is set though, strangly
<6> ah, ok, i think i understand... you sort... of... ish... hold on, let me read the code
<4> dont know why it doenst get into the if statement
<4> i did include the enctype on the form
<6> so it's effectively doing $_FILES['foto1']['tmp_name'] on the first run?
<4> wait, i think i got it
<8> TML: hmmm don't see it on Amazon you got a URL?
<4> tested the if satatement with an else before, so id know where i was entering, but without removing it it wouldnt work if all of the 10 input tpye=file werent filles
<4> filled*
<4> so removing the else part sorted it out
<4> the whole problem was the enctype="multipart/form-data"
<8> TML: lets hope Hollywood never discovers this book and ruins it . . .
<7> nmatrix9 I just sent the script to a producer friend in Thousand Oaks
<8> Jymmm: I will kill you . ..
<4> ok new problem: I got the right path for phpThumb, but sadlly im getting "failed to open stream, no such file at ....(right path and file name)"
<8> ok night guys
<8> way past bed time
<4> im gonna try chmod it to 777
<9> pnnpnnnnquit
<9> err woops
<2> Narada: http://xrl.us/juhf
<2> errr
<2> Wrong person, sorry
<4> no good, same error
<7> TML he left
<10> how do I force the script to end if it cannot continue because of missing infromation
<4> die;
<7> rethink your logic
<3> how can i open a hyperlink in php?
<7> hyperdrive()
<11> DjDarkPingvin: Lots of ways.
<3> Gargoyle: i want to use it to refresh a page when a user submits somehting
<11> DjDarkPingvin: Clear as mud!
<3> Jymmm: why can`t i find this hyperdrive() in the php manual?
<11> o_O
<7> DjDarkPingvin It doens't exist in the php manual perhapse?
<12> im having a little problem with php not echoing results in a list/menu...http://pastebin.com/536583
<3> Sorry, but the function hyperdrive is not in the online manual. Perhaps you misspelled it, or ....
<11> function hyperdrive(){ return E=MC2+1; }
<7> DjDarkPingvin It only exists in a galaxy far far away...
<3> Gargoyle: ?
<11> wha? :)
<7> Use the force DjDarkPingvin
<11> Jymmm: "The force", is not in the docs. Are you sure you don't mean "The Shwartz" ?
<3> Jymmm: i rather use php instead ;)
<7> Gargoyle: I didn't care for Space Balls all that much.
<12> any help with http://pastebin.com/536583 would be appreciated much :)
<11> xFlux: One of your die statements printing an error?
<12> nope
<12> the form loads, no errors....Just nothing in the category view
<12> I tripple checked the naming, its all checked out for field names etc
<3> Gargoyle or Jymmm ,can you give me an example ,on how to open the http://something.com/ in the _self frame with a php command?
<11> try printing the contents of mysql_error. If there are no errors, then perhaps your query returns nothing!
<11> DjDarkPingvin: PHP is used before the page is in the browser, javascript afterwards.
<3> hmmm
<3> i feared this would happen
<11> here's a clue, but it's not really for this chan!
<11> onclick="top.location='url';"
<11> replace top with another frame or window name if you need to.
<3> ok thank you
<11> xFlux: Did you try running your query in phpMyAdmin or something to check there are some results?
<12> yes
<12> query checks out :|
<11> try echo mysql_num_rows($result);


Name:

Comments:

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






Return to #php
or
Go to some related logs:

noorulislam MP3
#javascript
vodafone merlin u630 ubuntu
1684370019
#php
new login Xgl gdmflexiserver
#gentoo
mount error 6 cifs
gyachi apt-get
#linux



Home  |  disclaimer  |  contact  |  submit quotes