php-windows Digest 15 Nov 2002 07:32:14 -0000 Issue 1441

Topics (messages 16950 through 16958):

Re: Windows XP setup problem with Apache 1.3 and PHP
        16950 by: Dash McElroy

Re: Permission denied with copy function.. SOLVED
        16951 by: Step Schwarz
        16952 by: Scott Carr

Installing extensions (winXP)
        16953 by: Davy Obdam
        16956 by: Seung Hwan Kang

Problem escaping characters
        16954 by: Lars Espelid
        16955 by: Dash McElroy

Strange problem
        16957 by: Sichta Daniel

set up mysql without winmysqladmin?
        16958 by: A. J. McLean

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 ---
Scott,

Did you copy the php4ts.dll file into your c:\%WINDIR%\system32 dir? I'm not
sure what PHP does without that file, but it's one place to look.

I've been using Apache 2 lately (2.0.40 works with 4.2.3 with no problems,
but Apache2 support in 4.2.x is "experimental". PHP 4.3.x shouldn't be but
it's still beta) on Win32 (Haven't ventured into Apache2 land on Linux
yet...) and it seems to work fine for small development stuff. Apache 1.3
was never a problem.

You may also want to see if the following PHP.ini paramater is set (php.ini
should be in c:\%WINDIR%)

short_open_tag = On

or replace <? with <?php in your file.

-Dash

-----Original Message-----
From: Scott Trosper [mailto:strosper@;worldnet.att.net] 
Sent: Thursday, November 14, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Windows XP setup problem with Apache 1.3 and PHP


I have installed Apache 1.3.27 and PHP 4.2.3 and can not get it to run php
scripts.  I have gone through the install readme a couple of times to
confirm everything is as indicated.  When I call a script with php tags:  <?
phpinfo(); ?>   it does not launch php.  When I view the source, the text
for the file is all that is shown.  I am currently running the modules
configuration with the following lines in httpd.conf

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c

AddType application/x-http-php .phtml .php
AddType application/x-http-php-source .phps

I have added the registry settings for php4isapi.dll , although I am not
sure if this is needed.  I tried with and without and it performs the same.

I do not get any sort of error message from Apache, the entry in the access
log file is:

127.0.0.1 - - [14/Nov/2002:11:32:21 -0700] "GET /phpinfo.php HTTP/1.1" 200
99

I am at a loss on this one.  I have even tried using Apache 2.0.43, but
could not get it to perform the LoadModule part correctly.  Gave up and went
back to 1.3.27

Are there any diagnostic tools I can use to see where this is going wrong?
I do not believe it is even calling php.  I did confirm the php installation
using php -i and piping this to an HTML  file that I could open.

The system I am using is running Windows XP professional with SP1 installed.

Thanks in Advance,
Scott Trosper
[EMAIL PROTECTED]





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Scott, you were right all along.  I started searching ASP lists for help
because I figure the permissions will be the same no matter what scripting
language you're trying to upload files with.  I found a post explaining that
IIS uses a special user account called IUSR_<machine name> -- we added
permission for this IUSR account and our problems went away.  We were just
changing permissions for the wrong user before..

Thanks again,
-Step

> Oops!  I actually meant to copy the whole list on this.. I need to remember
> to hit the "Reply All" button :)
> 
>> What user is IIS running as?  Does it have access to those directories?
> 
> Thanks for thinking of that -- we checked the permissions of the user set up
> to allow anonymous access to the site, and those permissions also grant Full
> Control to the user.
> 
> We've also checked the IIS console to make sure the web site has Write and
> Execute access.. and to make sure the temp directory is valid and also has
> the proper permissions.
> 
> I tried to Google around for this.. but if anyone has seen setup
> instructions for IIS -- not in installing PHP itself but in setting up the
> IIS console beyond what the PHP 4.2.3 installer does by default -- please
> let me know!
> 
> Thanks,
> -Step

--- End Message ---
--- Begin Message ---
Glad things are working for you now.  Permissions can be a pain, definately.
-- 
Scott Carr
Documentation Maintainer
http://documentation.openoffice.org
OpenOffice.org


Quoting Step Schwarz <[EMAIL PROTECTED]>:

> Scott, you were right all along.  I started searching ASP lists for help
> because I figure the permissions will be the same no matter what scripting
> language you're trying to upload files with.  I found a post explaining that
> IIS uses a special user account called IUSR_<machine name> -- we added
> permission for this IUSR account and our problems went away.  We were just
> changing permissions for the wrong user before..
> 
> Thanks again,
> -Step
> 
> > Oops!  I actually meant to copy the whole list on this.. I need to remember
> > to hit the "Reply All" button :)
> >
> >> What user is IIS running as?  Does it have access to those directories?
> >
> > Thanks for thinking of that -- we checked the permissions of the user set
> up
> > to allow anonymous access to the site, and those permissions also grant
> Full
> > Control to the user.
> >
> > We've also checked the IIS console to make sure the web site has Write and
> > Execute access.. and to make sure the temp directory is valid and also has
> > the proper permissions.
> >
> > I tried to Google around for this.. but if anyone has seen setup
> > instructions for IIS -- not in installing PHP itself but in setting up the
> > IIS console beyond what the PHP 4.2.3 installer does by default -- please
> > let me know!
> >
> > Thanks,
> > -Step
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Hiya people,

