php-windows Digest 11 Apr 2001 22:23:45 -0000 Issue 539
Topics (messages 6625 through 6650):
Re: PHP Editor
6625 by: phobo
6629 by: NarN
6635 by: Robin Bolton
6645 by: Darren
Re: PHPLIB, IIS5.0 , PHP404 --> MSSQL Error
6626 by: Svensson, B.A.T.
Re: MSCOMCTL.OCX
6627 by: Phil Driscoll
Re: Load Test (CGI vs. ISAPI)
6628 by: Phil Driscoll
mtx.exe....acts like cookie monster...
6630 by: Mike
6631 by: Mike
WinNT Logons as a $var
6632 by: Paul Wieland
6633 by: Jan Matejka
6642 by: Darren
Re: Exec()
6634 by: Patrick
6636 by: Helmut Himmelstoss
6637 by: Olivier Hubert
6638 by: Helmut Himmelstoss
CGI Error
6639 by: Rehuel Lobato
6641 by: Phil Driscoll
6646 by: Rehuel Lobato
6648 by: Phil Driscoll
php 4 crashes apache for windows
6640 by: Darren
6650 by: Ermanno Iannacci
Re: dynamic buttons
6643 by: Darren
Re: free php hosting
6644 by: Darren
6647 by: Dan Cleveland
I want create a FLASH file (swf) with PHP with EasyPhp win WINDOWS98
6649 by: cecchini
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]
----------------------------------------------------------------------
use Textpad (.com) or PHPEd (soysal.com)
siggy
----- Original Message -----
From: "Mad Nas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 5:22 PM
Subject: [PHP-WIN] PHP Editor
> Hi All,
> I Search for a
> 1 ) Freeware
> 2 ) Powerful
> 3 ) Highlight Syntax
> 4 ) ...
>
> Editor for work on php files, Can you help me ?
>
> Thanks For Answer
>
> Mad Nas
>
>
I use 1st page and it works great.
""Mad Nas"" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
> I Search for a
> 1 ) Freeware
> 2 ) Powerful
> 3 ) Highlight Syntax
> 4 ) ...
>
> Editor for work on php files, Can you help me ?
>
> Thanks For Answer
>
> Mad Nas
>
>
If you insist on freeware then you should check out either PHP Coder
(http://www.phpide.de/), or jEdit (http://www.jedit.org). If you're
willing to spend a little money ($30 USD) you should really check out
UltraEdit (http://www.ultraedit.com).
> -----Original Message-----
> From: Mad Nas [mailto:[EMAIL PROTECTED]]
> Sent: 11 April 2001 06:22
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP Editor
>
>
> Hi All,
> I Search for a
> 1 ) Freeware
> 2 ) Powerful
> 3 ) Highlight Syntax
> 4 ) ...
>
> Editor for work on php files, Can you help me ?
>
> Thanks For Answer
>
> Mad Nas
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
smime.p7s
there are many good editors out there but i use one called phped
you can get it at http://www.soysal.com/PHPEd/
"Mad Nas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
> I Search for a
> 1 ) Freeware
> 2 ) Powerful
> 3 ) Highlight Syntax
> 4 ) ...
>
> Editor for work on php files, Can you help me ?
>
> Thanks For Answer
>
> Mad Nas
>
>
>> Is it possible that you have ended up in SQL-state HY000 or HY004?
>> If you are in HY004, then your data types are incorrect!!!
>
>I don't understand: HY000 or HY004 ???
The ODBC "machine" works as a finite-state machine. For each call you do
to the ODBC API you might or might not change the state of the state
machine. HY000 and HY004 are error states. The corresponding error text
for HY004 is "Invalid SQL data type", and for HY000 "General error".
Since you had "Invalid SQL", it looks like a cut off string of the error
messages that comes with state HY004.
Best regards,
/Anders
>Where can I find the MSCOMCTL.OCX file ?
It's worth doing a search of you hard drive - if you haven't got it, you are
the first Windows user I've come across without it.
As has already been pointed out, you can install php without it - you just
have to manually configure IIS using the Internet Service Manager.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
>ISAPI is a more robust solution.
I would seriously question this, given the current stability of the ISAPI
version of PHP. If I set up any of my NT4 boxes with the ISAPI verion of
PHP, I can create a DOS attack against my own machine by just requesting one
php page - the entire set of iisadmin (ie web and ftp) services will
instantly come crashing to the ground.
The CGI version may not be as quick, but it keeps on running for ever.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
We are running a windows nt4.0 box, informix 9.21 php4.04 and datadirector
for web (informix webblade)
Connecting to the database using ifx_connect() causes mtx.exe to steal
memory and not releasing this memory.
We are not using any ODBC so imho mtx.exe should not start at all.
PHP source of the script:
<?
Header("Content-Type: image/gif");
$conn_id=ifx_connect();
if (! $conn_id)
{ echo(" geen dbase connectie");
}
$browser=getenv("HTTP_USER_AGENT");
$refer=getenv("$HTTP_REFERER");
$rmadr=getenv("$REMOTE_ADDR");
$query_log="INSERT INTO sometable ( fields) VALUES (values);";
$query_banner="SELECT somefield FROM table where value=$bid;";
$res_id_1=ifx_query($query_log,$conn_id);
$res_id_2=ifx_query($query_banner,$conn_id);
$bestandsnaam=ifx_fetch_row($res_id_2);
$theimage="." . $bestandsnaam["path"] . "/" . $bestandsnaam[id] . "." .
$bestandsnaam[ext];
$fn=fopen("./$theimage","r");
fpassthru($fn);
fclose("$fn");
ifx_free_result($res_id_1);
ifx_free_result($res_id_2);
ifx_close($conn_id);
unset($bestandsnaam, $theimage, $fn, $browser, $refer, $rmadr, $query_log,
$querie_banner, $res_id_1, $res_id_2, $conn_id );
?>
Can anyone tell me where this might go wrong?
M!ke
We are running a windows nt4.0 box, informix 9.21 php4.04 and datadirector
for web (informix webblade)
Connecting to the database using ifx_connect() causes mtx.exe to steal
memory and not releasing this memory.
We are not using any ODBC so imho mtx.exe should not start at all.
PHP source of the script:
<?
Header("Content-Type: image/gif");
$conn_id=ifx_connect();
if (! $conn_id)
{ echo(" geen dbase connectie");
}
$browser=getenv("HTTP_USER_AGENT");
$refer=getenv("$HTTP_REFERER");
$rmadr=getenv("$REMOTE_ADDR");
$query_log="INSERT INTO sometable ( fields) VALUES (values);";
$query_banner="SELECT somefield FROM table where value=$bid;";
$res_id_1=ifx_query($query_log,$conn_id);
$res_id_2=ifx_query($query_banner,$conn_id);
$bestandsnaam=ifx_fetch_row($res_id_2);
$theimage="." . $bestandsnaam["path"] . "/" . $bestandsnaam[id] . "." .
$bestandsnaam[ext];
$fn=fopen("./$theimage","r");
fpassthru($fn);
fclose("$fn");
ifx_free_result($res_id_1);
ifx_free_result($res_id_2);
ifx_close($conn_id);
unset($bestandsnaam, $theimage, $fn, $browser, $refer, $rmadr, $query_log,
$querie_banner, $res_id_1, $res_id_2, $conn_id );
?>
Can anyone tell me where this might go wrong?
M!ke
I'm using PHP to build our companies Intranet. I am able to setup
permissions to certain areas of the website by specifiying permissions to
the corresponding folders. In some areas, I need to keep track of who makes
what changes where. In order to do this, the person needs to login.
Ideally, it would be best to just use their NT logon.
It would be extrememly helpful to me if I could get a users NT Logon as a
variable in php [maybe as an environment variable?]. I read something
somewhere about REMOTE_USER in asp [gag]. Is it possible to get the logon
with PHP?
Thanks in advance.
-Paul Wieland
Yes, it is possible (I use it both with IIS and Apache),
but you must use Challenge-Response security mode (IIS only)
and all clients must be IE only.
You can use Apache server as well - but you need extra module
ApacheModuleNTLM.dll
(http://members.ozemail.com.au/~timcostello/mod_ntlm/)
MaT
>-----Original Message-----
>From: Paul Wieland [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 11, 2001 1:50 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] WinNT Logons as a $var
>
>
>I'm using PHP to build our companies Intranet. I am able to setup
>permissions to certain areas of the website by specifiying
>permissions to
>the corresponding folders. In some areas, I need to keep track
>of who makes
>what changes where. In order to do this, the person needs to login.
>Ideally, it would be best to just use their NT logon.
>It would be extrememly helpful to me if I could get a users NT
>Logon as a
>variable in php [maybe as an environment variable?]. I read something
>somewhere about REMOTE_USER in asp [gag]. Is it possible to
>get the logon
>with PHP?
>
>Thanks in advance.
>-Paul Wieland
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail:
>[EMAIL PROTECTED]
>
>
"Paul Wieland" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm using PHP to build our companies Intranet. I am able to setup
> permissions to certain areas of the website by specifiying permissions to
> the corresponding folders. In some areas, I need to keep track of who
makes
> what changes where. In order to do this, the person needs to login.
> Ideally, it would be best to just use their NT logon.
> It would be extrememly helpful to me if I could get a users NT Logon as a
> variable in php [maybe as an environment variable?]. I read something
> somewhere about REMOTE_USER in asp [gag]. Is it possible to get the logon
> with PHP?
>
> Thanks in advance.
> -Paul Wieland
you need to trace server side variables such as $REMOTE_ADDR which brings up
the IP address of the connector and REMOTE_HOST which stores the computer
name, there are others like $AUTH_USER and $LOGIN_USER but i haven't
tried the last two as i don't run NT
I hope this helps
Darren
""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message
9avht3$kc3$[EMAIL PROTECTED]">news:9avht3$kc3$[EMAIL PROTECTED]...
> HI,
>
> system(), exec() etc. don't work properly under Windows.
> they just don't hand back the output.
>
> Has anyone got these functions working (e.g. Ping.exe)??
>
> THX Helmut
This works for me
<?
//escaping the backslash and in single quotes
//this works for win98/apache/php4apache.dll
//NOTE: this and the php4isapi.dll is not yet ready
//for production, if CGI MODE then I do think it should work
echo"<pre>";
$dd=system('c:\\windows\\netstat -a');
echo "$dd ;;this is a test";
echo"</pre>";
?>
it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5
""Patrick"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9b1niq$hqa$[EMAIL PROTECTED]">news:9b1niq$hqa$[EMAIL PROTECTED]...
>
> ""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message
> 9avht3$kc3$[EMAIL PROTECTED]">news:9avht3$kc3$[EMAIL PROTECTED]...
> > HI,
> >
> > system(), exec() etc. don't work properly under Windows.
> > they just don't hand back the output.
> >
> > Has anyone got these functions working (e.g. Ping.exe)??
> >
> > THX Helmut
>
> This works for me
> <?
> //escaping the backslash and in single quotes
> //this works for win98/apache/php4apache.dll
> //NOTE: this and the php4isapi.dll is not yet ready
> //for production, if CGI MODE then I do think it should work
>
> echo"<pre>";
> $dd=system('c:\\windows\\netstat -a');
> echo "$dd ;;this is a test";
> echo"</pre>";
> ?>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
At 18:03 2001-04-11 +0200, Helmut Himmelstoss wrote:
>it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5
Did you check the permissions for ping.exe? Does the IUSR_[Machine name] or
whatever user executes PHP.exe have the rights to read/execute ping.exe?
Very often, anonymous users will NOT be granted rights to the
%SYSTEMROOT%\winnt directory, to prevent security leaks and DoS attacks.
Olivier
I copied the Program Ping.exe to the same directory as my script and the
User the IUSR_[Machine name] hast the permissions.
<?php
echo"<pre>";
$dd=system("ping ping 127.0.0.1");
echo "$dd ;;this is a system-test";
echo "<hr>";
?>
The result is the same.......... no result:
;;this is a system-test
"Olivier Hubert" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 18:03 2001-04-11 +0200, Helmut Himmelstoss wrote:
> >it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5
>
> Did you check the permissions for ping.exe? Does the IUSR_[Machine name]
or
> whatever user executes PHP.exe have the rights to read/execute ping.exe?
> Very often, anonymous users will NOT be granted rights to the
> %SYSTEMROOT%\winnt directory, to prevent security leaks and DoS attacks.
>
> Olivier
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Heya folks,
I downloaded php4 setup from php.net ran the setup and it installed the
latest version of php (think it's 4.0.4 pl)
BTW, I run W2k on a 400 Mhz AMD 128 MB ram, enough hard disk space!
Whenever I try to run a php file I get the followong message in my browser:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
That's It!! The list of headres is empty!
What did I do wrong? What did I NOT do right!!
Rehuel Lobato
Webdeveloper
CQ-Link.sr
Basically PHP did not produce any output. This is because either your source
php file did not exist, or the permissions on the file were such that php
couldn't read it, or that PHP did not run - this is usually because php.exe,
php4ts.dll, php.ini or any extension dlls you configured could not be loaded
because the anonymous web user did not have permission to access them.
Try opening a command window, changing to the directory containing php.exe
and typing php.exe -i
If you get a screenful of html then you know php is ok and it is almost
certainly a permissions issue.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
Hey Phil
PHP -i does display a pageful of html
The PHP is installed on c:\php
C: is a FAT partition, everyone has permissions.
I don't know exactly where to set permissions
any suggestions?
>The PHP is installed on c:\php
>C: is a FAT partition, everyone has permissions.
>I don't know exactly where to set permissions
>any suggestions?
No idea - never had a FAT partition! I think that FAT is brain dead in
respect of permissions, so it might be that IUSR_<machinename> doesn't have
sufficient privileges to run php. Try temporarily changing the anonymous IIS
user to an administrator and see if that cures things (in internet service
manager go to anonymous access and authentication control in the directory
security tab for your website's properties). If that fixes it, you need to
either sort out privileges of IUSR_ or create a new user for the job.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
Hi all. I have a problem with apache running PHP. I config it as stated in
the instructions but when i boot apache, i get a
APACHE caused an invalid page fault in module APACHECORE.DLL at
0167:10010d35.
this disappears when i comment out the
"LoadModule php4_module /perl/bin/sapi/php4apache.dll"
and yet reappears when i remove the comment. Any ideas?
Thanks
I put the php module in the apache modules folder and it works.
"Darren" <[EMAIL PROTECTED]> ha scritto nel messaggio
9b2447$406$[EMAIL PROTECTED]">news:9b2447$406$[EMAIL PROTECTED]...
> Hi all. I have a problem with apache running PHP. I config it as stated in
> the instructions but when i boot apache, i get a
>
> APACHE caused an invalid page fault in module APACHECORE.DLL at
> 0167:10010d35.
>
> this disappears when i comment out the
> "LoadModule php4_module /perl/bin/sapi/php4apache.dll"
>
> and yet reappears when i remove the comment. Any ideas?
> Thanks
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
"NarN" <[EMAIL PROTECTED]> wrote in message
9b1904$738$[EMAIL PROTECTED]">news:9b1904$738$[EMAIL PROTECTED]...
> Hi all
>
> I'm using php4, IIS and Win2k server.
>
> I want to create dynamic buttons. I have a template (empty button) and I
> would like to place text on that button and send it to the browser.
>
> Any thoughts how I have to do this on Win2k?
>
are these form buttons? if so they have a property called value which i
would imagine you can pass.
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
..
Hello!
I heard about www.f2s.com, but didn't tried it yet...
I have just been there and i am still waiting for confirmation. sadly the
site is just in its test stages but its free so i am not complaining :-)
I currently use www.f2s.com and i have no problems with it. Its actually
pretty nice!
Dan
+-------------------------------------------------------------------+
| |
| If Yoda so strong in force is, |
| why words in proper order he cannot put? |
| |
+-------------------------------------------------------------------+
| |
+-------------------------------------------------------------------+
| Daniel J. Cleveland |
| e-mail: [EMAIL PROTECTED]|
+-------------------------------------------------------------------+
I want create a FLASH file (swf) with PHP with EasyPhp win WINDOWS98.
I don't use the swf functions (I tried to find php_swf.dll but i don't found
it).
Can someone help me?
Thanks a lot from ITALY near VENICE.
Alex