php-windows Digest 30 Oct 2004 09:11:48 -0000 Issue 2446

Topics (messages 24837 through 24849):

Installation? problem for php newbie
        24837 by: Michael Horniak
        24838 by: Michael Horniak
        24842 by: Jason Barnett
        24846 by: Michael Horniak
        24849 by: Sudeep

include statement
        24839 by: Michael Adams
        24841 by: Paul Menard
        24845 by: Jason Barnett

mysql server: cannot connect
        24840 by: Eugene Kharkov

FOSDEM 2005
        24843 by: Christophe Gesch�
        24844 by: Christophe Gesch�

Yet another MySQL+PHP5 issue
        24847 by: Steven James Samuel Stapleton
        24848 by: Michael Purdy

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 manually installed PHP 5.0.2 and have also used the installer. In either
case when opening a php page via IE 6 or Netscape 7.1 the HTML code displays
but not php code. When checking the source I can see the php code. No errors
are generated so I am at a loss as to why php is not functioning.

I'm using Windows 2000 Server SP4

Below is the code for "test.php" which is located in H:\Inetpub\wwwroot and
PHP was installed to H:\php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php phpinfo(); ?>
Hello World!
</body>
</html>

Any suggestions will be very much appreciated.
Thanks,
Michael

--- End Message ---
--- Begin Message ---
I manually installed PHP 5.0.2 and have also used the installer. In either
case when opening a php page via IE 6 or Netscape 7.1 the HTML code displays
but not php code. When checking the source I can see the php code. No errors
are generated so I am at a loss as to why php is not functioning.

I'm using Windows 2000 Server SP4

Below is the code for "test.php" which is located in H:\Inetpub\wwwroot and
PHP was installed to H:\php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php phpinfo(); ?>
Hello World!
</body>
</html>

Any suggestions will be very much appreciated.
Thanks,
Michael

--- End Message ---
--- Begin Message --- Yes this is duplicate... please don't do that in the future unless you've waited a few days without an answer. Also for installation problems it might be better to try the php install newsgroup.

Michael Horniak wrote:
I manually installed PHP 5.0.2 and have also used the installer. In either
case when opening a php page via IE 6 or Netscape 7.1 the HTML code displays
but not php code. When checking the source I can see the php code. No errors
are generated so I am at a loss as to why php is not functioning.


OK first of all - you have two options, CGI or ISAPI. I'm not going to tell you which one to use, pick whatever fits your needs best. Then go to this page and do everything it suggests... and if you still have problems write us a note here and tell us what happened (especially error messages).


http://php.net/manual/en/install.windows.iis.php#install.windows.iis.iis4
--- End Message ---
--- Begin Message ---
Hi Jason,
I apologize for the duplicate entries ... will not do that again.
The "problem" I discussed wasn't after all. I was opening the page via the
browser as a file and not using http protocol. Dumb mistake on my part.

Thank you for offering your assistance.
- Michael

"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yes this is duplicate... please don't do that in the future unless you've
waited
> a few days without an answer.  Also for installation problems it might be
better
> to try the php install newsgroup.
>
> Michael Horniak wrote:
> > I manually installed PHP 5.0.2 and have also used the installer. In
either
> > case when opening a php page via IE 6 or Netscape 7.1 the HTML code
displays
> > but not php code. When checking the source I can see the php code. No
errors
> > are generated so I am at a loss as to why php is not functioning.
> >
>
> OK first of all - you have two options, CGI or ISAPI.  I'm not going to
tell you
> which one to use, pick whatever fits your needs best.  Then go to this
page and
> do everything it suggests... and if you still have problems write us a
note here
> and tell us what happened (especially error messages).
>
> http://php.net/manual/en/install.windows.iis.php#install.windows.iis.iis4

--- End Message ---
--- Begin Message ---
Hi Michael,
 
 Try accessing the page like this.....http://localhost/test.php.
 
It'll will work if your installation is correct.
 
......Sudeep....


Michael Horniak <[EMAIL PROTECTED]> wrote:
I manually installed PHP 5.0.2 and have also used the installer. In either
case when opening a php page via IE 6 or Netscape 7.1 the HTML code displays
but not php code. When checking the source I can see the php code. No errors
are generated so I am at a loss as to why php is not functioning.

