php-windows Digest 26 Jun 2003 01:04:58 -0000 Issue 1795

Topics (messages 20548 through 20569):

Re: Upgrading to MySQL 4.1 or higher worried about clients
        20548 by: Per Lundberg

please vpopmail windows dll needed
        20549 by: David D

install for dummies?
        20550 by: George Pitcher

how to make the Apache recognize the c:/php/sapi/php4apache.dll   -  
http://localhost/_MMServerScript/MMHTTPDB.php
        20551 by: Ildiko Nyari

Listing an Objects Properties
        20552 by: Herhuth, Ron
        20553 by: Piotr Pluciennik
        20554 by: N.A.Morgan.bton.ac.uk

OT[slightly] Tables and layers
        20555 by: Stuart Felenstein
        20561 by: Jim Hunter
        20562 by: Stuart Felenstein
        20563 by: Jim Hunter
        20565 by: Stuart Felenstein
        20566 by: Melih Onvural
        20567 by: Jim Hunter

http://localhost/text.php  why does it download and can't be seen in IE ?
        20556 by: Ildiko Nyari
        20557 by: Stephen

WORKS ! Re: [PHP-WIN] http://localhost/text.php  why does it download and can't be 
seen in IE ?
        20558 by: Ildiko Nyari
        20559 by: Ildiko Nyari

SRM
        20560 by: Miha Nedok

Problems with Double Quotes and highlight_string
        20564 by: Jeremy Whitlock

Why is PHP not recommended with Apache 2.0?
        20568 by: Jeff Waldock

COMPLETE! newby
        20569 by: JAY REIDY

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 ---
On Wed, 2003-06-25 at 03:50, Paul Menard wrote:
> I'be been considering upgrading my data , MySQL
> 3.23.42 to 4.013 or even going to 4.1. I've read on
> the MySQL upgrade documents that some client might be
> affected when upgrading to 4.1. It does specificall
> mention Perl which I use to supplement PHP. By I'm
> more concerned about PHP.
> 
> Should I be concerned?

Yes, it will not work at all.  MySQL 4.1 uses a protocol that's not
compatible with MySQL 3.23 and 4.0.

You need to use the ext/mysqli extension for it to work, but there are
two problems with this:

1) it is only available with PHP5 which is not released yet.
2) it cannot be legally used since the MySQL 4.1 client libraries have
been re-licensed under the GPL (old versions of the client libraries
used to be under the more friendly LGPL).

The only way out of this mess would be to use the ODBC driver for MySQL,
but that will likely not be at all as fast as the native driver.
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

Attachment: signature.asc
Description: This is a digitally signed message part


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

Can someone compile vpopmail extension for me ?
http://www.ionium.org/php/php_vpopmail-0.1.tar.gz
I need a php_vpopmail.dll ...
I have nothing for compiling this, so if someone can do easily ...

Thanks.




--- End Message ---
--- Begin Message ---
Hi, after using PHP for ages, my laptop died on me and I've been trying to
get PHP active on a new W2K machine running IIS5.

I've tried both the installer and the binary (both as CGI and ISAPI) with no
success.

I've copied the php4isapi.dll file along with php.ini to winnt\system32,
tried just about any conceivable option in the IS manager configuration and
the best I can get is to se my code being displayed (phpinfo();)

Any suggestions before I head for my train to Edinburgh at 4pm?

Cheers

George in Oxford




--- End Message ---
--- Begin Message ---
Does anybody know how to make the Apache recognize the c:/php/sapi/php4apache.dll   
because Apache doesn't see it.
I have installed ImpAKT2, and now I am in a big mass, nothing works. I wish I didn't 
do it.
I already had to reinstall Dreamweaver, to remove completely ImpAKT, because it even 
didn't want to leave completely.

Anyway, my Apache doesn't work at all.
I reinstalled Apache too, but still it doesn't see the c:/php/sapi/php4apache.dll  
module.
In the httpd.conf  file the LoadModule php4_module c:/php/sapi/php4apache.dll   is 
there.

PLEASE help me!

I am getting nuts with this.

THANKS,
ildiko


----- Original Message ----- 
From: Ildiko Nyari 
To: Cristian MARIN 
Sent: Wednesday, June 25, 2003 9:37 AM
Subject: Re: connecting to mySQL - testing server specified does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php


