473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Completely new and dumb PLEASE HELP !

This is my first day trying to learn PHP and ALREADY I'm stumped. I
bought the SAMS Guide toPHP. MySQL, and Apache Book. On page 18 it
tells me to create a file called phpinfo.php. HOW do I create a PGP
file ? I have Word etc but programs like this create TEXT files etc. ,
DON'T THEY? I created it anyway and did as told. Was this OK ?

The file looks like this
<?php
phpinfo();
?>
and was created in WORD saved as phpinfo.pgp

Secondly: On the same page (after creating the above and putting it
into C:/Apache/Apache2/htdocs as told) it says to point the web browser
to http://localhost/phpinfo.php and I should see the PHP information
page. All my browser does is hang up while searching for the page. What
the heck am I doing wrong ALREADY ! Geez this is HORRIBLE. Please help.

Thank you,
George

Dec 21 '05 #1
5 1186
>This is my first day trying to learn PHP and ALREADY I'm stumped. I
bought the SAMS Guide toPHP. MySQL, and Apache Book. On page 18 it
tells me to create a file called phpinfo.php. HOW do I create a PGP
file ?
With a text editor.
I have Word etc but programs like this create TEXT files etc. ,
DON'T THEY?
Doesn't Windows have a text editor, like EDLIN?
I created it anyway and did as told. Was this OK ? The file looks like this
<?php
phpinfo();
?>
and was created in WORD saved as phpinfo.pgp


Unless WORD has a mode to save as flat ASCII text with absolutely
no fonts, color, colour, etc., it's the wrong thing to use.
How about NOTEPAD?

Gordon L. Burditt
Dec 21 '05 #2
I highly recommend Notepad++. It's free and awesome.

Steve Doria
http://blog.stevedoria.net/

Gordon Burditt wrote:
This is my first day trying to learn PHP and ALREADY I'm stumped. I
bought the SAMS Guide toPHP. MySQL, and Apache Book. On page 18 it
tells me to create a file called phpinfo.php. HOW do I create a PGP
file ?

With a text editor.

I have Word etc but programs like this create TEXT files etc. ,
DON'T THEY?

Doesn't Windows have a text editor, like EDLIN?

I created it anyway and did as told. Was this OK ?


The file looks like this
<?php
phpinfo();
?>
and was created in WORD saved as phpinfo.pgp

Unless WORD has a mode to save as flat ASCII text with absolutely
no fonts, color, colour, etc., it's the wrong thing to use.
How about NOTEPAD?

Gordon L. Burditt

Dec 21 '05 #3
Yes I suggest Notepad++ too. I also suggest that just to make sure you
have your apacfhe configuration correct, that you uninstall it and
install XAMPP <http://www.apachefriends.org/en/xampp.html> (which is a
preconfigured php, mysql and apache program) , this will allow you to
make sure that everything is working fine.

Dec 21 '05 #4
On 20 Dec 2005 19:33:10 -0800, "gjdagis" <gj*****@hvc.rr.com> wrote:
This is my first day trying to learn PHP and ALREADY I'm stumped. I
bought the SAMS Guide toPHP. MySQL, and Apache Book. On page 18 it
tells me to create a file called phpinfo.php. HOW do I create a PGP
file ?
PHP, not PGP. PGP is an encryption program.
I have Word etc but programs like this create TEXT files etc. ,
DON'T THEY? I created it anyway and did as told. Was this OK ?
PHP files are text files. The extension of a filename (the bit after the ".")
has nothing to do with the contents of the file - all it does is, on Windows
anyway, help to let the operating system know what program to open the file
with.

When you're running PHP in a webserver it has a similar function; you would
earlier have set up your webserver to run files ending with .php through the
PHP interpreter, instead of just serving the file directly as it would by
default.
The file looks like this
<?php
phpinfo();
?>
and was created in WORD saved as phpinfo.pgp
phpinfo.php.

Ensure it's not saved it as phpinfo.php.txt, as the Microsoft programs have a
bad habit of doing that.

If you're on Windows XP, make sure you have the "Hide file extensions" option
turned OFF (somewhere in Options when you have a directory window open) as this
will just confuse things further.
Secondly: On the same page (after creating the above and putting it
into C:/Apache/Apache2/htdocs as told) it says to point the web browser
to http://localhost/phpinfo.php and I should see the PHP information
page. All my browser does is hang up while searching for the page.


Is your webserver running?

Did the book start with the basics first, getting Apache to serve up a plain
page first before moving on to PHP?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Dec 21 '05 #5
I want to SINCERELY thank those of you who responded; it was MUCH
appreciated. I wish ALL a safe & happy holiday.

Sincerely,
George

Dec 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Raymond Arthur St. Marie II of III | last post by:
very Very VERY dumb ? about the new Set( ) 's Please be kind and read this like you know I've been up 33-34 hours reading PEP's but... Doc\ref 2.6 Delimiters show's three unused characters "@...
2
by: InvisibleMan | last post by:
Hi, I feel a little dumb for asking this (considering im writing TSQL) but there doesn't seem to be any definitive answers on the search engines... Okay I understand that if you open the ADO...
11
by: dhnriverside | last post by:
Hi peeps Ok, so I thought I'd have a go at making a console app in VS2k5... I haven't written any windows apps for years, let alone dos apps (been web programming) and I've hit a dumb error... ...
2
by: Bill Nguyen | last post by:
I would like to add a new VB.NET project using the same folder being used by another project so that I can share several forms already creaded by the other project. However, .NET created a new...
3
by: diffuser78 | last post by:
I am a newbie to C++. Following is my thinking about C++ ..correct me if I am worng. C++ has a standard compiler and MS Visual Studio C++ is just an IDE for the standard C++ compiler or there is...
4
by: rodchar | last post by:
hey all, i've read wikipedia's version and still kinda fuzzy, can someone please give me a dumb down version of imperative vs declartive programming? thanks, rodchar
3
chunk1978
by: chunk1978 | last post by:
hi there... totally new to PHP... please forgive my ignorance... i've done some reading about PHP and it seems to be what i'm looking for... but i'm still not convinced... i'm creating a website...
4
by: theapeman | last post by:
Sorry to bore everyone with this question, which I'm sure is the equivalent of "Please help! What letter comes between C and E in the alphabet?" but seriously, if you really didn't know that, I don't...
1
by: Steve | last post by:
This may be a dumb questions please forgive I have a form that shows a list box that links to a table with 7 employee names The form does not show employee key. When adding record to master...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.