php-windows Digest 16 May 2001 15:13:49 -0000 Issue 601

Topics (messages 7597 through 7613):

Re: *.ini
        7597 by: jtjohnston
        7598 by: jtjohnston

Re: mssql_connect
        7599 by: Carlos Andre Marques Moreira
        7603 by: Svensson, B.A.T.

crypt
        7600 by: Ivan Pavlovic

Re: Running System Commands on NT, how do i gain a pers istent connection with the 
prompt?
        7601 by: Svensson, B.A.T.

Host ceased service
        7602 by: José León Serna
        7606 by: Phil Driscoll
        7608 by: Ashley, Noah & Ireland Kelley
        7610 by: OoCobra97.aol.com

subdomains in Apache
        7604 by: PHPWIN
        7605 by: Matt Williams

Web Host
        7607 by: Manesh Manickam
        7611 by: afan

Re: [PHP] Web Host
        7609 by: John Monfort

can't load informix extension. please help.
        7612 by: cjrivas.dominicans.com

Re: the /php/pear/DB abstraction
        7613 by: John Lim

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]


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


Fair enough. I might ahve thought of that, but ... ??

> It's how you've passed the path to it that's the problem.
> Try t:/cd/test.ini instead of t:\cd\test.ini. If you insist on using the
> latter form, you need to escape the \ as \\ so it reads t:\\cd\\test.ini