I'm using Windows 2000 Server SP4

Below is the code for "test.php" which is located in H:\Inetpub\wwwroot and
PHP was installed to H:\php







Hello World!



Any suggestions will be very much appreciated.
Thanks,
Michael

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


                
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

--- End Message ---
--- Begin Message ---
A real PHP newbie here.

I have so far only used the include statement in my site.
Each page on the server loads a common header and footer. The header
contains the site menu and the footer contains a line of logos in
one graphic that <map>.

My query is:
If i load the header as .HTM does it put the included file through the
PHP parser. I have the includes as .PHP at present. There is nothing php
in the header or footer as yet. I am looking at saving the server
some cycles by doing this.

Michael

--- End Message ---
--- Begin Message ---
So just so I'm clear on your files...

Let's say you have a file, index.php. This file has an include statement for 
'header.htm'.

Your question is does it matter if the header.htm is just HTML and does not contain 
and PHP?

No it does not matter. But the URL must be pointed to the index.php PHP page to 
process the actual
include() PHP command thus pulling in the header.htm page. 

Also, in the include statement the page you are including, in this case header.htm. 
does not have
to even be named .php, .htm etc. It can be .txt. But this is not only bad design but 
also a
security risk. 

Paul




--- Michael Adams <[EMAIL PROTECTED]> wrote:

> A real PHP newbie here.
> 
> I have so far only used the include statement in my site.
> Each page on the server loads a common header and footer. The header
> contains the site menu and the footer contains a line of logos in
> one graphic that <map>.
> 
> My query is:
> If i load the header as .HTM does it put the included file through the
> PHP parser. I have the includes as .PHP at present. There is nothing php
> in the header or footer as yet. I am looking at saving the server
> some cycles by doing this.
> 
> Michael
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Just one thing to add here:

My query is:
If i load the header as .HTM does it put the included file through the
PHP parser. I have the includes as .PHP at present. There is nothing php
in the header or footer as yet. I am looking at saving the server
some cycles by doing this.


Not sure exactly how you have your page structure, but the command include_once() will force PHP to only load a page once per request. Any file which is include'd will pass through the PHP interpreter. If this is really a large concern you can get software that will cache the PHP bytecode.

--- End Message ---
--- Begin Message ---
I got "cannot connect" error when I did stress test for a project we did 
recently. We used Apache Jmeter and there were 5 concurrent connections in a 
second.
Initially, I thought it could be because of MySQL, becuase the first page of 
the project runs a lot of queries.
Then I did the simple script below and start Jmeter once again.

<?
$conn = mysql_connect ( '10.0.1.4', 'root', '') or die("Could not connect: " 
. mysql_error());
mysql_select_db('lub2', $conn);
$res = mysql_query("SELECT * FROM pages_lv0 WHERE id = 1", $conn) or 
die("Invalid query: " . mysql_error());
mysql_close($conn);
?>

I got the same error again and checked MySQL server. I managed to connect to 
the server and noticed that it is woriking fine, but I still was unable to 
connect to the server via the script. I moved MySQL database to our Linux 
server and repeated the test. The result was the same. Then I moved the PHP 
script to the Linux server and run test once again. I did not get the error. 
I moved database back to windows, left PHP on Linux and run the test. No 
error. I compared settings in php.ini on both Linux and Windows and they 
were the same. So I conclude this is PHP bug or feature under the Windows 
platform.

Does anyone met the same problem before? I searched for the answers in the 
newslist, but did not find anything related to the same type of problem. I 
found one post in the bugs database (and I already submited this problem as 
a bug), but support team said it is not a bug. 

--- End Message ---
--- Begin Message ---
I need a Schedule, speaker and public.
That must be request this month.

I think  to 2 themes.
1� PHP5 (real use of  new feature and first feedback)
2� PEAR to a stability and an better reputation.

http://www.fosdem.org/2004/index/news/fosdem

