php-install Digest 4 Mar 2003 21:16:51 -0000 Issue 1276

Topics (messages 10262 through 10282):

Re: HELP-- PHP wouldn't work with Apache/W2K
        10262 by: Patrick LOK
        10263 by: Sharat Hegde
        10264 by: Patrick LOK
        10266 by: Patrick LOK

Re: PHP and SERVER variables
        10265 by: Sharat Hegde

Problem with /dev/random on Solaris
        10267 by: Jonas Blåberg

Re: Cookie
        10268 by: Rich Gray

PHP 4.3.1 ERROR with relative paths!
        10269 by: Steven Apostolou
        10270 by: Steven Apostolou
        10271 by: Rich Gray
        10272 by: Steven Apostolou
        10273 by: Rich Gray

"GET" method can not get variables
        10274 by: E.E. Jan
        10275 by: E.E. Jan
        10276 by: Ryan Williams
        10278 by: Nick Gianakas

GET can not get variables
        10277 by: E.E. Jan

php_pgsql.dll
        10279 by: Peter Kmet

Couldn't open
        10280 by: Atif Jakupovic

Win98-PWS4 CGI Error
        10281 by: Ed Sims

Install Binary vs ISAPI on IIS?
        10282 by: Theisen, Gary

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 ---
RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2KI have exact config/setup w/ 
yours except loading sapi!  Mine is working fine!

FYI, SAPI won't work on W2K; so the last 2 inserts are meaningless (you may remove 
them).

DId you 'Restart' Apache?
./pl


  "Jip Kongruengkit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  Sorry all, I forgot to mention these steps: 

  In Apache's config file (httpd.conf), I did the following: 
  - inserted ScriptAlias /php/ "c:/php/" 
  - inserted AddType application/x-httpd-php .php 
  - inserted Action application/x-httpd-php "/php/php.exe" 
  - inserted LoadModule php4_module c:/php/sapi/php4apache.dll 
  - inserted AddModule mod_php4.c 

  -----Original Message----- 
  From: Rich Gray [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 03, 2003 11:55 PM 
  To: Jip Kongruengkit; [EMAIL PROTECTED] 
  Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K 



  > Hi all, 
  > 
  > I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000 
  > Server, and I've 
  > created a test file with just <? php phpinfo(); ?>, but when I 
  > tried to view 
  > that file via my browser, I got a blank screen.  And when I did 'view 
  > source' in the browser, I was able to see the source code of the 
  > PHP script. 
  > 
  > According to the FAQ, this means that the web server did not send 
  > the script 
  > to PHP for interpretation, but I have double checked the Apache 
  > configuration against the PHP installation instructions many many 
  > times, and 
  > there doesn't seem to be anything wrong. 
  > 
  > Here are the steps that I followed when installing PHP: 
  > 1. Extracted the files to c:\php 
  > 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to 
  > c:\winnt\system32 
  > 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini 
  > 4. In php.ini, set extension_dir = c:\php\extensions\ 
  > 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is 
  > also where I 
  > put my test file) 
  > 6. Gave php.ini read permission to Everyone. 
  > 
  > Is there anything that I missed or did wrong?  Thanks for any help. 

  Er ... did you configure Apache? 

  Rich 

--- End Message ---
--- Begin Message ---
I am using the CGI access and not the PHP4 module. Will that cause a
problem?

Hence I do not have the "LoadModule php4_module c:/php/sapi/php4apache.dll"
line in my Apache config file.

Regards,
Sharat Hegde
Phone: 6575800 Ext 4610
Direct: 6566615


-----Original Message-----
From: Patrick LOK [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K


RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2KI have exact
config/setup w/ yours except loading sapi!  Mine is working fine!

FYI, SAPI won't work on W2K; so the last 2 inserts are meaningless (you may
remove them).

