Jump to content
xisto Community
Sign in to follow this  
Daehawk

Browser Problems, Maybe? Firefox vs IE

Recommended Posts

Alright, I coded something the other day for the game I am working on making, and a few of my friends I allowed to get on it and test things out. Well....the ones that were on IE their characters were made but the User variable as in which account they were on just stayed blank, while with my friends that were on Firefox, everything worked fine and they could play perfectly...So I was wondering, with PHP sql codes being sent to the database, is there something special you have to do to make it work on both, or could it be a setting on the IE that was messing with it...Ideas?

Share this post


Link to post
Share on other sites

No, php and mysql are (of course) compatible with every browser..wrong variables could make differences thoughwhat kind of user variables are you using? sessions or setcookies?I am not sure, but i know that multiple setcookies can give problems with redirects (wich basically "reload") it's a bug, but was only tested in ie and netscape, maybe mozilla doesn't have this problem, IF you got multiple setcookies, i suggest you use sessions, as they should work properly (setcookies are dramatic, the only thing setcookie should be used for is "remember" login, and even that can be avoided..)

Share this post


Link to post
Share on other sites

As HmmZ said, PHP is compatible with every browser. It is a server side script, which means that when you say on your browser http://www.yoursitehere.com/, the server which hosts your site will automatically make the php page into html, which is read by all browsers.

The problem could be either with your coding, or with any Javascript you may be using (I had this same problem, I was coding a PHP rpg type game, and it used some javascript to open and close boxes, worked fine in Firefox but not in IE). Maybe you can post the code here so we can take a look?

Share this post


Link to post
Share on other sites

As HmmZ said, PHP is compatible with every browser. It is a server side script, which means that when you say on your browser http://www.yoursitehere.com/, the server which hosts your site will automatically make the php page into html, which is read by all browsers.

 

The problem could be either with your coding, or with any Javascript you may be using (I had this same problem, I was coding a PHP rpg type game, and it used some javascript to open and close boxes, worked fine in Firefox but not in IE). Maybe you can post the code here so we can take a look?

155500[/snapback]


Yeah, it was the whole setcookies thing, But yeah, I am using Java + Php on the game >.>

 

 

Have one new problem now that, I think I know why it is doing it...but just want to make sure, if I can't fix it myself...I will post it in here.

Share this post


Link to post
Share on other sites

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/daehawk/public_html/files/config.php:8) in /home/daehawk/public_html/head.php on line 3
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/daehawk/public_html/files/config.php:8) in /home/daehawk/public_html/head.php on line 3


I am getting that atm...didn't have a problem when I was using cookies, so the question is. From what I have looked up and other responses to this problem, most of them say that the provider might not support sessions....I think sessions are supported here right?

Share this post


Link to post
Share on other sites

be sure session_start() is the very first thing in your script<?phpsession_start();if that's done be sure there are no blanc lines before <?php(this means no html codes and no empty lines)as a confirm i see that the error occurs on line 3, meaning your session_start(); is on line 3, should be line 2hope this helps

Share this post


Link to post
Share on other sites

be sure session_start() is the very first thing in your script

 

<?php

session_start();

 

if that's done be sure there are no blanc lines before <?php

(this means no html codes and no empty lines)

 

as a confirm i see that the error occurs on line 3, meaning your session_start(); is on line 3, should be line 2

 

hope this helps

155683[/snapback]


...wow that's all that was wrong with it >.> stupid session things. Right now I don't have any major bugs in the game...but was wondering if there was a good bug tester to find anything that could be abused or hacked into before I release the game to alpha.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.