php-windows Digest 16 Mar 2003 14:27:41 -0000 Issue 1637

Topics (messages 19027 through 19031):

Re: fopen("http://...";) shows error when there is none
        19027 by: Lukas

htaccess ignored
        19028 by: Thomas Smart

Re: link error on compile php4ts.dsw -cannotopen input file "zlib.lib"
        19029 by: John M. Calvert
        19030 by: Frank M. Kromann

PHP 4.3.1 Installer - Windows 98 - PWS HELP!!!
        19031 by: Nick

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 ---
Ha, just forget it! It was no php problem but the settings I had with my SMS
gateway linked back to a file on my server that doesn't exist.

"Lukas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi!
> I've installed 4.3.1 under Windows 2002 and whenever I try to call my SMS
> gateway with a php function (which was no problem with the provider I had
> before) the script gives me the following output:
>
> Warning: fopen() [function.fopen]: HTTP request failed! HTTP/1.1 404
Object
> Not Found in E:\Webseiten\test.php on line 3
> Warning: fopen( here comes my sms provider url for the script)
> [function.fopen]: failed to create stream: Bad file descriptor in
> E:\Webseiten\test.php on line 3
> Warning: fgets(): supplied argument is not a valid stream resource in
> E:\Webseiten\\test.php on line 4
> Warning: fclose(): supplied argument is not a valid stream resource in
> E:\Webseiten\\test.php on line 5
>
> But ... the SMS arrives on my mobile phone without any problems!
> Do you have an idea what I could do?
>
> Lukas L. Rosenstock
>
>



--- End Message ---
--- Begin Message ---
apache is totally ignoring the htacces file iv got in this folder:
http://films.k9logic.nl/123

im running the latest apache 1.3 build on windows xp

httpd.conf:
AllowOverride All

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

.htaccess:
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile h:/sites/htpasswd
Require user thomas

any help apreciated,
thanks,
Thomas



--- End Message ---
--- Begin Message ---
Thank you, that solved my immediate problem. I now have a fully compiled and
linked php.exe. I have to play with my configuration a little more to be
sure that it works properly.

I'll report a bug against php-4.3.1.tar.gz and
/manual/en/install.windows.php for this situation with zlib.lib so it can be
tracked.

I have a couple of related questions if anyone can help get me up the PHP
"Build from source" learning curve.

1) I should have dug deeper in CVS [PHP] /zlib to discover that it builds
zlib.lib and that would have saved both of us some time. But I wasn't clear
on the CVS [PHP] structure and how it relates to [PHP] /php4/ext/zlib. Is
there a readme somewhere that explains the overall directory structure of
CVS [PHP]?

2) I just installed WinCVS and I'm looking at /anoncvs.php which is written
from a command-line CVS client point of view. Are there any pointers on
translating the various instructions to their appropriate section of the
WinCVS config?

3) Where is the php 5.0.x tree in CVS? I see [PHP] /php3 and  [PHP] /php4
but no [PHP] /php5.

Once again, thanks for your help. Regards

John

