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



Comments:

<0> HTMLDOC lets you generate PDF's out of HTMLs
<1> great
<0> it doesn'ts support CSS though
<0> use CSS code and it'll break
<0> otherwise it's great, you install it on the server, and you can call it via php or whatever to convert html's to pdf
<0> works great :)
<1> i have css on my page
<2> pie
<0> doh
<1> wont work?
<0> it will ignore the CSS code
<0> which means you should also supply stuff in regular HTML
<3> how is the FATAL error constand called ?
<0> like <font size=2 face=arial>
<3> like E_ERROR ?



<0> CSS will take precedence in browsers, and your regular HTML will be interpretted when generating the PDF
<1> i see
<1> does it need a pdflib installed?
<2> "<font size=2 face=arial>" is the worst thing you could do in this day of age.
<2> I was surprized that my sister's sister-in-law is being taught that too! Where the hell is standard CSS in school today?!
<2> I swear, if they teach me <font face=arial size=2> in highschool next year, I'm going to slap my teacher and take over.
<4> meh, I did that the other day, cuz I had to
<2> ^Migs^, did what? Take over?
<4> no, <font size=xxx>
<5> colder: i installed openssl, apache with enable-ssl... maybe i miss compiled openssl?
<6> When all my clients/visitors have CSS-compliant browsers that ACTUALLY WORK, I can stop using the icky tags...
<2> Why? O_o
<6> That day is not today.
<2> ^Migs^, just do style='font-size: X'
<4> no, that didn't work in this situation
<7> My server is sending this information:
<7> Cache-Control: post-check=0, pre-check=0, max-age=18000
<7> Expires: Thu, 21 Jul 1977 07:30:00 GMT, Thu, 15 Jun 2006 22:13:24 GMT
<7> which is preventing PunBB from deleting cookies
<7> I can't figure out why
<7> or how to fix it
<7> can anyone offer any insight?
<6> IamEthos: Of all the things you can mess up with cookies, I'm pretty certain that the Cache-control is NOT the culprit... Have you taken that header out and "it works"?
<2> ^Migs^, what was the situation?
<8> !tell IamEthos about enter
<9> can I use explode() somehow to put every line in a txt file into an array?
<10> what do you guys think about jdbc having more options or being better at connecting to a database than php?
<10> or more secure....
<7> richardlynch, no. Someone on the punBB forum said that that was interfering, and that that was being sent by the server, not punBB, and that that was causing the problem.
<7> I had no clue what he was talking about
<7> my host's tech support are idiots
<7> and so I came here
<7> because you guys know stuff
<2> gordon1986, just use file()
<7> generally speaking :-)
<2> gordon1986, http://php.net/file
<9> spyro_boy, ah thx, didnt know of that func
<7> and Jymmm, no one has told me about enter yet :-)
<6> IamEthos: You might maybe have session_start set to "on" in php.ini and/or .htaccess, and you could try turning that off, and it might maybe stop that header... But that presumes punBB (whatever that is) is managing its own session.
<2> gordon1986, no problem, but you could also do $file = file_get_contents("file.txt"); $file = explode("\n",$file);
<6> IamEthos: Now that we HAVE told you about enter... :-)
<2> gordon1986, but just use file().. it's smaller and easier ;)
<7> richardlynch, punBB doesn't use sessions
<7> apparently I'm guarding national secrets in my PunBB message board
<7> and sessions aren't secure enough
<6> IamEthos: Errr. Okay. Then it should be totally safe to turn them off if you aren't using them.
<7> (shrug)
<8> !+g8
<11> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
<8> !+g10
<11> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts. Contact the authors of the script for support options they provide.
<2> I agree with G10
<2> Screw downloading them. Just write one yourself.
<2> The only thing good about getting a script snippet from somewhere is for educational purposes.
<2> CMS' are also an exception.
<6> spyro_boy: As is PHP itself, or you wouldn't be here :-)
<2> richardlynch, uh what?
<6> You downloaded and installed PHP, right? You didn't write your own Apache Module for templating HTML and dynamic scripting, right? :-)



