php-windows Digest 27 Mar 2001 20:04:09 -0000 Issue 513

Topics (messages 6313 through 6341):

%V for strftime does not work under Windows NT
        6313 by: Herbert Groot Jebbink
        6318 by: Fernando Madruga

Re: (should be) easy questions from a beginner
        6314 by: Fernando Madruga
        6316 by: Johannes Janson

Re: Mail submisison of form data
        6315 by: Tom Mathews
        6320 by: florent empis

Re: PHP under WinME
        6317 by: Tom Mathews

PHP3 for Visual Studio ?
        6319 by: zugut

Problem with Predefines Variables
        6321 by: Oliver Damitz

Re: How to setup the GD Library for Apache+php
        6322 by: Evan Chang

php from the command-line
        6323 by: Giuseppe D'Ambrosio
        6324 by: Fernando Madruga

oracle TNS service name
        6325 by: Giuseppe D'Ambrosio

Irgendeine deutsche newsgroup?
        6326 by: Christoph Winkler
        6327 by: Thomas
        6334 by: Robin Bolton
        6336 by: Asendorf, John
        6338 by: Johannes Janson
        6339 by: Wolfgang Schneider

IIS5/Win2K
        6328 by: Bruno Daubié

LDAP
        6329 by: Antonio Lopez
        6335 by: Michael Rudel

Seriously newbie question
        6330 by: Mark W
        6332 by: Darvin Andrioli
        6333 by: Mark W

Removing older verion of PHP 4.01 ?
        6331 by: Bradley Miller

Directory Security -Help!
        6337 by: Paul Wieland
        6340 by: Phil Driscoll
        6341 by: Luc Servaas

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]


----------------------------------------------------------------------


Hi,

Whatever I do, I can't get the weeknumer with %V in strftime, %W does
work, I'm using PHP 4.0.4pl1 under NT.

It works under IRIX and Linux (also PHP 4.0.4pl1)

Greetings, Herbert

<?php

  setlocale("LC_ALL", "english");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale ("LC_TIME", "");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale ("LC_TIME", "C");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale('LC_TIME', 'SWEDISH');
  $week = strftime("%V",mktime()); 
  echo "-$week-";

?>

Greetings, Herbert




Try this to see what is your current locale:
<?
  $curloc = setlocale( "LC_ALL", "" );
  echo "Current Locale = $curloc\n";
?>

I believe it must be some implementation issue: I've tried all that and
even tried an example from PHP's manual (under gmstrftime), where I
added the %V:

<?
  setlocale ('LC_TIME', 'en_US');
  echo strftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
  echo gmstrftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
?>

On my Windows 98 SE machine I get nothing with %V !!

HTH,
  Madruga

-----Original Message-----
From: Herbert Groot Jebbink [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 27 de Março de 2001 7:45
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] %V for strftime does not work under Windows NT


Hi,

Whatever I do, I can't get the weeknumer with %V in strftime, %W does
work, I'm using PHP 4.0.4pl1 under NT.

It works under IRIX and Linux (also PHP 4.0.4pl1)

Greetings, Herbert

<?php

  setlocale("LC_ALL", "english");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale ("LC_TIME", "");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale ("LC_TIME", "C");
  $week = strftime("%V",mktime()); 
  echo "-$week-";

  setlocale('LC_TIME', 'SWEDISH');
  $week = strftime("%V",mktime()); 
  echo "-$week-";

?>

Greetings, Herbert

-- 
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]




> 1. Why when I use $PHP_SELF, I get the file referenced twice? Ex: in
> file hello.php I have
> 
> <?php
>  echo $PHP_SELF ;
> ?>
> 
> and the result is: /cgi-bin/hello.phpcgi-bin/hello.php

This one beats me... :) Try one of the 'other', like $SCRIPT_NAME and
see if it works the same...

> 2. I set up the following right from PHP.net FAQ:
> 
> <?php
> while (list($var, $value) = each($HTTP_POST_VARS)) {
>                echo "$var = $value<br>\n";
>            }
> ?>
> 
> but this does nothing. The FORM that is posted has four text INPUT's.

This one may be easy: are you using the 'name' attributes? e.g. you have
to use something like this on your form:
  <input type=text name=whatever ...>
                   ^^^^^^^^^^^^^
THEN you'll be able to refer to that field using $whatever and it will be
included in $HTTP_POST_VARS.

