php-install Digest 30 Nov 2001 11:34:34 -0000 Issue 579

Topics (messages 5137 through 5147):

php code inside html doesn't work
        5137 by: Byunsung Cho
        5138 by: Fred
        5139 by: Chris
        5141 by: Byunsung Cho
        5146 by: Fred

PHP.ini file configuration
        5140 by: Paul Viazcan
        5143 by: Chris

PHP4 Installaion problem
        5142 by: C.Longford

IMAP && mod_php && redhat 7.2
        5144 by: Emilio Recio

Fw:Requested HolidaySpecial
        5145 by: usa.registeredsite.com

Re: updating php 4.04 to 4.06
        5147 by: EdwardSPL.ita.org.mo

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 ---
Thanks to many netters, I have found running php.exe from command line
works.
I feel that I need to take introductory Windows class again. :)

I am using Php 4, IIS on Windows 2000.
Now, I can have a web broweser open a file with .php file extension and
php codes inside the file works fine.

However, php code embedded inside a html file does not work.
Simple print statement does not show anything on screen.

Would you please help me what to check to solve the problem?

-Cho



--- End Message ---
--- Begin Message ---
What do you mean by php code inside an html file?  Do you mean that the file
has an html extension (e.g. index.html)?  If that is the case then you need
to change your php.ini file to indicate that all html files should be
processed by php.  Alternately, you could just change the extension to .php
and everything will work just fine.

Fred

Byunsung Cho <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks to many netters, I have found running php.exe from command line
> works.
> I feel that I need to take introductory Windows class again. :)
>
> I am using Php 4, IIS on Windows 2000.
> Now, I can have a web broweser open a file with .php file extension and
> php codes inside the file works fine.
>
> However, php code embedded inside a html file does not work.
> Simple print statement does not show anything on screen.
>
> Would you please help me what to check to solve the problem?
>
> -Cho
>
>
>


--- End Message ---
--- Begin Message ---
Greetings,

> What do you mean by php code inside an html file?  Do you mean that the
> file has an html extension (e.g. index.html)?  If that is the case then
> you need to change your php.ini file to indicate that all html files
> should be processed by php.  Alternately, you could just change the
> extension to .php and everything will work just fine.

Just a hunch. But if your Webserver is already setup for Scripted
HyperTestMarkupLanguage files(.shtml). That might be a better/ easier
choice. - just a thought.

Chris

> 
> Fred
> 
> Byunsung Cho <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Thanks to many netters, I have found running php.exe from command line
>> works.
>> I feel that I need to take introductory Windows class again. :)
>>
>> I am using Php 4, IIS on Windows 2000.
>> Now, I can have a web broweser open a file with .php file extension
>> and php codes inside the file works fine.
>>
>> However, php code embedded inside a html file does not work.
>> Simple print statement does not show anything on screen.
>>
>> Would you please help me what to check to solve the problem?
>>
>> -Cho
>>
>>
>>
> 
> 
> 
> -- 
> PHP Install 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]


-- 
end


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
My html file, test.htm, looks like this:

<html>
    <head>
        <title>Example</title>
    </head>
    <body>

    <?php print( "Hello" ); ?>

    </body>
</html>

It doesn't print anything while the php file, test.php, print Hello on the
screen.
The test.php looks like this:

<?php print( "Hello" ); ?>

In this case, do I need to change my php.int file as you said?

Thank you for the help.

-Cho




--- End Message ---
--- Begin Message ---
I mentioned the wrong ini file.  To get this to work you need to edit your
httpd.conf file.

Find the line that looks similar to this:
AddType application/x-httpd-php .php
 and change it to look like this:
AddType application/x-httpd-php .php .htm .html
and all should be fine

Fred

Byunsung Cho <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My html file, test.htm, looks like this:
>
> <html>
>     <head>
>         <title>Example</title>
>     </head>
>     <body>
>
>     <?php print( "Hello" ); ?>
>
>     </body>
> </html>
>
> It doesn't print anything while the php file, test.php, print Hello on the
> screen.
> The test.php looks like this:
>
> <?php print( "Hello" ); ?>
>
> In this case, do I need to change my php.int file as you said?
>
> Thank you for the help.
>
> -Cho
>
>
>
>


--- End Message ---
--- Begin Message ---
I have PHP4.0 installed on my webserver in Linux by my provider.

I can run *.php scripts but I am use to creating web sights with *.phtml
file extension.
When I run the *.phtml file the web server can not seem to parse the
file and it just displays the code.

The tech people gave me the php.ini file to modifiy so that php can
parse *.phtml files.

There is one problem the tech people can not help me with configuring
the php.ini file so  have been researching in
the php web page but to no luck..
so if someone knows how I can get to where my *.phtml files can be work
that will be great

thank you -paul


--- End Message ---
--- Begin Message ---
Hello Paul,
 Your problem lies with your Webserver .conf file (apache?)
