php-windows Digest 11 Jun 2003 04:45:33 -0000 Issue 1770
Topics (messages 20264 through 20270):
problems with phpmyadmin
20264 by: Chadwick, John
20266 by: Guillermo Scharffenorth
20267 by: Chadwick, John
20268 by: Joseph McDonald
20269 by: Chadwick, John
20270 by: toby z
Can't get exec() to work
20265 by: Bill Szerdy
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 ---
I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache
2.0.45. So far, I seem to have done something right, since the directory
listing for the phpmyadmin directory gives me the following:
Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80
The problem I am having is getting phpmyadmin to work. I have followed the
instructions for the Quick Install in the documentation and all I see is the
source code for the index.php3 page instead of a Web page.
Any ideas what is going on?
Thanks
John
+-------------------------------------------------+
John Chadwick, Ed.D.
New Mexico State Library
1209 Camino Carlos Rey
Santa Fe, NM 87507
505-476-9740 [EMAIL PROTECTED]
http://www.stlib.state.nm.us
--- End Message ---
--- Begin Message ---
What exactly is happening when you call the program? Do you get any error
messages?
"John Chadwick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache
> 2.0.45. So far, I seem to have done something right, since the directory
> listing for the phpmyadmin directory gives me the following:
>
> Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80
>
> The problem I am having is getting phpmyadmin to work. I have followed
the
> instructions for the Quick Install in the documentation and all I see is
the
> source code for the index.php3 page instead of a Web page.
>
> Any ideas what is going on?
>
> Thanks
>
> John
> +-------------------------------------------------+
> John Chadwick, Ed.D.
> New Mexico State Library
> 1209 Camino Carlos Rey
> Santa Fe, NM 87507
> 505-476-9740 [EMAIL PROTECTED]
> http://www.stlib.state.nm.us
>
--- End Message ---
--- Begin Message ---
When I try to access index.php3 I get no error messages at all. All I see is
the source code for the file.
Example:
<?php
/* $Id: index.php3,v 1.52 2003/05/29 14:07:37 garvinhicking Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* Gets core libraries and defines some variables
*/
require('/libraries/grab_globals.lib.php3');
require('/libraries/common.lib.php3');
// Gets the default font sizes
PMA_setFontSizes();
// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
if (empty($HTTP_HOST)) {
if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
$HTTP_HOST = $_ENV['HTTP_HOST'];
}
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
$HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
}
else if (@getenv('HTTP_HOST')) {
$HTTP_HOST = getenv('HTTP_HOST');
}
else {
$HTTP_HOST = '';
}
}
<!-- end example-->
John
-----Original Message-----
From: Guillermo Scharffenorth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: problems with phpmyadmin
What exactly is happening when you call the program? Do you get any error
messages?
"John Chadwick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache
> 2.0.45. So far, I seem to have done something right, since the directory
> listing for the phpmyadmin directory gives me the following:
>
> Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80
>
> The problem I am having is getting phpmyadmin to work. I have followed
the
> instructions for the Quick Install in the documentation and all I see is
the
> source code for the index.php3 page instead of a Web page.
>
> Any ideas what is going on?
>
> Thanks
>
> John
> +-------------------------------------------------+
> John Chadwick, Ed.D.
> New Mexico State Library
> 1209 Camino Carlos Rey
> Santa Fe, NM 87507
> 505-476-9740 [EMAIL PROTECTED]
> http://www.stlib.state.nm.us
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Do you have a cpl lines like this in your httpd.conf?
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .inc
if your file is name extension is php3, you should have atleast .php & .php3
on the AddType line. I have .inc cause all of my include() files are named
with extension .inc
"John Chadwick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache
> 2.0.45. So far, I seem to have done something right, since the directory
> listing for the phpmyadmin directory gives me the following:
>
> Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80
>
> The problem I am having is getting phpmyadmin to work. I have followed
the
> instructions for the Quick Install in the documentation and all I see is
the
> source code for the index.php3 page instead of a Web page.
>
> Any ideas what is going on?
>
> Thanks
>
> John
> +-------------------------------------------------+
> John Chadwick, Ed.D.
> New Mexico State Library
> 1209 Camino Carlos Rey
> Santa Fe, NM 87507
> 505-476-9740 [EMAIL PROTECTED]
> http://www.stlib.state.nm.us
>
--- End Message ---
--- Begin Message ---
The AddType line did it. Now at least I have something to go on. Now I get
the following:
phpMyAdmin - Error
phpMyAdmin was unable to read your configuration file!
This might happen if php finds a parse error in it or php cannot find the
file.
Please call the configuration file directly using the link below and read
the php error message(s) that you receive. In most cases a quote or a
semicolon is missing somewhere.
If you receive a blank page, everything is fine.
Thanks!
John
-----Original Message-----
From: Joseph McDonald [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: problems with phpmyadmin
Do you have a cpl lines like this in your httpd.conf?
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .inc
if your file is name extension is php3, you should have atleast .php & .php3
on the AddType line. I have .inc cause all of my include() files are named
with extension .inc
"John Chadwick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have installed PHP 4.3.2 on a Windows 2000 server machine running Apache
> 2.0.45. So far, I seem to have done something right, since the directory
> listing for the phpmyadmin directory gives me the following:
>
> Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us Port 80
>
> The problem I am having is getting phpmyadmin to work. I have followed
the
> instructions for the Quick Install in the documentation and all I see is
the
> source code for the index.php3 page instead of a Web page.
>
> Any ideas what is going on?
>
> Thanks
>
> John
> +-------------------------------------------------+
> John Chadwick, Ed.D.
> New Mexico State Library
> 1209 Camino Carlos Rey
> Santa Fe, NM 87507
> 505-476-9740 [EMAIL PROTECTED]
> http://www.stlib.state.nm.us
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hay
try fixing ur config file for phpmyadmin
i hope u know u get to fix it like u must have fixed ini and httpd
files, the file being config.inc.php ofcourse
anywayz
1. $cfgPmaAbsoluteUri = 'http://localhost/myadmin/';
locate and set to ur host and myadmin settings
2. u have to add ur host,user,password and db to b used in the file
locate and fix this chunk
$i++;
$cfgServers[$i]['host'] = '';
$cfgServers[$i]['port'] = '';
$cfgServers[$i]['socket'] = '';
$cfgServers[$i]['connect_type'] = 'tcp';
$cfgServers[$i]['controluser'] = '';
$cfgServers[$i]['controlpass'] = '';
$cfgServers[$i]['auth_type'] = 'config';
$cfgServers[$i]['user'] = 'root';
$cfgServers[$i]['password'] = '';
$cfgServers[$i]['only_db'] = '';
$cfgServers[$i]['verbose'] = '';
$cfgServers[$i]['bookmarkdb'] = '';
$cfgServers[$i]['bookmarktable'] = '';
$cfgServers[$i]['relation'] = '';
hope this helps
good luck
toby
--- "Chadwick, John" <[EMAIL PROTECTED]> wrote: > The AddType
line did it. Now at least I have something to go on.
> Now I get
> the following:
>
> phpMyAdmin - Error
>
> phpMyAdmin was unable to read your configuration file!
> This might happen if php finds a parse error in it or php cannot
> find the
> file.
> Please call the configuration file directly using the link below
> and read
> the php error message(s) that you receive. In most cases a quote or
> a
> semicolon is missing somewhere.
> If you receive a blank page, everything is fine.
>
> Thanks!
>
> John
>
> -----Original Message-----
> From: Joseph McDonald [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2003 2:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: problems with phpmyadmin
>
>
> Do you have a cpl lines like this in your httpd.conf?
>
> LoadModule php4_module "c:/php/sapi/php4apache2.dll"
> AddType application/x-httpd-php .php .inc
>
> if your file is name extension is php3, you should have atleast
> .php & .php3
> on the AddType line. I have .inc cause all of my include() files
> are named
> with extension .inc
>
> "John Chadwick" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have installed PHP 4.3.2 on a Windows 2000 server machine
> running Apache
> > 2.0.45. So far, I seem to have done something right, since the
> directory
> > listing for the phpmyadmin directory gives me the following:
> >
> > Apache/2.0.45 (Win32) PHP/4.3.2 Server at www.stlib.state.nm.us
> Port 80
> >
> > The problem I am having is getting phpmyadmin to work. I have
> followed
> the
> > instructions for the Quick Install in the documentation and all I
> see is
> the
> > source code for the index.php3 page instead of a Web page.
> >
> > Any ideas what is going on?
> >
> > Thanks
> >
> > John
> > +-------------------------------------------------+
> > John Chadwick, Ed.D.
> > New Mexico State Library
> > 1209 Camino Carlos Rey
> > Santa Fe, NM 87507
> > 505-476-9740 [EMAIL PROTECTED]
> > http://www.stlib.state.nm.us
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html
--- End Message ---
--- Begin Message ---
I am running Windows 2000 sp3, IIS5.0, PHP v4.3.2
I can't get anything to execute from the exec() function calling from a
webpage but I can get it to work from command line.
I have granted permissions to cmd.exe, copied cmd.exe to my php directory as
well as made sure safe_mode was off.
When I call exec("calc.exe") from a webpage the page hangs indefinitly until
I kill the process.
Any help would be appreciated
--- End Message ---