> This script is called from a JavaScript function that is called from an
> HTML FORM submit as follows:
> 
> function SubmitIt() {
>      top.frames["myframe"].location = '/cgi-bin/hello.php' ;
>       }
> 
> I understand that php4.0.4pl1 automatically track system variable ... ?
>

I don't think this will work: you're not actually submiting anything this
way; all you're doing is calling the script on another frame, and that will
probably not send any data along with it... If you want your results to 
appear in a diferent frame, you'll have to do it some other way, like
using redirects or something...

> 3. I cannot get the form submit to work with the above if I set:
> 
>     ACTION="<?php echo /cgi-bin/hello.php ?>"

I don't see why you want to do that: is the script name to be variable
depending on who is requesting the page? This is probably happening because
you're trying to use a tag ('<?') inside another tag ('<form...>')
If you MUST do it, try this instead:

<?
$script_name = '/cgi-bin/hello.php';
$form = '<FORM ACTION=" . $script_name . "etc...>';
echo $form;
?>
  ... rest of the form html ...

HTH,
  Madruga




Hi,

I just made a test.
<html>
<head>

</head>
<body>

<form ACTION=test2.php METHOD=post>
<input TYPE=text NAME=test1>
<INPUT TYPE=text NAME=test3><br>
<INPUT TYPE=text NAME=hallaballuzza>
<input TYPE=text NAME=wrksdrifk>
<INPUT TYPE=submit NAME=submit VALUE=submit>
</form>
</body>
</html>

(sorry a bit small...)
and your "while (list(..." as test2.php in the same directory works.
Why do you supply the path to the action with <?php ..?> ??
For your first question I don't know.

J

"Jim Witt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 1. Why when I use $PHP_SELF, I get the file referenced twice? Ex: in
> file hello.php I have
>
> <?php
>  echo $PHP_SELF ;
> ?>
>
> and the result is: /cgi-bin/hello.phpcgi-bin/hello.php
>
>
> 2. I set up the following right from PHP.net FAQ:
>
> <?php
> while (list($var, $value) = each($HTTP_POST_VARS)) {
>                echo "$var = $value<br>\n";
>            }
> ?>
>
> but this does nothing. The FORM that is posted has four text INPUT's.
> This script is called from a JavaScript function that is called from an
> HTML FORM submit as follows:
>
> function SubmitIt() {
>       top.frames["myframe"].location = '/cgi-bin/hello.php' ;
>        }
>
> I understand that php4.0.4pl1 automatically track system variable ... ?
>
> 3. I cannot get the form submit to work with the above if I set:
>
>     ACTION="<?php echo /cgi-bin/hello.php ?>"
>
> And I have tried every combination of:
>
>    echo /cgi-bin/hello.php
>    echo '/cgi-bin/hello.php'
>    echo hello.php
>    echo 'hello.php'
>
> etc, etc, ....
>
>
> For reference: Athlon 1 GHz, Win98 SE, PHP 4.0.4pl1, Xitami server,
> Netscape 4.7
>
>
> Thanks in advance,
>
> Jim Witt
> [EMAIL PROTECTED]
>
>






Flint

Yeh, that's about the right syntax, but if you are sending duplicate messages
from a web server, I'd strongly recommned bcc: in the header instead of cc:

Tom

Flint Doungchak wrote:

> Randall,
>
> I'm not sure on this so I may need some correction, in theory, you should be
> able to put two addrees in the first argument, but I have never gotten it to
> work. But try this. I might be wrong on the syntax.
>
> mail("[EMAIL PROTECTED]","Subject: I'm an idiot","Message body
> here","From:[EMAIL PROTECTED],Cc:[EMAIL PROTECTED]");
>
> Somewhere care to check on my syntax? Sorry Randall at not being absolutely
> clear.
>
> -Flint
>
> -----Original Message-----
> From: Randall Barber [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Mail submisison of form data
>
> I have taken over a web page that submits form information to an email =
> address.
> I was wondering if there is a way in the mailto: tag to carbon copy the =
> message.  If there is it saves me time.
>
> Otherwise, I was going to submit the results to a PHP page that simply =
> echo'd something like this:
>
> ---------------------------------------------
>
> Our mail center has received the following information:
>
> .
> .
> info here
> .
> .
>
> Click here to return to the Mail Center.
>
> ----------------------------------------------
>
> I would use PHPs mail() function to email it to the center.
>
> Having it carbon copied would save me the step of writing another page.
> Any suggestions?
> Thanks
> RDB
>
> --
> 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]






Flint Doungchak wrote:

> mail("[EMAIL PROTECTED]","Subject: I'm an idiot","Message body
> here","From:[EMAIL PROTECTED],Cc:[EMAIL PROTECTED]");
That works, but i have something to add...the last argument is in fact
the extra headers added to the mail. So you could also add something
like "x-mailer:topPHPmailer" or anything you like... :)

hope that helps someone, somewhere... ;-)




