php-windows Digest 6 Mar 2003 03:24:29 -0000 Issue 1620

Topics (messages 18859 through 18867):

Re: custom extensions..
        18859 by: Brian 'Bex' Huff

Re: LDAP Problems (PHP4 + Apache2 + Windows XP)
        18860 by: Shaffin Bhanji

Re: $_Post doesn´t work
        18861 by: Oliver Steimer

Re: unique month-year (MySQL->php)
        18862 by: Bobo Wieland

Re: Anyone using PHP with activePDF Toolkit?
        18863 by: Christoph Grottolo

php_xslt: xslt_set_encoding
        18864 by: Michel Sahyoun

remote URL .jpg
        18865 by: Anthony Ritter

Mail Function Problem
        18866 by: Jason Hawkins
        18867 by: Manuel Lemos

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 ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


that's easy... just follow these instructions here, and you can use any kind of extension you want. The popular ones are php, php3, inc, and phtml, but you can use foobar if you wish:

http://www.php.net/manual/en/install.iis.php#install.iis.iis4

- --

Brian 'Bex' Huff <[EMAIL PROTECTED]>
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150


| Hi, | I'm using PHP 4.3.1 and Windows IIS-5 (on WinXP), and I'm wanting to set up a custom file extension to be processed by PHP... | | instead of using "blah.com/image.php?...." | i'd like to use "blah.com/image?..." or "blah.com/.image?..." | | Is this possible to set up (on such a setup as mine), and if so, how do I do it? | Thanks, | Tom Bradbury



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+Zh6bmexGJFoGoVARAmMJAKC2gGd6Ppf0gC1DhrJ8ZUrQNGjmHwCdGc/M
Mz4sg+je/CT/Av9kwW2onKY=
=AlLt
-----END PGP SIGNATURE-----


--- End Message ---
--- Begin Message ---
Hello,

I have configured the php.ini file accordingly. When I load the
php_java.dll extension, I have no issues but when I try to do the same
for php_ldap.dll, I get an error:

Unknown(): Unable to load dynamic library
'c:\php\extensions\php_ldap.dll' - The specified module could not be
found

The dll exists and am out of ideas how to get this working. Has anyone
experienced this, if so, can you please share what I need to do to
resolve this problem!!!

Thanks,


Shaffin N. Bhanji 
Technical Manager 
Cambridge Technology Partners, the global eServices company of Novell,
Inc. 
www.ctp.com 
905.946.4817 | office 
416.524.9520 | cell 
905.940.2688 | fax 
[EMAIL PROTECTED] 
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
the problem was that i wrote $_Post and not $_POST !
Now it works fine...thanks for helping !

Oliver

"Ryan Marrs" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Try:

<html>
<body>
<?
if ($_POST["submit"] {
?> Daten wurden eingetragen <?
}
?>
<form action="<? print($_SERVER["PHP_SELF"]); ?>" method="post">
<input type="submit" name="submit" value="Daten eintragen">
</form>

</body>
</html>

___________________________________
Ryan Marrs
Web Developer
Sandler & Travis Trade Advisory Services, Inc.
248.474.7200 x 183
248.474.8500 (fax)
www.strtrade.com


-----Original Message-----
From: Oliver Steimer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 5:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $_Post doesn´t work

Hi there ,

I´m trying PHP and have a problem with with the superglobals.

I use Apache 1.3.27 and php 4.3.1

this is my script:


<html>
<body>
<?php

if ($_Post['submit'] {

echo (" Daten wurden eingetragen");

}

<form action="" method="post">
<input type="submit" name="submit" value="Daten eintragen">
</form>

</body>
</html>

but my script won´t do anything !!

Any one who can help ?

regards
Oliver



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
Hi again. I took a closer look at the archives and found the solution
myself! Sorry for not doing that first thing...

.bobo

----- Original Message -----
From: "Bobo Wieland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 12:36 PM
Subject: [PHP-WIN] unique month-year (MySQL->php)


> Hi all!
>
> I have a mysql table with a timestamp field. I need to get the information
> on which month's and year's there are present in this table. How can I get
> this info? It's important that I don't get any duplicates...
>
> $q = "SELECT (?) AS year, (?) AS month FROM my_table ORDER BY year,
month";
>
>
> thanks in advance!
>
>
> . bobo .
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Ron Herhuth) wrote:

>
>I'm trying to dynamically generate PDFs using an FDF form, a SQL database and PHP 
>along with activePDF Toolkit.  I basically have created an FDF form using Acrobat and 
>I need to auto populate the form and save a PDF from the resulting data merge.  Does 
>anyone have any samples of how to do this using PHP?  I'm on a very tight deadline so 
>any help will be greatly appreciated.
>
>Thanks,
>Ron

Did you have a look at www.php.net/fdf ? If it's what you need, try to
get it working. If you can't, please have a look at
http://bugs.php.net/14877 and add your stuff if you have something new
to say.

Christoph

--- End Message ---
--- Begin Message ---
I have downloaded the 4.3.1 windows binaries zip package and it doesn't seem
to have xslt_set_encoding() enabled.

Can anyone confirm this? And short of getting the sources and recompiling
PHP, is there another binary distribution that would have
xslt_set_encoding() enabled?

Thanks,

Michel



--- End Message ---
--- Begin Message ---
Christoph Grottolo wrote in message:

> The manual says that you have to check if creation from url works.
> Maybe you check first if your script works with a local jpg, then if
> you can include a remote url (include ("http://www.nytimes.com";);).

> To send the image you must use:

> <?
> header("Content-type: image/jpeg");
> imagejpeg($thenewimage,'',80);
> imagedestroy($im);
> ?>

> You can not simply echo your image handler ($thenewimage), because
> it's just a resource (pointer) and not a string. To use it you have to
> convert it (back) into a common image format (jpeg, png...)
>
> Additionally you have to send a header in order to tell the browser
> that you're going to send an image (and not a html page).
>
> Just read on in the manual, you know where...
>
> Christoph
...............................................................

Christoph,
I'm not sure what either the arguments that you supplied

like:
''
or
80

is in the function call below.
................................
imagejpeg($thenewimage,'',80);
...............................

Please advise.

Thank you.
TR





--- End Message ---
--- Begin Message ---
Hi, can anyone help??
I am trying to use the mail() function. It works for addresses that are internal on 
the intranet - but as soon as I try sending to an external address such as [EMAIL 
PROTECTED] I have problems with the folllowing error message:
SMTP server response: 550 Relaying denied

here is the portion code:

        $firstName = $data["FirstName"];
        $emailAddress = $data["EmailAddress"];
        
        $mail_to = $emailAddress;
        $mail_subject = "RE:  NEWS SUBSCRIPTION";
        $mail_body = "Dear " .$firstName . "My Message";

        $myname = "BGGS WebMaster"; 
        $myemail = "[EMAIL PROTECTED]"; 
        $contactname = $firstName; 
        $contactemail = $mail_to; 
        $message = $mail_body; 
        $subject = $mail_subject; 

        $headers = "MIME-Version: 1.0\r\n"; 
        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
        $headers .= "From: ".$myname." <".$myemail.">\r\n"; 
        $headers .= "To: ".$contactname." <".$contactemail.">\r\n"; 
        $headers .= "Reply-To: ".$myname." <$myemail>\r\n"; 
        $headers .= "X-Priority: 1\r\n"; 
        $headers .= "X-MSMail-Priority: High\r\n"; 
        $headers .= "X-Mailer: Just My Server"; 

        if(mail($contactemail, $subject, $message, $headers)){
                echo "Refusal email has been sent";
        }else {
                echo "Failed to send the message";
        }

Thanks - if someone could help - I'm using WIN2K, PHP4.3

Jason
This email  (including attachments) is intended for the addressee(s) named above. No 
part of it should be reproduced, adapted or transmitted without the sender's consent. 
It is confidential, subject to copyright and may be subject to legal or other 
privilege.  None of these rights, or any other rights, are waived if you have received 
this email in error or without permission. If you have received this email in error, 
please let the sender know by reply email, delete it from your system, destroy all 
copies and do not disclose, use or forward this email. Unless explicitly attributed, 
the opinions expressed in this message do not represent the official position or 
opinions of Brisbane Girls Grammar School and should not be relied upon. Whilst this 
email has been scanned by an up to date virus scanner and all care has been taken, 
recipients should check this email and any attachments for the presence of viruses.  
Brisbane Girls Grammar School disclaims all liability for loss or damage caused by 
viruses transmitted by this email.

--- End Message ---
--- Begin Message --- Hello,

On 03/05/2003 11:07 PM, Jason Hawkins wrote:
Hi, can anyone help??
I am trying to use the mail() function. It works for addresses that are internal on 
the intranet - but as soon as I try sending to an external address such as [EMAIL 
PROTECTED] I have problems with the folllowing error message:
SMTP server response: 550 Relaying denied

This most likely means that you need to authenticate to relay the message. The mail() function does not support authentication. You may want to try this class to pass the authentication credentials:


http://www.phpclasses.org/smtpclass

You may also want to try this other class that comes with sub class to send message via SMTP using the class above:

http://www.phpclasses.org/mimemessage


--


Regards,
Manuel Lemos


--- End Message ---

Reply via email to