<7> richardlynch: can I tell if session_start is on using php_info();?
<6> IamEthos: Yes, only it's phpinfo();
<7> ah, whoops
<7> richardlynch, I can't find it in here... it wouldn't be listed as Session Support, would it?
<6> IamEthos: It would be listed under there, with session.auto_start or somesuch being "on" or "off"
<7> I definately don't have a session_start listed in the directives section
<7> oh
<7> session.auto_start is there
<7> but it's off
<12> !+enter
<11> Don't use the enter key as punctuation. Think in complete thoughts, then type.
<7> Wolfpaws, sorry
<7> session.cookie_domain has no value. Is that appropriate?
<5> ok, now apache2 has ssl support, why php continues giving me this error: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
<6> IamEthos: Then dig through your code looking for session_start() because that's the only thing I could think of that could mess up... Or go back to the punBB guys and ask them how they think this Cache header is affecting their Cookies, cuz that makes no sense at all.
<13> hi flks
<14> what would cause "failed to open stream:" using move_uploaded_file? I have max file, enc type, etc set, and i can't figure it out
<7> richardlynch, the world would be a better place if people just used SESSIONS to manage SESSIONS
<6> DrewTScott: The place you are trying to move the file TO does not have write permission for PHP User, aka Apache User from httpd.conf
<14> how to i give those permissions?
<14> *do i
<6> DrewTScott: Google for "man chmod"
<13> http://pastebin.com/711481 <-- why is the resulting image transparent, if displayed as png, and not transparent if displayed as gif?
<13> the function makeColor does nothing than allocating the color from a HTML-color-code
<6> ceiphas: Why do you do makeColor twice for the same color? Don't do that.
<13> i tried the function "getColor"
<13> works sam, except, it does imagecolorexact
<13> doesnt work, too
<13> http://pastebin.com/711495 <-- the complete code
<13> <-- changes to chatzilla, wait a moment
<5> ok, now apache2 has ssl support, why php continues giving me this error: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
<6> ceiphas: Right now, I can tell you that if you aren't getting the exact same color all the time, then why would you expect the transparency to work?... Also, a GIF only allows 255 colors. So by the time it's all downsampled, the color you chose for transparency, even if it's the same as your fill color, might not be the same after a zillion colors get turned into 255 automatically by imagegif.
<15> <-- back
<6> ceiphas: Right now, I can tell you that if you aren't getting the exact same color all the time, then why would you expect the transparency to work?... Also, a GIF only allows 255 colors. So by the time it's all downsampled, the color you chose for transparency, even if it's the same as your fill color, might not be the same after a zillion colors get turned into 255 automatically by imagegif.
<15> so, just try imagecolorclosest?
<15> dosnt work, too
<15> and i just tried... the color IS the same
<15> i set it to EEEEEE, and the background-color is EEEEEE
<6> Ceiphas: Try to do imagetopalette for GIF BEFORE you dink with colors, or the colors you are messing with, are NOT the colors you end up with.
<16> You can only use mysql_fetch_array once in your PHP?
<6> TheNinthcut: You can use it as many times as you want, but after you got the data, you have to "rewind" with mysql_data_seek
<16> richardlynch, *blinks* O_O
<16> richardlynch, I'm not an astronaut Richard....
<17> hi
<15> hey, made an if-else, to create a palette-image, if gif is output, now it works
<6> TheNinthCut: If you already "got" row 1, and then you got row 2, and you want row 1, use http://php.net/mysql_data_seek. It's VERY common to run through a whole result set with a while($row = mysql_fetch_***oc()) and then do mysql_data_seek($results, 0) and then do another while loop to run through again.
<16> richardlynch, so I do a dataseek on the Query variable?
<6> TheNinthCut: You do it on whatever came back from mysql_query(), yes -- The same variable you are using in mysql_fetch_array().
<6> It's basically a "Be Kind - Rewind" button. :-)
<18> good evening
<16> richardlynch, why you gotta lie to me like that Richard? http://theninthcut.com/charactervotest.phps
<6> TheNinthCut: Hunh? mysql_data_seek() is a "rewind" so you can loop through again...
<16> richardlynch, I guess I didn't do it right because it didn't work.
<6> TheNingthCut: Pastebin your code. http://pastebin.org
<19> hey
<16> richardlynch, I sent the link. http://theninthcut.com/charactervotest.phps
<19> I used to be able to download zend optimizer but now it wont let me (broken link), anyone got a valid link to it?
<20> is there a function like array_shift except that leaves the item in the array?
<20> sorry for the lame question
<6> TheNinthCut: Oh. You'd only need data_seek() to run through the SAME data set again. Your second query is messed up (the ; near the end) and you aren't using mysql_error() to be notified about it.
<6> bartel: I think you want function called 'first' or 'last'
<20> richardlynch: ahh thanks
<20> noobie
<16> richardlynch, ah damn, thanks. Why am I so lame sometimes?
<21> yeah, the examples in the manual use mysql_error for a reason, it's not fluff
<22> Im trying to switch to php5 and just doing some simple mysql stuff and its not working to well in a cl*** http://pastebin.com/711577
<21> sutabi: return mysql_query($query, $this->s)
<21> sutabi: and it's possiblt that the resource is out of scope, you may need to put that fetch array in a cl*** method too
<23> Hi, someone showed me some sites where to learn some CSS design some time ago, could you post them again?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#mysql
debian dhcp6
MAKDEV udev
vt6420 ubuntu
usr/share/fonts/X11/TTF missing
#ubuntu
gimp replace colors
firefox entrophy
definition of 'nazzy'
automount usb storage debian amd64



Home  |  disclaimer  |  contact  |  submit quotes