php-windows Digest 25 Sep 2001 07:21:56 -0000 Issue 772

Topics (messages 9487 through 9504):

upload file
        9487 by: Stanley Cheung

Re: Running dual Apache and IIS
        9488 by: Erik H. Mathy
        9489 by: Phil Driscoll
        9490 by: Massimo Foti
        9493 by: Asendorf, John

CGI Error  and not able to load DLL error
        9491 by: Sridhar Moparthy
        9492 by: Phil Driscoll
        9494 by: Sridhar Moparthy
        9495 by: Phil Driscoll
        9497 by: Sridhar Moparthy

Re: help please
        9496 by: Angie Tollerson
        9499 by: Gaylen Fraley

Which command set when using php w/ mssql
        9498 by: Leonard Harris

Re: IIS Installation]
        9500 by: Craig Morrison
        9503 by: Mark

Individual Lines of text
        9501 by: Devon
        9502 by: Justin Blake

BUG! ISAPI Information for PHP developera
        9504 by: Fazed

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]


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


Dear all,

I tried to upload file with my php script...
but my win2k always reject the file which is larger than 1.5MB
can anyone help me to fixed this problem.
pls advise. thx!

Stanley






Hi All!

> Well, I've had it with the isapi module and am feeling a bit of a crunch
> here.  I'm getting it from all sides and am starting to think
> that I should
> have just gone with ASP with our Oracle db as an ODBC source and been done
> with it.

Egads, man! Don't do it! ;)

Seriously, though...the ISAPI module with IIS has been notoriously buggy to
date. A few people on the list have had success with Win2000, PHP4 isapi and
IIS5. If someone wants to pipe up feel free.

Otherwise, I've gotten plenty of performance out of the cgi route. I mean
plenty, as in blow the doors off of .asp plenty. Going with .asp and Oracle
via ODBC will be insanely slow. .ASP has never really managed to attain
PHP-like speeds. The Oracle ODBC drivers (MSoft and Oracle versions) are
both major bottlenecks. This is experience talkin'. A client of mine has me
hitting Oracle via ODBC. Ei yi yi! Not good.

Plus, if you could include some specifics about the setup (Win version, IIS
version, etc...) someone might have run into your situation before. Info
never hurts. :)

> Since it seems impossible to make the isapi module work, I'm going to try
> running Apache on a separate port so that I can get the Plogon functions
> from the OCI8 module to work.  Is anyone else doing something
> like this?  I
> remember 'someone' running both IIS and Apache on a server and
> having Apache
> listen to a specific port, but I don't remember who.  If anyone has some
> experience with this, could you drop me a note?  Thanks,  John

Plogon? As in:

http://www.php.net/manual/en/function.ora-plogon.php

Why start up Apache to do that when you can hit it via php cgi?

> P.S. Has someone added a function called format_phone to PHP?  I keep
> getting a "Cannot redeclare..." error on a function I have called
> format_phone...

Nope. Double check your function's code. There might be something in there
that's gumming up the works. If you don't see anything wrong with it drop it
out to list.

Hope this helps,
- Erik





On Monday 24 September 2001 4:43 pm, Asendorf, John wrote:
> Since it seems impossible to make the isapi module work, I'm going to try
> running Apache on a separate port so that I can get the Plogon functions
> from the OCI8 module to work.  Is anyone else doing something like this?  I
> remember 'someone' running both IIS and Apache on a server and having
> Apache listen to a specific port, but I don't remember who.  If anyone has
> some experience with this, could you drop me a note?  Thanks,  John
>
John

For some while I had IIS and Apache running on the same NT box. My production 
machines at the time were NT boxes but I was migrating everything to Linux, 
so I ran Apache configured to listen to Port 81 on the same machines for 
testing purposes. Everything worked perfectly, although loads were light. Al 
my stuff plumbs into MySQL so I can't comment on Oracle functionality with 
the PHP Apache module.

Cheers
-- 
Phil Driscoll




"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
news:E15lY8R-000MAh-0W@anchor-post-
> For some while I had IIS and Apache running on the same NT box. My
production
> machines at the time were NT boxes but I was migrating everything to
Linux,
> so I ran Apache configured to listen to Port 81 on the same machines for
> testing purposes. Everything worked perfectly, although loads were light.
Al
> my stuff plumbs into MySQL so I can't comment on Oracle functionality with
> the PHP Apache module.

I run a similar configuration, with IIS on port 80 and ColdFusion plus
Apache on port 81 with PHP, but I do this only on my development machine
used just for test, not on a production server.

Massimo






> Plogon? As in:
> 
> http://www.php.net/manual/en/function.ora-plogon.php
> 
> Why start up Apache to do that when you can hit it via php cgi?

