php-windows Digest 2 Mar 2001 14:40:34 -0000 Issue 470

Topics (messages 5785 through 5790):

Re: Web Servers
        5785 by: Fernando Madruga
        5789 by: Michael Gerholdt

How to create a Non-Editable PDF ?
        5786 by: Antonio Lopez
        5787 by: Tom Mathews

Array from drop down list passing as string
        5788 by: Charles Williams \( CEO ACNS \)

PHP -> ASP conversion...
        5790 by: Mikey

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]


----------------------------------------------------------------------


Yes to both questions. I'm using Apache + MySQL + PHP 4 + OpenSSL on my
portable Win98SE machine.
I assume that you want it to run on Windows ME for testing/developing? They
don't recomend using a Windows 9x/Me for deployment... :)
Also, you might want to check out OpenSA (www.opensa.org) as it's an
Apache+OpenSSL+PHP4 binary Windows installshield distribution: you may find
it easier to setup.

Fernando Madruga
[EMAIL PROTECTED]

-----Original Message-----
From: Jim Ray [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 2 de Março de 2001 2:23
To: Php-Windows
Subject: Web Servers


I am new with PHP and I have a question about Web Servers. I am running
Windows ME and PWS is not supported.  Will PHP run under Apache for windows?

Also, does anyone know will Windows MySQL run under Apache for windows as
well?

Thank you for the help.

Jim Ray





It this really the case - that PWS is not supported?

I thought that though there were difficulties, folks were able to run PWS on
Windows ME. Wrong?



> I am new with PHP and I have a question about Web Servers. I am running
> Windows ME and PWS is not supported.






When i create a PDF file with PHP, this file is editable with Acrobat Reader:
I.e. i can select all the text and copy & paste to another text processor.
I.e. i can draw a line or a rect on the pdf document, and save it.

I want to create a Non-Editable PDF with PHP!

How can i do this?

===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





1) Text
It is a feature of Acrobat reader that you can take any pdf file and select text
from it and copy this to a clipboard. The only way to prevent this is to use a
version of Acrobat reader before 4.0! You should not be able to alter the text
using acrobat reader (although using the full version of Acrobat, you should be
able to 'touch up' any text that you feel like).

2) Adding Graphics
Like 1), you will not be able to prevent anyone fom drawing on your document,
however to prevent it from being saved, just set the read-only attribute to 'on'
when you create the pdf file. (The user can of course turn this off it they
download the file locally, but that's up to them!)
Tom
Antonio Lopez wrote:

> When i create a PDF file with PHP, this file is editable with Acrobat Reader:
> I.e. i can select all the text and copy & paste to another text processor.
> I.e. i can draw a line or a rect on the pdf document, and save it.
>
> I want to create a Non-Editable PDF with PHP!
>
> How can i do this?
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590  - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




I have a drop down list that is passing the value "Array" back to the
script.  Any ideas why?  Here is the code.

        function dump_array($array_name){
            switch (gettype($array_name)){
                case 'integer':
                case 'double':
                case 'string': echo "it's a string";
                     echo $array_name;
                     break;
                case 'array':
                     echo '<table border="1">\n';
                     do {
                         echo '<tr><td align="left" valign="top">';
                         echo key($array_name);
                         echo '</td><td>';
                         dump_array($array_name[key($array_name)]);
                         echo '</td></tr>';
                    } while (next($array_name));
                    echo '</table>';
                    break;
                default:
                        echo 'Unknow data type.';
                        break;
              }
          }


 /*
 ** Associate with departments.
 */
 if ($continueScript)
 {  dump_array ($inputDepartment);
  for($index = 0; $index < count($inputDepartment); $index++)
  {

   $Query = "INSERT INTO department_item VALUES (";
   $Query .= intval($inputDepartment[$index]) . ", ";
   $Query .= intval($item);
   $Query .= ")";
   if(!mysql_query($Query, $DatabaseLink))
   {
    $ActionResults[] = mysql_errno() . ": " . mysql_error() .
     "   Query was: $repeatQuery";
    $continueScript = FALSE;
   }
  }
 }

returns "This is a string Array",  The drop down list is below.

<TR><TD>Department</TD>
<TD><SELECT NAME="inputDepartment[]" MULTIPLE SIZE="5">
<OPTION VALUE="1">PC Hardware </option>
<OPTION VALUE="3">&nbsp;&nbsp;CPUs/Processors </option>
<OPTION VALUE="4">&nbsp;&nbsp;Printers </option>
<OPTION VALUE="5">&nbsp;&nbsp;Input Devices </option>
<OPTION VALUE="15">&nbsp;&nbsp;&nbsp;&nbsp;Mouse </option>
<OPTION VALUE="6">&nbsp;&nbsp;Monitors </option>
<OPTION VALUE="7">&nbsp;&nbsp;Modems </option>
<OPTION VALUE="8">&nbsp;&nbsp;Multimedia </option>
<OPTION VALUE="9">&nbsp;&nbsp;Scanners </option>
<OPTION VALUE="10">&nbsp;&nbsp;Cases </option>
<OPTION VALUE="11">&nbsp;&nbsp;Mainboards </option>
<OPTION VALUE="12">&nbsp;&nbsp;Memory </option>
<OPTION VALUE="13">&nbsp;&nbsp;Harddrives </option>
<OPTION VALUE="14">&nbsp;&nbsp;CDRom Drives </option>
<OPTION VALUE="2">PC Software </option>
<OPTION VALUE="16">Notebooks </option>
<OPTION VALUE="17">Network Hardware </option>
</SELECT>
</TD></TR>

Thanks,
Chuck



==============================================
Charles Williams
(Owner)
Accent Computer & Network Services
Markt 2
D-95679 Waldershof
Tel: +49 (0) 9231 972670
Fax: +49 (0) 9231 972671
http://www.acns-online.com
GB/CS/O/U d-- -p+ c+++ l++ u- e+ m+ s++/ !n h---- f !g w++ t+ r x**
==============================================

**************Email Confidentiality Footer**************

The information contained in this email and any attachments is intended
for the named recipients only. It may contain privileged and confidential
information and if you are not the intended recipient, you must not copy,
distribute or take any action in reliance on it. If you have received this
email in error, please return it to the originator advising of the error
and delete all copies from your system.






I'm not too sure if this is the right place, but everyone here is always 
friendly, so here goes...

I am looking to convert some PHP code that I developed last year into ASP 
(don't ask why - the answer sucks!), and I was wondering if anyone here know 
of anything that had been developed to translate PHP code into ASP?

Having thought about it, I am sure that it is a bit of an impossibility, given 
the nature of ASP vs. PHP - but you never know :-)

regards,

Mikey

-----------------------
InterMutual Healthcare from Totalise. Peace of mind at an affordable price.
Visit http://www.intermutual.com/health/



Reply via email to