Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
The Most Basic Help Needed
Old 06-05-2009, 10:45 PM The Most Basic Help Needed
raduzhok's Avatar
Average Talker

Posts: 18
Name: rad
Location: USA
Trades: 0
Hi all...

<< like the av says, I'm new;
not just to the forum, but to learning how to work with php. So my question is probably about as basic as can be. I went over to the PHP tutorial (used the HTML ones years ago and have a fairly basic knowledge of that). The first thing it talks about, in the "intro" after 'finishing' writing your first code is as follows:

"Now you have finished your script save it as phpinfo.php and upload it to your server in the normal way. Now, using your browser, go the the URL of the script. If it has worked (and if PHP is installed on your server) you should get a huge page full of the information about PHP on your server."


I'm using notepad in WINDOWS Vista OS and IE8. When I try to save as, there is only the .txt option. I even found where it suggested to rename it to make it a .php file except, there was always the .txt extension. So my first need is to figure out how to actually convert the .txt to a .php file.

Because, when I was working with HTML, I'd do it in the advanced file manager of Geocities, I even tried it out in Geocities when it wouldn't work on my own domain, in case the freeservers server didn't have PHP installed. Thing is, I didn't write it in a note pad and upload it to the server because I never had to do that with the HTML, even though there were times tuts actually were run that way.

SO, for the two most simple tasks in the world of coding, I need help. Any advice would be really appreciated so I can get on with the tutorial.

Rad

Last edited by raduzhok; 06-05-2009 at 10:47 PM..
raduzhok is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2009, 05:34 AM Re: The Most Basic Help Needed
Super Talker

Posts: 134
Trades: 0
1. you need a server that runs PHP, there are thousands free php host providers on the net, look for one in directories like
http://www.findfreeweb.com,
http://www.free-webhosts.com,
http://www.freewebspace.net

many of them have basic or advanced online editors.

2. search for a php editor here http://www.php-editors.com

3. get a ftp-client like filezila (http://www.filezilla-project.org) for uploading your files

4. you can also install your own php server on your computer. easy to do with wamp (http://www.wampserver.com/en/)

5 good luck
__________________

Please login or register to view this content. Registration is FREE

Check out the Facebook Clone build with Jcow SNS at
Please login or register to view this content. Registration is FREE
, it is free and it always will be
Falcone is offline
Reply With Quote
View Public Profile
 
Old 06-06-2009, 05:53 AM Re: The Most Basic Help Needed
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
You should be able to convert the file into php by just changing the extension. Windows hides file extensions by default, so that a file "myfile.txt" will only read "myfile". And so, a file "myfile.php.txt" will only read "myfile.php". There should be on option where you can turn this "feature" off. Don't quite remember where though. Try the menu "Tools -> Folder configuration" or something similar (don't know the actual menu alternatives) and there should be a checkbox which says to hide known file extensions.

When it is turned off, your file should read the full name "myfile.txt" and you can change the txt bit into php, whereas Windows will probably warn you and ask if you really want to change the extension. After the change, you should be good to go.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-06-2009, 08:58 AM Re: The Most Basic Help Needed
raduzhok's Avatar
Average Talker

Posts: 18
Name: rad
Location: USA
Trades: 0
Quote:
Originally Posted by Falcone View Post
1. you need a server that runs PHP, there are thousands free php host providers on the net, look for one in directories like
http://www.findfreeweb.com,
http://www.free-webhosts.com,
http://www.freewebspace.net

many of them have basic or advanced online editors.

2. search for a php editor here http://www.php-editors.com

3. get a ftp-client like filezila (http://www.filezilla-project.org) for uploading your files

4. you can also install your own php server on your computer. easy to do with wamp (http://www.wampserver.com/en/)

5 good luck
Thank you Falcone. I signed up for freeservers.com. Will ask them if they are php enabled.

I use coffeecup for ftp, so that's covered. There's a reg upload op on the site. So it would have been as easy if the doc had actually changed from .txt to .php so I'll check into what Lizciz vv mentioned about changing the way the browser displays details.
raduzhok is offline
Reply With Quote
View Public Profile
 
Old 06-06-2009, 09:00 AM Re: The Most Basic Help Needed
raduzhok's Avatar
Average Talker

Posts: 18
Name: rad
Location: USA
Trades: 0
Quote:
Originally Posted by lizciz View Post
You should be able to convert the file into php by just changing the extension. Windows hides file extensions by default, so that a file "myfile.txt" will only read "myfile". And so, a file "myfile.php.txt" will only read "myfile.php". There should be on option where you can turn this "feature" off. Don't quite remember where though. Try the menu "Tools -> Folder configuration" or something similar (don't know the actual menu alternatives) and there should be a checkbox which says to hide known file extensions.

When it is turned off, your file should read the full name "myfile.txt" and you can change the txt bit into php, whereas Windows will probably warn you and ask if you really want to change the extension. After the change, you should be good to go.
Thank you Lizciz. I'll explore the file manager browser for that option. Much appreciated!
raduzhok is offline
Reply With Quote
View Public Profile
 
Old 06-06-2009, 04:57 PM Re: The Most Basic Help Needed
raduzhok's Avatar
Average Talker

Posts: 18
Name: rad
Location: USA
Trades: 0
Quote:
Originally Posted by Falcone View Post
4. you can also install your own php server on your computer. easy to do with wamp (http://www.wampserver.com/en/)
Hi again Falcone. I checked with Freeservers where I'm registered, and their basic package doesn't support CGI access. They said I could download one for myself from the internet, so went to the site you posted above. For some reason, I keep getting an error message that the page cannot be displayed when I click to download, but it doesn't find any problem when it does a diagnostic.

I am using IE8 on a Vista OS. Could either pose a problem for that kind of d/l?

I'll be checking into the other servers for domains you recommended, but I wondered if the problem with the download was on my side.

ETA: It is working today. The site must have been down for hours yesterday.

Thanks
Rad

Last edited by raduzhok; 06-07-2009 at 03:42 PM..
raduzhok is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to The Most Basic Help Needed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29553 seconds with 12 queries