Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,462 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,357 people online right now. Registration is fast and FREE... Join Now!




txt to php

 
Reply to this topicStart new topic

txt to php, *.php

deso
post 23 Apr, 2005 - 10:59 AM
Post #1


New D.I.C Head

*
Joined: 21 Apr, 2005
Posts: 17

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.gif

stupid.gif sorry I am newbie in this language

P.S: I use winxp OS

This post has been edited by deso: 23 Apr, 2005 - 11:06 AM
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 23 Apr, 2005 - 11:03 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


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.
User is online!Profile CardPM

Go to the top of the page

deso
post 23 Apr, 2005 - 11:43 AM
Post #3


New D.I.C Head

*
Joined: 21 Apr, 2005
Posts: 17

Maybe winxp OS isn't gr8 for php programming huh.gif ? What is the best OS for php programming ? (Linux and unix ????)
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 23 Apr, 2005 - 11:46 AM
Post #4


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


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.
User is online!Profile CardPM

Go to the top of the page

deso
post 26 Apr, 2005 - 03:50 AM
Post #5


New D.I.C Head

*
Joined: 21 Apr, 2005
Posts: 17

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.
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 26 Apr, 2005 - 05:40 AM
Post #6


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


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

CODE

<html>
<body>
<?php
$str = "Test123";
echo $str;
?>
</body>
</html>
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 12:55PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month