Log in

View Full Version : Problem w/ Server



magicyte
09-08-2008, 12:24 AM
I downloaded a server called VMware Server. After I installed it, I tried to tamper w/ some PHP code in Notepad. I saved it as .html, but the problem was that the PHP didn't show up. I tried downloading other servers like APACHE and XAMPP. - Those won't work.

Any suggestions?

-magicyte

techietim
09-08-2008, 12:29 AM
Save as .php?

magicyte
09-08-2008, 12:37 AM
Tried that. When I try to open the PHP file, it just opens my code in Notepad, not the actual version in IE.

-magicyte

tech_support
09-08-2008, 06:04 AM
Did you put <?php and ?> between your PHP code?

Twey
09-08-2008, 08:29 AM
You have some pretty fundamental misunderstandings going on here.

VMWare Server is not a webserver application.

If you don't access your files *through* your webserver, they will not be executed.

Master_script_maker
09-08-2008, 08:51 PM
as twey said you must view this file through the server to be parsed. usually with web servers there is a www folder where you would place folders and files to be parsed and displayed through the server. you can access these files through the server by going to http://localhost/ in your browser.

magicyte
09-09-2008, 12:44 AM
Did you put <?php and ?> between your PHP code?

Yeah. I am not THAT much of a novice w/ PHP. No offense.


You have some pretty fundamental misunderstandings going on here.

VMWare Server is not a webserver application.

If you don't access your files *through* your webserver, they will not be executed.

What do you mean by *through* your webserver? IMPORTANT!! -> BTW - I downloaded WAMP - FINALLY <- IMPORTANT!!


If you don't access your files *through* your webserver, they will not be executed.

Sorry, but like I said w/ Twey - Could you please explain?

I appreciate your help w/ my problem with the WAMP server. I hope that patience is at hand :p.

-magicyte

rangana
09-09-2008, 12:57 AM
It's confusing. It seems you downloaded two cross-browser platform server, anyway, you might find these suggestions useful:


If you are using XAMPP, ensure to save your files on c:\program files\xampp\htdocs\file.php, and when you access it, should be http://localhost/file.php

If you are using WAMPP, ensure to save your files on c:\program files\wamp\www\file.php, and when you access it, should be http://localhost/file.php


Hope that makes sense.

magicyte
09-09-2008, 01:03 AM
Thanx. I'll try it!!

-magicyte

magicyte
09-09-2008, 01:06 AM
Holy freak!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Yippee!!!!!!!!!!!!!!!!!!!!!!


I am so happy right now!! I opened it up, and guess what!!

I coded this:


<?php

echo "wow";

?>

and I saw this:

wow

I am so excited!! Thank you all so much!!!

Now all I need to do is learn PHP. Great. :P

Any suggestions on where to learn?

-magicyte

Nile
09-09-2008, 02:21 AM
Well, I'm actually starting a series of PHP tutorials here:
http://eight7teen.com/
I only have one right now, but I'm working on more.