Now the problem is that Apache can not find the nc:/php/sapi/php4apache.dll  module, 
but I checked and it is there.
I also checked the httpg.conf file and the module is there to be loaded. and The # is 
not at the beginning of nthe line, so it should start, but it doesn't!

Why Apache can't file a module that is in the directory, I see it.
thanks,
ildiko


  ----- Original Message ----- 
  From: Cristian MARIN 
  To: Ildiko Nyari 
  Sent: Wednesday, June 25, 2003 7:11 PM
  Subject: Re: connecting to mySQL - testing server specified does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php


  Your testing path should be C:/Program Files/Apache Group/Apache2/htdocs in place of 
C:/Program Files/Apache Group/Apache2/ and then indeed the http://localhost/ should be 
OK


  -------------------------------------------------
  Cristian MARIN - Developer
  InterAKT Online (www.interakt.ro)
  Tel:         +4021 312.53.12
  Tel/Fax:  +4021 312.51.91
  [EMAIL PROTECTED]
    ----- Original Message ----- 
    From: Ildiko Nyari 
    To: Cristian MARIN 
    Sent: Wednesday, June 25, 2003 6:11 AM
    Subject: Re: connecting to mySQL - testing server specified does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php


    Hello,
    yes, the testing server is C:/Program Files/Apache Group/Apache2

    and the testing server, was http://localhost/ before too.

    So, when I placed the test.php to C:/Program Files/Apache Group/Apache2/htdocs
    and went to the explorer, I saw the test.php here: http://localhost/test.php 

    Sp it should be that right?
    Anyway, it still doesn't want to work, and I have no clue how to reconfigure, it 
just makes me crazy, somehow it is extremely sensitive for everything.
    thanks,
    ildiko


      ----- Original Message ----- 
      From: Cristian MARIN 
      To: Ildiko Nyari 
      Sent: Wednesday, June 25, 2003 4:20 PM
      Subject: Re: connecting to mySQL - testing server specified does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php


      Is your apache running and in the Dreamweaver you heve selected the good path to 
the testing server? Because it seems you have not made this configuration (the default 
one is http://localhost/) and this is the reason you got the error below.

      Reply me if you don't succed
      -------------------------------------------------
      Cristian MARIN - Developer
      InterAKT Online (www.interakt.ro)
      Tel:         +4021 312.53.12
      Tel/Fax:  +4021 312.51.91
      [EMAIL PROTECTED]
        ----- Original Message ----- 
        From: Ildiko Nyari 
        To: Cristian MARIN 
        Cc: [EMAIL PROTECTED] 
        Sent: Tuesday, June 24, 2003 6:03 PM
        Subject: Re: connecting to mySQL - testing server specified does not map to 
the http://localhost/_MMServerScript/MMHTTPDB.php


        It worked before, and than I installed ImpAKT2, and now it doesn't work again, 
I have the same error than before!
        What happened?
        Why ImpAKT2 changed my settings?
        How can I move everything back again?
        I can't connect to mySQL at all.


        "testing server specified does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php"; 

        thanks,
        ildiko

          ----- Original Message ----- 
          From: Cristian MARIN 
          To: Ildiko Nyari 
          Sent: Wednesday, June 18, 2003 3:23 AM
          Subject: Re: connecting to mySQL - testing server specified does not map to 
the http://localhost/_MMServerScript/MMHTTPDB.php


          This it means that the Apache is serving the php files, not interpreting 
them which make me think this is an apache configuration error. 
          There are two posible reasons:
              - The apache is not using the httpd.conf configurated by you and you can 
test this by adding a dummy line in the httpd.conf like 
"kjasdhaskld;haskdjhaskljdhaslkjdaslhkdjahsd" and the server should crash when it open 
with the message that is an invalid line in the https.conf.

              - In your httpd.conf you are not well configurated the php:

          LoadModule php4_module c:\Php\sapi\php4apache.dll
          ...   
          ClearModuleList
          ...
          AddModule mod_php4.c
          ...
          AddType application/x-tar .tgz
          AddType application/x-httpd-php .php .php3 .php4 .phtml

          First of all verify these things.
          -------------------------------------------------
          Cristian MARIN - Developer
          InterAKT Online (www.interakt.ro)
          Tel:         +4021 312.53.12
          Tel/Fax:  +4021 312.51.91
          [EMAIL PROTECTED]
            ----- Original Message ----- 
            From: Ildiko Nyari 
            To: [EMAIL PROTECTED] 
            Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL 
PROTECTED] 
            Sent: Wednesday, June 18, 2003 2:55 AM
            Subject: connecting to mySQL - testing server specified does not map to 
