[PHP] Using $_GET for POST

2008-07-30 Thread Edward Diener
In handling an HTTP POST request I came across some PHP code, which I need to modify for my own purposes, which has code like this: if ( ! (isset($_GET['x']) $_GET['x'] == 20) ) { // Do something by returning an error } Can this ever be correct when the form looks like:

[PHP] Returning response includes HTML form data

2008-08-02 Thread Edward Diener
I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want the form to be included

[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
brian wrote: Edward Diener wrote: Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output, and it outputs

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does

[PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and the script is not

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
Dan Joseph wrote: On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener [EMAIL PROTECTED]wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server

[PHP] Converting JPG to Windows BMP

2008-08-29 Thread Edward Diener
I have a JPG file on the server which I want to convert to a Windows BMP file. How can I do this in PHP ? I did not see a GD image function for doing this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? In Outlook ( and Outlook Express ) there is the notion of a high priority mail item, but I do not know if this corresponds to anything in an RFC for mail. Nor do I know how to mimic this in PHP.

Re: [PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? printf() ? All you need to do is a add header like X-Priority: High. It's just a line of text. Thanks for pointing this header out. My search for X

Re: [PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? printf() ? All you need to do is a add header like X-Priority: High. It's just a line of text. Thanks for pointing this header out. My search for X

[PHP] Encryption/decryption of PHP data

2008-12-30 Thread Edward Diener
My client application needs to send data to a PHP page in encrypted form and have the PHP code able to decrypt it. Likewise the PHP code needs to return data to my application encrypted and my client application needs to be able to decrypt it. My application is written in C++ and naturally the

Re: [PHP] Encryption/decryption of PHP data

2008-12-31 Thread Edward Diener
, which use any software distributed with this license, make their source code freely available to end users. If this is either not the case or no longer the case, then I will be glad to use GnuPG. Bastien Sent from my iPod On Dec 30, 2008, at 10:50 PM, Edward Diener el...@tropicsoft.com wrote

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Phpster wrote: In reading the license I believe it refers to the gnupg itself, not the application it may be embedded in. You are completely free to use gnupg as you choose including modifying it to meet your needs. I always thought the GNU public

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Edward Diener
Jessen p...@computer.org wrote: Edward Diener wrote: Phpster wrote: In reading the license I believe it refers to the gnupg itself, not the application it may be embedded in. You are completely free to use gnupg as you choose including modifying it to meet your needs. I always thought the GNU

[PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-21 Thread Edward Diener
I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets to me. If the 'to' address is anything other than an ATT address, the mail gets to the recipient. The PHP code for sending the

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-21 Thread Edward Diener
Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener el...@tropicsoft.com wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets to me. If the 'to' address is anything

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-21 Thread Edward Diener
kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail server from the http server I doubt ATT will give me access to the log files on their incoming mail server. -- PHP

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-21 Thread Edward Diener
Chris wrote: kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail server from the http server Somehow I doubt ATT gives out that sort of access ;) Exactly. The idea

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Edward Diener
scubak1w1 wrote: Edward Diener el...@tropicsoft.com wrote in message news:d9.64.21597.c829e...@pb1.pair.com... Chris wrote: kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Edward Diener
Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener el...@tropicsoft.com wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets to me. If the 'to' address is anything

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Edward Diener
Shawn McKenzie wrote: Edward Diener wrote: Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener el...@tropicsoft.com wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Edward Diener
Chris wrote: Any light anyone can throw on the 'nob...@myserver.com' address would be most welcome. It is using the apache user @ your host name as the default. Try this: ini_set('sendmail_from', 'whate...@wherever.com'); I will try this but I do not understand why it should work. I

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Edward Diener
Chris wrote: Edward Diener wrote: Chris wrote: Any light anyone can throw on the 'nob...@myserver.com' address would be most welcome. It is using the apache user @ your host name as the default. Try this: ini_set('sendmail_from', 'whate...@wherever.com'); I will try this but I do