Installation, testing question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
Grafixx01
Forum Newbie
Posts: 13
Joined: Sat Aug 26, 2006 8:27 pm

Post by Grafixx01 »

:D :D :D


Alrighty! I got it! Wahoo!!

So yeah, I reinstalled everything again, so that made it like the 12 or 13th time I did the reinstallation of MySQL, Apache and PHP this weekend.

So you know what I did...

Instead of installing PHP 5.1.6 into a folder of ' C:\php5 ' like they said, I just did it to ' C:\php '.
Then, I made all the changes to the httpd.conf file that were necessary.
The issue that I did next, well my phpinfo.php file consisting of :

<?php phpinfo(); ?>

Was typed and saved by MS WordPad instead of Notepad. It work with that! Can you believe it! I mean, something so stupid as to MS WordPad versus MS Notepad. I can't believe it considering all that was asked was to type it into a 'text editor'!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

WordPad isn't a "text editor." :)
User avatar
Grafixx01
Forum Newbie
Posts: 13
Joined: Sat Aug 26, 2006 8:27 pm

Post by Grafixx01 »

feyd wrote:WordPad isn't a "text editor." :)
That I know. But when I put the phpinfo.php file in MS NotePad, it didn't work. Then I tried it in MS WordPad and it worked! Go figure. I don't know. I know MS WordPad is not a 'text editor' but hey, can't knock what works, right?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

as long as it does not lead to some kind of superstition
User avatar
Grafixx01
Forum Newbie
Posts: 13
Joined: Sat Aug 26, 2006 8:27 pm

Post by Grafixx01 »

Yeah, I know. I won't.

Anyways, does anyone know why when I ran the http://localhost/phpinfo.php test file, it produced the correct result (ie: the php configuration and everything) but also at the top of the page showed the below:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par }
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You apparently saved the file in RTF format.
User avatar
Grafixx01
Forum Newbie
Posts: 13
Joined: Sat Aug 26, 2006 8:27 pm

Post by Grafixx01 »

feyd wrote:You apparently saved the file in RTF format.
Fixed that issue. Thanks everyone for all of the help and suggestions. I installed Dreamweaver 8 too and then it also started to work. I don't know. I hope it gets easier but I believe that is a fuetile thought!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I would suggest you download a text editor like notepad and use that. Notepad works just fine if you tell it to save as 'All files' when giving it a file extension, otherwise everything may end up as filename.php.txt.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Everah, did you mean Notepad++?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Using quotes (might just be double only) around the filename in Notepad saves in the exact name you give it.

I would agree that getting a better editor, any, is going to help more however.
Post Reply