FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » setup php, win 7
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
setup php, win 7 [message #173764] Tue, 03 May 2011 21:23 Go to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
I downloaded php 5.3.6 from web site
http://us3.php.net/downloads.php . I use windows 7.
Then I tried to follow setup manual.

I do not see how to setup windows role and role for IIS. I will appreciate
if somebody will help with this issue.

Next question. When I start IIS I need to add handle for php-cgi.exe.
However in the set of files that I downloaded I see only one exe file:
tiny.exe. I do not think that this file has any relation to my question.
What can I do?

Thank you, Aleks Kleyn
Re: setup php, win 7 [message #173767 is a reply to message #173764] Wed, 04 May 2011 00:38 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/3/2011 5:23 PM, Aleks Kleyn wrote:
> I downloaded php 5.3.6 from web site
> http://us3.php.net/downloads.php . I use windows 7.
> Then I tried to follow setup manual.
>
> I do not see how to setup windows role and role for IIS. I will appreciate
> if somebody will help with this issue.
>
> Next question. When I start IIS I need to add handle for php-cgi.exe.
> However in the set of files that I downloaded I see only one exe file:
> tiny.exe. I do not think that this file has any relation to my question.
> What can I do?
>
> Thank you, Aleks Kleyn
>
>

I don't know what you downloaded, but it doesn't sound like PHP.

As for installing PHP on IIS as a CGI (don't know why you don't want to
install it as a module): Get the PHP package (I generally use the .zip
file instead of the installer) and go to:

http://www.lmgtfy.com/?q=php+cgi+iis+install



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #173768 is a reply to message #173767] Wed, 04 May 2011 01:59 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
Looking into this code I decided that this is source code for compiler and
found bellow link for binaries. it was MSI file which setup everything.

Now puting php file into IIS folder I can see it in IE. The only question
is.

in manual they write it is written that I can embed PHP into html file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>

<?php
echo "Hi, I'm a PHP script!<br />";
?>
</body>
</html>
But IE shows me empty page and on view code I see original code. What can be
reason?


"Jerry Stuckle" <jstucklex(at)attglobal(dot)net> wrote in message
news:ipq768$h6s$1(at)dont-email(dot)me...
> On 5/3/2011 5:23 PM, Aleks Kleyn wrote:
>> I downloaded php 5.3.6 from web site
>> http://us3.php.net/downloads.php . I use windows 7.
>> Then I tried to follow setup manual.
>>
>> I do not see how to setup windows role and role for IIS. I will
>> appreciate
>> if somebody will help with this issue.
>>
>> Next question. When I start IIS I need to add handle for php-cgi.exe.
>> However in the set of files that I downloaded I see only one exe file:
>> tiny.exe. I do not think that this file has any relation to my question.
>> What can I do?
>>
>> Thank you, Aleks Kleyn
>>
>>
>
> I don't know what you downloaded, but it doesn't sound like PHP.
>
> As for installing PHP on IIS as a CGI (don't know why you don't want to
> install it as a module): Get the PHP package (I generally use the .zip
> file instead of the installer) and go to:
>
> http://www.lmgtfy.com/?q=php+cgi+iis+install
>
>
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex(at)attglobal(dot)net
> ==================
Re: setup php, win 7 [message #173770 is a reply to message #173768] Wed, 04 May 2011 02:31 Go to previous messageGo to next message
P E Schoen is currently offline  P E Schoen
Messages: 86
Registered: January 2011
Karma: 0
Member
"Aleks Kleyn" wrote in message news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net...

> Now puting php file into IIS folder I can see it in IE.

> But IE shows me empty page and on view code I see original code. What
> can be reason?

Please do not top post. You may get ignored by some experts.

You need to be running on a local server, and use http://localhost/ for
browsers. I use the XAMPP Apache server and it comes with PHP, Perl, MySQL,
and SQlite. You may search some of my newbie posts from a few months ago to
follow the problems I experienced and how I solved them. I am also on Win7.

Paul
Re: setup php, win 7 [message #173773 is a reply to message #173768] Wed, 04 May 2011 02:52 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/3/2011 9:59 PM, Aleks Kleyn wrote:

> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
> news:ipq768$h6s$1(at)dont-email(dot)me...
>> On 5/3/2011 5:23 PM, Aleks Kleyn wrote:
>>> I downloaded php 5.3.6 from web site
>>> http://us3.php.net/downloads.php . I use windows 7.
>>> Then I tried to follow setup manual.
>>>
>>> I do not see how to setup windows role and role for IIS. I will
>>> appreciate
>>> if somebody will help with this issue.
>>>
>>> Next question. When I start IIS I need to add handle for php-cgi.exe.
>>> However in the set of files that I downloaded I see only one exe file:
>>> tiny.exe. I do not think that this file has any relation to my question.
>>> What can I do?
>>>
>>> Thank you, Aleks Kleyn
>>>
>>>
>>
>> I don't know what you downloaded, but it doesn't sound like PHP.
>>
>> As for installing PHP on IIS as a CGI (don't know why you don't want to
>> install it as a module): Get the PHP package (I generally use the .zip
>> file instead of the installer) and go to:
>>
>> http://www.lmgtfy.com/?q=php+cgi+iis+install
>>
> Looking into this code I decided that this is source code for
> compiler and found bellow link for binaries. it was MSI file which
> setup everything.
>
> Now puting php file into IIS folder I can see it in IE. The only
> question is.
>
> in manual they write it is written that I can embed PHP into html file
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Example</title>
> </head>
> <body>
>
> <?php
> echo "Hi, I'm a PHP script!<br />";
> ?>
> </body>
> </html>
> But IE shows me empty page and on view code I see original code. What
> can be reason?
>
>

<Top posting fixed>

To execute the PHP code, you must be loading the page from your web
server (i.e. http://localhost/xxx). Also, IIS must figure out this is a
PHP file; generally this is done by using the file extension .php
instead of .html.

P.S. Please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #173781 is a reply to message #173768] Wed, 04 May 2011 10:57 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 04/05/2011 3:59, Aleks Kleyn escribió/wrote:
> Looking into this code I decided that this is source code for compiler

Didn't the "Complete Source Code" title give you a clue? ;-P


> and found bellow link for binaries. it was MSI file which setup everything.
>
> Now puting php file into IIS folder I can see it in IE. The only question
> is.
>
> in manual they write it is written that I can embed PHP into html file
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Example</title>
> </head>
> <body>
>
> <?php
> echo "Hi, I'm a PHP script!<br />";
> ?>
> </body>
> </html>
> But IE shows me empty page and on view code I see original code. What can be
> reason?

The reason is that you may have installed PHP but haven't configured IIS
to use PHP. The installation wizard offers an option to configure IIS,
did you select it?


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: setup php, win 7 [message #173787 is a reply to message #173768] Wed, 04 May 2011 23:36 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
Aleks Kleyn <AleksKleyn(at)OptOnline(dot)net> typed:
> Looking into this code I decided that this is source code
> for compiler and found bellow link for binaries. it was
> MSI file which setup everything.
> Now puting php file into IIS folder I can see it in IE.
> The only question is.
>
> in manual they write it is written that I can embed PHP
> into html file <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
> 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd"> <html>
> <head>
> <title>Example</title>
> </head>
> <body>
>
> <?php
> echo "Hi, I'm a PHP script!<br />";
>>
> </body>
> </html>
> But IE shows me empty page and on view code I see
> original code. What can be reason?
>
>
> "Jerry Stuckle" <jstucklex(at)attglobal(dot)net> wrote in message
> news:ipq768$h6s$1(at)dont-email(dot)me...
>> On 5/3/2011 5:23 PM, Aleks Kleyn wrote:
>>> I downloaded php 5.3.6 from web site
>>> http://us3.php.net/downloads.php . I use windows 7.
>>> Then I tried to follow setup manual.
>>>
>>> I do not see how to setup windows role and role for
>>> IIS. I will appreciate
>>> if somebody will help with this issue.
>>>
>>> Next question. When I start IIS I need to add handle
>>> for php-cgi.exe. However in the set of files that I
>>> downloaded I see only one exe file: tiny.exe. I do not
>>> think that this file has any relation to my question.
>>> What can I do? Thank you, Aleks Kleyn
>>>
>>>
>>
>> I don't know what you downloaded, but it doesn't sound
>> like PHP. As for installing PHP on IIS as a CGI (don't know why
>> you don't want to install it as a module): Get the PHP
>> package (I generally use the .zip file instead of the
>> installer) and go to: http://www.lmgtfy.com/?q=php+cgi+iis+install
>>
>>
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex(at)attglobal(dot)net
>> ==================

You:
1. Didn't save the page with a .php extension but used .html?
2. You didn't feed it to a server? Either locally or remotely.

Those seem to be the most common newbie reasons IME.

HTH,

Twayne`
Re: setup php, win 7 [message #173788 is a reply to message #173770] Wed, 04 May 2011 23:43 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:ipqdr7$c96$1(at)speranza(dot)aioe(dot)org,
P E Schoen <paul(at)pstech-inc(dot)com> typed:
> "Aleks Kleyn" wrote in message
> news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net...
>> Now puting php file into IIS folder I can see it in IE.
>
>> But IE shows me empty page and on view code I see
>> original code. What can be reason?
>
....
>
> You need to be running on a local server,

OR uploading the file to a remote server where you plan to put your web site
probably? Installing a local server is the best solution - I'm using XAMPP
(Google for it) and it works perfectly. Notepad++ BTW will allow you to
auto-feed your site to one of two browsers you have installed. XAMPP comes
with pretty good documentation also.
N O T E : It's best not to run local servers as a service because they are
not setup to be secure from the outside world. Again, see documentation.
http://www.apachefriends.org/en/xampp.html
http://drupal.org/node/161975

HTH,

Twayne`



.... ...
Re: setup php, win 7 [message #173793 is a reply to message #173788] Thu, 05 May 2011 07:43 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 05/05/2011 1:43, Twayne escribió/wrote:
> N O T E : It's best not to run local servers as a service because they are
> not setup to be secure from the outside world. Again, see documentation.

How can it be safer to run Apache or MySQL with your own user
credentials (which is possibly an administrator) than the local system
account used by services?


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: setup php, win 7 [message #173796 is a reply to message #173793] Thu, 05 May 2011 10:44 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/5/2011 3:43 AM, "Álvaro G. Vicario" wrote:
> El 05/05/2011 1:43, Twayne escribió/wrote:
>> N O T E : It's best not to run local servers as a service because they
>> are
>> not setup to be secure from the outside world. Again, see documentation.
>
> How can it be safer to run Apache or MySQL with your own user
> credentials (which is possibly an administrator) than the local system
> account used by services?
>
>

It's just a normal Twayne response, Álvaro. Incorrect and full of crap.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #173810 is a reply to message #173788] Thu, 05 May 2011 20:38 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(Twayne)

> N O T E : It's best not to run local servers as a service because they are
> not setup to be secure from the outside world.

And they don't have to. It's the administrators task to secure the
system by adding access restrictions, firewall rules etc.

Micha
Re: setup php, win 7 [message #173847 is a reply to message #173810] Mon, 09 May 2011 19:02 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
"Michael Fesser" <netizen(at)gmx(dot)de> wrote in message
news:6j26s6pekn1ha7u60e1d7mobmkp351b159(at)mfesser(dot)de...
> .oO(Twayne)
>
>> N O T E : It's best not to run local servers as a service because they are
>> not setup to be secure from the outside world.
>
> And they don't have to. It's the administrators task to secure the
> system by adding access restrictions, firewall rules etc.
>
> Micha
all these idea who should install and care about security are good when i
work in the office. However if i sit at home and learn tool only me is
responsible to select IIS or Apache and to care about security.
Re: setup php, win 7 [message #173848 is a reply to message #173787] Mon, 09 May 2011 19:15 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
"Twayne" <nobody(at)devnull(dot)spamcop(dot)net> wrote in message
news:ipsntn$90f$1(at)dont-email(dot)me...
> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
> Aleks Kleyn <AleksKleyn(at)OptOnline(dot)net> typed:
>> Looking into this code I decided that this is source code
>> for compiler and found bellow link for binaries. it was
>> MSI file which setup everything.
>> Now puting php file into IIS folder I can see it in IE.
>> The only question is.
>>
>> in manual they write it is written that I can embed PHP
>> into html file <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>> 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>> <head>
>> <title>Example</title>
>> </head>
>> <body>
>>
>> <?php
>> echo "Hi, I'm a PHP script!<br />";
>>>
>> </body>
>> </html>
>> But IE shows me empty page and on view code I see
>> original code. What can be reason?
>>
>>
>
> You:
> 1. Didn't save the page with a .php extension but used .html?
> 2. You didn't feed it to a server? Either locally or remotely.
>
> Those seem to be the most common newbie reasons IME.
>
> HTH,
>
> Twayne`
>
>
I just followed official manual on PHP. I created virtual folder in IIS
server and converted it into application. then I saved there 2 files: 1 php
and 1 html. also i have php.ini and config.sys in this folder. I can see php
exemple as it is expected and empty web page for html file. when I look view
source I see that IIS did not open php tag in html file.

Aleks Kleyn
Re: setup php, win 7 [message #173849 is a reply to message #173847] Mon, 09 May 2011 23:20 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/9/2011 3:02 PM, Aleks Kleyn wrote:
> "Michael Fesser"<netizen(at)gmx(dot)de> wrote in message
> news:6j26s6pekn1ha7u60e1d7mobmkp351b159(at)mfesser(dot)de...
>> .oO(Twayne)
>>
>>> N O T E : It's best not to run local servers as a service because they are
>>> not setup to be secure from the outside world.
>>
>> And they don't have to. It's the administrators task to secure the
>> system by adding access restrictions, firewall rules etc.
>>
>> Micha
> all these idea who should install and care about security are good when i
> work in the office. However if i sit at home and learn tool only me is
> responsible to select IIS or Apache and to care about security.
>
>

You should still worry about security. Just because your machine is at
home means nothing. As long as it's connected to the internet it is
vulnerable.

The vast majority of systems used in DDOS and similar attacks are "home
systems" without proper security, as are the majority of systems which
are hacked (you just don't generally hear about them because the damage
is limited).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #173850 is a reply to message #173848] Mon, 09 May 2011 23:21 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
> news:ipsntn$90f$1(at)dont-email(dot)me...
>> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>> Looking into this code I decided that this is source code
>>> for compiler and found bellow link for binaries. it was
>>> MSI file which setup everything.
>>> Now puting php file into IIS folder I can see it in IE.
>>> The only question is.
>>>
>>> in manual they write it is written that I can embed PHP
>>> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>> 4.01 Transitional//EN"
>>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>> <head>
>>> <title>Example</title>
>>> </head>
>>> <body>
>>>
>>> <?php
>>> echo "Hi, I'm a PHP script!<br />";
>>>>
>>> </body>
>>> </html>
>>> But IE shows me empty page and on view code I see
>>> original code. What can be reason?
>>>
>>>
>>
>> You:
>> 1. Didn't save the page with a .php extension but used .html?
>> 2. You didn't feed it to a server? Either locally or remotely.
>>
>> Those seem to be the most common newbie reasons IME.
>>
>> HTH,
>>
>> Twayne`
>>
>>
> I just followed official manual on PHP. I created virtual folder in IIS
> server and converted it into application. then I saved there 2 files: 1 php
> and 1 html. also i have php.ini and config.sys in this folder. I can see php
> exemple as it is expected and empty web page for html file. when I look view
> source I see that IIS did not open php tag in html file.
>
> Aleks Kleyn
>
>

How are you trying to access the PHP file from your html file?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #173891 is a reply to message #173850] Wed, 11 May 2011 15:58 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
"Jerry Stuckle" <jstucklex(at)attglobal(dot)net> wrote in message
news:iq9stm$o00$2(at)dont-email(dot)me...
> On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>> news:ipsntn$90f$1(at)dont-email(dot)me...
>>> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> Looking into this code I decided that this is source code
>>>> for compiler and found bellow link for binaries. it was
>>>> MSI file which setup everything.
>>>> Now puting php file into IIS folder I can see it in IE.
>>>> The only question is.
>>>>
>>>> in manual they write it is written that I can embed PHP
>>>> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> 4.01 Transitional//EN"
>>>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> <head>
>>>> <title>Example</title>
>>>> </head>
>>>> <body>
>>>>
>>>> <?php
>>>> echo "Hi, I'm a PHP script!<br />";
>>>> >
>>>> </body>
>>>> </html>
>>>> But IE shows me empty page and on view code I see
>>>> original code. What can be reason?
>>>>
>>>>
>>>
>>> You:
>>> 1. Didn't save the page with a .php extension but used .html?
>>> 2. You didn't feed it to a server? Either locally or remotely.
>>>
>>> Those seem to be the most common newbie reasons IME.
>>>
>>> HTH,
>>>
>>> Twayne`
>>>
>>>
>> I just followed official manual on PHP. I created virtual folder in IIS
>> server and converted it into application. then I saved there 2 files: 1
>> php
>> and 1 html. also i have php.ini and config.sys in this folder. I can see
>> php
>> exemple as it is expected and empty web page for html file. when I look
>> view
>> source I see that IIS did not open php tag in html file.
>>
>> Aleks Kleyn
>>
>>
>
> How are you trying to access the PHP file from your html file?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex(at)attglobal(dot)net
> ==================
I use following code
<html>
<head></head>
<body>
<?php
echo "hi";
?>
</body>
</html>
i got this code from PHP manual
Re: setup php, win 7 [message #173893 is a reply to message #173891] Wed, 11 May 2011 16:32 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/11/2011 11:58 AM, Aleks Kleyn wrote:
> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
> news:iq9stm$o00$2(at)dont-email(dot)me...
>> On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>> news:ipsntn$90f$1(at)dont-email(dot)me...
>>>> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>>> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> > Looking into this code I decided that this is source code
>>>> > for compiler and found bellow link for binaries. it was
>>>> > MSI file which setup everything.
>>>> > Now puting php file into IIS folder I can see it in IE.
>>>> > The only question is.
>>>> >
>>>> > in manual they write it is written that I can embed PHP
>>>> > into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> > 4.01 Transitional//EN"
>>>> > "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> > <head>
>>>> > <title>Example</title>
>>>> > </head>
>>>> > <body>
>>>> >
>>>> > <?php
>>>> > echo "Hi, I'm a PHP script!<br />";
>>>> >>
>>>> > </body>
>>>> > </html>
>>>> > But IE shows me empty page and on view code I see
>>>> > original code. What can be reason?
>>>> >
>>>> >
>>>>
>>>> You:
>>>> 1. Didn't save the page with a .php extension but used .html?
>>>> 2. You didn't feed it to a server? Either locally or remotely.
>>>>
>>>> Those seem to be the most common newbie reasons IME.
>>>>
>>>> HTH,
>>>>
>>>> Twayne`
>>>>
>>>>
>>> I just followed official manual on PHP. I created virtual folder in IIS
>>> server and converted it into application. then I saved there 2 files: 1
>>> php
>>> and 1 html. also i have php.ini and config.sys in this folder. I can see
>>> php
>>> exemple as it is expected and empty web page for html file. when I look
>>> view
>>> source I see that IIS did not open php tag in html file.
>>>
>>> Aleks Kleyn
>>>
>>>
>>
>> How are you trying to access the PHP file from your html file?
>>
> I use following code
> <html>
> <head></head>
> <body>
> <?php
> echo "hi";
> ?>
> </body>
> </html>
> i got this code from PHP manual
>
>

Did you put it in a file with a .php extension? The web server won't
invoke the PHP interpreter unless you do (or make non-recommended
changes to the web server configuration to parse everything as php code).


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #174122 is a reply to message #173893] Sun, 22 May 2011 14:38 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
"Jerry Stuckle" <jstucklex(at)attglobal(dot)net> wrote in message
news:iqedm7$k46$2(at)dont-email(dot)me...
> On 5/11/2011 11:58 AM, Aleks Kleyn wrote:
>> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>> news:iq9stm$o00$2(at)dont-email(dot)me...
>>> On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>>>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> news:ipsntn$90f$1(at)dont-email(dot)me...
>>>> > In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>>> > Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> >> Looking into this code I decided that this is source code
>>>> >> for compiler and found bellow link for binaries. it was
>>>> >> MSI file which setup everything.
>>>> >> Now puting php file into IIS folder I can see it in IE.
>>>> >> The only question is.
>>>> >>
>>>> >> in manual they write it is written that I can embed PHP
>>>> >> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> >> 4.01 Transitional//EN"
>>>> >> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> >> <head>
>>>> >> <title>Example</title>
>>>> >> </head>
>>>> >> <body>
>>>> >>
>>>> >> <?php
>>>> >> echo "Hi, I'm a PHP script!<br />";
>>>> >>>
>>>> >> </body>
>>>> >> </html>
>>>> >> But IE shows me empty page and on view code I see
>>>> >> original code. What can be reason?
>>>> >>
>>>> >>
>>>> >
>>>> > You:
>>>> > 1. Didn't save the page with a .php extension but used .html?
>>>> > 2. You didn't feed it to a server? Either locally or remotely.
>>>> >
>>>> > Those seem to be the most common newbie reasons IME.
>>>> >
>>>> > HTH,
>>>> >
>>>> > Twayne`
>>>> >
>>>> >
>>>> I just followed official manual on PHP. I created virtual folder in IIS
>>>> server and converted it into application. then I saved there 2 files: 1
>>>> php
>>>> and 1 html. also i have php.ini and config.sys in this folder. I can
>>>> see
>>>> php
>>>> exemple as it is expected and empty web page for html file. when I look
>>>> view
>>>> source I see that IIS did not open php tag in html file.
>>>>
>>>> Aleks Kleyn
>>>>
>>>>
>>>
>>> How are you trying to access the PHP file from your html file?
>>>
>> I use following code
>> <html>
>> <head></head>
>> <body>
>> <?php
>> echo "hi";
>> ?>
>> </body>
>> </html>
>> i got this code from PHP manual
>>
>>
>
> Did you put it in a file with a .php extension? The web server won't
> invoke the PHP interpreter unless you do (or make non-recommended changes
> to the web server configuration to parse everything as php code).
>
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex(at)attglobal(dot)net
> ==================
i think I write clear. There are two type of files.
1. php. it may have inside html tag and this works as described in manual
2. htm or html. This is html file and may call to php as I wrote above and
this does not work even manual claims that this should work
Aleks Kleyn
Re: setup php, win 7 [message #174126 is a reply to message #174122] Sun, 22 May 2011 17:49 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/22/2011 10:38 AM, Aleks Kleyn wrote:
> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
> news:iqedm7$k46$2(at)dont-email(dot)me...
>> On 5/11/2011 11:58 AM, Aleks Kleyn wrote:
>>> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>>> news:iq9stm$o00$2(at)dont-email(dot)me...
>>>> On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>>>> > "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> > news:ipsntn$90f$1(at)dont-email(dot)me...
>>>> >> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>>> >> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> >>> Looking into this code I decided that this is source code
>>>> >>> for compiler and found bellow link for binaries. it was
>>>> >>> MSI file which setup everything.
>>>> >>> Now puting php file into IIS folder I can see it in IE.
>>>> >>> The only question is.
>>>> >>>
>>>> >>> in manual they write it is written that I can embed PHP
>>>> >>> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> >>> 4.01 Transitional//EN"
>>>> >>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> >>> <head>
>>>> >>> <title>Example</title>
>>>> >>> </head>
>>>> >>> <body>
>>>> >>>
>>>> >>> <?php
>>>> >>> echo "Hi, I'm a PHP script!<br />";
>>>> >>>>
>>>> >>> </body>
>>>> >>> </html>
>>>> >>> But IE shows me empty page and on view code I see
>>>> >>> original code. What can be reason?
>>>> >>>
>>>> >>>
>>>> >>
>>>> >> You:
>>>> >> 1. Didn't save the page with a .php extension but used .html?
>>>> >> 2. You didn't feed it to a server? Either locally or remotely.
>>>> >>
>>>> >> Those seem to be the most common newbie reasons IME.
>>>> >>
>>>> >> HTH,
>>>> >>
>>>> >> Twayne`
>>>> >>
>>>> >>
>>>> > I just followed official manual on PHP. I created virtual folder in IIS
>>>> > server and converted it into application. then I saved there 2 files: 1
>>>> > php
>>>> > and 1 html. also i have php.ini and config.sys in this folder. I can
>>>> > see
>>>> > php
>>>> > exemple as it is expected and empty web page for html file. when I look
>>>> > view
>>>> > source I see that IIS did not open php tag in html file.
>>>> >
>>>> > Aleks Kleyn
>>>> >
>>>> >
>>>>
>>>> How are you trying to access the PHP file from your html file?
>>>>
>>> I use following code
>>> <html>
>>> <head></head>
>>> <body>
>>> <?php
>>> echo "hi";
>>> ?>
>>> </body>
>>> </html>
>>> i got this code from PHP manual
>>>
>>>
>>
>> Did you put it in a file with a .php extension? The web server won't
>> invoke the PHP interpreter unless you do (or make non-recommended changes
>> to the web server configuration to parse everything as php code).
>>
>>
> i think I write clear. There are two type of files.
> 1. php. it may have inside html tag and this works as described in manual
> 2. htm or html. This is html file and may call to php as I wrote above and
> this does not work even manual claims that this should work
> Aleks Kleyn
>
>

I don't think you write clear at all. And you are trying to call PHP
from an html file - which, as I indicated above, does not work. Please
show in the manual where it claims otherwise.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #174152 is a reply to message #174126] Mon, 23 May 2011 14:34 Go to previous messageGo to next message
Aleks Kleyn is currently offline  Aleks Kleyn
Messages: 9
Registered: May 2011
Karma: 0
Junior Member
"Jerry Stuckle" <jstucklex(at)attglobal(dot)net> wrote in message
news:irbibb$gqk$3(at)dont-email(dot)me...
> On 5/22/2011 10:38 AM, Aleks Kleyn wrote:
>> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>> news:iqedm7$k46$2(at)dont-email(dot)me...
>>> On 5/11/2011 11:58 AM, Aleks Kleyn wrote:
>>>> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>>>> news:iq9stm$o00$2(at)dont-email(dot)me...
>>>> > On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>>>> >> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> >> news:ipsntn$90f$1(at)dont-email(dot)me...
>>>> >>> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>>> >>> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> >>>> Looking into this code I decided that this is source code
>>>> >>>> for compiler and found bellow link for binaries. it was
>>>> >>>> MSI file which setup everything.
>>>> >>>> Now puting php file into IIS folder I can see it in IE.
>>>> >>>> The only question is.
>>>> >>>>
>>>> >>>> in manual they write it is written that I can embed PHP
>>>> >>>> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> >>>> 4.01 Transitional//EN"
>>>> >>>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> >>>> <head>
>>>> >>>> <title>Example</title>
>>>> >>>> </head>
>>>> >>>> <body>
>>>> >>>>
>>>> >>>> <?php
>>>> >>>> echo "Hi, I'm a PHP script!<br />";
>>>> >>>>>
>>>> >>>> </body>
>>>> >>>> </html>
>>>> >>>> But IE shows me empty page and on view code I see
>>>> >>>> original code. What can be reason?
>>>> >>>>
>>>> >>>>
>>>> >>>
>>>> >>> You:
>>>> >>> 1. Didn't save the page with a .php extension but used .html?
>>>> >>> 2. You didn't feed it to a server? Either locally or remotely.
>>>> >>>
>>>> >>> Those seem to be the most common newbie reasons IME.
>>>> >>>
>>>> >>> HTH,
>>>> >>>
>>>> >>> Twayne`
>>>> >>>
>>>> >>>
>>>> >> I just followed official manual on PHP. I created virtual folder in
>>>> >> IIS
>>>> >> server and converted it into application. then I saved there 2 files:
>>>> >> 1
>>>> >> php
>>>> >> and 1 html. also i have php.ini and config.sys in this folder. I can
>>>> >> see
>>>> >> php
>>>> >> exemple as it is expected and empty web page for html file. when I
>>>> >> look
>>>> >> view
>>>> >> source I see that IIS did not open php tag in html file.
>>>> >>
>>>> >> Aleks Kleyn
>>>> >>
>>>> >>
>>>> >
>>>> > How are you trying to access the PHP file from your html file?
>>>> >
>>>> I use following code
>>>> <html>
>>>> <head></head>
>>>> <body>
>>>> <?php
>>>> echo "hi";
>>>> ?>
>>>> </body>
>>>> </html>
>>>> i got this code from PHP manual
>>>>
>>>>
>>>
>>> Did you put it in a file with a .php extension? The web server won't
>>> invoke the PHP interpreter unless you do (or make non-recommended
>>> changes
>>> to the web server configuration to parse everything as php code).
>>>
>>>
>> i think I write clear. There are two type of files.
>> 1. php. it may have inside html tag and this works as described in manual
>> 2. htm or html. This is html file and may call to php as I wrote above
>> and
>> this does not work even manual claims that this should work
>> Aleks Kleyn
>>
>>
>
> I don't think you write clear at all. And you are trying to call PHP from
> an html file - which, as I indicated above, does not work. Please show in
> the manual where it claims otherwise.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex(at)attglobal(dot)net
> ==================
I got this code from the following link
http://us3.php.net/manual/en/intro-whatis.php

Aleks Kleyn
Re: setup php, win 7 [message #174159 is a reply to message #174152] Mon, 23 May 2011 18:11 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/23/2011 10:34 AM, Aleks Kleyn wrote:
> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
> news:irbibb$gqk$3(at)dont-email(dot)me...
>> On 5/22/2011 10:38 AM, Aleks Kleyn wrote:
>>> "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>>> news:iqedm7$k46$2(at)dont-email(dot)me...
>>>> On 5/11/2011 11:58 AM, Aleks Kleyn wrote:
>>>> > "Jerry Stuckle"<jstucklex(at)attglobal(dot)net> wrote in message
>>>> > news:iq9stm$o00$2(at)dont-email(dot)me...
>>>> >> On 5/9/2011 3:15 PM, Aleks Kleyn wrote:
>>>> >>> "Twayne"<nobody(at)devnull(dot)spamcop(dot)net> wrote in message
>>>> >>> news:ipsntn$90f$1(at)dont-email(dot)me...
>>>> >>>> In news:4dc0b338$0$9101$607ed4bc(at)cv(dot)net,
>>>> >>>> Aleks Kleyn<AleksKleyn(at)OptOnline(dot)net> typed:
>>>> >>>>> Looking into this code I decided that this is source code
>>>> >>>>> for compiler and found bellow link for binaries. it was
>>>> >>>>> MSI file which setup everything.
>>>> >>>>> Now puting php file into IIS folder I can see it in IE.
>>>> >>>>> The only question is.
>>>> >>>>>
>>>> >>>>> in manual they write it is written that I can embed PHP
>>>> >>>>> into html file<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>>> >>>>> 4.01 Transitional//EN"
>>>> >>>>> "http://www.w3.org/TR/html4/loose.dtd"> <html>
>>>> >>>>> <head>
>>>> >>>>> <title>Example</title>
>>>> >>>>> </head>
>>>> >>>>> <body>
>>>> >>>>>
>>>> >>>>> <?php
>>>> >>>>> echo "Hi, I'm a PHP script!<br />";
>>>> >>>>>>
>>>> >>>>> </body>
>>>> >>>>> </html>
>>>> >>>>> But IE shows me empty page and on view code I see
>>>> >>>>> original code. What can be reason?
>>>> >>>>>
>>>> >>>>>
>>>> >>>>
>>>> >>>> You:
>>>> >>>> 1. Didn't save the page with a .php extension but used .html?
>>>> >>>> 2. You didn't feed it to a server? Either locally or remotely.
>>>> >>>>
>>>> >>>> Those seem to be the most common newbie reasons IME.
>>>> >>>>
>>>> >>>> HTH,
>>>> >>>>
>>>> >>>> Twayne`
>>>> >>>>
>>>> >>>>
>>>> >>> I just followed official manual on PHP. I created virtual folder in
>>>> >>> IIS
>>>> >>> server and converted it into application. then I saved there 2 files:
>>>> >>> 1
>>>> >>> php
>>>> >>> and 1 html. also i have php.ini and config.sys in this folder. I can
>>>> >>> see
>>>> >>> php
>>>> >>> exemple as it is expected and empty web page for html file. when I
>>>> >>> look
>>>> >>> view
>>>> >>> source I see that IIS did not open php tag in html file.
>>>> >>>
>>>> >>> Aleks Kleyn
>>>> >>>
>>>> >>>
>>>> >>
>>>> >> How are you trying to access the PHP file from your html file?
>>>> >>
>>>> > I use following code
>>>> > <html>
>>>> > <head></head>
>>>> > <body>
>>>> > <?php
>>>> > echo "hi";
>>>> > ?>
>>>> > </body>
>>>> > </html>
>>>> > i got this code from PHP manual
>>>> >
>>>> >
>>>>
>>>> Did you put it in a file with a .php extension? The web server won't
>>>> invoke the PHP interpreter unless you do (or make non-recommended
>>>> changes
>>>> to the web server configuration to parse everything as php code).
>>>>
>>>>
>>> i think I write clear. There are two type of files.
>>> 1. php. it may have inside html tag and this works as described in manual
>>> 2. htm or html. This is html file and may call to php as I wrote above
>>> and
>>> this does not work even manual claims that this should work
>>> Aleks Kleyn
>>>
>>>
>>
>> I don't think you write clear at all. And you are trying to call PHP from
>> an html file - which, as I indicated above, does not work. Please show in
>> the manual where it claims otherwise.
>>
> I got this code from the following link
> http://us3.php.net/manual/en/intro-whatis.php
>
> Aleks Kleyn
>
>

It doesn't matter where you got to code from, because the code is not
the problem. The web server will not call the PHP interpreter for a
..html file (unless you change the web server configuration to parse all
..html files as php code, which is not recommended).

If you want php code executed, it has to be in a file with a .php
extension. Then it will work.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: setup php, win 7 [message #174161 is a reply to message #174159] Mon, 23 May 2011 18:38 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> It doesn't matter where you got to code from, because the code is not
> the problem. The web server will not call the PHP interpreter for a
> .html file (unless you change the web server configuration to parse all
> .html files as php code, which is not recommended).
>
> If you want php code executed, it has to be in a file with a .php
> extension. Then it will work.

I seem to remember a setting somewhere that could be used if you want
to change from using the .php extension to something else, forex
..php_v6, but I don't recall where the setting is... ?

--
no aluminum siding offers today
Re: setup php, win 7 [message #174165 is a reply to message #174161] Mon, 23 May 2011 21:56 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/23/2011 2:38 PM, crankypuss wrote:
> Jerry Stuckle<jstucklex(at)attglobal(dot)net> wrote:
>
>> It doesn't matter where you got to code from, because the code is not
>> the problem. The web server will not call the PHP interpreter for a
>> .html file (unless you change the web server configuration to parse all
>> .html files as php code, which is not recommended).
>>
>> If you want php code executed, it has to be in a file with a .php
>> extension. Then it will work.
>
> I seem to remember a setting somewhere that could be used if you want
> to change from using the .php extension to something else, forex
> .php_v6, but I don't recall where the setting is... ?
>

As I said above - you can change it in your web server configuration,
but it is not recommended.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: haii
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 22:13:17 GMT 2024

Total time taken to generate the page: 0.02161 seconds