php-windows Digest 26 Dec 2001 05:11:07 -0000 Issue 919
Topics (messages 11116 through 11123):
Modifying Windows INI profiles
11116 by: Craig Morrison
11117 by: LaserJetter
11118 by: Craig Morrison
11119 by: LaserJetter
11121 by: Svensson, B.A.T. (HKG)
11122 by: Craig Morrison
Re: Site running from MySQL
11120 by: Svensson, B.A.T. (HKG)
Re: Problem Processing Forms with POST
11123 by: Steven Sullivan
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 ---
I've spent some time searching through www.php.net and the PHP Knowledge base
for some information regarding modifying (server-side) Windows INI profiles.
Evidently I am using the wrong search terms because I can't find any
information relating to this.
What I want to do is write a set of PHP scripts to administrate my email
server remotely via the web. My email server relies heavily on INI profiles.
Are there any extensions available to do this?
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
There may be extensions available which come with your email server but I
would just use fopen and file() to modify .ini settings
"Craig Morrison" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I've spent some time searching through www.php.net and the PHP Knowledge
base
> for some information regarding modifying (server-side) Windows INI
profiles.
> Evidently I am using the wrong search terms because I can't find any
> information relating to this.
>
> What I want to do is write a set of PHP scripts to administrate my email
> server remotely via the web. My email server relies heavily on INI
profiles.
> Are there any extensions available to do this?
>
> --
>
> Craig Morrison
> MTS Professional @ http://www.mtsprofessional.com/
> A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
LaserJetter wrote:
>
> There may be extensions available which come with your email server but I
Nope, not that relate to PHP, I wrote the email server..
> would just use fopen and file() to modify .ini settings
I was hoping for a more elegant solution than this.
There are per user settings that I want to make available to my email users,
reading/writing/modifying an entire INI file on a per user basis is not an
elegant solution.
Surely someone out there has written an extension DLL for Windows that
provides wrappers around WritePrivateProfileString, et al. If not, I'll
probably end up writing the extension myself. I just didn't want to have to
re-invent the wheel if someone else had already done it.
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
Just been for a surf and I think on www.phpbuilder.com there is a script
(not an extension) for reading and modifying a .ini file. It's probably
using fopen etc though.
"Craig Morrison" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> LaserJetter wrote:
> >
> > There may be extensions available which come with your email server but
I
>
> Nope, not that relate to PHP, I wrote the email server..
>
> > would just use fopen and file() to modify .ini settings
>
> I was hoping for a more elegant solution than this.
>
> There are per user settings that I want to make available to my email
users,
> reading/writing/modifying an entire INI file on a per user basis is not an
> elegant solution.
>
> Surely someone out there has written an extension DLL for Windows that
> provides wrappers around WritePrivateProfileString, et al. If not, I'll
> probably end up writing the extension myself. I just didn't want to have
to
> re-invent the wheel if someone else had already done it.
>
> --
>
> Craig Morrison
> MTS Professional @ http://www.mtsprofessional.com/
> A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
>I just didn't want to have to re-invent the
>wheel if someone else had already done it.
That was an unusually stand point. Are you really a programmer?! :)
--- End Message ---
--- Begin Message ---
"Svensson, B.A.T. (HKG)" wrote:
>
> >I just didn't want to have to re-invent the
> >wheel if someone else had already done it.
>
> That was an unusually stand point. Are you really a programmer?! :)
Uh, yes, I am. I have been writing code for over 15 years now using various
development platforms (MASM, TASM, BCC and MSVC++). :-)
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
From: LaserJetter
>Out of interest, would it be possible to load a webpage as a record in a
>MySQL database, having another field as say a number or a unique name so
>that a whole site could be placed in a database with a couple of php files?
>Is there a limit on the size of a field in MySQL which would stop you doing
>this though and would it be noticeably slower that html / php files?
>I was only wondering as it would make full text searches an awful lot
>simpler!!!!
Of course it is possible. (Why would it not be?)
I've don it my self (stored ptrocedures that builds HTML pages),
and especially the full text search you were talking about.
--- End Message ---
--- Begin Message ---
Greetings,
I'm having a problem with processing forms using the POST method. Here's my
setup:
Windows NT; PHP 4.1.0; Apache 1.3.X (most recent revision 1.3); IE 5.5sp2
(used by everyone on intranet)
I've had problems since I first set up the server, and it has persisted
through all upgrades. The GET method works perfectly. When I try to POST, it
*usually* works with less than ~250 bytes with form encoding and works even
less (if at all) with multipart encoding. One of the things that really gets
me is that ocassionally, I can POST a form with say 200 bytes, it works, hit
'back' to return to the form, repost with the /same data/ and it suddenly
decides not to work.
When I say it doesn't work, what I mean is that the form variables are not
available in the .php I'm posting to. I've tried using
globals, -POST_VARS, -RAW_DATA, and a dozen other things. I'm pretty much
convinced that it's not PHP's fault. But also I'm not convinced it's Apache.
Why? Check this out:
I put together a quick VisualBasic program to allow me to send arbitrary
data to my webserver and view the response. I sent a basic GET to the
server, and received the page. Perfect. Then I sent a POST to the server,
and received an OK. So, I posted a larger amount of data; it was OK. I
posted up to 5K with no problem (I'm sure I could have continued.) It worked
every time. So, what does this make me think? 'Could there be a problem with
the webbrowser?'
Earlier, I tried using Opera (latest version) and it didn't work either. So,
I downloaded a program that allows me to monitor port 80 on my server and
view the incoming. The data from my browser looked just fine.
So, that sort of eliminates the browser. Now what does that leave me with!?
If I get a good response from my VB program, that means everything works OK
with proper data. If the browser were sending bad data to the server, I
should get an error directly from Apache. My best guess is that *somehow*
the data is being damaged, but in a way such that Apache doesn't realize
it's bad, but just doesn't process it properly. OR the same is happening and
PHP isn't able to process it properly.
I have searched and searched, but can't seem to find anyone with similar
problems.
Any help on this distressing matter would be appreciated. Thanks!!
- Steven Sullivan
[EMAIL PROTECTED]
--- End Message ---