IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Browser Problems, Maybe?

, Firefox vs IE


Daehawk
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 43
Joined: 9-June 05
From: TN, USA
Member No.: 8,033



Post #1 post Jun 26 2005, 07:47 PM
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?
Go to the top of the page
+Quote Post
HmmZ
no avatar
Super Member
*********
Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



Post #2 post Jun 27 2005, 01:25 AM
No, php and mysql are (of course) compatible with every browser..wrong variables could make differences though

what 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..)
Go to the top of the page
+Quote Post
RazorICE
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 31
Joined: 27-June 05
From: Australia
Member No.: 8,725



Post #3 post Jun 27 2005, 07:08 AM
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?
Go to the top of the page
+Quote Post
Daehawk
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 43
Joined: 9-June 05
From: TN, USA
Member No.: 8,033



Post #4 post Jun 27 2005, 11:42 AM
QUOTE(RazorICE @ Jun 27 2005, 01:08 AM)
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?
[right][snapback]155500[/snapback][/right]



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.
Go to the top of the page
+Quote Post
Daehawk
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 43
Joined: 9-June 05
From: TN, USA
Member No.: 8,033



Post #5 post Jun 27 2005, 06:10 PM
QUOTE
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?
Go to the top of the page
+Quote Post
HmmZ
no avatar
Super Member
*********
Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



Post #6 post Jun 27 2005, 09:00 PM
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
Go to the top of the page
+Quote Post
Daehawk
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 43
Joined: 9-June 05
From: TN, USA
Member No.: 8,033



Post #7 post Jun 29 2005, 08:56 PM
QUOTE(HmmZ @ Jun 27 2005, 03:00 PM)
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
[right][snapback]155683[/snapback][/right]



...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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 OpaQue 700 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts 3 zip_mc 544 3rd August 2004 - 04:48 AM
Last post by: X3r0X
No New Posts 1 hasa 594 3rd August 2004 - 11:15 AM
Last post by: Shackman
No New Posts   4 stevey 554 16th August 2004 - 07:17 PM
Last post by: pr3dr49
No new   21 braitt 1,432 15th December 2008 - 03:11 AM
Last post by: xpress
No New Posts   6 winflowers 444 11th September 2004 - 09:14 PM
Last post by: MSTR
No New Posts 1 spawn_syxx9 613 3rd September 2004 - 10:03 PM
Last post by: BoSZ
No New Posts 0 spawn_syxx9 346 14th September 2004 - 05:03 PM
Last post by: spawn_syxx9
No new   19 Moneymaker 1,782 9th November 2004 - 06:01 PM
Last post by: spawn_syxx9
No New Posts   0 kelp 508 2nd October 2004 - 01:50 AM
Last post by: kelp
No New Posts   2 elrohir 682 12th September 2006 - 07:48 PM
Last post by: elrohir
No New Posts   5 Saint_Michael 546 19th November 2004 - 09:01 AM
Last post by: karlo
No New Posts   6 darkwarrior 412 12th October 2004 - 12:23 AM
Last post by: odomike
No New Posts   3 TCracker 287 24th December 2008 - 03:36 PM
Last post by: iG-Teengirl
No New Posts   8 grrlfromoz 367 23rd October 2004 - 07:05 AM
Last post by: X3r0X


 



RSS Open Discussion Time is now: 9th January 2009 - 01:12 AM