Actually, OCIPLogon... Because there is no persistant logon to Oracle when
you are in cgi mode.  You can call the function, and it logs on, but as soon
as the php.exe instance is dropped, so is the connection.  And since the
logon takes 10-19 seconds of the total execution time of 12-20 seconds, I'm
fairly certain of where the bottleneck is.  I guess you only have to logon
to Oracle with SQL+ to notice the amount of time spent logging on...

People will be doing data entry with this application (I take that back, we
ARE doing data entry with this application) and I NEED/MUST HAVE a true
persistant connection.  I was running the isapi module with 4.0.6 on
ocassion only to have it break every 3 or 4 hours... I put 4.0.7 on and
can't even get the isapi module to 'kind of' run.  I guess I could give
4.0.8-dev on from php4win but I don't really have high hopes.

I'm not giving up on PHP... it was a rash and idiotic response to the
problem I'm having... BUT I've got to get something to work!

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Erik H. Mathy [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 12:00 PM
> To: Php-Windows (E-mail)
> Subject: RE: [PHP-WIN] Running dual Apache and IIS
> 
> 
> Hi All!
> 
> > Well, I've had it with the isapi module and am feeling a 
> bit of a crunch
> > here.  I'm getting it from all sides and am starting to think
> > that I should
> > have just gone with ASP with our Oracle db as an ODBC 
> source and been done
> > with it.
> 
> Egads, man! Don't do it! ;)
> 
> Seriously, though...the ISAPI module with IIS has been 
> notoriously buggy to
> date. A few people on the list have had success with Win2000, 
> PHP4 isapi and
> IIS5. If someone wants to pipe up feel free.
> 
> Otherwise, I've gotten plenty of performance out of the cgi 
> route. I mean
> plenty, as in blow the doors off of .asp plenty. Going with 
> .asp and Oracle
> via ODBC will be insanely slow. .ASP has never really managed 
> to attain
> PHP-like speeds. The Oracle ODBC drivers (MSoft and Oracle 
> versions) are
> both major bottlenecks. This is experience talkin'. A client 
> of mine has me
> hitting Oracle via ODBC. Ei yi yi! Not good.
> 
> Plus, if you could include some specifics about the setup 
> (Win version, IIS
> version, etc...) someone might have run into your situation 
> before. Info
> never hurts. :)
> 
> > Since it seems impossible to make the isapi module work, 
> I'm going to try
> > running Apache on a separate port so that I can get the 
> Plogon functions
> > from the OCI8 module to work.  Is anyone else doing something
> > like this?  I
> > remember 'someone' running both IIS and Apache on a server and
> > having Apache
> > listen to a specific port, but I don't remember who.  If 
> anyone has some
> > experience with this, could you drop me a note?  Thanks,  John
> 
> Plogon? As in:
> 
> http://www.php.net/manual/en/function.ora-plogon.php
> 
> Why start up Apache to do that when you can hit it via php cgi?
> 
> > P.S. Has someone added a function called format_phone to 
> PHP?  I keep
> > getting a "Cannot redeclare..." error on a function I have called
> > format_phone...
> 
> Nope. Double check your function's code. There might be 
> something in there
> that's gumming up the works. If you don't see anything wrong 
> with it drop it
> out to list.
> 
> Hope this helps,
> - Erik
> 
> 
> -- 
> 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]
> 




Hi All,

I have been trying to install php4 on WinNT4 with IIS4.
I could not complete the installation with  "PHP 4.0.6 installer"  from
php.net as it failed to find some OCX control ( Don't know what OCX
control).  So I had to install manually. I did every thing as documented in
php.net site. When I have a sample PHP program that displays some string
just with print function, I am getting the following error.


CGI Error
"The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:"



Also getting the following error when I tried to load LDAP extension. The
file exists in the specified directory. But I don't know why it is not able
to identify the php_ldap.dll file. I am able to load all other extensions
but not php_ldap.dll.

"Unable to load dynamic library ':c:\php\php_ldap.dll' - The specified
module could not be found"

Please help me, I have been struggling for the last 3 days to install PHP4
properly.
Any help in installing PHP on WinNT4 with ISS4 with LDAP and Oracle8
extensions is a great help!!

Thanks in advance.
Sridhar Moparthy.






On Monday 24 September 2001 5:23 pm, Sridhar Moparthy wrote:
>
> CGI Error
> "The specified CGI application misbehaved by not returning a complete set
> of HTTP headers. The headers it did return are:"
>
>
install.txt tells you what to when you get this error.
-- 
Phil Driscoll




Phil,

Thank you for your reply.

I have checked the following as mentioned in install.txt.

1. Php.exe -i is working properly from the dos prompt.
2. All internet anonymous users have full access to PHP directory and all
its contents and php.ini file
3. Script file location is correct.

