php-windows Digest 8 Jun 2002 20:19:17 -0000 Issue 1181
Topics (messages 14122 through 14132):
WIN NT40 PHP Apache Mysql PHPNUKE
14122 by: Markus Selinski
14123 by: Olav Bringedal
looping data from MySQL to create an array then display it
14124 by: Matt Babineau
problem with IIS..
14125 by: Nick Stuart
14128 by: Tomator
.server side includes on Windows IIS 4.0
14126 by: Brad Deters
Evaluation
14127 by: Bob Sears
Error In Script
14129 by: Evans, Josh
Re: PHP with IIS
14130 by: Tomator
Why can't I retrieve a query to MySQL?
14131 by: Blaine Dinsmore
COM problem with Microsoft Word & passworded files
14132 by: David McCormack
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 ---
Hi,
i installed Apache+PHP+MySQL at a Windows NT 4.0 Sever. Everything seems to
run fine. The Version of Apache or Php is not important, because i was
trying it allready with all versions.
My Problem is that when i install phpnuke, nothing will happen. I mean if i
enter a password, the website just make a loop but wont go on. if i try to
enter admin menue directly, the website show "you cant acess directly.
If anyone knows what the problem is, or how to fix the problem it would be
great.
Greetings
Markus Selinski
--- End Message ---
--- Begin Message ---
Im 99% sure it is the register_globals thingy. It
messes up the use headers, if not used in a very
strict way. try to turn it off and i bet you'll be
fine...
(or revrite the login-script so it doesnt output any
warnings or such before the header is sent.
--- Markus Selinski <[EMAIL PROTECTED]> wrote: > Hi,
>
> i installed Apache+PHP+MySQL at a Windows NT 4.0
> Sever. Everything seems to
> run fine. The Version of Apache or Php is not
> important, because i was
> trying it allready with all versions.
>
> My Problem is that when i install phpnuke, nothing
> will happen. I mean if i
> enter a password, the website just make a loop but
> wont go on. if i try to
> enter admin menue directly, the website show "you
> cant acess directly.
>
> If anyone knows what the problem is, or how to fix
> the problem it would be
> great.
>
> Greetings
> Markus Selinski
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Olav Bringedal
jaggu.org
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
<?
echo "Rows: " . $result2_rows . "<BR>";
for ($i=0; $i < $result2_rows; $i++ ) {
$rows2 = mysql_fetch_array($result2);
$dailyCount[date("d-m-Y", $rows2["DateTime"])] = $rows2["Count"];
}
for ($i = 0; $i < count($dailyCount); $i++) {
echo $dailyCount[$i] . "<BR>";
}
?>
I am trying to create an array with a "d-m-Y" Key, and a number for the
Value based from the date in the database. I suspect that the array
creation is the part that isn't working but I'm not sure how to get the
array to set the $key=>$value how I want it.
Matt Babineau
Freelance Internet Developer
-----------------------------------------
e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
--- End Message ---
--- Begin Message ---
Hello all, I have recently installed php4.2.1 with IIS 5 and 2000 SP2 and
I'm having some wierd problems. PHP "IS" running but it is not running
correctly. It doesnt seem to be posting and/or getting any info from
forms/pages and the request variables. If I have a page like index.php it
works fine, but if I try to do something like index.php?Topic=blah I getNotice:
Undefined variable: Topic in
c:\inetpub\wwwroot\phpboard\MessageBoard.php on line 3
I know the code works as I have the exact same page running on another
server across the building but cant figure out why it wont work here. Aslo
along the same lines I cant get PHPMyAdmin to work correctly either. The
first page displays fine and shows everything it should, but when ever i
go to actually do anything I get a 404 error page can not be found
thanks for all your hep!
-Nick
--- End Message ---
--- Begin Message ---
"Nick Stuart" <[EMAIL PROTECTED]> wrote:
> Hello all, I have recently installed php4.2.1 with IIS 5 and 2000 SP2 and
> I'm having some wierd problems. PHP "IS" running but it is not running
> correctly. It doesnt seem to be posting and/or getting any info from
> forms/pages and the request variables. If I have a page like index.php it
> works fine, but if I try to do something like index.php?Topic=blah I
getNotice: Undefined variable: Topic in
> c:\inetpub\wwwroot\phpboard\MessageBoard.php on line 3
> I know the code works as I have the exact same page running on another
> server across the building but cant figure out why it wont work here.
In newer versions of PHP variable register globals is turned off by default.
Check it with phpinfo(). You can solve problem by using $_GET("Topic")
instead of $Topic
--- End Message ---
--- Begin Message ---
To answer the 3 questions:
1.) These includes are located on the same server.
2.) Yes, all the other includes do work. They are pointing to .htm files.
3.) Yes, we would have considered it, but we looked at the proposition of
changing everything over to php and using the SSI seemed to be the cleaner
option at the time. I realize this may not be possible in IIS, but is there
any way to permit certain file extensions to work as SSI files? I know you
can set this on non-IIS web servers with the httpd.conf. and this is how we
got them to work on Netscape Server.
Note: I also wanted to include in this e-mail that what this php file
actually does is that it detects which web browser and OS platform a visitor
is using in order to render up the correct Cascading Style Sheet. We have
incorporated this in order to have our site be more accessible and useable
to those who are visually and audibly impaired. The CSS's are to close the
gap in difference between how Netscape, Opera, Mozilla, IE, etc. display the
same font size. We are currently using PHP 4.1.2. Thanks again to all for
the insight on this subject!
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--- End Message ---
--- Begin Message ---
Finally, the e-commerce code I've been working on for the past few months
is about ready to fly. However, since I've been so close to it
(design, code, testing, etc), I might have missed something critical. Would
some in this group have time to go through it with a red
marking pen and give me some constructive criticism? I will attempt to keep
my connection to the site up for the next 24 hours or so
(ISP is having difficulty with the MySQL portion of the PHP/MySQL combo).
The URL is ...
http://sears.onet.net/index.php
Also, for those having blazed an e-commerce site before me, could I get
some input regarding good credit card processing companies
regarding cost per purchase, etc?
Finally, any last minute do's and don'ts regarding an e-commerce site?
Thanks for your help in the past.
Bob
--- End Message ---
--- Begin Message ---
I created this script to ping a host and if a response is not received then
insert into a database and ping it after x amount of minutes. The script
works fine until it starts to ping the hosts that it didn't receive a
response from the database then it goes to page cant be displayed. I need to
script to entire script to run constantly but with a delay before it runs
that's why I am using the sleep(); Please help.
<?php
sleep(300);
mysql_connect("localhost");
$bquery = "delete from josh.down_sites where id!=0";
$bresult = mysql_query($bquery);
mysql_connect("localhost");
$query = "SELECT * FROM josh.temp order by id";
$result = mysql_query($query);
while($myrow=MySQL_fetch_array($result))
{
$site=$myrow["site"];
$ping = `ping -n 10 $site`;
if (eregi("request", $ping)) {
$time = date("H:i:s");
$aquery = "insert into josh.down_sites values('','$site','$time')";
$aresult = mysql_query($aquery);
}
}
sleep(150);
$cquery = "SELECT * FROM josh.down_sites order by id";
$cresult = mysql_query($cquery);
while($myrow=MySQL_fetch_array($cresult))
{
$site=$myrow["site"];
$ping = `ping -n 10 $site`;
if (eregi("request", $ping)) {
$time = date("H:i:s");
mail("[EMAIL PROTECTED]","$site","This is a e-notice from
HD_Service_Scan that as of $time $site is currently down or experiencing
performance problems.");
}
}
?>
Josh Evans
ACS Helpdesk Programmer
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
> How I know my IIS is supporting PHP?
> And what have to do so that I can deploy my PHP pages at IIS?
If PHP is installed and IIS is configured it should work.
Try to view http://youraddress/myfunnypage.php, with some PHP code, like
phpinfo();
If you see some tables with parameters and variables, PHP works.
--- End Message ---
--- Begin Message ---
I have not been able to return results using MySQL with PHP 4.2.1 and IIS 4.0. I was
wondering if anyone knew why?
Despite putting error trapping for all my MySQL functions I only get a blank screen.
thanks,
Blaine
--- End Message ---
--- Begin Message ---
I'm trying to work on a search engine for my Intranet at work. It needs to
be able to scan Microsoft Word & Excel documents so I'm planning on using
the COM support in PHP + the Microsoft Word & Excel viewer program.
At the moment I'm using Microsoft Word 2000 SR 2 to develop it however I've
hit a small problem in that it is possible to password files and a number of
the documents on the Intranet are. I don't know which ones and they can be
sat anywhere so this causes a problem or two.
When using the Documents->Open() method on a password protected document -
PHP hangs. It just sits waiting and eventually times out.
Could anyone more knowledgeable than I, shed some light on to how I can
check whether a files passworded before loading it ?
Many thanks
David McCormack
--- End Message ---