5 Replies - 1595 Views - Last Post: 26 April 2005 - 06:40 AM Rate Topic: -----

#1 deso  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 21-April 05

txt to php

Post icon  Posted 23 April 2005 - 11:59 AM

I put the source code in a txt file but when I trans. the extension from txt to php nothing change. I mean test.php is like test.txt (I could not see the preview form) :crazy:

:stupid: sorry I am newbie in this language

P.S: I use winxp OS

This post has been edited by deso: 23 April 2005 - 12:06 PM


Is This A Good Question/Topic? 0
  • +

Replies To: txt to php

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: txt to php

Posted 23 April 2005 - 12:03 PM

php is a scripting language that has to be interpreted. this is done through server software. If you wish to use php on a winxp machine, you'll have to ensure that some form of server software is runiing (iis is most common for windows). Then you'll have to install the php interpreter, put the files in the localhost directory, and access the web page through an internet browser. You can get the required downloads (php, not iis) at php.net. It also has excellent documentation.
Was This Post Helpful? 0
  • +
  • -

#3 deso  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 21-April 05

Re: txt to php

Posted 23 April 2005 - 12:43 PM

Maybe winxp OS isn't gr8 for php programming :huh: ? What is the best OS for php programming ? (Linux and unix ????)
Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: txt to php

Posted 23 April 2005 - 12:46 PM

Operating systems do not really impact php programming per se. No matter what operating system you run, you will have to install a local server at the minimum, and view the resulting web pages through an internet browser. php is a server side scripting language, and therefore has to be interpreted through server functionality. If you us windows, you can install iis, or if you use linux, you can install apache, but server software (or at least software that emulates a server) is necessary.
Was This Post Helpful? 0
  • +
  • -

#5 deso  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 21-April 05

Re: txt to php

Posted 26 April 2005 - 04:50 AM

I need how to prepare my PC step by step to begin in php programming. I have windows XP and I installed IIS. Thats my only one and first step in preparing my PC.
Was This Post Helpful? 0
  • +
  • -

#6 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: txt to php

Posted 26 April 2005 - 06:40 AM

Excellent...If you follow these steps, you'll be able to test...
]
  • From Control Panel, choose Administrative Tools
  • From Admin Tools, Choose Internet Information Services
  • Expand the computer name
  • Expand the web sites tab
  • Highlight the default web site, and press start
  • Write a file called test.php (sample below)
  • Save the file to c:\Intepub\wwwroot\
  • Open an internet browser to 'localhost/test.php'
  • Your page should be displayed.
Sample for test.php

<html>
<body>
<?php
$str = "Test123";
echo $str;
?>
</body>
</html>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1