the http://localhost/_MMServerScript/MMHTTPDB.php


            Hello,
            I have installed the PHP, mySQL and Apache on WIN XP, but:

            1. when I want to open in the explorer: http://localhost/test.php  I 
always get a download window, and than my Dreamweaver MX opens, and so I can't see the 
test.php file I created in the explorer.

            2. When I created a php file in Dreamweaver MX, and I want to connect it 
to mySQL, I have problems with the connection. It doesn't connect, the error always 
something with the:
            The testing server specified for this site does not map to the 
http://localhost/_MMServerScript/MMHTTPDB.php Verify that the URL prefix maps to the 
root of the site.

            What is wrong? What and how can I do?
            I get crazy.
            THANKS,
            ildiko

--- End Message ---
--- Begin Message ---
Is there anyway to view an objects properties?  I think I recall seeing
something about being able to do so but I can't find it.

thanks,
Ron





--- End Message ---
--- Begin Message ---
prin_r() ???


--- "Herhuth, Ron" <[EMAIL PROTECTED]>
wrote:
> 
> Is there anyway to view an objects properties?  I
> think I recall seeing
> something about being able to do so but I can't find
> it.
> 
> thanks,
> Ron
> 
> 
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

--- End Message ---
--- Begin Message ---
get_class_vars();
get_class_methods();

check out class/object functions in the manual for more info.

-----Original Message-----
From: Piotr Pluciennik [mailto:[EMAIL PROTECTED]
Sent: 25 June 2003 16:49
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Listing an Objects Properties


prin_r() ???


--- "Herhuth, Ron" <[EMAIL PROTECTED]>
wrote:
> 
> Is there anyway to view an objects properties?  I
> think I recall seeing
> something about being able to do so but I can't find
> it.
> 
> thanks,
> Ron
> 
> 
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

--- End Message ---
--- Begin Message ---
I'm sure this is possible but not sure where to look to learn.  Still really at the 
starting stages of PHP but if someone can point me in the right direction.
 
Basically I don't want to swap out pages but as a for instance have a php enabled form 
in a table that will send [whatever is returned] to another table or layer somewhere 
else in the same page.  
 
Is this possible?  I know nothing about HTML and will only take in as much as 
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to do the 
bulk of the dirty work.
 
Stuart
 

--- End Message ---
--- Begin Message ---
PHP is a Server Side language. What you need to do is handled with
Javascript or some other scripting language on the Client side. If you use
Javascript you will find that it is easy to manipulate anything on a page,
even remove or add items to a page on the fly. But this is definately not a
PHP type of thing.
 
Jim Hunter
 
-------Original Message-------
 
From: Stuart Felenstein
Date: Wednesday, June 25, 2003 11:14:11 AM
To: PHP List
Subject: [PHP-WIN] OT[slightly] Tables and layers
 
I'm sure this is possible but not sure where to look to learn. Still really
at the starting stages of PHP but if someone can point me in the right
direction.

Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to
do the bulk of the dirty work.

Stuart

--- End Message ---
--- Begin Message ---
I understand what you are saying.  PHP doesn't create or hide layers etc.  What I'm 
trying to understand is will PHP work in that environment or not? Could I code one 
layer with a get or post form and have another layer translating it?
 
Stuart
Thank you for your response.

Jim Hunter <[EMAIL PROTECTED]> wrote:PHP is a Server Side language. What you need to 
do is handled with
Javascript or some other scripting language on the Client side. If you use
Javascript you will find that it is easy to manipulate anything on a page,
even remove or add items to a page on the fly. But this is definately not a
PHP type of thing.

Jim Hunter

-------Original Message-------

From: Stuart Felenstein
Date: Wednesday, June 25, 2003 11:14:11 AM
To: PHP List
Subject: [PHP-WIN] OT[slightly] Tables and layers

I'm sure this is possible but not sure where to look to learn. Still really
at the starting stages of PHP but if someone can point me in the right
direction.

Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to
do the bulk of the dirty work.

Stuart


--- End Message ---
--- Begin Message ---
You are asking if you can change the information somewhere else on the page
based on what is entered into a form, using PHP do make the changes. The
answer is still no. PHP ONLY executes on the server, not on the client. The
only way you can update information on the page without re-loading the page
is with Javascript or VB Script. In order for PHP to make any changes on a
page, that page has to be re-processed at the server. Once you are viewing a
page in your browser, there is no longer any PHP code in it, only HTML and
Javascript.
You might be getting confused on what layers are. Layers are used in
Netscape browsers. They are like DIVs in IE. Layers can be stacked on top of
each other but they are all still part of the single web page. IE has an
object called a IFrame that has a fully self contained web page in it and
one IFrame can have a form on it and when the form is submitted the
returning page ( the key here is that the post went back to the server) can
have Javascript in it to change the contents of the other IFrame but you
still need Javascript to do it. Or the 'Submit' button on the form could
simply execute a Javascript routine to change the other layer. You know,
scratch that. Layers are in Netscape-Once a page is drawn in Netscape it is
not possible to change the HTML of an object. You can change attributes like
color, position, etc, but you can not do anything like the IE method of 
innerHTML' which is used to change the information contained in an object.
(insert the appropriate Netscape joke here).

Jim
 
-------Original Message-------
 
From: Stuart Felenstein
Date: Wednesday, June 25, 2003 01:33:15 PM
To: Jim Hunter; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] OT[slightly] Tables and layers
 
