Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1770
| From | "Aleks Kleyn" <AleksKleyn@OptOnline.net> |
|---|---|
| Newsgroups | comp.lang.php |
| References | (3 earlier) <ipsntn$90f$1@dont-email.me> <4dc83d5d$0$9058$607ed4bc@cv.net> <iq9stm$o00$2@dont-email.me> <4dcab23d$0$9060$607ed4bc@cv.net> <iqedm7$k46$2@dont-email.me> |
| Subject | Re: setup php, win 7 |
| Date | 2011-05-22 10:38 -0400 |
| Message-ID | <4dd91ffa$0$31288$607ed4bc@cv.net> (permalink) |
| Organization | Optimum Online |
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message news:iqedm7$k46$2@dont-email.me... > On 5/11/2011 11:58 AM, Aleks Kleyn wrote: >> "Jerry Stuckle"<jstucklex@attglobal.net> wrote in message >> news:iq9stm$o00$2@dont-email.me... >>> On 5/9/2011 3:15 PM, Aleks Kleyn wrote: >>>> "Twayne"<nobody@devnull.spamcop.net> wrote in message >>>> news:ipsntn$90f$1@dont-email.me... >>>>> In news:4dc0b338$0$9101$607ed4bc@cv.net, >>>>> Aleks Kleyn<AleksKleyn@OptOnline.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@attglobal.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
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-03 17:23 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-03 20:38 -0400
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-03 21:59 -0400
Re: setup php, win 7 "P E Schoen" <paul@pstech-inc.com> - 2011-05-03 22:31 -0400
Re: setup php, win 7 "Twayne" <nobody@devnull.spamcop.net> - 2011-05-04 19:43 -0400
Re: setup php, win 7 "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-05 09:43 +0200
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-05 06:44 -0400
Re: setup php, win 7 Michael Fesser <netizen@gmx.de> - 2011-05-05 22:38 +0200
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-09 15:02 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-09 19:20 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-03 22:52 -0400
Re: setup php, win 7 "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-04 12:57 +0200
Re: setup php, win 7 "Twayne" <nobody@devnull.spamcop.net> - 2011-05-04 19:36 -0400
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-09 15:15 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-09 19:21 -0400
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-11 11:58 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-11 12:32 -0400
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-22 10:38 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-22 13:49 -0400
Re: setup php, win 7 "Aleks Kleyn" <AleksKleyn@OptOnline.net> - 2011-05-23 10:34 -0400
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-23 14:11 -0400
Re: setup php, win 7 crankypuss <no@email.thanks> - 2011-05-23 12:38 -0600
Re: setup php, win 7 Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-23 17:56 -0400
csiph-web