DId you 'Restart' Apache?
./pl


  "Jip Kongruengkit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
  Sorry all, I forgot to mention these steps: 

  In Apache's config file (httpd.conf), I did the following: 
  - inserted ScriptAlias /php/ "c:/php/" 
  - inserted AddType application/x-httpd-php .php 
  - inserted Action application/x-httpd-php "/php/php.exe" 
  - inserted LoadModule php4_module c:/php/sapi/php4apache.dll 
  - inserted AddModule mod_php4.c 

  -----Original Message----- 
  From: Rich Gray [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 03, 2003 11:55 PM 
  To: Jip Kongruengkit; [EMAIL PROTECTED] 
  Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K 



  > Hi all, 
  > 
  > I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000 
  > Server, and I've 
  > created a test file with just <? php phpinfo(); ?>, but when I 
  > tried to view 
  > that file via my browser, I got a blank screen.  And when I did 'view 
  > source' in the browser, I was able to see the source code of the 
  > PHP script. 
  > 
  > According to the FAQ, this means that the web server did not send 
  > the script 
  > to PHP for interpretation, but I have double checked the Apache 
  > configuration against the PHP installation instructions many many 
  > times, and 
  > there doesn't seem to be anything wrong. 
  > 
  > Here are the steps that I followed when installing PHP: 
  > 1. Extracted the files to c:\php 
  > 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to 
  > c:\winnt\system32 
  > 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini 
  > 4. In php.ini, set extension_dir = c:\php\extensions\ 
  > 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is 
  > also where I 
  > put my test file) 
  > 6. Gave php.ini read permission to Everyone. 
  > 
  > Is there anything that I missed or did wrong?  Thanks for any help. 

  Er ... did you configure Apache? 

  Rich 
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

--- End Message ---
--- Begin Message ---
I have an experience with PHP 2.x on Linux that the source code is returned
rather than it is executed!
You know what!  It is the problem of short-tag <? .... ?> from old codes;
php 2.x doesn't like short-tag any more!  I spent a week before I sense it!

I am not sure but you should check syntax of your test file is there a space
between "<?" & "php";
should be <?php phpinfo(); ?> -- no space!

Goodluck
./pl



"Patrick Lok" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I have exact config/setup w/ yours except loading sapi!  Mine is working
fine!

FYI, SAPI won't work on W2K; so the last 2 inserts are meaningless (you may
remove them).

DId you 'Restart' Apache?
./pl


  "Jip Kongruengkit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
  Sorry all, I forgot to mention these steps:

  In Apache's config file (httpd.conf), I did the following:
  - inserted ScriptAlias /php/ "c:/php/"
  - inserted AddType application/x-httpd-php .php
  - inserted Action application/x-httpd-php "/php/php.exe"
  - inserted LoadModule php4_module c:/php/sapi/php4apache.dll
  - inserted AddModule mod_php4.c

  -----Original Message-----
  From: Rich Gray [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 03, 2003 11:55 PM
  To: Jip Kongruengkit; [EMAIL PROTECTED]
  Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K



  > Hi all,
  >
  > I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000
  > Server, and I've
  > created a test file with just <? php phpinfo(); ?>, but when I
  > tried to view
  > that file via my browser, I got a blank screen.  And when I did 'view
  > source' in the browser, I was able to see the source code of the
  > PHP script.
  >
  > According to the FAQ, this means that the web server did not send
  > the script
  > to PHP for interpretation, but I have double checked the Apache
  > configuration against the PHP installation instructions many many
  > times, and
  > there doesn't seem to be anything wrong.
  >
  > Here are the steps that I followed when installing PHP:
  > 1. Extracted the files to c:\php
  > 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
  > c:\winnt\system32
  > 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
  > 4. In php.ini, set extension_dir = c:\php\extensions\
  > 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is
  > also where I
  > put my test file)
  > 6. Gave php.ini read permission to Everyone.
  >
  > Is there anything that I missed or did wrong?  Thanks for any help.

  Er ... did you configure Apache?

  Rich



--- End Message ---
--- Begin Message ---
CGI access works just fine!
./pl