But Still I am getting the same error.

Thanks
Sridhar.





-----Original Message-----
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:45 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] CGI Error and not able to load DLL error


On Monday 24 September 2001 5:23 pm, Sridhar Moparthy wrote:
>
> CGI Error
> "The specified CGI application misbehaved by not returning a complete set
> of HTTP headers. The headers it did return are:"
>
>
install.txt tells you what to when you get this error.
--
Phil Driscoll

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





On Monday 24 September 2001 6:15 pm, Sridhar Moparthy wrote:
> Phil,
>
> Thank you for your reply.
>
> I have checked the following as mentioned in install.txt.
>
> 1. Php.exe -i is working properly from the dos prompt.
> 2. All internet anonymous users have full access to PHP directory and all
> its contents and php.ini file
Plus all required dlls? A good check to see if it's a security issue is to 
temporarily change the anonymous web user from IUSR_machinename to 
administrator - if it starts to work, then it was a permissions issue.

> 3. Script file location is correct.
Are you sure there are no hidden filetypes? Have you ticked the 'check file 
exists box'?

Cheers
-- 
Phil Driscoll




Phil,

2. I have php_ldap.dll, php_oracle.dll, php4ts.dll and php.exe in "c:\php\"
directory. All these files are accessible to iusr_* users with full control.
Also these users have access to php.ini with full control. Also "Everyone"
has "Fullcontrol" on all these files.  I just gave administrator to iuser_
users.

3.I have ticked the 'check file exists box'

But still having the same problem :(

Please help me !!.
Thank you
Sridhar.






-----Original Message-----
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] CGI Error and not able to load DLL error


On Monday 24 September 2001 6:15 pm, Sridhar Moparthy wrote:
> Phil,
>
> Thank you for your reply.
>
> I have checked the following as mentioned in install.txt.
>
> 1. Php.exe -i is working properly from the dos prompt.
> 2. All internet anonymous users have full access to PHP directory and all
> its contents and php.ini file
Plus all required dlls? A good check to see if it's a security issue is to
temporarily change the anonymous web user from IUSR_machinename to
administrator - if it starts to work, then it was a permissions issue.

> 3. Script file location is correct.
Are you sure there are no hidden filetypes? Have you ticked the 'check file
exists box'?

Cheers
--
Phil Driscoll





Mustafa,
What are you using to test the page?  The best test is to have nothing but this in 
your sample.php
<?phpinfo();?>
Is your page still blank when you go to this?

Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]