> I think I have found a bug with cIniFileReader.inc (Fresh
> download today from:
> http://phpclasses.upperdesign.com/browse.html/package/204

So I used this code below.
It still will not read any Sections, Keys or Values. And again, when I click to
add a key/value pair, it empties out the file leaving it 0 bytes, and I still
get this error: "Warning: Undefined variable: OS in
E:\cd\library\classes\cIniFileReader.inc on line 161".

:( John

<?
require($DOCUMENT_ROOT."\\library\\headers\\hIniFileReader.inc");
echo $DOCUMENT_ROOT."\\test.ini";

if (isset($GetValue)) {
    $ini = new IniFileReader($DOCUMENT_ROOT."\\test.ini");
    $tmp = $ini->getIniFile($section, $key, "This is the default value");
    $tmp = "Value retrieved from the ini file for key ($key): " . $tmp;
} elseif (isset($GetAllSections)) {
    $ini = new IniFileReader($DOCUMENT_ROOT."\\test.ini");
    $tmp = $ini->sections();
    $tmp2 = "<center><table border=1><tr><td>The Sections Returned</td></tr>";
    while (list($key, $sec) = each($tmp)) {
        $tmp2 .= "<tr><td>$sec</td></tr>";
    }
    $tmp2 .= "</table></center>";
    $tmp = $tmp2;
} elseif (isset($GetAllKeys)) {
    $ini = new IniFileReader($DOCUMENT_ROOT."\\test.ini");
    $tmp = $ini->keys($section);
    $tmp2 = "<center><table border=1><tr><td>The Keys Returned For Section
$section</td></tr>";
    while (list($key, $val) = each($tmp)) {
        $tmp2 .= "<tr><td>$val</td></tr>";
    }
    $tmp2 .= "</table></center>";
    $tmp = $tmp2;
} elseif (isset($SetValue)) {
    $ini = new IniFileReader($DOCUMENT_ROOT."\\test.ini");
    $tmp = $ini->setIniFile($section, $key, $value);
    $tmp = "The file was successfully updated: " . ($tmp ? "True" : "False");
}
?>





Ignatius,
By the by, this never panned out. I'm not convinced it deals with ini files, or
at least I never figured out how. However,
http://phpclasses.upperdesign.com/browse.html/package/204 seems to do the job,
at least on a UNIX.

Thanks,

John


> > Try
> > http://www.thewebmasters.net/php/ConfigReader.phtml
> >





Hi,
now i have the following configuration:
server1.domain.com -> winnt + apache + php4.0.4
server2.domain.com -> winnt + ms sql server 7.0
server3.domain.com -> windows 2000 + iis 5 + php3.0.15 + ms sql server 7.0
server4.domain.com -> win98 + omnihttpd2.08 + php4.0.4

I have a file teste.php that has this piece of code:
  $conn_id = mssql_connect("server2.domain.com","login","password") or
die("Erro de Conexão!");
I have put this file on server1, server3 and server4

On server1 i get this:
Warning:MS SQL: Unable to connect to server: server2.domain.com
On server3 and server4 it works properly and i can retrieve the data i need.

I also have a file teste2.php that has this piece of code:
  $conn_id = mssql_connect("server3.domain.com","login","password") or
die("Erro de Conexão!");
I have put this file on server1, server3 and server4

On server1 i get this:
Warning:MS SQL: Unable to connect to server: server3.domain.com
On server3 and server4 it works properly and i can retrieve the data i need.

So i guess the problem is with apache. Either it is a problem with apache
configuration or apache don't work with ms sql server 7.0

Any ideias? Am I missing simething?
Think it'll be better to change to iis, so i'll get things working quickly.

Thanks,

Carlos André Marques Moreira 
[EMAIL PROTECTED] 
Bolsista CNPq / RHAE 
SENAI-CE/CETAE 

2001 Ano Internacional do Voluntário

 




>Any ideias? Am I missing simething?
>Think it'll be better to change to iis, so i'll get things 
>working quickly.

When I comes to network related problem, and while the fault has
not been narrowed down to a specific program(topic), then it can
be virtual anything that causes the problem. It is very hard to
tell from the information you provides - as an extreme example:
as far it concerns me, your network card might even be broken,
thus being the fault causing this error.

How on earth would I be able to tell the difference? If someone
manage to tell you what's wrong with your system, that's probably
mere pure luck than skill. I guess you're right in your conclusion
to use IIS to quickly get something up and running - but I suggest
you better have a look at the network configuration of any piece
of software that is involved in this - for example. Start out to
confirm basic things like the host is authorized on the network,
and then process upwards in the hierarchy of software to try to
located the fault.

Cheers,

        /Anders





It seems that the crypt( ) work fine with version 4.0.3., but in 4.0.5. and 4.0.6 
versions wont work.
Do I need the php_crypt.dll and where I can find it.
The error in browser is 
Warning: crypt() is not supported in this PHP build in 
The code is 
$proba = crypt($newpass, $oldpass);

 




>some nobody at localhost, if I could make php/apache run as a specific user
>with all their permission etc, that would be great and i wouldnt need a
>persisnt prompt...any help out there?

Why would one need php/apache to run as a specific user? Being able
to change the user id of those processes sound like a security flaw
in my ears... :-/




Hello:
    I have contracted a web, hosted in a W2K Server, they didn't support
PHP/MySQL until I asked for it, so they installed PHP and MySQL and
everything worked fine, but after 2 months, they have said me PHP and MySQL
are giving problems, so they "invite me" to leave or not to use PHP/MySQL.
My question is:
Does PHP/MySQL works well under Windows 2000 Server?

--
Best Regards
------------
Visual PHP Studio, RAD development with PHP
http://www.visualphpstudio.com







On Wednesday 16 May 2001 12:33, Jos Len Serna wrote:

> My question is:
> Does PHP/MySQL works well under Windows 2000 Server?
I don't use W2K but it certainly works extremely well under NT4.
Possibly your host was using the ISAPI PHP module, in which case you can tell 
them to change to the CGI version and any problems they had will disappear.

Cheers
-- 
Phil Driscoll




Also I just got  these postings from another list on PHP.net

free php/mysql hosting
        52974 by: Christian Dechery
        52977 by: Philip Olson
They are under the PHP General list.

(To figure more out about your service problem we need more information)
MyPHP/Apache/mySQL w2K works fine. I'm running Apache on w2K it's little 
slow but I'm running it on a regular PC (600 MHz & 256 RAM)

Phil Driscoll wrote:

> On Wednesday 16 May 2001 12:33, Jos Len Serna wrote:
> 
>> My question is:
>> Does PHP/MySQL works well under Windows 2000 Server?
> 
> I don't use W2K but it certainly works extremely well under NT4.
> Possibly your host was using the ISAPI PHP module, in which case you can tell 
> them to change to the CGI version and any problems they had will disappear.
> 
> Cheers






PHP and MySQL run should run fine on the win2k server, I have been running it 
as the cgi version for almost 2 months now with no problems...It could be 
that your host has it installed as the ISAPI module, and thats why they have 
problems with it (as mentioned in another e-mail) or its possible they just 
dont have PHP setup right and other users are executing system commands 
(which can be blocked).  But if they are asking you to leave I would 
definetly consider another web host...I believe I have seen in another e-mail 
that you were looking for a free web host?  I would recomend www.f2s.com they 
offer both php, MySQL and Postgres(?spelling?)  Databases...the only downside 
is the access times...in the 200ms range...Good luck

~Jeff


Hello:
    I have contracted a web, hosted in a W2K Server, they didn't support
PHP/MySQL until I asked for it, so they installed PHP and MySQL and
everything worked fine, but after 2 months, they have said me PHP and MySQL
are giving problems, so they "invite me" to leave or not to use PHP/MySQL.
My question is:
Does PHP/MySQL works well under Windows 2000 Server?






Hi there 
  Can anyone tell me how to set up subdomains in apache, and  get virtual hosts to 
work, from remote computers to the localhost. The virtual hosts work only locally. I 
guess there has to be some sort of DNServer running on my com as well. Anyone know how 
to do it on a win98?

Cheers
Xon




Hi

> Hi there 
>   Can anyone tell me how to set up subdomains in apache, and  get 
> virtual hosts to work, from remote computers to the localhost. 
> The virtual hosts work only locally. I guess there has to be some 
> sort of DNServer running on my com as well. Anyone know how to do 
> it on a win98?


look in the hosts file in your windows windows\systems dir.

Instructions are in there but basically add each name and the name ie.

127.0.0.1 mydomain.com
127.0.0.1 myotherdomain.com

etc..
apache will then work from that

M@ 




I need a web host with myslq and PHP. Also i would be good if it have a STMP
server to!  Please just reply to there posts!





I use http://www.cqhost.com and http://www.1stconnection.net and I don't
have any problems.

Afan Pasalic

----- Original Message -----
From: "Manesh Manickam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 5:49 AM
Subject: [PHP-WIN] Web Host


> I need a web host with myslq and PHP. Also i would be good if it have a
STMP
> server to!  Please just reply to there posts!
>
>
> --
> 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]
>






 We offer hosting with PHP,MySQL, and SMTP.

  www.pepiedesigns.com


__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Wed, 16 May 2001, Manesh Manickam wrote:

> I need a web host with myslq and PHP. Also i would be good if it have a STMP
> server to!  Please just reply to there posts!
>
>
> --
> PHP General 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]
>
>