P.S. Unlike your situation, as a newbie to PHP source compilation I tend to
avoid head revisions which can be less stable (perhaps don't even compile?),
in the hopes that I'll have fewer gotchyahs to worry about. Don't know if
that backfired this time.

----- Original Message -----
From: "Frank M. Kromann" <[EMAIL PROTECTED]>
To: "John M. Calvert" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 15, 2003 12:57 PM
Subject: Re: [PHP-WIN] link error on compile php4ts.dsw -cannotopen input
file "zlib.lib"


Hi John,

I have never used the pre build version of the source code (I allways
build from the cvs version). From version 4.3.0 of php we decided to have
the zlib extension compiled in so there is no need for php_zlib.dll. In
order to compile php you need to get a copy of the zlib sources. I guess
we need to update the build instructions and include this code in the
distribution.

You can get zlib from the cvs server (cvs.php.net). This will give you a
zlib directory next to php4 and bindlib_w32. You will find zlib.dsp and
dsw files in this directory. These files can be used to build the
zlib.lib

- Frank

> I'm not familiar enough with the architecture of PHP to fully
understand
> your comment. When you say module, to me that means *.dll. However, my
error
> occurs when the linker is trying to link a library, zlib.lib. The
relevant
> details are in the /win32/php4dllts.dsp project which is part of the
> /win32/php4ts.dsw workspace. I'm trying to build php4ts.dsw as per
> /manual/en/install.windows.php#install.windows.build.
>
> Given the linker error I get, I'm looking for zlib.lib which I don't
see
> anywhere. Mind you, is there a search function for cvs.php.net? I had
to
> look by randomly rooting around. The zlib project (/ext/zlib/zlib.dsp)
> builds php_zlib.dll so that is not it.
>
> Some external libraries are included in /extra/win32build.zip, and the
above
> instructions even have us build an additional resolv.lib, but there is
no
> sign of zlib.lib.
>
> I've tried this with both the PHP 4.3.1 (tar.gz) [4,395Kb] - 17
February
> 2003 and a PHP snapshot Latest CVS (4.5.x-dev). Same problem with both.
But
> I'm not sure if the problem is my machine configuration, or an error in
the
> MS VC++ workspace / project details.
>
> John
>
> ----- Original Message -----
> From: "Frank M. Kromann" <[EMAIL PROTECTED]>
> To: "John M. Calvert" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, March 15, 2003 3:22 AM
> Subject: Re: [PHP-WIN] link error on compile php4ts.dsw -cannot open
input
> file "zlib.lib"
>
>
> the zlib extension is compiled in and you need to get the zlib module
from
> cvs.php.net.
>
> - Frank
>
> > Hi, I trying for the first time ever to compile PHP on my Windows
2000
> > machine using MS VC++ 6. I have been following the instructions in
> > /manual/en/install.windows.php. Everything goes fine until the linker
> kicks
> > in:
> >
> > Linking...
> > LINK : fatal error LNK1181: cannot open input file "zlib.lib"
> > Error executing link.exe.
> >
> > php.exe - 1 error(s), 21 warning(s)
> >
> > I've spent a few hours poking at it but there is too much new to me
to
> > figure my way out. The best I can figure is that zlib.lib should be
in
> > win32build/lib but it isn't.
> >
> > Can anyone help?


--- End Message ---
--- Begin Message ---
Hi John,

> I'll report a bug against php-4.3.1.tar.gz and
> /manual/en/install.windows.php for this situation with zlib.lib so it
can be
> tracked.

Thats the right way!

> 
> I have a couple of related questions if anyone can help get me up the
PHP
> "Build from source" learning curve.
> 
> 1) I should have dug deeper in CVS [PHP] /zlib to discover that it
builds
> zlib.lib and that would have saved both of us some time. But I wasn't
clear
> on the CVS [PHP] structure and how it relates to [PHP] /php4/ext/zlib.
Is
> there a readme somewhere that explains the overall directory structure
of
> CVS [PHP]?

Not to my knowledge, but keep asking and one day we might read one :-)

I have a short read me on my homepage (http://kromann.info/php4.php). It
uses the command line version of CVS (as included with WinCVS). I'll make
a not to write a config section as well.

> 2) I just installed WinCVS and I'm looking at /anoncvs.php which is
written
> from a command-line CVS client point of view. Are there any pointers on
> translating the various instructions to their appropriate section of
the
> WinCVS config?

Most of PHP is based on Unix&Linux version of CVS. If you know CVS it is
not too difficult to translate it into the config of WinCVS.

> 
> 3) Where is the php 5.0.x tree in CVS? I see [PHP] /php3 and  [PHP]
/php4
> but no [PHP] /php5.

On cvs.php.net we have php4, Zend, TSRM and ZendEngine2. When checking out
PHP4 you get a copy of php4, Zend and TSRM. With php5 you get php4, TSRM
and ZendEngine2 (in Zend). This is handled by a module wrapper on the cvs
server.

- Frank




--- End Message ---
--- Begin Message ---
I have installed PHP 4.3.1 Installer from http://www.php.net/downloads.php
for Windows98 and PWS.

After installation, I received 403.1 Error so I set the MS PWS <Home>
virtual directory to set for Read, Execute, and Scripts access.

PWS sever is running and it runs other web content (both html and ASP) fine.
But now I get a Server Not Found page when accessing my PHP Test page
(http://localhost/PHPtest.php).

I have checked the registry and php.ini file located in C:\windows\ and the
settings seem to match all the areas covered in the "manual install"
instructions at the
http://localhost/PHPtest.php site. So, I assume the install wizard did its
job.  I have also tried to change the cgi.force_redirect to both 0 & 1 but
makes no difference. I have also tried adding the PHP directory as a virtual
directory with all permissions but that doesn't work either. The php4ts.dll
is located with the php.exe file located on C:\php\.

Can anyone suggest anything else to try to get PHP running on a Windows98
and PWS platform?

Thanks in advance.



--- End Message ---

Reply via email to