I want to install some extensions like PDF and XSLT, curl etc. I have
the GD libary installed in my php.ini like this: 

extension=php_gd.dll. 

When i try to un quote the other extensions and restart Apache i get
errors, that he could load this extension. Also i have done this in my
php.ini :

; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\Program Files\PHP\extensions" 

, is this alright? If i look at my phpinfo(); it does show those
extensions but stil i get errors. I use Windows XP home with Apache
2.0.40 and PHP 4.2.3 installed as a apache(sapi) module. Can anyone help
me, any help is apreciated. Also wich extensions should i use or wich
are most commonly used? Thanks already...

Best regards,
 
Davy Obdam
mailto:info@;davyobdam.com


--- End Message ---
--- Begin Message ---
Some extensions are like not 100% available for Win32 environment. I use PHP
4.3.0pre2, Apache 2.0.43 and J2SDK 1.4.1

For XML, you need expat-1.95.5 and copy libexpat.dll to c:\windows\system32.

For XSLT, you need sablot-0.96 and copy sablot.dll to c:\windows\system32.

//php.ini

extension_dir = C:\php\extensions

[Java]
java.class.path = "c:\php\extensions\php_java.jar;d:\apache2\htdocs\classes"
// that's right I place all my java classes here \classes
java.home = "c:\j2sdk1.4.1\bin"
java.library = "c:\j2sdk1.4.1\jre\bin\client\jvm.dll"
java.library.path = "c:\php\extensions"

;Windows Extensions
extension=php_xslt.dll
; for XML don't have to do anything it's built-in module
extension=php_java.dll


"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
news:004c01c28c2e$3dcd8aa0$9600000a@;hewlett0bg96om...
> Hiya people,
>
> I want to install some extensions like PDF and XSLT, curl etc. I have
> the GD libary installed in my php.ini like this:
>
> extension=php_gd.dll.
>
> When i try to un quote the other extensions and restart Apache i get
> errors, that he could load this extension. Also i have done this in my
> php.ini :
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "C:\Program Files\PHP\extensions"
>
> , is this alright? If i look at my phpinfo(); it does show those
> extensions but stil i get errors. I use Windows XP home with Apache
> 2.0.40 and PHP 4.2.3 installed as a apache(sapi) module. Can anyone help
> me, any help is apreciated. Also wich extensions should i use or wich
> are most commonly used? Thanks already...
>
> Best regards,
>
> Davy Obdam
> mailto:info@;davyobdam.com
>
>


--- End Message ---
--- Begin Message ---
Hello,

I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro.

My problem is as follows:

Try to execute this code:
if (ereg[^0-9], $num))
    print "That's not a number!";

result: parsing error, expects ')' on the if-line.

Have also tried other expressions where I escape characters. They won't
work.

When I write:
echo "HELLO \n";
echo "WORLD";

I get: HELLO WORLD
(on one line!?)

Anyone know what's wrong? Do I need to install an extension?

Bottom of my httpd.conf:

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps

Thanks,

Lars


--- End Message ---
--- Begin Message ---
Lars,

Looks like you have an error in your syntax on the ereg line. It should most
likely look like this:

if (ereg([^0-9], $num)) {
        print "That's not a number!";
}

And your second thing is not a failure of PHP, it's a "feature" of web
browsers reading stuff in HTML. Try either wrapping it in <pre> tags or put
a <br> before the \n, or use nl2br() (www.php.net/nl2br). If you viewed your
source in the browser, you'd find this:

HELLO 
WORLD

-Dash

-----Original Message-----
From: Lars Espelid [mailto:lars_espelid@;hotmail.com] 
Sent: Thursday, November 14, 2002 2:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Problem escaping characters


Hello,

I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro.

My problem is as follows:

Try to execute this code:
if (ereg[^0-9], $num))
    print "That's not a number!";

result: parsing error, expects ')' on the if-line.

Have also tried other expressions where I escape characters. They won't
work.

When I write:
echo "HELLO \n";
echo "WORLD";

I get: HELLO WORLD
(on one line!?)

Anyone know what's wrong? Do I need to install an extension?

Bottom of my httpd.conf:

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps

Thanks,

Lars



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
cfg: XPprof, Apache 1.3, PHP 412
When I run php as ISAPI I'm getting strange results for different amount of
data from MySQL database.
For about 50 records everything work just fine (query and display) But when
I insert more rows into tables (over 150)
Then on same page I'm getting error like "Page cannot be found" . It's not
404 error but simmilar.
Then I swith o the CGI and it's working OK.
 
Any Ideas ?

Ing. Daniel Šichta 
SWH s.r.o. 
Bytčická 2 
010 01 Žilina 
tel.: +421 41 505 5889 
fax: +421 41 505 5809 
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
http://www.swh.sk <http://www.swh.sk/>  
ICQ:84700861

 
--- End Message ---
--- Begin Message ---
Is it possible to configure mysql to load up automatically whenever apache
is run (without having to load up winmysqladmin in the systray)?

Thanks!!


--- End Message ---

Reply via email to