I give up! :-(

I've been trying lots of hours to get the php_ifx.dll to load.

I don't know what's wrong! I installed and configured Informix CLI and ESQL/C 7.2 On 
my Windows 95 machine. and I have lots of environment variables set ( informixdir, 
informixserver, ld_library_path)...

I still get the error "PHP Warning:  Unable to load dynamic library 
'c:\php4\extensions/php_ifx.dll' - One of the library files needed to run this 
application cannot be found."....

please help if you know about informix on Windows + Personal Web Server + Latest 
PHP....

thanks,
CJ






Hello Monty,

As an author of a database class library (http://php.weblogs.com/adodb) I
can understand the need for good error messages.

I decided in adodb to avoid using virtualised error messages because of this
issue. It's more important to give good error messages than attempting to
map
to a virtualised error message system. Why? You normally just rollback on
any error anyway, and the real error messages allow you to pinpoint
the bug precisely.

You might like to give it a test run.

Regards, John



"Dickerson, Monty" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Before I had difficulty using the pear/DB database abstraction (which
comes
> with php since 4.04p1 at least) and had asked the list about it; the
problem
> was merely a permissions issue.  It works fine, and is documented inline.
>
> However, the pear/DB class needs enhancement to better report error
messages
> from mssql (the message it had reported was ambiguous compared to what the
> plain mssql functions return).  Such ambiguity could dissuade some early
> adopters of the pear classes.
>
> My thanks to the authors, Stig Bakken <[EMAIL PROTECTED]>, Sterling Hughes
> <[EMAIL PROTECTED]>, James L. Pine <[EMAIL PROTECTED]>, et. al., for writing
> this code.
>
> If there is a FAQ-o-matic, BBS or weblog on the DB.php class and its
> includes, please point me in that direction!
> I think this is a positive step for php.
>
> Maybe certain PCMAG reviewers will take note of its presence someday..  ;)
>
> montyd
>
>
>
>
> --
> 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]
>




Reply via email to