php-windows Digest 16 Nov 2001 16:08:49 -0000 Issue 857
Topics (messages 10444 through 10450):
Re: why doesnīt exec("dir"); work ?
10444 by: Huang Yuzhen
10447 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK
Browser info
10445 by: Steen Rabol
Re: Error: text/html Content-Length
10446 by: Markus Weber
dynamic ip
10448 by: Marc.D.
10449 by: Ross Fleming
Apache - PHP - W2K
10450 by: Samba Sidibeh
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 think you could try "cmd /c dir"
----- Original Message -----
From: "Daniel Hellstrand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 3:42 AM
Subject: Re: [PHP-WIN] why doesnīt exec("dir"); work ?
> Shouldnīt it be: foreach( $dirContents as $dirEntry ) ?
> And another problem: I still get an error saying: "unable to fork [dir]"
> when I run this (I got that when I ran exec("dir") too)
>
> /Dan
>
> Chris Boget wrote:
>
> > > why canīt I run exec("dir"); ?
> >
> > What you want is:
> >
> > exec( "dir", $dirContents );
> > foreach( $dirEntry as $dirContents ) {
> > echo $dirEntry;
> >
> > }
> >
> > I believe that'll work and do what you want...
> >
> > Chris
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703 16-11-01 09:26
-> [EMAIL PROTECTED]
If you're doing directory and file manipulation through the shell I'd
recommend you bin the shell altogether and use the directory and file
functions - much more reliable and shell independent.
http://www.php.net/manual/en/ref.dir.php
http://www.php.net/manual/en/ref.filesystem.php
-Steve
--------------------------------------------------------------------------
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Fri, 16 Nov 2001 09:43:10 +0800
Subject: Re: [PHP-WIN] why doesnīt exec("dir"); work ?
i think you could try "cmd /c dir"
----- Original Message -----
From: "Daniel Hellstrand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 3:42 AM
Subject: Re: [PHP-WIN] why doesnīt exec("dir"); work ?
> Shouldnīt it be: foreach( $dirContents as $dirEntry ) ?
> And another problem: I still get an error saying: "unable to fork [dir]"
> when I run this (I got that when I ran exec("dir") too)
> /Dan
> Chris Boget wrote:
> > > why canīt I run exec("dir"); ?
> >
> > What you want is:
> >
> > exec( "dir", $dirContents );
> > foreach( $dirEntry as $dirContents ) {
> > echo $dirEntry;
> >
> > }
> >
> > I believe that'll work and do what you want...
> >
> > Chris
> --
> 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]
--
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]
This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.
If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.
Friends Provident Marketing Group consists of the following
companies:
Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ. Registered in Scotland. Incorporated company limited by
shares.
Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business
All are regulated by the Personal Investment Authority.
Friends' Provident Unit Trust Managers Limited is also regulated
by IMRO.
--- End Message ---
--- Begin Message ---
Hi
Why does this not work ?
$browser = get_browser();
foreach($browser as $key => $value)
print "key : " . $key . " value ". $value . "<br>";
print "browser = " . $browser['browser'] . "<br>";
The foreach() prints information on the browser, but then
$browser['browser'] is empty, why ?
Best
Steen
--- End Message ---
--- Begin Message ---
Hello guys,
In addition to my first note, I still have the same problem - but know I can
describe it more exactly:
My scripts like this worked in the past very well:
----------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
$dummy = 199;
$author = "Markus Weber";
echo "Test Script von $author (No.=$dummy)<br>";
echo "Und jetzt nochmal die Nummer = $dummy<br>";
?>
</body>
</html>
----------------
But now the browser output is like this:
-----------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Test Script von Markus Weber (No.=199)<br>Und jetzt nochmal
die Nummer = 199<br>
</body>
</html>
HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Thu, 15 Nov 2001 01:54:38 GMT
Content-Type: text/html
Content-Length: 44
<html>-2147417842 (0x8001010e)</body></html>
-----------
After several attempts to access my scripts I got this message:
PHP has encountered an Access Violation at 010A376F which
results in a "application server error".
Then I have to restart my system.
I tried some changes in php.ini (mime-type; content-type).
Without results.
Also I changed my script. I found out that when my whole
script is enclosed by <?php ... ?> tags I will get no errors.
See the changed script which works (!):
-- new script -- -- new script -- :
<?php
echo <<<BLOCK
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
BLOCK;
$dummy = 199;
$author = "Markus Weber";
echo "Test Script von $author (No.=$dummy)<br>";
echo "Und jetzt nochmal die Nummer = $dummy<br>";
echo "</body>";
echo "</html>";
?>
-- -- -- -- -- --
I donīt know why my scripts suddenly do not work. Could you help me ?
(Attached you will find a pdf which shows my php
configuration generated by phpinfo().
bye,
Markus Weber
P.S.: Here my test script (which does not work now):
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
$dummy = 199;
$author = "Markus Weber";
echo "Test Script von $author (No.=$dummy)<br>";
echo "Und jetzt nochmal die Nummer = $dummy<br>";
?>
</body>
</html>
"Markus Weber" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> does anybody know whtat this error message mean ?
>
> HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.0 Date: Wed, 14 Nov 2001
> 08:49:34 GMT Content-Type: text/html Content-Length: 44 -2147417842
> (0x8001010e)
>
> In my script I used the HEREDOC syntax:
>
> echo <<<BLOCK_A
> (html tags)...
>
> BLOCK_A;
>
>
> bye,
> markus
>
>
--- End Message ---
--- Begin Message ---
Hello,
Iīm a newbe to PHP and have the following problem:
I have an Apache 1.3.x running localy (ip 192.168.0.1.) with PHP.
I have webspace with PHP and want to read my connection IP (via ISP) and
send it
to the webspace (every time I connect to the internet) so that it can
redirect it to my dynamic
IP (one I get from my ISP).
Is there anything like the "tracert" function that will give me for eg. an
Array
of IPīs ??
I have looked into the Manual(s) but found nothing that could help me
further...
Any help will be appreciated
Marc.D.
--- End Message ---
--- Begin Message ---
A webpage I use for this is www.dynu.com This runs a daemon on your PC
which updates your IP to their DNS servers, so that when you register, you
are given a webaddress that follows you around. For example,
http://rossfleming.dynu.com maps to my PC when I'm online. It's free to use
and I whole-heartedly recommend it...
Ross
-----Original Message-----
From: Marc.D. [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 11:35
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] dynamic ip
Hello,
Iīm a newbe to PHP and have the following problem:
I have an Apache 1.3.x running localy (ip 192.168.0.1.) with PHP.
I have webspace with PHP and want to read my connection IP (via ISP) and
send it
to the webspace (every time I connect to the internet) so that it can
redirect it to my dynamic
IP (one I get from my ISP).
Is there anything like the "tracert" function that will give me for eg. an
Array
of IPīs ??
I have looked into the Manual(s) but found nothing that could help me
further...
Any help will be appreciated
Marc.D.
--
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]
--- End Message ---
--- Begin Message ---
Hi
I'm not sure I'm doing it right since this is the first mailing list I've
ever subscribed to. If I'm understanding it right this means that I get to
send you a question and you get to send me an answer. That sounds kinda fair
to me but, please, correct me if I'm wrong.
Anyway, I've installed Apache 1.3.2 and PHP 4.0.6 on a Windows 2000 machine.
I've gone trough the install.txt submitted with PHP several times it feels
like I've gotten all the settings right but apparently I haven't because
when I try to reach at *.php file trough my browser I get an error message
saying that the file couldn't be found.
Right now there are only two things that I'm really sure of. The first is
that the web server is up and running because I have no trouble reaching my
*.html files. The second thing I know is that my *.php files are where
they're supposed to be.
I really need some help from someone who has done this a couple of hundred
times but until I do I guess I'll just have to start over.
Oh, and another question. From where can someone like me download additional
PHP extentions? I've searched the net a little bit but haven't found
anything really useful.
Until I hear from you
Thanks
------------------------
Samba Sidibeh
Systemsdeveloper
SYSteam Udac AB
Storgatan 19, Box 174, 751 04 Uppsala, SWEDEN
Tel direkt: 018-67 81 35
Tel vxl: 018-67 80 00 Fax: 018-51 66 00
Hemsida: www.systeam.se, www.udac.se
SYSteam Udac ingår i SYSteamkoncernen.
--- End Message ---