I understand what you are saying.  PHP doesn't create or hide layers etc. 
What I'm trying to understand is will PHP work in that environment or not?
Could I code one layer with a get or post form and have another layer
translating it?
 
Stuart
Thank you for your response.

Jim Hunter <[EMAIL PROTECTED]> wrote: PHP is a Server Side language. What
you need to do is handled with
Javascript or some other scripting language on the Client side. If you use
Javascript you will find that it is easy to manipulate anything on a page,
even remove or add items to a page on the fly. But this is definately not a
PHP type of thing.

Jim Hunter

-------Original Message-------

From: Stuart Felenstein
Date: Wednesday, June 25, 2003 11:14:11 AM
To: PHP List
Subject: [PHP-WIN] OT[slightly] Tables and layers

I'm sure this is possible but not sure where to look to learn. Still really
at the starting stages of PHP but if someone can point me in the right
direction.

Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to
do the bulk of the dirty work.

Stuart 

--- End Message ---
--- Begin Message ---
Jim Hunter <[EMAIL PROTECTED]> wrote:
 
Layers are in Netscape-Once a page is drawn in Netscape it is 
not possible to change the HTML of an object. You can change attributes like 
color, position, etc, but you can not do anything like the IE method of 
innerHTML' which is used to change the information contained in an object. 
(insert the appropriate Netscape joke here). 
 
I was thinking of multiple layers where some are hidden and then called to through an 
action and then appear. So, not one layer that can have it's text changed for 
instance, but one layer, and then when a submit button was hit, the other layer 
appears.  Anyway you don't have to hit me over the head  because I understand your 
explanation.
 
Part of my confusion is my plain ignorance aka inexperience.  The other is I'm looking 
over the GoLive documentation where it says you can make "objects" dynamic (forms, 
tables, layers).  I took that to mean that the object has a life of it's own and once 
sent to the server a hidden layer or table could automatically appear, again without 
redrawing the entire page.  
 
Sorry for the confusion.
Stuart

Jim 

-------Original Message------- 

From: Stuart Felenstein 
Date: Wednesday, June 25, 2003 01:33:15 PM 
To: Jim Hunter; [EMAIL PROTECTED] 
Subject: Re: [PHP-WIN] OT[slightly] Tables and layers 

I understand what you are saying. PHP doesn't create or hide layers etc. 
What I'm trying to understand is will PHP work in that environment or not? 
Could I code one layer with a get or post form and have another layer 
translating it? 

Stuart 
Thank you for your response. 

Jim Hunter wrote: PHP is a Server Side language. What 
you need to do is handled with 
Javascript or some other scripting language on the Client side. If you use 
Javascript you will find that it is easy to manipulate anything on a page, 
even remove or add items to a page on the fly. But this is definately not a 
PHP type of thing. 

Jim Hunter 

-------Original Message------- 

From: Stuart Felenstein 
Date: Wednesday, June 25, 2003 11:14:11 AM 
To: PHP List 
Subject: [PHP-WIN] OT[slightly] Tables and layers 

I'm sure this is possible but not sure where to look to learn. Still really 
at the starting stages of PHP but if someone can point me in the right 
direction. 