Few things: -
1) Update Apache - 1.3.6 probably came out before WinME went Gold (it's not that
old really, but there have been a number of pretty serious bug fixes in the last
few releases and its always a good idea to try and stay pretty current)
2) Are you using this on a network with a firewall/proxy in place ? If so, you
will probably have to turn the proxy off for 'local' addresses.
3) Is Apache actually running? (Try using it as a service I've found it to be a
lot more reliable)
4) Do you have any files in your DocumentRoot or does the page that you are
trying to call actually exist?
5) Are you trying to load files which don't exist by accident (in php.ini you
can specify files to automatically prepend to every call, and in http.conf you
can specify default files to load, although the latter shouldn't be a problem
unless you also have directory browsing disabled)

Just some thoughts!

Tom

Christoph Winkler wrote:

> Hi! I am using PHP4 on Apache 1.3.6 under Windoze Me. When I'm calling my ip
> or localhost. The page cannot be found. There's no Error msg from Apache.
> Can anyone help? Thank you!
>
> --
> 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]




I'm a programmer and develop. under Visual Studio and it's the first time I
use PHP.

I want to install PHP for windows and create new tools.

I look for a PHP3(or PHP4) executable and his associated source code for a
Visual Studio environment.


Thanks everybody.






Hy

Ive got a Problem. I use Php4 and Apache 1.3.x under Windows2000.
With this combination iam not able to get the cgipredefined variables such
as QUERY_STRING or SERVER_NAME
They are all empty.
There is also no Variable $Task defines when I call a PHPSite in the
internetexplorer like
http://134.91.90.239/test.php4?Task=Search

Why? Ive tried it with PHP4 and IIS unter NT4 and it worked.

Thank you for helping.

Oliver






Thank Everybody,
I got the solution by myself.
The key point is "delete c:\php\php.ini"
Then modify c:\winnt\php.ini
 extension_dir =\php\extensions\
 extension=php_gd.dll

Of course , you just can manipulate PNG , JPG , WBMP picture.


""Evan Chang"" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó
99pbv1$qce$[EMAIL PROTECTED]">news:99pbv1$qce$[EMAIL PROTECTED]...
> Hello, Every Superman,
> Please help me to setup the GD Library for Apache+PHP4 at Win32 platform .
> Thanks !
> Evan Chang
>
>
>
> --
> 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]
>






hello,
I thought running php from the command-line (on winNT), 
eg.:

php C:\Programmi\Apache Group\Apache\htdocs\test\phpinfo.php

would send to the console (stdout) the result, but I get nothing!

(I'm quite sure this has worked before on php 4.0.2, or at least 3.0.16)

what's wrong?

thank you,
Giuse


/-------------------------------\
| http://boltthrower.webhop.org |
\-------------------------------/






Did you try enclosing the file name in quotes? E.g:
php "C:\Programmi\Apache Group\Apache\htdocs\test\phpinfo.php"

what about simply executing php, then quickly (within 30 seconds)
typing <? phpinfo() ?>
followed by CTRL-Z?

HTH,
  Madruga

-----Original Message-----
From: Giuseppe D'Ambrosio [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 27 de Março de 2001 15:12
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php from the command-line


hello,
I thought running php from the command-line (on winNT), 
eg.:

php C:\Programmi\Apache Group\Apache\htdocs\test\phpinfo.php

would send to the console (stdout) the result, but I get nothing!

(I'm quite sure this has worked before on php 4.0.2, or at least 3.0.16)

what's wrong?

thank you,
Giuse


/-------------------------------\
| http://boltthrower.webhop.org |
\-------------------------------/



-- 
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]




hello again,
I've solved my previous problem, thanks to Fernando Madruga (just quoting the file 
name):

php "C:\Programmi\Apache Group\Apache\htdocs\test\phpinfo.php"

now, running my script from command-line (no more from the browser, where it works 
fine) I get an oracle error ORA-12154 from my db
(via ODBC)

the oracle server is on a HP-unix machine (while apache is on winNT), so I can't set 
any environment variable..

any hint?

thanks,
Giuse

/-------------------------------\
| http://boltthrower.webhop.org |
\-------------------------------/






Sorry guys this is only for german peoples :)

