php-windows Digest 2 Oct 2001 20:34:57 -0000 Issue 785
Topics (messages 9643 through 9653):
Re: php.ini
9643 by: Frank M. Kromann
9644 by: Sean Malloy
Needed 4.0.6-dev php4win release
9645 by: Asendorf, John
9646 by: Alain Samoun
Re: COM again
9647 by: Jørg V. Bryne
9648 by: Jørg V. Bryne
Re: Trouble with Xitami+PHP+Win
9649 by: Arron Edwards
9653 by: j6
mssql stored procedures
9650 by: Leonard Harris
9651 by: Martin Lindhe
9652 by: Leonard Harris
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 ---
Hi,
You could have a template of php.ini with this content:
[Session]
session.save_path=<session.save_path> ; argument passed to save_handler
Then read the entire file into a php variable and do a replace on the file before
saving it to the new locatinn.
$php_ini = str_replace("<session.save_path>", "E:\\CD\\PHP\\sessiondata", $php_ini);
- Frank
> I am running PHP in a weird configuration - :) - on a CD Rom! Therefore:
>
> 1) - Each time I run my CD ROM server, I need my setup executable to
> reconfigure a copy of php.ini and copy it to the windows directory and
> reconfigure.
>
> [Session]
> session.save_path= E:\CD\PHP\sessiondata ; argument passed
> to save_handler
>
> My questions are:
>
> 1) How can I configure an *.ini file with ease using PHP?
> 2) Specifically, how can I reconfiigure "session.save_path" to the PHP
> variable $temp
>
> E:\CD\PHP\sessiondata needs to be read and write, which is not possible
> on a CD Rom.
>
> An email post & reply would be most helpful.
>
> John
>
--- End Message ---
--- Begin Message ---
You could just use the session_save_path([string path]); function in your
code?
"Jtjohnston" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am running PHP in a weird configuration - :) - on a CD Rom! Therefore:
>
> 1) - Each time I run my CD ROM server, I need my setup executable to
> reconfigure a copy of php.ini and copy it to the windows directory and
> reconfigure.
>
> [Session]
> session.save_path= E:\CD\PHP\sessiondata ; argument passed
> to save_handler
>
> My questions are:
>
> 1) How can I configure an *.ini file with ease using PHP?
> 2) Specifically, how can I reconfiigure "session.save_path" to the PHP
> variable $temp
>
> E:\CD\PHP\sessiondata needs to be read and write, which is not possible
> on a CD Rom.
>
> An email post & reply would be most helpful.
>
> John
>
--- End Message ---
--- Begin Message ---
Hey, does anyone out there still have the 4.0.6-dev release from
php4win.com? I've got to revert and they don't have it up...
Trying to do the install right now... thanks, John
---------------------
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
--- End Message ---
--- Begin Message ---
6-22-01 is the date for php.exe and corresponding dlls is that what you
want?
Alain
On Tue, Oct 02, 2001 at 02:58:33AM -0400, Asendorf, John wrote:
> Hey, does anyone out there still have the 4.0.6-dev release from
> php4win.com? I've got to revert and they don't have it up...
>
> Trying to do the install right now... thanks, John
>
> ---------------------
> 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
>
>
> --
> 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 ---
Hmm. It seems it's working, it just give out false replies all the time.
(IE. Axapta which is a databasesystem won't find any data). I would guess
this has to do with IIS config or something. We run PHP as CGI. Does anyone
now if this affects security/user policies in w2k iis? Will try reconfig to
ISAPI to see if it works better. ASP works fine...
-Jørg
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm having some trouble getting around with COM objects. Is there any
way
> > that one can list the methods/properties of an instanciated COM object?
> Read the doc if available.
> >
> > Also. I'm having trouble getting an ASP-script to work, so maybe someone
> > could help me translate? I've been staring at it for so long that I
don't
> > see anymore :-)
>
> You are not the only one ;( , what you need to do to get help:
> - Provide your OS and PHP version.
> - Test your system with some code that show COM connections are working
(See
> for example: http://www.phpbuilder.com/columns/alain20001003.php3
> - Provide the VB or ASP code if available, as you did.
> - Provide the PHP code that you have tested.
>
> Now, regarding the ASP code, it seems that it is invoked via a DCOM
> connection, DCOM should be enabled when compiling the PHP version that you
> are using. You may also want to have a look at the ADODB code from John
Lim:
> http://php.weblogs.com/com_php
>
> Alain
>
>
> >
> > (And of course, good links appreciated)
> >
> > -Jørg
> >
> > ---
> > <%
> >
> > '
> > ' Logon to the Axapta COM interface
> > '
> > Set Axapta = Server.CreateObject("AxaptaConnector.Axapta")
> > Axapta.Logon "usah", "pass", "level", ""
> >
> > '
> > ' run Query
> > '
> > Set myRecord = Axapta.CreateRecord("CustTable")
> > Axapta.ExecuteStmt "select * from %1 where %1.Name == '" &
> > Request.Form("Username") & "' && %1.WebPassword == '" &
> > Request.Form("Password") & "'",myRecord
> >
> > '
> > ' Show result
> > '
> > if myRecord.Found then
> > Session("AccountNum") = myRecord.Field("AccountNum")
> > if Request.Form("ID")<>"" then
> > Response.Redirect "/public.asp?id=" & Request.Form("PageID")
> > else
> > Response.Redirect "/public.asp?keyword=memberpage"
> > end if
> > else
> > Response.redirect "/retry.asp?ERR=" & Server.URLEncode("Bad username")
> > end if
> >
> > Axapta.Logoff
> > Set Axapta = Nothing
> >
> > %>
> > ---
> >
> >
> >
> > --
> > 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 ---
I configured php 4.0.6 as an ISAPI module, and it works perfectly now. I
guess this has something to do with ACL's in IIS...
-Jørg
"JøRg V. Bryne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hmm. It seems it's working, it just give out false replies all the time.
> (IE. Axapta which is a databasesystem won't find any data). I would guess
> this has to do with IIS config or something. We run PHP as CGI. Does
anyone
> now if this affects security/user policies in w2k iis? Will try reconfig
to
> ISAPI to see if it works better. ASP works fine...
>
> -Jørg
>
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I'm having some trouble getting around with COM objects. Is there any
> way
> > > that one can list the methods/properties of an instanciated COM
object?
> > Read the doc if available.
> > >
> > > Also. I'm having trouble getting an ASP-script to work, so maybe
someone
> > > could help me translate? I've been staring at it for so long that I
> don't
> > > see anymore :-)
> >
> > You are not the only one ;( , what you need to do to get help:
> > - Provide your OS and PHP version.
> > - Test your system with some code that show COM connections are working
> (See
> > for example: http://www.phpbuilder.com/columns/alain20001003.php3
> > - Provide the VB or ASP code if available, as you did.
> > - Provide the PHP code that you have tested.
> >
> > Now, regarding the ASP code, it seems that it is invoked via a DCOM
> > connection, DCOM should be enabled when compiling the PHP version that
you
> > are using. You may also want to have a look at the ADODB code from John
> Lim:
> > http://php.weblogs.com/com_php
> >
> > Alain
> >
> >
> > >
> > > (And of course, good links appreciated)
> > >
> > > -Jørg
> > >
> > > ---
> > > <%
> > >
> > > '
> > > ' Logon to the Axapta COM interface
> > > '
> > > Set Axapta = Server.CreateObject("AxaptaConnector.Axapta")
> > > Axapta.Logon "usah", "pass", "level", ""
> > >
> > > '
> > > ' run Query
> > > '
> > > Set myRecord = Axapta.CreateRecord("CustTable")
> > > Axapta.ExecuteStmt "select * from %1 where %1.Name == '" &
> > > Request.Form("Username") & "' && %1.WebPassword == '" &
> > > Request.Form("Password") & "'",myRecord
> > >
> > > '
> > > ' Show result
> > > '
> > > if myRecord.Found then
> > > Session("AccountNum") = myRecord.Field("AccountNum")
> > > if Request.Form("ID")<>"" then
> > > Response.Redirect "/public.asp?id=" & Request.Form("PageID")
> > > else
> > > Response.Redirect "/public.asp?keyword=memberpage"
> > > end if
> > > else
> > > Response.redirect "/retry.asp?ERR=" & Server.URLEncode("Bad
username")
> > > end if
> > >
> > > Axapta.Logoff
> > > Set Axapta = Nothing
> > >
> > > %>
> > > ---
> > >
> > >
> > >
> > > --
> > > 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 ---
Have you tried reinstalling?
are both xitami and php on the same drive?
I have both like this:
C:\Xitami\
C:\PHP\
and i have no problems
Hope that helps.
"Lluís De Yzaguirre" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Arron Edwards wrote:
>
> > Where did you install php?
> > and did you use the installer?
> > and what OS?
>
> I installed php in d:\php using the installer (it asked about the server,
and
> I choosed Xitami).
> The installer modified the xitami CFG file adding to it the FILTER:
>
> .php=D:\PHP\php.exe
>
> The system is WIN 98 SE (4.10.2222A).
>
> PHP actually works: the message "Fatal error: Unable to open
> c:\aplic\xitami\webpages\php\ in Unknown on line 0" is actually produced
by
> PHP.
>
> Thanks for your interest in my problem.
>
>
>
--- End Message ---
--- Begin Message ---
"Lluís De Yzaguirre" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I installed php in d:\php using the installer (it asked about the server,
and
> I choosed Xitami).
> The installer modified the xitami CFG file adding to it the FILTER:
>
> .php=D:\PHP\php.exe
>
> The system is WIN 98 SE (4.10.2222A).
>
Is that reflected in your "defaults.cfg" file as well? I understand that
this is read before the "xitami.cfg" file. So if it has the wrong path
there....
James.
--- End Message ---
--- Begin Message ---
Can mssql stored procedures be invoked from php? If so, are there any
unique considerations for invoking stored procedures from php?
Thanks for any advice/pointers/etc. you can provide.
Lenny Harris
--- End Message ---
--- Begin Message ---
you do that directly in a query
mssql_query("exec storeprocedure_name
'parmeter1','parameter2'",$database_connection);
> -----Original Message-----
> From: Leonard Harris [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 1:38 PM
> To: php
> Subject: [PHP-WIN] mssql stored procedures
>
>
> Can mssql stored procedures be invoked from php? If so, are there any
> unique considerations for invoking stored procedures from php?
>
> Thanks for any advice/pointers/etc. you can provide.
>
> Lenny Harris
>
>
> --
> 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 ---
Martin, thank you for your helpful response. I tried it and it worked as
you suggested.
Lenny
----- Original Message -----
From: "Martin Lindhe" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 8:15 AM
Subject: RE: [PHP-WIN] mssql stored procedures
> you do that directly in a query
>
> mssql_query("exec storeprocedure_name
> 'parmeter1','parameter2'",$database_connection);
>
>
> > -----Original Message-----
> > From: Leonard Harris [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 02, 2001 1:38 PM
> > To: php
> > Subject: [PHP-WIN] mssql stored procedures
> >
> >
> > Can mssql stored procedures be invoked from php? If so, are there any
> > unique considerations for invoking stored procedures from php?
> >
> > Thanks for any advice/pointers/etc. you can provide.
> >
> > Lenny Harris
> >
> >
> > --
> > 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]
>
--- End Message ---