Jump to content

Beginners Php Question


SGarrett
 Share

Recommended Posts

Hi,

 

Apache is the program which sits on the linux server and transforms all the coding and intructions into the web pages you see. It is available for a free download but it will not have any of the nice cpanel bits which you get here.

 

If you want to use php on your own computer, its not a problem, just code away in notepad or something. If you wish to see it working, you can either upload to your website on Total Choice web Hosting account or get your own home web server to test it out on before uploading to Total Choice web Hosting account.

 

Jim

Link to comment
Share on other sites

I was using Dreamweaver to look at a very simple script, and it told me I needed some sort of server to do so. So if I understand correctly, each time I want to preview a script in a browser, I need to upload the script first? If so, that's fine, I just wasn't sure how the whole server thing worked.

Link to comment
Share on other sites

Well, I am starting off completley fresh... So- what do I need to do here? Do I need to download Apache to my system, or do I need to upload each file before they can be viewed?

I tried to set the server in Dreamweaver to preview, but it didn't seem to work.

Link to comment
Share on other sites

SGarrett, you don't need to set up a server with Dreamweaver. I code PHP with Dreamweaver all day long and I just upload my code to the site to see how it's working.

 

Now, you won't be able to see what the script or code is doing until it's on a server. so like I said, just write your code, and upload it to TCH. Go visit the webpage, and you'll see your code in action.

 

Dreamweaver preview isn't really going to work effectively with PHP. It's server side code... which means it needs a server.

 

I'm sure some folks out there have tweaked their home system to have their computer work as a server.... but let's keep things simple.

 

Create this file in Dreamweaver

 

<?php

print("Hello World");

?>

 

And upload the file to your website.

 

Once you get that process down, it's the same no matter how big the script.

Link to comment
Share on other sites

Yes, you don't have to do anything on your end with Apache/PHP install. They are already installed for you.

 

Like was said, just write your code in Dreamweaver, starting your PHP scripts with <?php and ending with ?> , and save your file as a .php file. Then just upload to TCH and you'll see the results.

 

 

Sarah

:D

Link to comment
Share on other sites

  • 1 year later...
Yes, you don't have to do anything on your end with Apache/PHP install.  They are already installed for you. 

 

Like was said, just write your code in Dreamweaver, starting your PHP scripts with <?php  and ending with ?> , and save your file as a .php file.  Then just upload to TCH and you'll see the results.

 

 

Sarah

:)

Edited by nkycomputers
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...