| |
| |
| |
|
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
Comments:
<0> ? <1> foo: your confused, and I am therefor much mroe confused on waht you are trying to acomplish <2> MalMen: you cant divide by zero <1> phpcodinfool: the pdflib that you 'pay for' is the same one you can use for free.. <3> myconid: so you dont NEED a license key <4> !+pdf <5> [PDF] Portable Document Format - If you want to generate PDFs using PHP you can try FPDF (http://www.fpdf.org/), PDFLib. PDF Developer Reference available here: http://partners.adobe.com/public/developer/pdf/index_reference.html <6> torpid - I ***ume $coach_picture is set somewhere else? <0> ido yes, but that its a script <1> phpcodinfool: I dont know for sure, but I think there is a commercial version that has more features tha tneeds akey <7> yes, $coach_picture is that path to the file <8> myconid: Hmm, alright, let me try to shorten. Files will be uploaded to a FTP server, I will be generating stats from these files. Is it best to populate the database with new files after each upload of bulk files, or to populate database when someone views a web page (have some function check that the database info / filesystem match) ... probably the latter, just wanted to confirm. <9> pulling my hair out here <9> I've got an Object stored in the session <3> ahh... well i wrote this script on a windwos box.. and my apache installer had phplib out of the box.. moved the script to nix.. and no dice.. i'll read through the bots suggestions and see what i can find <9> I'm trying to display the value of one of the vars in the object, but it's not working
<1> phpcodinfool: looks like pdflib 5 is free? <9> Can I just do echo $_SESSION['Order']['_dateNeeded'];? <1> foo: just scan the FS every 10 minutes for files taht dont exist in the DB, and put them in. <6> torpid - what does the resulting image look like? <8> myconid: Alright, with a cron job. Alright. Thanks <1> foo: or even better.. have the FTP upload to a staging dir.. and run a scrip tevery minute.. and when it sees a new file, it moved it into place and inserts it <8> myconid: hmm, I prefer the former. Files will be going to different directories. <1> foo: i would suggest a staging dir.. <1> foo: ftp is insecure.. you dont want direct access to live files <7> enygma: it is a 100*88 thumbnail <6> torpid - try taking out the imagedestroy and the $img=$tmp_img; and just imagejpeg($tmp_img, $coach_picture, 100); <7> all I care about is the thumbnail <8> myconid: Gocha. Thanks <10> Any chance of of explain to me why in example 19-4, it says that '$***igned will have this value', if $***igned is a copy of $instance? Is this a mistake in their example, or am I not getting it? http://www.php.net/manual/en/language.oop5.basic.php <7> right -- I hammered this code in from a snippet that was meant to do something else <11> myconid, phpcodinfool: PDFlib isn't free anymore. <3> TML: so it DOES require the license key? <4> TML (was it ever free?) <11> myconid, phpcodinfool: There's a demo version that creates PDFs with a big ugly watermark on them, and a header or footer that says "Created with Demo Version of PDFLib" <3> TML: i just found a .so file <9> There's a lite version <11> Jymmm: Yes, it *used* to be. In fact, anything prior to 3.0.0 <9> that is free <9> PDFlib lite <3> http://www.pdflib.com/products/pdflib/download/index.html <1> http://www.pdflib.com/products/pdflib/download-source.html <4> TML Hmmm, always thought it was a paid product, then someone created FreePDF <7> just wondering, if I do $foo=$bar in php, am I changing the value of $foo or just reasigning a reference? <3> so i have it on my windows box... and it works.. and its not crippled.. how can i move it to my linux box? <11> Jymmm: It was open source for many years. I fixed innumerable bugs in it. <11> Jymmm: Then they forked and went closed...can't even begin to describe how pissed I was. <11> phpcodinfool: futang is saying they have a PDFlib lite now that is free. I suggest looking into that. If so, it's a fairly recent development. <10> Can someone help me understand example 19-4 from http://www.php.net/manual/en/language.oop5.basic.php ? <4> TMLL I bet <9> PDFlib lite: http://www.pdflib.com/products/pdflib/download-source.html <11> toodles: What do you not understand about it? <12> heh, got another question. If I wanted to parse a HTML file and found something like this [blog:recent:X] and wanted it to retrieve the last X number of posts, how should I go about doing it? <13> I don't think mysql is working with php on my apache server. when I use <?phpinfo()?> should anything about sql come up? the only thing that does is sql.safe_mode off. <3> futang: thx, i'll check thout out <12> I think I could do an ereg_replace, but, would that be efficient? <3> that* <11> scottj: You don't appear to have the mysql extension loaded <9> This is also interesting: http://www.alistapart.com/articles/boom/ <11> GregVernon: Use preg_match() <10> TML: look at the string its ***igning... <12> okay <9> It talks about an app that will print XML to PDF, using CSS <1> toodles: when the isntance is set to null, it no longer references the object (which still exists, but now only referenced by $***igned).. if you set ***igned to null, the object would be destroyed <11> toodles: Yes <9> phpcodinfool, you should check that out too <11> toodles: What about it? <10> TML: i dont get why it says that '$***igned will have this value', if $***igned is a copy of $instance? <1> toodles: so when the string is ***igned, they are both referencing the same object. <1> one handle to the object is just destroyed later. <9> it's not free, but it looks a lot easier to format the documents than trying to muddle around with PDFlib <3> futang, yeah i've seen that, it does look better, i dont want to have to re-write this damn script though <13> TML, how do I load it? <10> myconid: yes, but they're not referenced to the same object <1> toodles: yes they are <14> Does anyone think there are any advantages, as far as usability/features, to building a website from scratch instead of using a CMS? <1> Aw0L: totally
<9> phpcodinfool, I hear that. I am planning to use it for an upcoming project though. PDFlib is a PITA <12> Aw0L: currently, i'm building a CMS from scratch :P <11> toodles: In PHP5, objects are referenced rather than copied. <11> toodles: But it's a weak reference, as you can see from the example. <10> myconid: Is $***igned not a copy of $instance, and $reference not a reference to $instance. <14> myconid, such as? <1> Aw0L: i bill by the hour. the advantages should be obvious. <10> TML: then whats the difference between = and =& ??? <14> I need to build a company intranet, and I'm debating about whether I should use a CMS or just build everything myself (and learn php!) <3> yeah, pdf lib reminds me of using bitblt <11> myconid: $***igned is a (weak) reference to $instance, $reference is a (strong) reference to $instance <1> Aw0L: just use joomla <11> toodles: $***igned is a (weak) reference to $instance, $reference is a (strong) reference to $instance <11> Sorry, wrong person <12> Aw0L: learn php, you could develope everything to what it *has* to be <1> TML: I saw an example somewhere of defining a function with a & before it, what does that do? <11> toodles: That example is there to *demonstrate* the difference. <14> I figured doing everything myself might be a better learning experience <1> Aw0L: do it on your own time.. you dont know enough to properly set up the intranet honestly. <11> myconid: That function returns a reference. <10> TML: ok, am begining to understand. But still don't see the differences. <14> but CMS systems seem, at least to me, to lack flexability - especially when it comes to design <1> TML: why would I want to do that? <1> Aw0L: they are template driven.. joomla lets you lay it out anyway you want..look at their examples <12> Aw0L: I totally agree, which is why I make everything myself <1> wordpress is another great CMS example.. that is completely controllable <14> myconid, this is a simple intranet - I know enough to build it myself, there just may be some extra features I'd have to learn how to add <11> toodles: The difference is that $instance and $reference point to the same instance, whereas $***igned is a copy-on-write reference to $instance. <1> Aw0L: you just saiy you were going to do this to 'learn' php .. <11> myconid: I've never had reason to do so, myself. <14> myconid, as far as adding some features, yes - but I anticipate only basic needs for the language <10> TML: Ok. Can you tell me where I find out what a copy-on-write reference is? Btw, thats for helping :-) Much appreciated! <11> toodles: In example 19-4 on http://www.php.net/manual/en/language.oop5.basic.php <0> sendmail_path = /usr/sbin/sendmail -t -i <0> thats is all right no? <0> from mail() <11> MalMen: That's a question for your MTA documentation <10> TML: so, a copy-on-write reference will allow me to access the original objects instance variables, but is not effected if I remove the original object by letting it equal null? Would that be right? <2> how is it that some cl***es are bazzhar where you can $cl*** = new Cl***; $cl***->dosomething(); echo $cl***; and it'll echo some shtuff? <0> # man mta <0> No manual entry for mta <2> palm + face <2> I got a new B***oon today!! <11> toodles: That sounds correct <15> !+MTA <5> from memory, mta is hmm... mta is a mail transfer agent, in other words sendmail or any of its replacements (such as exim-tls, postfix-tls, qmail, ssmtp, zmail, etc).. <10> TML, nice one. Thanks man. Are there other difference in this type of reference that I should be aware of? <10> TML, *differences <11> toodles: Not that I know of, but I don't use PHP5, so I'm probably the wrong person to ask. <10> TML, you've been a great help! Thank you very much ;-) <2> http://www.foxproducts.com/images/instruments/bsn_240_220_lrg.jpg <-- its pretty <4> itreba1: Um.... <11> itreba1: They use the __toString magic method <16> wtf is thats? an old gun? :P <16> s/thats/that <15> itreba1: Nice flute :) <2> ddaammnn..... its a B***oon! (or Faggott if your German) <11> itreba1: The instrument? <15> baha, yea, that's it... Flute is something else :/ <16> lol <2> TML: yea <2> gotta go <17> skin flute? <11> <:O <3> whats the default location for php on linux.. cant find where to drop this .so file <18> If you're talking about extensions, check phpinfo() for your extension_dir setting. <3> good call, heheh <16> i think he's talking about mod_php?.so <11> No, he's talking about pdflib.so <16> ah okay <3> yeah.. pdflib.so <16> drop it on Trash :) <11> <div>: XHTML's whipping boy <19> haha
Return to
#php or Go to some related
logs:
radhostclient linux p3m/members qmailrocks rblcheck unexpected T_OBJECT_OPERATOR zend #fedora #osdev skge wake on lan option linux SuSE php bus error
#perl T L E D R E A
|
|