Basically I don't want to swap out pages but as a for instance have a php 
enabled form in a table that will send [whatever is returned] to another 
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as 
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to 
do the bulk of the dirty work. 

Stuart 


--- End Message ---
--- Begin Message ---
This is actually really easy to do. make the post or get variable of your form 
page.php#($variable) and then define each layer or table further down the page with an 
achor name using <a name="anchor1" /> (XHTML close tag). This will reload the page and 
direct it to the layer/table the user selected.

melih
> 
> From: Stuart Felenstein <[EMAIL PROTECTED]>
> Date: 2003/06/25 Wed PM 12:33:49 EDT
> To: PHP List <[EMAIL PROTECTED]>
> Subject: [PHP-WIN] OT[slightly] Tables and layers
> 
> I'm sure this is possible but not sure where to look to learn.  Still really at the 
> starting stages of PHP but if someone can point me in the right direction.
>  
> Basically I don't want to swap out pages but as a for instance have a php enabled 
> form in a table that will send [whatever is returned] to another table or layer 
> somewhere else in the same page.  
>  
> Is this possible?  I know nothing about HTML and will only take in as much as 
> necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to do the 
> bulk of the dirty work.
>  
> Stuart
>  
> 
> 


--- End Message ---
--- Begin Message ---
What you won't get here is the information entered into the form unless you
use Javascript to move the data to the other part of the page. Now if the
data was only there to determine which table to show then you could use this
 or a similar,  technique. I think a simpler method would be to learn a
little Javascript and create DIV's that contain the tables that you want to
hide and show and have them occupy the same location on the page. Then set
the visible property of them depending on the value in the form. It's only a
few lines of code and would be much faster and look cleaner then doing a
re-load of the page to a new anchor.

Jim
 
-------Original Message-------
 
From: Melih Onvural
Date: Wednesday, June 25, 2003 02:18:35 PM
To: Stuart Felenstein; PHP List
Subject: Re: [PHP-WIN] OT[slightly] Tables and layers
 
This is actually really easy to do. make the post or get variable of your
form page.php#($variable) and then define each layer or table further down
the page with an achor name using <a name="anchor1" /> (XHTML close tag).
This will reload the page and direct it to the layer/table the user selected


melih
> 
> From: Stuart Felenstein <[EMAIL PROTECTED]>
> Date: 2003/06/25 Wed PM 12:33:49 EDT
> To: PHP List <[EMAIL PROTECTED]>
> Subject: [PHP-WIN] OT[slightly] Tables and layers
> 
> I'm sure this is possible but not sure where to look to learn. Still
really at the starting stages of PHP but if someone can point me in the
right direction.
> 
> Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 
> 
> Is this possible? I know nothing about HTML and will only take in as much
as necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive
to do the bulk of the dirty work.
> 
> Stuart
> 
> 
> 


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

. 

--- End Message ---
--- Begin Message ---
Somehow still the text.php file can not be seen in the explorer. It want's to be 
downloaded.

Why?

ildiko

--- End Message ---
--- Begin Message ---
ildiko

If it tries to download the file, then Apache is not set to parse PHP files
properly. You need to find a section that looks similar to below. You must
make sure that the line
AddType application/x-httpd-php .php
is in that section as shown below.

Stephen

#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .php

----- Original Message ----- 
From: "Ildiko Nyari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 5:46 PM
Subject: [PHP-WIN] http://localhost/text.php why does it download and can't
be seen in IE ?



Somehow still the text.php file can not be seen in the explorer. It want's
to be downloaded.

Why?

ildiko



--- End Message ---
--- Begin Message ---
THANKS
you are great.
it works. it shows .php again !

THANKS

----- Original Message ----- 
From: "Stephen" <[EMAIL PROTECTED]>
To: "Ildiko Nyari" <[EMAIL PROTECTED]>
Cc: "Windows Helplist (PHP)" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:50 PM
Subject: Re: [PHP-WIN] http://localhost/text.php why does it download and can't be 
seen in IE ?


> ildiko
> 
> If it tries to download the file, then Apache is not set to parse PHP files
> properly. You need to find a section that looks similar to below. You must
> make sure that the line
> AddType application/x-httpd-php .php
> is in that section as shown below.
> 
> Stephen
> 
> #
> # AddType allows you to tweak mime.types without actually editing it, or to
> # make certain files to be certain types.
> #
> AddType application/x-tar .tgz
> AddType image/x-icon .ico
> AddType application/x-httpd-php .php
> 
> ----- Original Message ----- 
> From: "Ildiko Nyari" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 25, 2003 5:46 PM
> Subject: [PHP-WIN] http://localhost/text.php why does it download and can't
> be seen in IE ?
> 
> 
> 
> Somehow still the text.php file can not be seen in the explorer. It want's
> to be downloaded.
> 
> Why?
> 
> ildiko
> 
> 
> 