The FOSDEM (Free and Open Source Developers' European Meeting) is a free and non-commercial event for the community and organized by the community. Its goal is to provide Free and Open Source developers and communities a place to meet to
# get in touch with other developers and projects,
# get informed about the latest developments in the Free and Open Source world,
# attend to interesting talks and presentations held in large conference rooms by Free and Open Source project leaders and committers on various topics,
# and to promote the development and the benefits of Free and Open Source solutions.





My English is bad.
If you want, you can short-cut me and direct contact fosdem team by send an e-mail to [EMAIL PROTECTED]


--
---------------------------------
Moosh -- php.net -- phpfrance.com
=== Php & Pear @ Fosdem  2005 ===

--
---------------------------------
Moosh -- php.net -- phpfrance.com
=== Php & Pear @ Fosdem  2005 ===

--- End Message ---
--- Begin Message ---
I need a Schedule, speaker and public.
That must be request this month.

I think  to 2 themes.
1� PHP5 (real use of  new feature and first feedback)
2� PEAR to a stability and an better reputation.

http://www.fosdem.org/2004/index/news/fosdem

The FOSDEM (Free and Open Source Developers' European Meeting) is a free and non-commercial event for the community and organized by the community. Its goal is to provide Free and Open Source developers and communities a place to meet to
# get in touch with other developers and projects,
# get informed about the latest developments in the Free and Open Source world,
# attend to interesting talks and presentations held in large conference rooms by Free and Open Source project leaders and committers on various topics,
# and to promote the development and the benefits of Free and Open Source solutions.





My English is bad.
If you want, you can short-cut me and direct contact fosdem team by send an e-mail to [EMAIL PROTECTED]


--
---------------------------------
Moosh -- php.net -- phpfrance.com
=== Php & Pear @ Fosdem  2005 ===

--
---------------------------------
Moosh -- php.net -- phpfrance.com
=== Php & Pear @ Fosdem  2005 ===

--- End Message ---
--- Begin Message ---
I am running PHP 5.0.2 and MySQL 4.0.21-nt

the install directory (C:\WBP\PHP\) is in the path. The MySQL dir is not in the path.

I am attempting to use the PHP shell/command line feature (rather than web server), however I get this result:

-----------------------------------------------------------------
C:\> php -v
PHP Warning: PHP Startup: Unable to load dyanamic library './php_mysql.dll' - The specified module could not be found.
-----------------------------------------------------------------


This occures with libmysql.dll in either the php dir, %WINDIR% and %WINDIR%\system32.

If I place it in any of these spots and rename it php_mysql.dll, I get this error:

-----------------------------------------------------------------
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_mysql.dll' in Unknown on line 0
-----------------------------------------------------------------


Someone said that this file does not work for MySQL 4.0.21, is that the cause of this problem (or set of problems) or should I look further? I'm really stumped here.


Thank you,
-Jim Stapleton

--- End Message ---
--- Begin Message ---
Jim

Mysql does not need to be in the path.  You do not need to rename the dll.

Php should be looking for php_mysql.dll in the extension_dir specified in
your php.ini file.

I would suggest you do file search for other copies of the php.ini file in
case one is conflicting with another.  Once you have ensured you only have
one instance of the php.ini file double check
your extension directory path.

Mike

----- Original Message ----- 
From: "Steven James Samuel Stapleton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 30, 2004 12:46 PM
Subject: [PHP-WIN] Yet another MySQL+PHP5 issue


> I am running PHP 5.0.2 and MySQL 4.0.21-nt
>
> the install directory (C:\WBP\PHP\) is in the path. The MySQL dir is not
in
> the path.
>
> I am  attempting to use the PHP shell/command line feature (rather than
web
> server), however I get this result:
>
> -----------------------------------------------------------------
> C:\> php -v
> PHP Warning: PHP Startup: Unable to load dyanamic library
> './php_mysql.dll' - The specified module could not be found.
> -----------------------------------------------------------------
>
> This occures with libmysql.dll in either the php dir, %WINDIR% and
> %WINDIR%\system32.
>
> If I place it in any of these spots and rename it php_mysql.dll, I get
this
> error:
>
> -----------------------------------------------------------------
> PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
> 'php_mysql.dll'  in Unknown on line 0
> -----------------------------------------------------------------
>
> Someone said that this file does not work for MySQL 4.0.21, is that the
> cause of this problem (or set of problems) or should I look further? I'm
> really stumped here.
>
>
> Thank you,
> -Jim Stapleton
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---

Reply via email to