php-windows Digest 24 Dec 2002 16:36:48 -0000 Issue 1501

Topics (messages 17529 through 17537):

Re: iis5 php 4.2.3 multiple -c php.ini possible?
        17529 by: Petar

header functions and ... ?
        17530 by: thomash.gmx.co.za
        17531 by: Sjon
        17532 by: Nicola Delbono
        17533 by: Dash McElroy

Re: Tutorials on OOP
        17534 by: Davy Obdam

php_sockets.dll
        17535 by: Steven

Re: general survey.... php.ini config gui
        17536 by: Luke Woollard

Printing Excel spreadsheet
        17537 by: Jerry Nelson

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 ---
Thanks Stephen,

The list gives me a clearer of picture of the context in which options can be set but
unfortunately no further along the path of getting an alternate php.ini file
recognised by IIS5 in the application mapping :-(

I'm having trouble believing this is the first time this question has been raised.

What do other people do in regards providing php scripting under iis with
third parties who need independant control over their own virtual server on a windows 
box
and you'd like to lock them down to their own area? Without specifying an seperate
php.ini how can it be done?

..Petar

----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "PHP Helplist Windows" <[EMAIL PROTECTED]>
Cc: "Petar" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 9:01 PM
Subject: Re: [PHP-WIN] iis5 php 4.2.3 multiple -c php.ini possible?


> http://www.php.net/manual/en/function.ini-set.php
>
> Gives a list of all php.ini options, and where they can be set (Everywhere,
> Per Folder, php.ini only etc etc)
>
> Hope this proves helpful
>
> Stephen
>
> ----- Original Message -----
> From: "Petar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 23, 2002 5:01 AM
> Subject: Re: [PHP-WIN] iis5 php 4.2.3 multiple -c php.ini possible?
>
>
> > OK, the "registry per directory" allows *some* of the php.ini entries to
> > be registered but does not work for all of them. Some that did not work
> > for me are (not an exhaustive list):
> >
> > safe_mode, user_dir, doc_root, open_basedir, expose_php, file_uploads,
> smtp
> >
> > what did work were:
> >
> > sendmail_from, error_log
> >
> > I presume all the choices are simply not being parsed when they are place
> in
> > the registry location. A look through the php-win and php-dev archives
> > doesn't show any further information about this issue.
> >
> > As soon as I made a change to the registry on the server it was
> immediately reflect
> > in a refreshed phpinfo() but this system still requires that there is a
> single
> > php.ini file with the "master" values for these settings.
> >
> > Does anyone know how to pass the "-c path/to/ini" parameter inside a
> script
> > mapping for IIS5 ? This would solve the problem completely because all my
> > php installs could be different versions/different options enabled and
> secure
> > from other virtual servers both from the php point of view and the ntfs
> point
> > of view in w2k.
> >
> > Regards
> >
> > Petar
> >
> > ----- Original Message -----
> > From: "Petar Nikolich" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, December 22, 2002 11:29 PM
> > Subject: [PHP-WIN] iis5 php 4.2.3 multiple -c php.ini possible?
> >
> >
> > > Hello Everyone!
> > >
> > > Ok, this config this is driving me crazy. Php works just fine until I
> try to
> > > specify the path to the php.ini file in the IIS5 script mapping.
> > >
> > > It would be good to have each virtual server running its own php.ini,
> temp
> > > area and php binaries (different versions) and all I need to work out is
> how
> > > to make the '-c path/to/inifile' actually have an effect within IIS.
> > >
> > > I am aware of the -c command line option to specify an alternate
> location for
> > > the php.ini file or alternatively the path+filename but have been unable
> to
> > > make this work in IIS5.
> > >
> > > Has anyone managed to pass extra parameters in the executable line for
> the .php
> > > mapping in IIS5?
> > >
> > > This is the normal line which uses the php.ini in c:\winnt\php.ini
> > >
> > > executable:    ->    c:\site1\php\php.exe
> > > extension:     ->    .php
> > >
> > > Adding the extra parameter to the executable line *should* be all that
> is needed
> > > to make individual .ini files workable like the following...
> > >
> > > exexcutable:    ->    c:\site1\php\php.exe -c c:\site1\php\php-site1.ini
> > > extension:      ->    .php
> > >
> > > But no matter how I pass the line (quotes/no quotes) the additional
> parameter
> > > is ignored and the c\winnt\php.ini is used.
> > >
> > > Actaully typing the line at a dos prompt does use the new .ini file so
> it
> > > seems IIS is doing suomething to remove/ingore the extra paramter when
> it is
> > > entered in IIS script mapping.
> > >
> > > c:\site1\php>php -c c:\site1\php\php-site1.ini -i
> > > ...shows correct path to specified .ini file
> > >
> > >
> > > Has anyone made this work? I would really like to know the 'magic trick'
> :-(
> > >
> > > ..Petar
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hey there,

I posted a message a day ago about possible redirect functions. Now i was
told to check out the header functions. 
The problem is still the same (just need to explain better):
i cannot use header because the headers are already sent. i want to use it
as a part of a logon script which, if user is present, will redirect the user
to another php page.
i also want the user info, coming straight out of the db, to be carried
along.

i can see that my way of wanting to do that is not working with php so well.
so if u have another idea please let me know.

In Asp.Net, the server.transfer() method is independent from the headers
sent and can used any time. i suppose there is no real equivalent in php?

thanks
God bless ya

Thomas

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!

--- End Message ---
--- Begin Message ---
If you want to do a redirect after sending headers (why after?),
you can use the meta refresh tag, or javascript.
And if you want to carry along the userinfo, either pass them
along with the query string, or use sessions...


Sjon.
(BTW: isn't this more a message for php-general ??)


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 18:58 pm
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] header functions and ... ?


Hey there,

I posted a message a day ago about possible redirect functions. Now i was
told to check out the header functions.
The problem is still the same (just need to explain better):
i cannot use header because the headers are already sent. i want to use it
as a part of a logon script which, if user is present, will redirect the
user
to another php page.
i also want the user info, coming straight out of the db, to be carried
along.

i can see that my way of wanting to do that is not working with php so well.
so if u have another idea please let me know.

In Asp.Net, the server.transfer() method is independent from the headers
sent and can used any time. i suppose there is no real equivalent in php?

thanks
God bless ya

Thomas

--- End Message ---
--- Begin Message ---
>i cannot use header because the headers are already sent. 

You can use content buffering
look at 
ob_start()


with that, you can print or echo whatever you want
and, at the middle or end  of the script
you can send any header you like because
in fact you have not send any data to the browser 

until you send
ob_flush(),




--- End Message ---
--- Begin Message ---
You could just redo your scripts to not spit out any text until you issue
the header("Location: URL") command. One questions why a script would spit
out text if it will be redirecting the user to another page...

-Dash

A chubby man with a white beard and a red suit will approach you soon.
Avoid him.  He's a Commie.

On Mon, 23 Dec 2002 [EMAIL PROTECTED] wrote:

> Hey there,
>
> I posted a message a day ago about possible redirect functions. Now i was
> told to check out the header functions.
> The problem is still the same (just need to explain better):
> i cannot use header because the headers are already sent. i want to use it
> as a part of a logon script which, if user is present, will redirect the user
> to another php page.
> i also want the user info, coming straight out of the db, to be carried
> along.
>
> i can see that my way of wanting to do that is not working with php so well.
> so if u have another idea please let me know.
>
> In Asp.Net, the server.transfer() method is independent from the headers
> sent and can used any time. i suppose there is no real equivalent in php?
>
> thanks
> God bless ya
>
> Thomas
>
> --
> +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- Hi people,

Thanks for all the reply`s. I found the tuturials very usefull and much better then the most tutorials i have found so far, usualy with an example class car or something not very usefull....

Thanks,

Davy Obdam
mailto:[EMAIL PROTECTED]

Davy Obdam wrote:

Hi people,.

I have to build several classes for a project i am doing, but i am quite new to OOP programming. I need to make a database abstraction layer class and a user login class.. Does anyone know some good tutorials about these things and OOP in general. Thanks in advance..

Best regards,

Davy Obdam
mailto:[EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---
any ever managed to get the socket at work under windows2000 ? any
suggestions are welcome

when i enable the extension on windows 2000 server is keeps loading the page


--- End Message ---
--- Begin Message ---
Use PHP + PHP-GTK instead!

I'm sure there would be people using it!

LW






-----Original Message-----
From: A Weaver [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 22, 2002 11:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] general survey.... php.ini config gui

im thinking of programming a gui app that will edit and make changes to
the
php.ini file, in Visual basic

just wondering if i did make the said app, whould ppl use it you think?

(yes i see the irony in using a competitor's tech to config another...
heh)



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message --- I have an application that generates a table that is formatted as an Excel spreadsheet for display in IE. Is there any way to embed print controls so that a user can just select the print button it is printed as a single page in landscape format?

*---------*-----------*----------*---------*---------*---------*--------*
Jerry Nelson
Project Manager / Analyst
Datanamics, Inc.
973-C Russell Ave
Gaithersburg, MD 20879
TEL: 301-948-3515

--- End Message ---

Reply via email to