Welcome
Welcome to the Official<strong>World of Phaos</strong>Forums.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining the World of Phaos community for free, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join the World of Phaos community today</a>!

Installing problem

Found a problem while playing WoP, something just dosen't seem right, stop by here and let us know.
(You may also find solutions to a problem you are having or a bug you have found - DO A SEARCH!! Try not to post things that have been brought to our attention a zillion times before)

Moderators: zeke, Aradan

Installing problem

Postby FannaTiks » Mon Jul 06, 2009 12:26 pm

Hi :)

I just downloaded the latest version of Phaos (Phaos 0.9.81).
I'm trying to make it turn on EasyPHP (local server). I installed the database with the file "structure.sql". Then, when i try to go on Phaos, i get this horrible page:
Image

Sorry for my bad english.

Thanks in advance :P
FannaTiks
Level 1
 
Posts: 1
Joined: Mon Jul 06, 2009 12:21 pm

Re: Installing problem

Postby DaWolf » Thu Jul 09, 2009 12:06 am

What browser are you using? IE8 + sometimes hates phaos...
http://apps.facebook.com/phaosapp/ Koitola, Phaos Integrated into Facebook
DaWolf
Level 4
 
Posts: 94
Joined: Sat Feb 02, 2008 5:11 am

Re: Installing problem

Postby grasshopper » Thu Jul 09, 2009 6:01 pm

I can't see the image. I just downloaded and installed both Phaos and Kallen and loaded with success.

The one thing I realized early on was to NOT cloak your PNG and other files. That kills many images!
grasshopper
Level 1
 
Posts: 13
Joined: Tue Jul 07, 2009 7:53 pm

Re: Installing problem

Postby jpoisson » Mon Jul 13, 2009 1:51 pm

umm, I am having the same problem but i am using the latest version of FF, Ill let you know what the fix is when i solve it. but for some reason your server isnt loading php properly
-Jeremy
WOPhaos Developer
jpoisson
Level 4
 
Posts: 87
Joined: Wed May 20, 2009 9:11 pm
Location: Toronto Canada

Re: Installing problem

Postby Don Andy » Mon Oct 12, 2009 7:53 am

So, I know this thread is kinda old, but I had the same problem just recently and found a solution to it, too. The problem is that the Phaos code uses short PHP tags in its code (<? ?> instead of <?php ?>) which is in some PHP installations (like the latest XAMPP apparently) disabled by default.

To fix it, you have to go into your php.ini and look for short_open_tag and set it to whatever you need to to allow open tags (it should be pretty well commented in the php.ini, I just don't have one to look at myself here right now). Don't forget to restart your webserver after that.

If you for whatever reason can't change your php.ini directly you will either have to ask someone who can if it's possible (i.e. your webhost) or you'll have to go the hard route of going through the entire Phaos sourcecode and "fixing" all php tags. If you replace all instances of <? with <?php it should work fine, too. If you don't wanna have to go through that you might want to check with any webhosts if it's enabled before you rent webspace from them. If you're on a VPS or a root server you should be fine though, as you can just change it yourself then.

Afaik this is mostly a legacy support problem, as short tags are apparently a coding standard that has been dropped in later PHP versions.
Don Andy
Level 1
 
Posts: 1
Joined: Mon Oct 12, 2009 7:42 am

Re: Installing problem

Postby jpoisson » Tue Oct 13, 2009 3:15 am

Nice reply Don Andy, and yes our latest version uses short form php tags. but with the new release in a few weeks the tags will all be proper standard form <?php ?>
-Jeremy
WOPhaos Developer
jpoisson
Level 4
 
Posts: 87
Joined: Wed May 20, 2009 9:11 pm
Location: Toronto Canada

Re: Installing problem

Postby DaWolf » Tue Oct 13, 2009 11:58 pm

jpoisson I do not reccomend changing it from short tags, it may not seem like much but the letters PHP on every page every time you open PHP code adds up and it slows down the server by a few miliseconds which if you're ever planning on having more than 3000 users on one site this is a problem...
http://apps.facebook.com/phaosapp/ Koitola, Phaos Integrated into Facebook
DaWolf
Level 4
 
Posts: 94
Joined: Sat Feb 02, 2008 5:11 am

Re: Installing problem

Postby jpoisson » Thu Oct 15, 2009 1:16 pm

humm, then the code should be more efficient so that it doesn't need so many <?php ?> tags
-Jeremy
WOPhaos Developer
jpoisson
Level 4
 
Posts: 87
Joined: Wed May 20, 2009 9:11 pm
Location: Toronto Canada

Re: Installing problem

Postby DaWolf » Fri Oct 16, 2009 3:50 am

One thing a lot of people do not understand about PHP, but I have had to learn since I am developing websites that take hundreds of thousands of users per month.

if you create something like this.
they have a tendancy to do it this way

Code: Select all

while($item = mysql_fetch_assoc($qry)) {

  $item_name = $item['name'];
  print "<tr><td>Item Name: $item_name</td></tr>";

}



in reality that drains server resources more than if you just did this.

Code: Select all
<?

while($item = mysql_fetch_assoc($qry)) {

  ?>
  <tr><td><?=$item['name']?></td></tr>
  <?
}



The main reason it is better to break in and out of PHP like this, is because the less you use the "print" function the more efficient your server can process, ALSO the less you define variables like $item_name = $item['name'] the less memory your server uses per user and the faster your pages will load when you have a lot of people online. So although yes it may seem annoying to break into and out of PHP constantly, it is better for your server.

The main reason for this is PHP is an old clunky grandmother, she has tons of wisdom but isn't as well oiled and good as she used to be, the replacement PHP is Ruby on Rails, but PHP is still the best by far for one big reason... it's been around the block a time or two, tons of people use it, meaning you have tons of plugins, ect... and it has tons of people working out the kinks.

Also, make sure you change any "print" commands in the phaos engine to say "echo", why you ask? echo doesn't return any variable, while everytime you use print it returns true, meaning if you print 30 things you have 30 variables stored in your server memory all saying "true" for no reason.. it adds up if you get my drift.

Just my 2 cents.
http://apps.facebook.com/phaosapp/ Koitola, Phaos Integrated into Facebook
DaWolf
Level 4
 
Posts: 94
Joined: Sat Feb 02, 2008 5:11 am

Re: Installing problem

Postby jpoisson » Fri Oct 16, 2009 10:23 pm

well put, I will agree with you on the breaking in and out. my only issue is with the portability for the actual php tag. I am working on a small program that I will include that will easily solve this issue but until then. good 2 cents Wolfy.
-Jeremy
WOPhaos Developer
jpoisson
Level 4
 
Posts: 87
Joined: Wed May 20, 2009 9:11 pm
Location: Toronto Canada


Return to Report a Bug / Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests

cron