php-windows Digest 24 Oct 2001 10:25:13 -0000 Issue 819

Topics (messages 9977 through 9987):

It gives me just a header!
        9977 by: Stefán Vingir Skarphéðinsson
        9978 by: Jason Wood
        9986 by: Stefán Vingir Skarphéðinsson
        9987 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK

Re: PHP Installation
        9979 by: Jason Bouwmeester
        9984 by: DL Neil

MSSQL 7.0 and PHP
        9980 by: Franco Breciano

Re: trouble while connecting with HTTPS server with certificate. Using cURL
        9981 by: Huang Yuzhen

ADODB and using Workstation ID (odbc)
        9982 by: Søren Nielsen

R: [PHP-WIN] retrieving form data
        9983 by: Mauri

on IIS5 my php4-guestbook works fine - on IIS4 not....
        9985 by: gentges

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]


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


Hello folks!

I was trying to execute a PHP script (on Win98) but it came only this source
code from my server:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

This happens to all the scripts I try to execute both from my server and
using MS-DOS-Prompt (php webpage.php) it returns nothing

What's wrong?
Please help!










It means that either PHP is not running, or there's a parse error on the
page and you dont have the error handling set.


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com



"StefáN Vingir SkarphéðInsson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello folks!
>
> I was trying to execute a PHP script (on Win98) but it came only this
source
> code from my server:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
>
> This happens to all the scripts I try to execute both from my server and
> using MS-DOS-Prompt (php webpage.php) it returns nothing
>
> What's wrong?
> Please help!
>
>
>
>
>
>






Thanks for trying to help :)
If my server (xitami) would not run php it would send me the page including
the php source code.

This happens even if I try to execute a script as simple as
<? print ("blah blah blah") ?>

Jason Wood <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It means that either PHP is not running, or there's a parse error on the
> page and you dont have the error handling set.
>
>
> --
> Jason Wood
> Chief Technology Officer
> Expressive Tek, Inc.
> 407 Kehrs Mill Road
> Ballwin, MO 63011
> Phone 636.256.1362
> www.expressivetek.com
>
>
>
> "StefáN Vingir SkarphéðInsson" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello folks!
> >
> > I was trying to execute a PHP script (on Win98) but it came only this
> source
> > code from my server:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html;
> > charset=windows-1252"></HEAD>
> > <BODY></BODY></HTML>
> >
> > This happens to all the scripts I try to execute both from my server and
> > using MS-DOS-Prompt (php webpage.php) it returns nothing
> >
> > What's wrong?
> > Please help!
> >
> >
> >
> >
> >
> >
>
>






--- Received from FPU.WHITES1 799 3703                       24-10-01 11:13

  -> [EMAIL PROTECTED]

You would certainly see the source code if the server new NOTHING of php,
however if it is set up to expect to have the .php filetype handled by an
extension, but the extension (ie. php) is not available, or not configured
correctly then you can see a correctly built 'empty' html page, containing
nothing but header and empty body.

This implies that the extension configuration for the filetype is flawed or
that php itself cannot load or provide the page for some reason.

I've seen the same thing on Xitami and Apache.  Apologies for not having a
solution, each time I just re-installed and went carefully through the setup
again and the problem went away - I just put it down to user error on my
part.

Cheers - Steve

-----Original Message-----
From: Stefn Vignir Skarphinsson [mailto:[EMAIL PROTECTED]]
Sent: 24 October 2001 10:59
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: It gives me just a header!


Thanks for trying to help :)
If my server (xitami) would not run php it would send me the page including
the php source code.

This happens even if I try to execute a script as simple as
<? print ("blah blah blah") ?>

Jason Wood <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It means that either PHP is not running, or there's a parse error on the
> page and you dont have the error handling set.


> --
> Jason Wood
> Chief Technology Officer
> Expressive Tek, Inc.
> 407 Kehrs Mill Road
> Ballwin, MO 63011
> Phone 636.256.1362
> www.expressivetek.com



> "StefN Vingir SkarphInsson" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello folks!
> >
> > I was trying to execute a PHP script (on Win98) but it came only this
> source
> > code from my server:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html;
> > charset=windows-1252"></HEAD>
> > <BODY></BODY></HTML>
> >
> > This happens to all the scripts I try to execute both from my server and
> > using MS-DOS-Prompt (php webpage.php) it returns nothing
> >
> > What's wrong?
> > Please help!
> >
> >
> >
> >
> >
> >





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

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Personal Investment Authority.
Friends' Provident Unit Trust Managers Limited is also regulated
by IMRO.




Just a bit of an update. As I mentioned below, I am using virtual hosts
to host 3 websites on my machine. I ended up copying a php file to the
default website and lo and behold the php ran fine. Why won't it run on
the other two sites? Does anyone have any ideas?

TIA,
jb