Kennt nicht irgendjemand eine deutsche PHP Newsgroup? Ich kann die Fragen
besser in deutsch formulieren bzw. verstehen :)

Danke im vorraus






Hi!

de.comp.lang.php

Viel Spaß,
Thomas


Christoph Winkler wrote:

> Sorry guys this is only for german peoples :)
>
> Kennt nicht irgendjemand eine deutsche PHP Newsgroup? Ich kann die Fragen
> besser in deutsch formulieren bzw. verstehen :)
>
> Danke im vorraus
>
> --
> 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]





Mein Deutsch ist nicht so gut. Die PHP-Site druckt
http://www.php-center.de aus.

> -----Original Message-----
> From: Christoph Winkler [mailto:[EMAIL PROTECTED]]
> Sent: March 27, 2001 7:39 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Irgendeine deutsche newsgroup?
>
>
> Sorry guys this is only for german peoples :)
>
> Kennt nicht irgendjemand eine deutsche PHP Newsgroup? Ich kann die
Fragen
> besser in deutsch formulieren bzw. verstehen :)
>
> Danke im vorraus
>
>
>
> --
> 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





Ich bin traurig, daß ich nicht irgend solche Sites oder newsgroup kenne. Er
sieht wie einige andere aus. Wie gut arbeitet dieser Übersetzer auf
Altavista? 

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit


> -----Original Message-----
> From: Christoph Winkler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 9:39 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Irgendeine deutsche newsgroup?
> 
> 
> Sorry guys this is only for german peoples :)
> 
> Kennt nicht irgendjemand eine deutsche PHP Newsgroup? Ich 
> kann die Fragen
> besser in deutsch formulieren bzw. verstehen :)
> 
> Danke im vorraus
> 
> 
> 
> -- 
> 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]
> 




Well not too bad but not too good either.
the second sentence would be: he looks
like some others. Who does ???

Johannes

""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ich bin traurig, daß ich nicht irgend solche Sites oder newsgroup kenne. Er
sieht wie einige andere aus. Wie gut arbeitet dieser Übersetzer auf
Altavista?

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit









On Tue, 27 Mar 2001 20:15:07 +0200, Johannes Janson wrote:

>>""Asendorf, John"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>>news:620001CE6A56D41189F300B0D02203743EB5D3>>@exchange.lcounty.com...
>>Ich bin traurig, daß ich nicht irgend solche Sites oder newsgroup kenne. Er
>>sieht wie einige andere aus. Wie gut arbeitet dieser Übersetzer auf
>>Altavista?
>
>Well not too bad but not too good either.
>the second sentence would be: he looks
>like some others. Who does ???

Hello John, and all

if you need a translation of a website or page, I'd suggest you have a
translator do it rather than a "machine" .... even those fancy machines
we translators use at times can't provide a proper translation, and
those like Altavista reach their limit a lot faster ...   I know by
experience  :-) Maybe, you want to consider having a look at my website
given below in my signature?

With kind regards,
Wolfgang Schneider

Webdesign & Translations
http://www.ws-webservice.de/en/
Tel +49 (0) 228 326484 * Fax +49 (0) 228 326438





Hi all,

On a Win2K+IIS5.0+Php 4.0.4pl1(CGI), IIS persists on appending a small text
to every page it produces:
GetRegValue(): Unable to RegOpenKeyEx () Opération réussie.

I know it's some kind of Windows API message, but I can't figure why it
appears. Pure HTML static pages are unaffected.

Thanks for any help.







In the php.net manual, you can read about the LDAP functions:

" You will need to get and compile LDAP client libraries from either the
University of   Michigan ldap-3.3 package or the Netscape Directory SDK
3.0.  "

Does have anyone these LDAP client libraries for Windows ?


Thankyou!!



===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





Hi Antonio,

I think M$ has a LDAP-Client, at least if you have a
M$-Exchange server.

Perhaps this helps ??

Greetinx,
  Mike

> -----Original Message-----
> From: Antonio Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 5:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] LDAP
>
>
>
> In the php.net manual, you can read about the LDAP functions:
>
> " You will need to get and compile LDAP client libraries from
> either the
> University of   Michigan ldap-3.3 package or the Netscape
> Directory SDK
> 3.0.  "
>
> Does have anyone these LDAP client libraries for Windows ?
>
>
> Thankyou!!
>
>
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590  - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
>
> --
> 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]
>





Sorry if this is painfully obvious, but here goes...

I've installed Apache and PHP4 following the guide I've got about changes to
httpd.conf and moving the dlls etc.

