php-general Digest 23 Jun 2008 06:40:58 -0000 Issue 5529

Topics (messages 275786 through 275793):

Re: How to make a "Auto View" and a "Download" Link for PDF?
        275786 by: Nitsan Bin-Nun

Re: (*OT) What we are going to do about those OT's?
        275787 by: Colin Guthrie
        275788 by: tedd
        275789 by: Colin Guthrie

Re: 5.3 Timeline and Features(true anon functions? shorter array syntax?)
        275790 by: Chris

escape character in query string
        275791 by: joaquinbordado

Variables in forms
        275792 by: Ron Piggott
        275793 by: Jim Lucas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Oops

---------- Forwarded message ----------
From: Nitsan Bin-Nun <[EMAIL PROTECTED]>
Date: 21 Jun 2008 19:23
Subject: Re: [PHP] How to make a "Auto View" and a "Download" Link for PDF?
To: Michelle Konzack <[EMAIL PROTECTED]>

I am not 100 percent sure that i have understood your idea,
but if i did
you can place the PDF for online view with content-disposition header*
*>*     Content-Disposition: inline; filename=pdf1.pdf
*
replace the *inline* with *attachment* and you get the save as dialog

On 21/06/2008, Michelle Konzack <[EMAIL PROTECTED]> wrote:
>
> ************************************************************************
> *       Do not Cc: me, because I READ THIS LIST, if I write here       *
> *    Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe    *
> ************************************************************************
>
> Hello,
>
> I generate PDFs on the fly and I like to setup TWO links on the HTML/PHP
> page for the SAME PDF:
>
>    1)  View
>    2)  Download
>
> I have seen this on other Websites, but can not figure out HOW this  was
> done.
>
> Suggestions?
>
> Thanks, Greetings and nice Day/Evening
>    Michelle Konzack
>    Systemadministrator
>    24V Electronic Engineer
>    Tamay Dogan Network
>    Debian GNU/Linux Consultant
>
>
> --
> Linux-User #280138 with the Linux Counter, http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> Michelle Konzack   Apt. 917                  ICQ #328449886
> +49/177/9351947    50, rue de Soultz         MSN LinuxMichi
> +33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)
>
>

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
    Hey, Col.   Thought you were dead.  ;-P

Not dead, just buried... :p

But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die? I'd want to let all the people I deal with in the online world that I've died and that the chances of me fixing bugs/patching things are relatively slim.

I heard of a service whereby you could send messages to people after you die. You write a special passcode for the service and instruct (in your Will) your executor to process it which then causes various messages to be sent (to loved ones, enemies etc.).

I wonder if something similar should be done for mailing lists and such like?

Anyway, I think you'll agree that I've managed to steer this thread off-topic now... ;)

Col


--- End Message ---
--- Begin Message ---
At 10:02 PM +0100 6/22/08, Colin Guthrie wrote:
But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die?

We probably would have a hell of a time trying to get to finish it.  :-)

Seriously, look at "Key Man" Insurance for projects. In the event of your death, there's enough money to pay someone to take over the project. I've never had to use it myself. But I have carried it.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
tedd wrote:
At 10:02 PM +0100 6/22/08, Colin Guthrie wrote:
But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die?

We probably would have a hell of a time trying to get to finish it.  :-)

The testing cycle could result in a few issues :)

Seriously, look at "Key Man" Insurance for projects. In the event of your death, there's enough money to pay someone to take over the project. I've never had to use it myself. But I have carried it.

:)

It's not really about the project etc. it's more about, hmmmm, etiquette. I'd like people to know if I've shuffled of this mortal coil so they can all write nice things about me on their blogs etc.

In this modern age I find myself with several associates, colleagues and friends that I've not actually met! While a in a regular, old fashioned circle of friends, word will get out when someone starts pushing up the daisies, the same cannot always be true of online friends.

Facebook status: "Joe Bloggs is dead".

Col


--- End Message ---
--- Begin Message ---
Weston C wrote:
> Just curious if anyone knows the rough timeline for PHP 5.3.
> 
> Also curious if anyone knows whether anon functions/closures or a
> shorter JSON-ish array syntax are being considered for inclusion. I
> know there were two patches announced in December/January:

Ask the -internals list - that's where those decisions are made.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
would someone happen to know the escape character for query string?

here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day?


the output should be 

Hello PHP
      How was your day?

-- 
View this message in context: 
http://www.nabble.com/escape-character-in-query-string-tp18061596p18061596.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
I am writing a form right now.  

I would like to make the checkbox an array variable.  The first part of
the array is the component reference, the second part is the package
reference.  What name would you assign to it that I could use in
processing the form in the PHP script this posts to?  

Ron

<tr>
<td valign="top"><font face="times new roman"><center>Children's 
Activities</center></td>
<td valign="top"><font face="times new roman"><center>Child's 
ABC's</center></td>
<td><center><input type="checkbox" name="component_1_package_1"></center></td>
<td><center><input type="checkbox" name="component_1_package_2"></center></td>
</tr>


--- End Message ---
--- Begin Message ---
Ron Piggott wrote:
I am writing a form right now.
I would like to make the checkbox an array variable.  The first part of
the array is the component reference, the second part is the package
reference.  What name would you assign to it that I could use in
processing the form in the PHP script this posts to?
Ron

<tr>
<td valign="top"><font face="times new roman"><center>Children's 
Activities</center></td>
<td valign="top"><font face="times new roman"><center>Child's 
ABC's</center></td>
<td><center><input type="checkbox" name="component_1_package_1"></center></td>
<td><center><input type="checkbox" name="component_1_package_2"></center></td>
</tr>



In your form, do this

<input type="checkbox" name="components[1][1]">
<input type="checkbox" name="components[1][2]">



Then in PHP do this.  This is if the form was sent via POST

<?php

$components = your_cleaning_function($_POST['components']);

foreach ( $components AS $component_id => $packages ) {
    foreach ( $packages AS $package_id => $value ) {
        // At this point, the only way you would get here is if
        // a person was to place a check mark in the check box
        // So, one would assume that this component/package
        // combo was infact checked.
    }
}

?>


--- End Message ---

Reply via email to