Browser MMO Video #1

Location of the Videos
User avatar
Asgarth
Posts: 62
Joined: Tue Aug 10, 2010 11:57 am

Re: Video #1

Post by Asgarth »

What kind of web server are you using...

For example if you are running the webserver from home: DiskW, Xampp, Wamp, php5, apache ?
Image
User avatar
Vuvukla
Posts: 17
Joined: Wed Aug 11, 2010 3:58 pm

Re: Video #1

Post by Vuvukla »

Asgarth wrote:What kind of web server are you using...

For example if you are running the webserver from home: DiskW, Xampp, Wamp, php5, apache ?
Jackolantern wrote: Can you post your "This is a test" page code?
@Asgarth; I'm using cPanel VPS Optimized 3 and it got phpmyadmin and Apache Handler if that matters :P

@Jackolantern;

Code: Select all

<?php
echo "This is a test, Hello World!";
?>
as followed in the first video tutorial..
User avatar
Asgarth
Posts: 62
Joined: Tue Aug 10, 2010 11:57 am

Re: Video #1

Post by Asgarth »

Vuvukla wrote:
Asgarth wrote:What kind of web server are you using...

For example if you are running the webserver from home: DiskW, Xampp, Wamp, php5, apache ?
Jackolantern wrote: Can you post your "This is a test" page code?
@Asgarth; I'm using cPanel VPS Optimized 3 and it got phpmyadmin and Apache Handler if that matters :P

@Jackolantern;

Code: Select all

<?php
echo "This is a test, Hello World!";
?>
as followed in the first video tutorial..
if you look in your apache folder under the folder conf, there is a file called httpd.cfg look in there is php is enabled.

Alternatively you can download apache and install this as a normal apache handler not always includes all items you need.

If you have previously never had this problem... with any php script, look in one of your old files you presumable have and take a php script from there and alter it to either what jackolantern said or state print instead of echo.

If the problem still exist, try running wamp or xampp seperatly on a virtual drive.
Image
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #1

Post by Jackolantern »

Yeah, that sounds like good advice. There is nothing wrong with your PHP script, and it is not even depending on any flags being enabled (such as <? ?> opening tags, short echo statements, or any of those things). It should run in every configuration of PHP. So I would be lead to believe it must be something in the web server.
The indelible lord of tl;dr
User avatar
Vuvukla
Posts: 17
Joined: Wed Aug 11, 2010 3:58 pm

Re: Video #1

Post by Vuvukla »

I will ask my friend about this problem. He bought the webserver :P

And, I think i'm pretty stupid. Because I just made a folder on the desktop and then made a notepad++ and saved with index.php and it shows nothing.
User avatar
Asgarth
Posts: 62
Joined: Tue Aug 10, 2010 11:57 am

Re: Video #1

Post by Asgarth »

Vuvukla wrote:I will ask my friend about this problem. He bought the webserver :P

And, I think i'm pretty stupid. Because I just made a folder on the desktop and then made a notepad++ and saved with index.php and it shows nothing.
Ok 1 thing you can try out...

Make a new note, so rightclick on your webservers desktop and make new notepad, then add the script and save it as test.php <-- specificly use notepad not notepad++ as this not always saves it the right way.

Your files can be saved as index.php.txt ;) depending if it is saved that way. so dunno but its worth a try :)
Image
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #1

Post by Jackolantern »

Honestly I think you will have a better, easier time if you develop on WAMP, and then only move production-ready files to the web server. WAMP is incredibly easy to work with, and really speeds up development. It will slow you down and can cause problems like this if you are moving your files between your dev computer to the web server. And if you are doing all your dev work on your web server directly, that can cause a host of problems.
The indelible lord of tl;dr
User avatar
Vuvukla
Posts: 17
Joined: Wed Aug 11, 2010 3:58 pm

Re: Video #1

Post by Vuvukla »

Jackolantern wrote:Honestly I think you will have a better, easier time if you develop on WAMP, and then only move production-ready files to the web server. WAMP is incredibly easy to work with, and really speeds up development. It will slow you down and can cause problems like this if you are moving your files between your dev computer to the web server. And if you are doing all your dev work on your web server directly, that can cause a host of problems.
Ok, thank you, I will try WAMP. But, what's the difference between WAMP and XAMPP and what does it mean?

-----
I think my computer can't read PHP? I tried WAMP and blablabla "http://localhost/" and it shows nothing, this is weird. Really weird.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #1

Post by Jackolantern »

They are just different "development web servers". Both use most of the same components. WAMP means "Windows-distribution of Apache, MySQL, and PHP". It is the most popular development web server package today. Probably the 2nd most popular is XAMPP. The "X" means cross-platform, Apache, MySQL, PHP, Perl (Perl is another web language, which I personally find hideous and difficult to work with). XAMPP also includes a couple of other components that WAMP does not typically come with, such as Mercury Mail Server. For PHP development, I find WAMP a bit easier to work with, since you don't have to worry about those components you don't need to currently use. WAMP is also used more often in books and tutorials than XAMPP is, so you will find more reference material using it.

If you are going to work through the tutorial videos, grab WAMP, since it is what is used here. And be definitely sure you do not install both XAMPP and WAMP on the same PC, as that will cause a lot of problems in the Apache installation.
The indelible lord of tl;dr
User avatar
Vuvukla
Posts: 17
Joined: Wed Aug 11, 2010 3:58 pm

Re: Video #1

Post by Vuvukla »

Ok, WAMP works now, but my webbrowser Firefox can't read PHP somehow. I got the latest version..

I will try some addons if that will help..

-----
Nope, nothing works x)
Post Reply

Return to “Older Browser MMO Videos”