However, when I try and run phpinfo.php as a test, it throws up the download
message box (i.e. you are trying to download... from...).

I've tried it with .php3 extension etc., everything I set it up to
recognise, but still no joy.

Any thoughts hugely appreciated.

Cheers
Mark






It seems that Apache doesn't recognize your script as php file.

First have you rebooted Apache after you modified httpd.conf? If so, 
check the following lines:

ScriptAlias /php4/ "f:/php/php4corrente/"
AddType application/x-httpd-php4 .php
Action application/x-httpd-php4 "/php4/php.exe" 

This is my configuration. The first lines identifies where you have installed php, in 
the second line you say which extension identifies the php script, and in the last 
one, you what Apache must execute.

Regards

Darvin

-----Original Message-----
From:   Mark W [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, March 27, 2001 6:36 PM
To:     [EMAIL PROTECTED]
Subject:        [PHP-WIN] Seriously newbie question

Sorry if this is painfully obvious, but here goes...

I've installed Apache and PHP4 following the guide I've got about changes to
httpd.conf and moving the dlls etc.

However, when I try and run phpinfo.php as a test, it throws up the download
message box (i.e. you are trying to download... from...).

I've tried it with .php3 extension etc., everything I set it up to
recognise, but still no joy.

Any thoughts hugely appreciated.

Cheers
Mark



-- 
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]






Thanks Darvin. I did restart Apache but I'll go back and see if my config
matches yours and try again.

Appreciate the help.
Mark
"Darvin Andrioli" <[EMAIL PROTECTED]> wrote in message
01C0B6EF.0A64EFC0@PCDARVIN">news:01C0B6EF.0A64EFC0@PCDARVIN...
It seems that Apache doesn't recognize your script as php file.

First have you rebooted Apache after you modified httpd.conf? If so,
check the following lines:

ScriptAlias /php4/ "f:/php/php4corrente/"
AddType application/x-httpd-php4 .php
Action application/x-httpd-php4 "/php4/php.exe"

This is my configuration. The first lines identifies where you have
installed php, in the second line you say which extension identifies the php
script, and in the last one, you what Apache must execute.

Regards

Darvin

-----Original Message-----
From: Mark W [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 6:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Seriously newbie question

Sorry if this is painfully obvious, but here goes...

I've installed Apache and PHP4 following the guide I've got about changes to
httpd.conf and moving the dlls etc.

However, when I try and run phpinfo.php as a test, it throws up the download
message box (i.e. you are trying to download... from...).

I've tried it with .php3 extension etc., everything I set it up to
recognise, but still no joy.

Any thoughts hugely appreciated.

Cheers
Mark



--
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]







I have an older verion of PHP, specifically 4.01 if memory serves me right,
on an NT box.  What files do I need to remove to get things back to square
one for the latest version?    Any help or references would be greatly
appreciated!

-- Bradley Miller




I am trying to setup access privileges for the "Admin" folders on my
intranet.
Each department in the Intranet has an admin folder that allow the heads of
each department to update the news and so on.
I want the administrator's logins to be based on their current NT logins on
our domain.

I changed the Security permissions on the admin folder for each department.
I removed "Everyone" and added "Administrator"
When the directory is accessed via the web browser, the password challenge
works perfect.

EX: http://intranet/engineering/admin/
Will bring up the admin page after authenticating the user.

HOWEVER: http://intranet/engineering/admin/index.php
Will bring up: Warning: Failed opening 'D:\wwwroot\home\admin\index.php'
for inclusion (include_path='') in Unknown on line 0

If I change the Security permissions of index.php to include "Everyone",
the admin page will display correctly...but it will not be password
protected.

Is this being caused by the IIS / PHP service being logged in as
"localhost"? Is there a workaround for this problem?
Any help will be greatly appreciated. If you wish to contact me directly,
send an email to [EMAIL PROTECTED] Thanks in advance.

-Paul Wieland





In the internet service manager, check the 'check file exists' box for the
.php script map.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





Indeed, an error on line 0 means that the file could not be found by
php.exe.

Luc

""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message
004201c0b6eb$beb16340$0c800001@philsntserver">news:004201c0b6eb$beb16340$0c800001@philsntserver...
> In the internet service manager, check the 'check file exists' box for the
> .php script map.
>
> Cheers
> --
> Phil Driscoll
> Dial Solutions
> +44 (0)113 294 5112
> http://www.dialsolutions.com
> http://www.dtonline.org
>
>
> --
> 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]
>




Reply via email to