-----Original Message-----
From: Jason Bouwmeester [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 23, 2001 3:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Installation


Apache 1.3.20
PHP 4.06
W2K Pro

I installed Apache to d:\apache
I extracted the php files to d:\apache\modules\mod_php4

I have the following code in httpd.conf:

    ScriptALias /php/ "d:/Apache/modules/mod_php4/"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    Action application/x-httpd-php "/php/php.exe"

I copied php.ini-dist to c:\winnt and renamed php.ini
I copied php4ts.dll to c:\winnt\system32

I restarted Apache.

Anytime I try to get to a php page on my site, I get a message saying I
am trying to download the file.

The sad thing is, I've done this before - and more than once, just not
in like six months.

As an aside, I am using virtual hosts under apache, this wouldn't cause
problems would it? I can't see how/why.

I've also set my Path environment to include d:\apache and
d:\apache\modules\mod_php4

TIA,
jb



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








> Just a bit of an update. As I mentioned below, I am using virtual hosts
> to host 3 websites on my machine. I ended up copying a php file to the
> default website and lo and behold the php ran fine. Why won't it run on
> the other two sites? Does anyone have any ideas?


Jason,

How about the <VirtualHost ...> declarations in ...\Apache\conf\httpd.conf?
(can check logs after attempting to access to see if Apache sees them/you getting 
together - or not)
Also, if relevant, the DNS entries for the Vhosts?

=dn



> Apache 1.3.20
> PHP 4.06
> W2K Pro
> 
> I installed Apache to d:\apache
> I extracted the php files to d:\apache\modules\mod_php4
> 
> I have the following code in httpd.conf:
> 
>     ScriptALias /php/ "d:/Apache/modules/mod_php4/"
>     AddType application/x-httpd-php .php
>     AddType application/x-httpd-php-source .phps
>     Action application/x-httpd-php "/php/php.exe"
> 
> I copied php.ini-dist to c:\winnt and renamed php.ini
> I copied php4ts.dll to c:\winnt\system32
> 
> I restarted Apache.
> 
> Anytime I try to get to a php page on my site, I get a message saying I
> am trying to download the file.
> 
> The sad thing is, I've done this before - and more than once, just not
> in like six months.
> 
> As an aside, I am using virtual hosts under apache, this wouldn't cause
> problems would it? I can't see how/why.
> 
> I've also set my Path environment to include d:\apache and
> d:\apache\modules\mod_php4






I'm using php to retrieve a Query from a SQLServer 7.0 database.

My code is this one:

$base = mssql_select_db($db,$conexion);

$sql="SELECT MarcasSolicitante FROM Marcas";

$result = mssql_query($sql,$conexion);

  while ($myrow = mssql_fetch_array($result))
  {
   $mensaje= $myrow["MarcasSolicitante"];

   ?>
    <p><strong><font size="4"><u>Mensaje:</u></strong> &nbsp &nbsp</u> <font
size="3"><?echo $mensaje;?> </font></a></P>
    <hr>

<....>
<....>

The problem is that the field MarcasSolicitante in the database is
VarChar(7000), and php receives a Char(255), what I'm I doing wrong? Isi
there any parameter I can modify in order to retrieve correctly the fields??

Thanks in advance






I  look for  the reason and find that , CURL serial function work fine with 4.0.5 ,
but when i update to 4.0.6,I can not see any output without error,
so i  suggest you try to use php 4.0.5.


----- Original Message ----- 
From: "Hugo Alexandre Almeida Soares Dias" <[EMAIL PROTECTED]>
To: "PHP-WIN" <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 10:32 PM
Subject: [PHP-WIN] trouble while connecting with HTTPS server with certificate. Using 
cURL


> 
> Hi, 
> 
> I need to run a script in a https server. 
> 
> I'm using cURL but it returns me: Your connection is using a weak random
> seed! * Closing live connection (#0) 
> 
> Here is my code: 
> 
> 
> $ch=curl_init(); 
> curl_setopt($ch,CURLOPT_VERBOSE,1); 
> curl_setopt($ch,CURLOPT_URL,$url); 
> curl_setopt($ch,CURLOPT_POST,1); 
> curl_setopt($ch,CURLOPT_POSTFIELDS,$params); 
> curl_setopt($ch,CURLOPT_SSLCERT,"multicert.p12"); 
> curl_setopt($ch,CURLOPT_SSLCERTPASSWD,"3I3I37RP52G1L15D8T8S"); 
> curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
> $data = curl_exec($ch); 
> curl_close($ch); 
> 
> 
> Can anyone help me with this? 
> 
> Thanks 
> 
> Anikin
> 
> P.S. Please add [EMAIL PROTECTED] in the reply.
> 
> 
> 
> Hugo Alexandre Dias
> Eng. Sistemas Informática
> [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]
> 




Are there anyone out there who can give me an example of setting a
connection property using com_set()
What I want is to set the 'Workstation Id' on an ADODB.Connection.

In ASP it would be like this:
Set cnn = New ADODB.Connection
cnn.Properties("Workstation Id").Value = 'foo';
I would hate myself for being forced to make an ASP-page make it work.
Please help me.


Can it be done with odbc ?
I have tried and tried but nothing seems to work.
Does anyone know if the Workstation ID can be set if i connect with odbc ?

Best regards,
Soeren Nielsen






I am using GET, but also if I use POST I get the same result: Undefined
variable. I am using PHP 4.0.6 on Win98 with PWS
Please Help me!!







.....so what is the problem??

THX!!

buju




Reply via email to