If Apache, it's called httpd.conf. The line(s) you will need to add are:

 # AddType allows you to tweak mime.types without actually editing it,
 # or to
 # make certain files to be certain types.
 #
 # For example, the PHP 3.x module (not part of the Apache distribution -
 # see
 # http://www.php.net) will typically use:
 #
   
   AddType application/x-httpd-php3 .php3
   AddType application/x-httpd-php3-source .phps

 #
 # And for PHP 4.x, use:
 #

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php .php4
   AddType application/x-httpd-php-source .phps

 # For *your* needs Paul add the following:

   AddType application/x-httpd-php .phtml


 That *should* do it for ya. :-)

Best wishes,
 Chris



> I have PHP4.0 installed on my webserver in Linux by my provider.
> 
> I can run *.php scripts but I am use to creating web sights with
> *.phtml file extension.
> When I run the *.phtml file the web server can not seem to parse the
> file and it just displays the code.
> 
> The tech people gave me the php.ini file to modifiy so that php can
> parse *.phtml files.
> 
> There is one problem the tech people can not help me with configuring
> the php.ini file so  have been researching in
> the php web page but to no luck..
> so if someone knows how I can get to where my *.phtml files can be work
> that will be great
> 
> thank you -paul
> 
> 
> 
> -- 
> PHP Install 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]


-- 
end


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
Hi please help me....

Right i was running a trial version of deerfiled website pro 3.1 and running php4 with 
no problems... now that the trial has expired i removed it and installed oreallys 
website pro 3.0 retail which i had previusely... 

after installing the new web site software, i installed php4, and editind the php.ini, 
setup mapping etc, and followed the install.txt perfectly...

now ever time i run a script my browser (Internet explorer 6.0 on xp) says 

"No input file specified."

i ran php.exe -i and i get the html to say it running fine...

so what could be wrong??? 

Thank you...
--- End Message ---
--- Begin Message ---
I had to compile PHP from scratch. IMAP was a requirement, using apache RPM, 
imap-200c(-devel) RPM and had problems starting up the webserver (undefined 
symbol: gss_nt_service_name). I found a resolution to this problem and posted 
it on PHP builder.

I think it has something to do with Kerberos encryption. I noticed that redhat 
includes kerberos library, and there's an option for IMAP to include kerberos 
when configuring php.

The other person who got it to work with that script that he created had only 
one thing in common with my other google searches, he included -lkrb. I ran 
into this problem with Redhat (Red Hat) 7.2 when attempting to compile php for 
imap. It seems like they install the imap client to use Kerberos encryption 
(by also installing Kerberos). So when php tried to load c-client.a at compile 
time, it missed some kerberos code.

I am recompiling as I type, so if this is the resolution... YES!!! It is!!! :) 
Okay, so if you are going to use the apache RPM from redhat, and the 
imap(-devel) RPM from redhat, make sure that kerberos is installed (should be 
by default) and add --with-kerberos=/usr/kerberos when you use 
--with-imap=/usr/lib

(my full configure from config.status)

  ./configure  --disable-nls --disable-debug --with-apxs=/usr/sbin/apxs 
--with-openssl --enable-bcmath --enable-dbase --with-db3 --enable-ftp 
--with-gd --with-ldap --with-mysql --with-mm --enable-sockets --with-zlib 
--with-imap=/usr/lib --with-kerberos=/usr/kerberos

--- End Message ---
--- Begin Message ---
To: [EMAIL PROTECTED]
From:  ()
Subject: Fw:Requested HolidaySpecial

Below is the result of your feedback form.  It was submitted by
 () on Friday, November 30, 2001 at 03:04:52
---------------------------------------------------------------------------

message: 
******************************************
$15,000 PER MONTH AND MONEY BACK GUARANTEE
******************************************

Real Networker Leads, Real Powerful Cash  --EMAIL US NOW AT [EMAIL PROTECTED]

We Are Backed By An Actual Lead Company, And Have  A Holiday Bonus 
Extended Through Saturday.  Break Even On Your Initial Investment
within 10 Days And Be On Your Way To Earning $15,000 Per Month!!

email us at [EMAIL PROTECTED]
Include Your Name Email And PHONE NUMBER [INCLUDE YOUR PHONE OR WE 
WILL NOT GET BACK TO YOU]



**********************************************************************
To Be Removed From Our List Email [EMAIL PROTECTED]
**********************************************************************


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


--- End Message ---
--- Begin Message ---
"Oscar Castaneda V." wrote:
> 
> Hi,
> 
> I'm trying to update (rpm -U) my php distribution 4.04 to version 4.06. I have tried 
>the following command with no success:
> 
> # rpm -Uvh php4.06-7-i386.rpm
> 
> Ive also given it a shot with the .src file with no success.
> 
> How can I update php with out tearing down any other software that uses php?
> 
> thanks to all,
> oscar
> --
> PGP Key fingerprint =  87 83 5F D3 8D D4 B9 DC  4F 15 B1 68 4E FE 2D AE

Hello,

What is your system ?

Edward.


--- End Message ---

Reply via email to