[PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread pw
Hello, Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread pw
Philip Hallstrom wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for HTTP POST PHP example will get you the code you need. Thanks, I googled and, as you said, there was code

[PHP] problem generating PNG using image functions

2003-11-18 Thread pw
Hello, I have some php code that I moved from one serve to another. The code in question generates some PNG images on the fly and works nicely on the old server. After moving the code to the new server only one of the PNG images now draws. The other images come back with : The image http://url;

Re: [PHP] problem generating PNG using image functions

2003-11-18 Thread pw
Hello again, I just found the problem: Fatal error: imageellipse(): requires GD 2.0 or later in imgtest.php on line 271Hope this helps someone else.Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Apache Build Problem

2004-01-16 Thread pw
Hello, I am trying to build php-4.3.3 into apache_1.3.28 as a module. I configure php --with-apache=/apache/source/path and the php make process puts the source for mod_php4 into /apache/source/path/src/modules/php4/ /apache/source/path/src/include/ap_config.h:77:28: ap_config_auto.h: No such

Re: [PHP] PHP Apache Build Problem (Correction to original question)

2004-01-16 Thread pw
/apache/source/path/src/modules/php4/ /apache/source/path/src/include/ap_config.h:77:28: ap_config_auto.h: No such file or directory This goes away if I run 'configure' once for apache. Then I carry on as in the previous post. Sorry about my editing. Peter -- PHP General Mailing List

[PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread pw
Hello, I have looked over the various documentation regarding using php as a CGI program. What I have are PHTML scripts that I wish to run through php via CGI, not through the module. In my httpd.conf file I have placed the lines: AddHandler phtml-script .phtml Action phtml-script /cgi-bin/php

Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread pw
Hello, Thanks for the info. I am aware of the security problems around this. The methods described in the manual were not working so I decided to try this on an internal server to find out why. I am using apache 1.3.23 and php 4.3.3 on linux with a 2.4 kernel. I can't use the php module

Re: [PHP] Running PHP as a CGI, chasing my own tail....(resolved)

2004-01-21 Thread pw
CGI or CLI? I'm betting on the latter because I'm not aware. Yes, available via CLI for CGI. My mistake. The third party app has thread safety issues that require php to be run as a command line CGI rather than a module. The problem with the module, as stated perviously, is not with php,

[PHP] PHP/PearDB works on commandline but not via http....

2004-08-18 Thread pw
Hello, I have an interesting problem with PostgreSQL via PearDB and PHP 4.3.3 . I have a php page that opens a remote connection to a Postgres database, performs a query, lists the results and then closes the connection. If I run the php from the command line the connection and query work fine.

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-18 Thread pw
Justin Patrin wrote: Can't help you unless you give us an error... There's no error. DB_Error::toString() returns the following. [: message= code=0 mode= level= prefix= info=] Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-18 Thread pw
Matthew Sims wrote: And check to see that PostgreSQL is accepting network connections rather than localhost. Is it listening to a port? Connecting remotely to postgres via the command line: psql -h nnn.nnn.nnn.nnn database_name -p 5432 -U user -W works fine. Like I wrote before, if I run the same

Re: [PHP] PHP/PearDB works on commandline but not via http....

2004-08-19 Thread pw
Justin Patrin wrote: Did you try: if(PEAR::isError($db)) { echo $db-getMessage().' '.$db-getUserInfo(); } It's probably because: 1) the postgres the module isn't in the PHP that apache is using 2) the postgres module isn't loaded in the PHP that apache is using 3) the postgres module in the

[PHP] Blocking the direct download of a file

2007-05-07 Thread pw
Hello, I have a phtml file that contains a reference to a java archive (jar) file. I only want the archive used in the context of a specific html page. I don't want the archive to be downloaded directly. I thought, at first, I could just use a php page as my jar reference: html body applet

Re: [PHP] Reply to an EMAIL get posted in a mySQL TABLE

2010-10-28 Thread PW
Oh yeah one other thing that confused me at first... The various articles talk about having PHP installed as CGI, but all modern PHP installs include PHP command line interface (CLI). This serves the same purpose. No CGI required. On Oct 28, 2010, at 12:24 PM, Don Wieland wrote: Hi gang,

Re: [PHP] Reply to an EMAIL get posted in a mySQL TABLE

2010-10-28 Thread PW
Weird! I just got back on this list by accident last night and I just happen to be writing one of these this moment. The general scheme is: -Create a mail alias that points to a PHP cli script. -Write a script that parses out the DB stuff you need etc. (How hard can that be!?) No need for

Re: [PHP] Reply to an EMAIL get posted in a mySQL TABLE

2010-10-28 Thread PW
Weird! I just got back on this list by accident last night and I just happen to be writing one of these this moment. The general scheme is: -Create a mail alias that points to a PHP cli script. -Write a script that parses out the DB stuff you need etc. (How hard can that be!?) No need for

Re: [PHP] MySQL Query Help

2010-11-21 Thread PW
SELECT * FROM products p LEFT JOIN criteria_values cv ON p.key=cv.key LEFT JOIN criteria c ON cv.key=c.key WHERE c.value IS NOT NULL Hard to answer without more detail, but I am guessing the answer will be something like the above. Your question makes it hard to understand whether c or cv is