[PHP-WIN] Re: can't view php

2002-04-18 Thread Steff

It looks like your web server hasn't been told to handle php files the 
way the are intended to. which web server are you using? check the php 
manual for installation advice - and perhaps also the web server's.

HTH steff

Joey wrote:
> Everytime i try to view a php file on my server it prompts me to download
> the file then opens it up in word pad. I can view any other file just not
> php.
> 
> Can anyone help me with this problem please?
> 
> 
> 


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




Re: [PHP-WIN] Connecting to a remote database

2002-04-18 Thread Steff

further on you should tell your DBMS that not only local scripts 
(users), but also external users may access your database. this is done 
by modifying the table "db" in the database "mysql". with this table you 
can control which hosts may access your dbs. the simplest but also most 
risky way is to set host = % and db = %. db = "DB" and host = 
"your.remote.machine" (or for several domains or IP-ranges) would be 
safer already (the rest of the fields/permissions to be set per row are 
mostly self-explaining).


HTH steff

Matt Babineau wrote:
> Try to access the SQL DB by IP Address. If you want to access it from
> outside you LAN, The machine the SQL DB is on has to have an external
> IP.
> 
> Matt Babineau
> Freelance Internet Developer
> e: [EMAIL PROTECTED] 
> p: 603.943.4237
> w: http://www.illuminatistudios.com
>  
> 
> 
> -Original Message-
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 18, 2002 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Connecting to a remote database
> 
> 
> Newbie alert!
> 
> 
> I am able to connect to a SQL Server Database on my local network by
> specifying the host as "testHost" the database is "DB".  My question is
> if I'm outside the network what is the correct syntax that I need to
> call in the host in order to access the database?
> 
> Thanks,
> ROn
> 


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




[PHP-WIN] Re: Apache 2.0.35 & php 4.2.0 RC4 includes

2002-04-18 Thread Steff

Have you set up PHP based on php.ini-recommended? Look out for the 
include_path directive in your php.ini(-recommended) and remove the 
semi-colon at the beginning of the line. I assume you're used to provide 
the full path for every file to be included

include("../my_include_files/inc_file.php");

I just set up php 4.1.2 and encountered the same "problem". I guess 
include_path='.;c:\php4\pear' is the default build-in php include path. 
So you have to override it using the php.ini directive. (In your case 
the important part in this directive is probably the period !?)

HTH steff

Chris Fraser wrote:
> Greetings,
>Is anyone having problems with includes or include path with this configuration?
> 
> I'm running Apache 2.0.35/php 4.2.0 RC4 on WinXP pro.
> 
> Warning: Failed opening 'mod//index.php' for inclusion 
>(include_path='.;c:\php4\pear') in D:
> \Internet\Apache\htdocs\urswerks\mod.php on line 14
> 
> --
> "The dogmas of the quiet past are inadequate for the stormy present. The occasion is 
>piled high 
> with difficulty, and we must rise to the occasion. As our case is new, so we must 
>think anew, 
> and act anew. We must disentrall ourselves, and then we shall save our country.We 
>can not 
> escape history. We will be remembered, in spite of ourselves. The fiery trial 
>through which we 
> pass will light us down in honor or dishonor, to the last generation. We shall nobly 
>save, or 
> meanly lose our last best hope of Earth."   Annual Message to 
>Congress, 
> Concluding Remarks, December 1, 1862
>  
>- 
> President Abraham Lincoln  
> Copyleft 2001: http://www.gnu.org/licenses/fdl.html  
>   
>   
>  
>  
>
> 
> 
> 


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




[PHP-WIN] php 4.1.2 / $_SESSION

2002-04-29 Thread Steff

hi folks

i'm just about to experiment with the new handling of session vars 
($_SESSION[...]). now if i start with

session_start();
$_SESSION["remember_me"] = "steff";
session_save_close(); // tested with and without this function call

, the var value won't be set correctly. on a following page

print($_SESSION["remember_me"]);

doesn't print anything. even a

print_r($_SESSION);

only shows Array (). i admit i am fairly confused by information on 
register_globals (which is set to on in my php.ini) etc.

up to now i have worked with

session_start();
$remember_me = "steff";
session_register("remember_me");

which still works great. i'm working on w2k/php4.1.2/apache1.3.22. the 
session.[...] settings in my php.ini correspond those in 
php.ini-recommended.

i read about a bug(?) in connection with php4.1.2. and IIS5 
(http://www.php.net/manual/en/ref.session.php, posted on 01-Apr-2002). 
any known problems with apache (or php itself)? updating to 4.2 is no 
alternative (as posted on 07-Apr-2002 on the same page) since i have to 
respect some provicer-side dependencies ;-)

TIA for your comments

steff


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




[PHP-WIN] Surprises with PHP4/IIS?

2001-05-05 Thread steff

Hi folks

Up to now I always worked with PHP/Apache (Unix, Linux, Win; CGI,
Module). Now a customer of mine would like to subscribe for a PHP/IIS
hosting offer. What surprises, exceptions, and special cases (compared
to Apache solutions) do I have to take into consideration when I agree
with the customers proposal?

Thank in advance and regards

steff


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