--- End Message ---
--- Begin Message ---
EVERYTHING WORKS (mysql-php-Apache ..)
I AM SO HAPPY 

it took half a day to remove ImpAKT and reinstall everything again.

thanks !


----- Original Message ----- 
From: Ildiko Nyari 
To: Stephen 
Cc: [EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 12:55 PM
Subject: WORKS ! Re: [PHP-WIN] http://localhost/text.php why does it download and 
can't be seen in IE ?


THANKS
you are great.
it works. it shows .php again !

THANKS

----- Original Message ----- 
From: "Stephen" <[EMAIL PROTECTED]>
To: "Ildiko Nyari" <[EMAIL PROTECTED]>
Cc: "Windows Helplist (PHP)" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:50 PM
Subject: Re: [PHP-WIN] http://localhost/text.php why does it download and can't be 
seen in IE ?


> ildiko
> 
> If it tries to download the file, then Apache is not set to parse PHP files
> properly. You need to find a section that looks similar to below. You must
> make sure that the line
> AddType application/x-httpd-php .php
> is in that section as shown below.
> 
> Stephen
> 
> #
> # AddType allows you to tweak mime.types without actually editing it, or to
> # make certain files to be certain types.
> #
> AddType application/x-tar .tgz
> AddType image/x-icon .ico
> AddType application/x-httpd-php .php
> 
> ----- Original Message ----- 
> From: "Ildiko Nyari" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 25, 2003 5:46 PM
> Subject: [PHP-WIN] http://localhost/text.php why does it download and can't
> be seen in IE ?
> 
> 
> 
> Somehow still the text.php file can not be seen in the explorer. It want's
> to be downloaded.
> 
> Why?
> 
> ildiko
> 
> 
> 

--- End Message ---
--- Begin Message ---
Is there anything like SRM ( Script Runnin Machine -
http://www.vl-srm.net/) for win32 ?

-Mike


--- End Message ---
--- Begin Message ---
PHP,
                I have this code:
 
function highlight_code ($langName, $codeText)
    {
        $langName = strtolower($langName);
                require_once
XOOPS_ROOT_PATH."/colorcode/HColor_Core.php";
                if ($langName == 'php'){
                    return highlight_string("<?$codeText?".">", TRUE);
                }else{
                    $HColor = new HColorCore;
                    return $HColor->HighlightColor($langName,$codeText);
                }
    }
 
That will be ran to highlight the PHP syntax in a forum post.
Everything works fine if there are no double quotes in the form post but
if there are double quotes in the post, I get improper markup of the PHP
code being posted in the forum post.  Can someone help me out?  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 

--- End Message ---
--- Begin Message ---
Can anyone explain why the message:

"Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows. "

appears prominently on the following PHP documentation page - for the
installation of PHP with Apache 2?
(http://uk.php.net/manual/en/install.apache2.php)

I can find no explanation, and our web administrator is refusing to
install PHP on our University's main web server as a result.

Many thanks
Jeff Waldock


--- End Message ---
--- Begin Message ---
I just installed PHP and Apache on everyone's favorite OS, Windows XP. Both
more or less work as advertised, and I'm using them for development at home.

When I use this form:
<form action="foo.php" method="post">
    Name:  <input type="text" name="username"><br>
    Email: <input type="text" name="email"><br>
    <input type="submit" name="submit" value="Submit me!">
</form>

to call this PHP script:
<?php
   print $_POST['username'];
   print $_REQUEST['username'];
   import_request_variables('p', 'p_');
   print $p_username;
   print $HTTP_POST_VARS['username'];
   print $username;
?>

I get this error:
Notice: Undefined variable: username in C:\Program Files\Apache
Group\Apache2\htdocs\myserver\foo.php on line 18

 which happens to be the "print $username" command.

Obviously, the HTML form isn't passing the values to the script.

Does ANYone have a clue? I have an idea there's a switch or something I
don't have right in my Apache config file but any help would be appreciated.

Peace,
j



--- End Message ---

Reply via email to