PHP Docs: http://www.php.net/docs.php
Google is always an excellent resource: http://www.google.com/search?q="getting+started+with+php" As is Del.icio.us: http://del.icio.us/tag/php+tutorial Best of luck! -b. On Tue, Jun 3, 2008 at 12:16 AM, birgunj birgunj <[EMAIL PROTECTED]> wrote: > Dear all, > > i am trying to design and build the cms(content management system) from > scratch.how to design the database for cms and how to start coding for this. > > i need help about this.if anbody has any idea,supporting material ,please > share with us. > > thanks in advance to all. > > humayoo > > "Brian D." <[EMAIL PROTECTED]> wrote: > > Your problem is that you're actually outputting the PDF content twice. > readfile() actually reads the file into the output buffer, so it's the > equivalent of: > > echo file_get_contents($file); > > See http://us2.php.net/readfile > > - Brian D. > > On Sun, Jun 1, 2008 at 7:01 PM, Justin Dearing wrote: >> Check the error log. Its possible something in your code above that >> smippet (perhaps in an include file) is sending body text and you are >> not seeing the error. >> >> On Sun, Jun 1, 2008 at 6:50 PM, Kristina Anderson >> wrote: >>> ahh... I see one thing, I should be using attachment rather than >>> inline... >>> >>> let me see if that helps :) >>> ------------- Forwarded message follows ------------- >>> >>> Hi Everyone -- >>> >>> I'm almost there with my PDF download application and everything is >>> working great except that instead of downloading the PDF, it's printing >>> it out on the screen like so:@ 8 ("µrœ;q(R)ª7èLö œy¥•&†Q ëñ q¶4±jž½ç|æ9ÚÄ >>> V ³)g B£0ñiœW× •8#(c)8wÕ(c)•õ8_Å٥ʨQãüÜ «QÊj @é&»A)/ÇÙ gº>'K‚ó ÈtÕ;\ú " >>> Ó¥$ÕºF½ZUnÀÜå ˜(4TŒ%)ë«" ƒ0C&¯"é ˜¤Z£"i ˜¿óœ8¦Úbx'ƒE¡ÁÁB Ñ;… >>> ú¯›¿P¦ÞÎÓ"̹žAü om?çW= €x ¯Íú·¶Ò-Œ¯ Àòæ[›Ëû0ñ¾ ¾øÎ}ø¦y) >>> 7 ta¾¾õõõ>j¥ÜÇTÐ7úŸ [EMAIL PROTECTED]&¯(R)ª6ê etc. >>> >>> Here is the code that I have right now...something is wrong. At one >>> point I got it to give me the file save/download dialogue box but with >>> the pagename not the filename... >>> >>> //======= >>> >>> $filename="333.pdf"; >>> $filesize=filesize($filename); >>> header("Content-Type: application/pdf"); >>> header("Content-Length: ".$filesize); >>> header("Content-Disposition: inline; filename=$filename"); >>> header("Content-Transfer-Encoding: binary"); >>> $file_contents = readfile($filename); >>> print $file_contents; >>> >>> //====== >>> >>> -- Kristina >>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >>> >>> >>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> > > > > -- > realm3 web applications [realm3.com] > freelance consulting, application development > (917) 512-3594 > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- realm3 web applications [realm3.com] freelance consulting, application development (917) 512-3594 _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php