>>> "Mustafa Koseoglu" <[EMAIL PROTECTED]> 09/24/01 09:02AM >>>
i have installed and configured php on apache and got it running. (it says
apache and php are running...)
but when i test my sample.php file i got nothing. (doesn't work). any help
is appreciated.



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






Start here:

http://www.faqts.com/knowledge_base/index.phtml/fid/37

--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts

"Mustafa Koseoglu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i have installed and configured php on apache and got it running. (it says
> apache and php are running...)
> but when i test my sample.php file i got nothing. (doesn't work). any help
> is appreciated.
>
>






Sorry for this simple-minded question, but this newbie couldn't find the
answer by just looking around.

When using php w/ an mssql db, does one always use the mssql-specific db
cmds (i.e. mssql-connect() etc.)?

Is there any good reason why one would use the odbc oriented commands in
this case?

Are the odbc oriented commands primarily available for those dbs that have
no built in db-specific commands?  Or am I missing something here?

Thanks for any help.

Lenny Harris






Bill and I have been having numerous problems getting IIS and PHP to cooperate
with each other. NT4 server, PHP 4.0.6, IIS 4. 'install.txt' has been followed
to the letter.

Xitami 2.4d7 is installed on the servers also for testing purposes, PHP works
without a hitch.

Suggestions?

-------- Original Message --------
Date: Mon, 24 Sep 2001 17:51:24 -0400
From: "William Warner, Jr." <[EMAIL PROTECTED]>
To: "Craig Morrison" <[EMAIL PROTECTED]>

Btw, I am almost positively 100% certain the nocc with IIS issue has to do
with NT security on files/folders..  I installed php & nocc on XXXXXXXX's
server following your instructions to the T, only changing the settings for
their domain & drives.  Guess what?  It works!  Well, kinda..  Get this..  I
open the webmail/index.php file and get the login screen (which is more than
I ever could do on my server) and even login and see my inbox as long as I
don't have any messages!  php.exe locks up..  I close my browser after
awhile & check & there's a bunch of php.exe in there using 0%..  I end-task
them & there are a bunch of 0k session files in the temp folder..  I even
have full rights to c:\temp c:\php & the webmail folder for everyone & their
web user..  Too weird!  Now, get this.  I rename the php folder & I get
'error 404 file not found' which is what is supposed to happen.  I rename
the folder back & remove rights for everyone & the web user on the php
folder.  Now, when I connect to the webmail folder I get a pop-up prompting
me for a username & password!  (Which makes sense since the web user can't
read the files as it doesn't have rights) so I put in an admin user name &
pass & guess what?  The webmail works!!  Even when there are messages!  So
it's GOTTA be an NT security setting on some folder or file as when I'm
'logged in' as admin it works but it doesn't when the web user is used, even
if I set rights to 'Full control' for all I listed above..  Real weird..  I
gotta be missing something..
Cya,
Bill-E




On Mon, 24 Sep 2001 17:13:00 -0500, Craig Morrison wrote:
>
>Bill and I have been having numerous problems getting IIS and PHP to
>cooperate
>with each other. NT4 server, PHP 4.0.6, IIS 4. 'install.txt' has
>been followed
>to the letter.
>
>Xitami 2.4d7 is installed on the servers also for testing purposes,
>PHP works
>without a hitch.
>
>Suggestions?

I suggest you use Apache. how many worms later will it be before you
make the switch?

>-------- Original Message --------
>Date: Mon, 24 Sep 2001 17:51:24 -0400
>From: "William Warner, Jr." <[EMAIL PROTECTED]>
>To: "Craig Morrison" <[EMAIL PROTECTED]>
>
>Btw, I am almost positively 100% certain the nocc with IIS issue has
>to do
>with NT security on files/folders..  I installed php & nocc on
>XXXXXXXX's
>server following your instructions to the T, only changing the
>settings for
>their domain & drives.  Guess what?  It works!  Well, kinda..  Get
>this..  I
>open the webmail/index.php file and get the login screen (which is
>more than
>I ever could do on my server) and even login and see my inbox as
>long as I
>don't have any messages!  php.exe locks up..  I close my browser
>after
>awhile & check & there's a bunch of php.exe in there using 0%..  I
>end-task
>them & there are a bunch of 0k session files in the temp folder..  I
>even
>have full rights to c:\temp c:\php & the webmail folder for everyone
>& their
>web user..  Too weird!  Now, get this.  I rename the php folder & I
>get
>'error 404 file not found' which is what is supposed to happen.  I
>rename
>the folder back & remove rights for everyone & the web user on the
>php
>folder.  Now, when I connect to the webmail folder I get a pop-up
>prompting
>me for a username & password!  (Which makes sense since the web user
>can't
>read the files as it doesn't have rights) so I put in an admin user
>name &
>pass & guess what?  The webmail works!!  Even when there are
>messages!  So
>it's GOTTA be an NT security setting on some folder or file as when
>I'm
>'logged in' as admin it works but it doesn't when the web user is
>used, even
>if I set rights to 'Full control' for all I listed above..  Real
>weird..  I
>gotta be missing something..
>Cya,
>Bill-E
>


--
Mark, [EMAIL PROTECTED] on 09/24/2001






I am pulling down data from a switch which looks like

Port 1, 33889029532
Port 2, 0
Port 3, 135852
Port 4, 6652941243
etc etc

I need to know if it is possible with PHP to write a script that will pull
the individual lines of this text file and store them into a mysql database
line by line.

Cheers







> I am pulling down data from a switch which looks like
>
> Port 1, 33889029532
> Port 2, 0
> Port 3, 135852
> Port 4, 6652941243
> etc etc
>
> I need to know if it is possible with PHP to write a script that will pull
> the individual lines of this text file and store them into a mysql
database
> line by line.

You can read the entire text file to a string and then use explode() to
break it into an array using the newline character. Like this:

$array = explode("\n", $string);

That should make it easy to store it line by line to a dbase.

Justin -- http://blaix.org





Hi PHP.net developers,

I don't know where this should be posted, but I do know they read here.

I had a Windows NT 4 Server, IIS 4.0, All NT and IIS hotfixes, PHP 4.0.6
running as ISAPI.

This was working good. However I created a new script that made HEAVY use of
the mySQL extension (built in). This script worked great if I was accessing
the url from the actual NT server console. If I go to any other box and
access the URL two things happen.

1) The client machine receives no response
2) If I try to do ANYTHING on the server which creates a new process, such
as open explorer or right click in explorer on a file (fires up a new
thread). The machine flat out reboots (ROFL). No bluescreen, nothing in
event log, nothing in mySQL.err no indication whatsoever of what cause the
reboot.

Changing back to the CGI version of PHP all things are fine.

I know that this is likely to be a thread issue in the mySQL extension and
just wanted to share it with you.

<deleted MS rant> ;)

Fazed




Reply via email to