| |
| |
| |
|
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> tell me if there are any holes..please? <0> http://pastebin.com/713699 <1> misty: try print_r($_SERVER); ... see if that prints anything. It should print the entire array of server vars <2> rebelfallen: just out of curiosity, are you using any .htaccess 404 redirects? <3> monkeypoo: good though <4> No I am not <2> are you setting as a session variable? <5> thirdLibr: You should use mysql_escape_real_string even on is_numeric, just to be safe. And you might want to further check for '.' or not, and then typecast to (int) or (float) in PHP, I guess... <3> hey could it be a problem that I am using a variable called $_GET['action'] ? <2> I wish I could $_GET['action'] <3> lol <3> maybe it's a reserved word? <6> lol <7> Rewt`: i know a way you can <5> thirdLibr: I would *NOT* *NOT* *NOT* recommend using htmlspecialchars and html_entity_decode there, personally. The data you get is the data you get. If you need it to be used in HTML later, use html_entities or whatever, later.
<7> Rewt`: /quit <4> Rewt`: This is my pastebin: http://pastebin.com/713675 <4> This is all I am doing <2> zircu: if it envoles that whipped cream and yak again, I'm not falling for it a 3rd time. <2> rebelfallen: ok, lemme peek <7> Rewt`: hehe <0> richardlynch: all right, thanks for your thoughts <2> start your session on line 1 <4> okay <4> woah <4> that fixed it :\ <4> thank you muffin cakes <8> muffin cakes? <3> ok I'm a little conerned, I can't get it to print $_SERVER <2> muffin? <2> whu? <9> whipping cream and a yak? a 3rd time? <2> I live on the edge. <2> if you've not tried it, don't knock it.... <9> misty: print_r($_SERVER); <2> ...anyone got any whipped cream? <8> Rewt`: I haven't tried killing anyone either, but... <10> I haven't got any whipped cream or yaks but I've got some spare alpacas. <1> ||cw... that's what i got misty to try <4> As far as he knows <8> just smells like one <11> any thoughts, have php app that creates pdf file, I want to be able to have someone click on link and start printing to printer without messing with adobe. <8> !+pdf <12> [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 <3> PHP_SELF] => /inv/wip.php <9> kman: you can either convert it to html and the browser can print that, or you can deal with adobe <3> ok now I got it to work. Next I have to put it different places to see where it breaks <9> kman: something has to convert the data to a printer format, that's what adobe does <11> ||cw: what would you se to convert pdf to html? <9> kman: same thing you are using to make the pdf... <11> *use <5> I think what kman really means is skipping the "print" step within Adobe.... IE, how do you make a "print" button on a link that downloads and prints in one shot... Not that it can be done, afaik, but that's what he wants. <13> I need some help. I want to create objects that essentially mirror records from a SQL query result set. These objects might also need to create their own objects. Having a hard time figuring out how to do it right. <9> kman: another option might be to put the pdf in a frame and use javascript to tell it to print <11> richard: your right on <11> ||cw: that might work <4> kmanrox <5> Vyx: I'm thinking that something like ADO or PDO or whatever it is that does DB as OO is a better answer. <13> @richardlynch and OO DBMS? <13> and=an <11> ADO, PDO ? <10> ado and pdo are just db abstraction layers <11> ahh <14> Touqen: You're wrong <14> !+pdo <12> New in PHP 5.1, there is a little thing called PDO, the PHP Data Objects. This isn't database abstraction layer (as many believe)... It's more or less database function unification. If you want abstraction layer, take a look at ADODb or PEAR::DB. <5> Vyx: A PHP database interface that is OO in PHP for the DBMS. If the DBMS is OODBMS already, then, errr, I don't even know of any that PHP has an extension for, but what do I know? <5> Vyx: PDO is definitely the one I meant. <10> Wolfpaws: whoops <10> ORM <15> Hey guys. I'm having an issue on my site. Whenever PHP sends mail, the body is reduced to a fairly large block of jibberish.. This doesn't happen to mail sent from CLU. Specifically, phpMyFAQ and phpBB. Does anyone know of a way to change this? <13> I have a mysql result set and for each row I want to create an object and set the properties of this object to the values returned in each row. <13> The problem is these objects contain other objects of the same type to create a heirarchy of sorts. <10> I don't really see how it's a "problem"
<13> Well it's not a problem as much as I'm having a hard time with it. <13> I'm working with categories. <13> Some categories have sub categories which themselves may have sub categories. <5> kdean06: You'd have to pastebin the gibberish for us to make a guess... <6> Vyx you can create a 'generator' for these objects, php won't handle them itself <5> Even PDO won't, I don't think... <16> ||cw you were ryte <16> thnx alot <5> Though I suspect your generator will end up ****ing down the entire hierarchy in your first attempt, which is probably not what you really wanted... <13> The top level object stores its children in an array. <13> And those children do the same with their children. <13> My problem is adding more objects to the array. <5> Vyx: Why not have a 'children' array on each object. Your 'root' object can then store all the roots from the DB, and they all store their own children. <13> I have to do like $array[1] = new Category(); and then... $array[1]->setName($row['name']) etc. <17> does a database abstraction layer kind of handicap what you can and can't do? <3> ok finally I got the syntax right! lets see if it works now <5> Monkey_b: Absolutely. The question is "how much" and "is it worth it" <15> richardlynch, http://postfix.pastebin.com/713733. Sorry for not providing that sooner. :-) <10> Monkey_b: You usually can't get away with using any of the special features designing for one db system affords you. <17> ah <5> TANSTAAFL <13> That is what I'm doing richard, but I'm having a hard time adding to the children array. <17> understood <17> that's what I thought <3> yay! <5> Vyx: use $this->children[] = new Whatever; <13> richardlynch: once the objects are created i have to set their properties. <13> That is where it's killing me. <13> I dont' want just a bunch of empty objects. <6> Vyx are you using pdo ? <10> Vyx: Why not just do something like new Category($row); and it' intializes itself from the row data <5> Vyx: Your constructor should accept at least some kind of ID so they can snatch their data. Or just use PDO and let its semi-automated mechanisms help you. (I think) <13> xshad: no <18> guys, still no go for php on apache <13> touquen: not a bad idea. I wish PHP support overloading of constructors better. <13> Because I don't always want to p*** Category anything. <5> kdean06: That looks like digital signature or encryption to me... How'd you manage that?... <10> default arguments <13> Yea. I like the syntax in Java a little better ;) <13> Just a buncha constructors with different signatures. <5> So use Java. :-) <6> lol <13> I'm not good enough with Java yet :P <6> my guess is that java isn't good enought <7> Vyx: yeah function signatures overloading isn't a viable solution with php <7> of course there is the __call() overload method <13> Are they planning on making overloading easier with php? <6> overloading is pretty nice in php <5> Vyx: Google for PHP 6 Roadmap, but I think not... They like it the way it is. <13> Hmm... <3> thank you guys for your help. It's annoying that the book was wrong on this point <7> i doubt function signatures will be anytime soon <13> I guess I will have to make Category's constructor a little smarter. <3> the funny thing is that it had been working and suddenly stopped <19> Is it Possible in phpmyadmin to insert a new column in an existing table? I found out that i forgot the headline column in my newssection. <13> But if __construct fails you don't have many options :( <13> You can't have it return something to signal an error. What do you guys do for this sort of thing? <6> Vyx exceptions <7> Vyx: try {} catch() {} <5> nighty: Sure. Just push on the buttons to add a field or column or whatever they call it. Or, use raw SQL box: Alter table WHATEVER add headline text; <7> crap my wireless is bouncing to 1 bar to 6 right now, making it hard to follow things <13> I need to look at exceptions more. I have not used them much and am not all that familiar. <19> rich thx the add button is not there anymore but i am going to try the raw method <7> alter table foo add (bar varchar(50) NOT NULL) <5> nighty: It is inconceivable that phpMyAdmin would not keep that feature... Though the user you are logged in as may not have permission to ATLER TABLE, in which case it would maybe not show up... <19> hmmm ok, i closed the session and reconnected <19> not it works <15> richardlynch, I'm not sure. I'm not the primary admin there. It's possible he installed an RPM that did it, I dunno <20> Vyx, hey do you mind if I message you? <13> Not at all. <15> richardlynch, Is it possible that the BASE64 is doing that? I've noticed that header being added. <13> Crazy :) <5> kdean06: I dunno either, but a bad setting for php.ini sendmail_path could do it... Yes, base64 encoding would look like that too.
Return to
#php or Go to some related
logs:
gentoo chroot segmentation fault php mysql list databases order by #gentoo #math LATAA TURBOPRINT driver adaptec aic-7xxx centos #bash #gentoo denyhosts hangs
#perl
|
|