"Sharat Hegde" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am using the CGI access and not the PHP4 module. Will that cause a
> problem?
>
> Hence I do not have the "LoadModule php4_module
c:/php/sapi/php4apache.dll"
> line in my Apache config file.
>
> Regards,
> Sharat Hegde
> Phone: 6575800 Ext 4610
> Direct: 6566615
>
>
> -----Original Message-----
> From: Patrick LOK [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K
>
>
> RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2KI have exact
> config/setup w/ yours except loading sapi!  Mine is working fine!
>
> FYI, SAPI won't work on W2K; so the last 2 inserts are meaningless (you
may
> remove them).
>
> DId you 'Restart' Apache?
> ./pl
>
>
>   "Jip Kongruengkit" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>   Sorry all, I forgot to mention these steps:
>
>   In Apache's config file (httpd.conf), I did the following:
>   - inserted ScriptAlias /php/ "c:/php/"
>   - inserted AddType application/x-httpd-php .php
>   - inserted Action application/x-httpd-php "/php/php.exe"
>   - inserted LoadModule php4_module c:/php/sapi/php4apache.dll
>   - inserted AddModule mod_php4.c
>
>   -----Original Message-----
>   From: Rich Gray [mailto:[EMAIL PROTECTED]
>   Sent: Monday, March 03, 2003 11:55 PM
>   To: Jip Kongruengkit; [EMAIL PROTECTED]
>   Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K
>
>
>
>   > Hi all,
>   >
>   > I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000
>   > Server, and I've
>   > created a test file with just <? php phpinfo(); ?>, but when I
>   > tried to view
>   > that file via my browser, I got a blank screen.  And when I did 'view
>   > source' in the browser, I was able to see the source code of the
>   > PHP script.
>   >
>   > According to the FAQ, this means that the web server did not send
>   > the script
>   > to PHP for interpretation, but I have double checked the Apache
>   > configuration against the PHP installation instructions many many
>   > times, and
>   > there doesn't seem to be anything wrong.
>   >
>   > Here are the steps that I followed when installing PHP:
>   > 1. Extracted the files to c:\php
>   > 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
>   > c:\winnt\system32
>   > 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
>   > 4. In php.ini, set extension_dir = c:\php\extensions\
>   > 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is
>   > also where I
>   > put my test file)
>   > 6. Gave php.ini read permission to Everyone.
>   >
>   > Is there anything that I missed or did wrong?  Thanks for any help.
>
>   Er ... did you configure Apache?
>
>   Rich
> *********************************************************************
> Disclaimer: The information in this e-mail and any attachments is
> confidential / privileged. It is intended solely for the addressee or
> addressees. If you are not the addressee indicated in this message, you
may
> not copy or deliver this message to anyone. In such case, you should
destroy
> this message and kindly notify the sender by reply email. Please advise
> immediately if you or your employer does not consent to Internet email for
> messages of this kind.
> *********************************************************************



--- End Message ---
--- Begin Message ---
Also, one more thing I noticed was that <?php phpinfo(); ?> shows the Server
and PHP variables fine.

Regards,
Sharat Hegde
Phone: 6575800 Ext 4610
Direct: 6566615


-----Original Message-----
From: Sharat Hegde [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP and SERVER variables


Hello,

I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to
access the PHP and SERVER variables on my PHP 4 installation. My code is as
follows:

<?php
        echo $SERVER_SOFTWARE;
        echo $PHP_SELF;
?>

However, I get the following error:

Notice: Undefined variable: SERVER_SOFTWARE in c:\program files\apache
group\apache\htdocs\test\test1.php on line 2

Notice: Undefined variable: PHP_SELF in c:\program files\apache
group\apache\htdocs\test\test1.php on line 3

Can you help out?

Thanks,
Sharat

*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

--- End Message ---
--- Begin Message ---
Hello!

I have installed PHP 4.2.3 on Solaris 7. 

Unfortunately SUNWski (for /dev/random functionality) was not installed, but I found 
it on a Sun CD and installed it. Seemed to be working great, even though I did not 
know the version of the Sun CD.

But when I tried using some PHP scripts the web server process seems to hang when 
reading /dev/random.

I have tried to restart the cryptorand process with no luck. The permissions on 
/dev/random are 644.

So my guess is the SUNWski package has the wrong version. See "pkginfo -l SUNWski" 
below:

   PKGINST:  SUNWski
      NAME:  SKI 1.0 Software (User Package)
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  1.0,REV=1998.09.24.00.00
   BASEDIR:  /
    VENDOR:  Sun Microsystems
      DESC:  SKI Software (User Package)
    PSTAMP:  mcm-ultra1>Fri Dec  4 14:23:39 PST 1998
  INSTDATE:  Feb 06 2003 10:21
    VSTOCK:  258-6422-05
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:     36 installed pathnames
                10 shared pathnames
                 4 linked files
                11 directories
                16 executables
              3173 blocks used (approx)

Anyone who has some ideas about what version should be used? Should I use a non-Sun 
/dev/random package instead?

Thanx /jonas


Jonas Blåberg
  Cell Network Sverige AB
  Kruthusgatan 17,6
  S-411 04 Göteborg
[EMAIL PROTECTED]
office: +46-(0)31-739 84 54
mobile: +46-(0)709-95 00 68



--- End Message ---
--- Begin Message ---
> I have PHP installed on Win2k IIS5.0 and I am trying to run the
> following script:
>
> Here's the main code that is being executed:
>
>       setcookie('lang', $_POST['lang'], time()+3600, '/');
>
>       header('Location: index.php');
>
> What should happen is that the cookie is set [setcookie('lang',
> $_POST['lang'], time()+3600, '/')] and then the redirect happens
> [header('Location: index.php')].
>
> For some reason the server will not set the cookie in my browser,
> any ideas?

This is a known bug with IIS I'm afraid - the workaround is to use a
meta-refresh instead of header()

Rich


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

Just installed PHP4.3.1 on OpenBSD! Everything went fine but now I get
the error "failed to create stream: No such file or directory". with
relative paths!

Example: (script in the web-root)
<?php
    require_once ('../mysql.inc.php');

?>

What's wrong? Nothing has been changed in the php.ini file!

Please help.. websites are down...

Greetings,

-- 
Steven Apostolou <[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
> Hello everybody,
> 
> Just installed PHP4.3.1 on OpenBSD! Everything went fine but now I get
> the error "failed to create stream: No such file or directory". with
> relative paths!
> 
> Example: (script in the web-root)
> <?php
>     require_once ('../mysql.inc.php');
> 
> ?>
> 
> What's wrong? Nothing has been changed in the php.ini file!
> 
> Please help.. websites are down...

Some onther info:

In php.ini file:
include_path = ".:/usr/local/lib/php"

configure command (Is  the same as with the previous installation
(PHP4.2)):

'./configure' '--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/var/www/conf' 
'--enable-calendar' '--enable-bcmath' '--with-yp' '--with-pcre-regex' '--enable-ftp' 
'--with-xml' '--with-openssl' '--with-zlib' '--enable-sysvsem' '--enable-sysvshm' 
'--enable-sockets' '--with-mysql=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc'

Greetings,

-- 
Steven Apostolou <[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Steven Apostolou [mailto:[EMAIL PROTECTED]
> Sent: 04 March 2003 11:53
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP 4.3.1 ERROR with relative paths!
>
>
> Hello everybody,
>
> Just installed PHP4.3.1 on OpenBSD! Everything went fine but now I get
> the error "failed to create stream: No such file or directory". with
> relative paths!
>
> Example: (script in the web-root)
> <?php
>     require_once ('../mysql.inc.php');
>
> ?>
>
> What's wrong? Nothing has been changed in the php.ini file!
>
> Please help.. websites are down...
>
> Greetings,

Are permissions OK on the file to be included (and its directory) wrt to the
webserver process?
I know nothing has changed in php.ini but is open_basedir or safe_mode
switched on?

Rich


--- End Message ---
--- Begin Message ---
> Are permissions OK on the file to be included (and its directory) wrt to the
> webserver process?
> I know nothing has changed in php.ini but is open_basedir or safe_mode
> switched on?

Permissions are ok (755).
OpenBase_dir is commented out
and sofe_mode = Off

N changed with the all files. The only difference is the PHP
version.othing has

I really don't get it.... The file is there. If I use require_once with
the absolute path it works but this solution is impossiblie to do for
all the code on our machine... as you might imagine. :-(

Is this a bug in PHP4.3.1? Do you have this problem with this PHP
version?

Greetings,


-- 
Steven Apostolou <[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
> > Are permissions OK on the file to be included (and its
> directory) wrt to the
> > webserver process?
> > I know nothing has changed in php.ini but is open_basedir or safe_mode
> > switched on?
>
> Permissions are ok (755).
> OpenBase_dir is commented out
> and sofe_mode = Off
>
> N changed with the all files. The only difference is the PHP
> version.othing has
>
> I really don't get it.... The file is there. If I use require_once with
> the absolute path it works but this solution is impossiblie to do for
> all the code on our machine... as you might imagine. :-(
>
> Is this a bug in PHP4.3.1? Do you have this problem with this PHP
> version?
>
> Greetings,

Is that 755 for both file and directory? Does
file_exists('../myfile.inc.php') return true?

I'm not running 4.3.1 on FreeBSD so I can't say if it is a bug specific to
this version/platform. This bug report looks similar...
http://bugs.php.net/bug.php?id=21674

Rich


--- End Message ---
--- Begin Message ---
Could anybody give me a pointer for my problem?
I just installed php 4.3.1 on my w2k platform
I also installed Apache 2.0.43.
I can get "hello world" and "phpinfo()"  working.
However, when I try a simple form like this following:


<html>
<title> test </title>
<body>
<form action="foo.php" method="get">
    Name:  <input type="text" name="username"><br>
    Email: <input type="text" name="email"><br>
    <input type="submit" name="submit" value="Submit me!">
    <input type="reset" name="reset" value="reset!">
</form>
</body>
</html>


and my foo.php is
<?php
   print ("hello, username = $username");
?>
I got : hello, username =
The $username is alwasy empty.....
I know my form and GET action is working. I saw the following query string
in url after I hit submit button:
http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
However, php is not able to get varialbe $username and $email

Any ideas?

I tried the same script is ipower website, it works...
Do I miss any thing in php.ini?
I also switch to apache 1.37, I got the same results. The variable is still
empty.

Thanks
E.E.




--- End Message ---
--- Begin Message ---
Could anybody give me a pointer for my problem?
I just installed php 4.3.1 on my w2k platform
I also installed Apache 2.0.43.
I can get "hello world" and "phpinfo()"  working.
However, when I try a simple form like this following:


<html>
<title> test </title>
<body>
<form action="foo.php" method="get">
    Name:  <input type="text" name="username"><br>
    Email: <input type="text" name="email"><br>
    <input type="submit" name="submit" value="Submit me!">
    <input type="reset" name="reset" value="reset!">
</form>
</body>
</html>


and my foo.php is
<?php
   print ("hello, username = $username");
?>

My $username is alwasy empty.....
I know my form and GET action is working. I saw the following query string
in url after I hit submit button:
http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
However, php is not able to get varialbe $username and $email

Any ideas?

I tried the same script is ipower website, it works...
Do I miss any thing in php.ini?
I also switch to apache 1.37, I got the same results. The variable is still
empty.

Thanks
E.E.




--- End Message ---
--- Begin Message ---
$GET_['var_name'] will work.

-- 
Ryan Williams



On Tue, 4 Mar 2003, E.E. Jan wrote:

> Could anybody give me a pointer for my problem?
> I just installed php 4.3.1 on my w2k platform
> I also installed Apache 2.0.43.
> I can get "hello world" and "phpinfo()"  working.
> However, when I try a simple form like this following:
> 
> 
> <html>
> <title> test </title>
> <body>
> <form action="foo.php" method="get">
>     Name:  <input type="text" name="username"><br>
>     Email: <input type="text" name="email"><br>
>     <input type="submit" name="submit" value="Submit me!">
>     <input type="reset" name="reset" value="reset!">
> </form>
> </body>
> </html>
> 
> 
> and my foo.php is
> <?php
>    print ("hello, username = $username");
> ?>
> I got : hello, username =
> The $username is alwasy empty.....
> I know my form and GET action is working. I saw the following query string
> in url after I hit submit button:
> http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
> However, php is not able to get varialbe $username and $email
> 
> Any ideas?
> 
> I tried the same script is ipower website, it works...
> Do I miss any thing in php.ini?
> I also switch to apache 1.37, I got the same results. The variable is still
> empty.
> 
> Thanks
> E.E.
> 
> 
> 
> 
> 


--- End Message ---
--- Begin Message ---
Read the section titled, "HTTP functions" in the documentation.

Regards,
Nick


On Tue, 2003-03-04 at 08:42, E.E. Jan wrote:
> Could anybody give me a pointer for my problem?
> I just installed php 4.3.1 on my w2k platform
> I also installed Apache 2.0.43.
> I can get "hello world" and "phpinfo()"  working.
> However, when I try a simple form like this following:
> 
> 
> <html>
> <title> test </title>
> <body>
> <form action="foo.php" method="get">
>     Name:  <input type="text" name="username"><br>
>     Email: <input type="text" name="email"><br>
>     <input type="submit" name="submit" value="Submit me!">
>     <input type="reset" name="reset" value="reset!">
> </form>
> </body>
> </html>
> 
> 
> and my foo.php is
> <?php
>    print ("hello, username = $username");
> ?>
> I got : hello, username =
> The $username is alwasy empty.....
> I know my form and GET action is working. I saw the following query string
> in url after I hit submit button:
> http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
> However, php is not able to get varialbe $username and $email
> 
> Any ideas?
> 
> I tried the same script is ipower website, it works...
> Do I miss any thing in php.ini?
> I also switch to apache 1.37, I got the same results. The variable is still
> empty.
> 
> Thanks
> E.E.
> 
> 
> 

--- End Message ---
--- Begin Message ---
Could anybody give me a pointer for my problem?
I just installed php 4.3.1 on my w2k platform
I also installed Apache 2.0.43.
I can get "hello world" and "phpinfo()"  working.
However, when I try a simple form like this following:


<html>
<title> test </title>
<body>
<form action="foo.php" method="get">
    Name:  <input type="text" name="username"><br>
    Email: <input type="text" name="email"><br>
    <input type="submit" name="submit" value="Submit me!">
    <input type="reset" name="reset" value="reset!">
</form>
</body>
</html>


and my foo.php is
<?php
   print ("hello, username = $username");
?>

My $username is alwasy empty.....
I know my form and GET action is working. I saw the following query string
in url after I hit submit button:
http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
However, php is not able to get varialbe $username and $email

Any ideas?

I tried the same script is ipower website, it works...
Do I miss any thing in php.ini?
I also switch to apache 1.37, I got the same results. The variable is still
empty.

Thanks
E.E.




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

i'm trying to use php with postgres on win32 i have found some problems
with php 4.3.1 (same for php 4.3.0) and php_pgsql.dll.

When i try to load php_pgsql.dll extension in php.ini i get error notice

PHP Warning:  Unknown(): Unable to load dynamic library
'C:\Program Files\php\extensions\php_pgsql.dll' - The specified
procedure could not be found.

file php_pgsql.dll exists. I have found on internet that this problem can
be caused by missing libpq.dll from postgres distribution so i downloaded
postgresql-7.3.1 and compiled with VC5.0 interface libpq and copied
libpq.dll and libpq.lib and copied it to winnt/system32 folder (i tried php
dll extensions dir as well) but i still have same warning and pg_*
functions are not avilable.

Your help is very appreciated

Peter Kmet


--



--- End Message ---
--- Begin Message ---
I have Apache 1.3.26 and php 4.3.0 installed on the Solaris 8 server.

When I try to switch from English to French Website, my browser gives me 
this error:

        Couldn't open  http://mywebsite/e2favv.php

Everything else is working.

It works fine with php 4.2.1.

Thank you,

Atif

--- End Message ---
--- Begin Message ---
Using Win98 2nd Edit. & PWS4.0. New install of OS and PWS Feb, 2003. PHP 4.3.1 runs 
fine until it tries to access 
CGI. http://localhost/php_scripts/6/HandleContact.php and also  
http://localhost/php_scripts/8/HandleForm.php 
returns the following CGI Error

................................
CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP 
headers. The headers it did return 
are:
................................
The rest is blank. I have carefully followed the instructions for installing/editing 
php.ini with the Win Binary installation. I 
have downloaded and replaced the MSVCRT.DLL file which is supposedly able to cause 
this error. Any help would be 
grreatly appreciated.

Ed



--- End Message ---
--- Begin Message ---
Hi all,

I want to install PHP on a windows NT 4 box running IIS4 web server.
What PHP installation type is best for this? Binary, or with the ISAPI
module? Pro's, Con's?

i see that pre PHP v4.3, people were having trouble with the isapi module. 

what about with the newer versions of PHP? have these http & iis server
crashes been resolved? 

Thanks!!

P.S.  unfortunately...at this time I can't go with apache, I need to stick
with IIS.


Gary


--- End Message ---

Reply via email to