Daehawk
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? |
Reply
HmmZ
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..)
Reply
RazorICE
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?
Reply
Daehawk
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? 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.
Reply
Daehawk
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?
Reply
HmmZ
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
Reply
Daehawk
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 ...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.
Reply
Similar Topics
Keywords : browser, problems, firefox
- Php Source Code Unveiled In Browser?
is that possible? (7)
Need Some Help In File Browser
listing all sub folders and files in them. (8) Hey I want to create a very simple file browser, so that, it reads all the sub-folders which are
places in a directory, and the files inside the sub-folders (It reads only files inside sub-folders
and list them in simply. ) Also, it creates a directory (any name) inside each sub folder. My
Following code reads on the files inside the main directory, it does not read the files inside the
sub-folders.. I appreciate any help. CODE <? $path = "./"; $dir_handle =
@opendir($path) or die("Unable to open $path"); whil....
Mozilla Out With Firefox 3 Beta 4
The beta 4 version of FireFox 3 is out .. (1) QUOTE The just-released beta 4 version of Firefox 3 offers a few visible additions to the
browser. For example, the download manager has been improved, making it simpler to locate and work
with downloaded files. It's quite nice -- you can easily search through your downloads. Also,
Firefox now integrates directly with your virus scanner, and shows the scanning being done right
inside the download manager. And you can see the icon of the file you've downloaded, making it a
lot quicker to identify. The primary interface has been somewhat modified to look more....
Php Problems
Clan Web site Problem (3) Okay, so I have an old version of Nettek that I would like to modify. There is a bug that when you
get to the rank required for Set Rank, you can set your rank or other people's ranks to what
ever you want, even Webmaster and that's something I'd like to not have. I am wondering how
to fix the problem. What would I modify in the coding to set have it so you can only move people up
to 1 rank below you at best? I'm still learning PHP and can't modify things like this quite
yet.....
Problems With Data Formatting
(2) I have a MySQL database which stores articles. A sample article would look like this: CODE This
is a body. This is a body.This is a body.This is a body.This is a body.This is a body.This is a
body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
is a body.This is a body.This is a body.This is a body. This is a body.This is a body.This is a
body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
is a body.This is a body.This is a body.This is a body.This is a body. That'....
Problems With Php
(5) Recently, my system was infected by a Trojan Horse. Since then, I've been finding files missing
and now my PHP will not work, my Apache server will not display PHP files, i've tried getting
rid of the files in my C:\Windows and C:\Windows\system32 folders but nothing is
working. (it comes up with 'file in use') All help greatly appreciated.....
Preg_replace Problems
(7) Sigh... preg_replace is getting very annoying for me. Could sombody tell me what I'm doing
wrong? Im making a bbcode replace for the forums I made, and preg_replace is being a b****...
Right now Im working on the tag, and I want to check for valid URL's, because idiots in the
forum are adding js and stuff in the image tags and messing it all up. So i put a function in the
array that holds all of the replacements: CODE
$main_search=array('/\[b\](.*?)\[\/b\]
/is','/\[i\ ....
Form Dosn't Submit In Opera
Works in IE and FireFox (1) My form dosn't submit, it works in IE and FF, its validated HTML 4.01 and all, Code:
/**********************************/ /** Post Topic :: EvilBoard **/
/**********************************/ /* Session Start */ session_start(); /* Start Submit Script */
if ( isset($_POST )) { header("Refresh: 0; redirect.php?posttopic");
define("RELOADED","YES"); } /* End Submit Script */ /* Include File::Header.php */
include("include/header.php"); echo " "; /* If Script can't find SESSION user_name */ if (
!$_SESSION ) { /* Echo :: Forbiden */ echo '....
Mysql Authentication Problems
(11) I installed the new version of both php and mysql on my computer and I am trying to work on a
database. The problem is the following. Even though I have the latest version of both php and mysql,
and I have created users in the new mysql version, I still get the problem that I get an error
message about authentication problems. I have no clue what I am doing wrong. It did work for a short
period of time, but somehow it is no longer working. Is there anyone who has a tutorial on how to
install both php and mysql? I have the feeling that there are a lot of settings in my.in....
Odbc Form Problems
(0) Hy everyone! I am moderately familiar
with PHP and have been using it for a couple years for various different things.
Basic information about my system:
PHP 5 MySQL 4.1 Apache Windows XP Pro I'm using
PHP/MySQL for a web-based server and have an ODBC set up in my office. I'm running into some
problems using the ODBC code as opposed to the MySQL code in some scripts I ha....
Phpnuke Newsletter Sending Problems
(0) i have a problem sending newsletters....when i send them no1 receives it...i tried sending to the
registered users on my site which im in and i didnt recieve it in my mail...i dont know why this is
happening...it says the newsletter is sent...but we get nothing in our mail... heres the code
QUOTE /************************************************************************/ /* PHP-NUKE:
Web Portal System */ /* ===========================
*/ /* ....
Major Problems With Php Script
Hold on for this one! (8) Okay, so I got a php script for my site called php Bible. So I get it and go to install it, and
then the problems start. You see it uses php, dud, to search and view scripture. So here are the
instructions: QUOTE 1) Upload the files to a useful place inside your web server's
document tree. 2) Change the things that look wrong in config.php. 3) Make sure "AcceptPathInfo
ON" (or analogous) is somewhere in your PHP file section of your web server config. 4) Go over
steps 2 and 3 again, because you probably missed something for lack of documentation. So....
Include Funtion Php Problems
in xammp and php 5.1.1 (11) Hi, I just recently installed the latest versin of XAMMP on my computer which comes with php5.1.1
and i have been noticing some problems with the include(); funtion. This is a code that worked
fine on trap17 hosting so I am thinking it has something to do with the php version of 5.1.1 since
trap17 uses 4.3.X. Now what the actual problem is is using the variables in the include function.
If i have a normal include sentence like this one: CODE include "hello.php"; then it
works fine but as soon as i start using variables it somehow dosent work at all. ....
Problems With Php Form?
Can you please help? (7) I am trying to install a PHP form. I am using a tutorial I found in the tutorials section. It was
really good, but I have a few problems. Here is the link, if you need it:
http://www.trap17.com/forums/index.php?sho...ic=8118&hl=form Anyway, so I place the mailform.php
in an html document on file manager right? So I do that. And I put it in the body: CODE
<?php $Name = $_POST['Name']; $Subject =
$_POST['Subject']; $Email = $_POST['Email'];
$Site = $_POST['Sit....
Problem With Firefox Text Alignment
(9) I just have a really simple annoyin prob with my site which I have only just noticed. If i view the
site in IE the alignment is fine but when in Firefox it isnt properly aligned. The user searches the
db and it returns a table with the results.. PHP Code: CODE echo '<br><table
width="871" border="0" align="center" cellpadding="0"
cellspacing="0"><tr><font face="Verdana, Arial, Helvetica,
sans-serif" size="2"><strong>'; echo 'Artists beginning with
'.$....
When The Browser Is Closed
(4) Hi, I am storing data in a table based on the session id. When the user closes their browser, I
want to run a quick delete so that the entery to the db with that session id is removed. How can I
do this? Thanks....
<? Include ?> Problems
(4) Well, I'm new to PHP, and I get tons of problems when I use the include tags: Let's say my
site is www.mysite.com, and the menu is www.mysite.com/menu.htm. The site I want to include menu.htm
in is not in the same folder as menu.htm, but in "folder2": www.mysite.com/folder2/index.php The
images in menu.htm are located in it's own folder: www.mysite.com/images. However, when I load
index.php with , the images won't load. Then I try to check the image location and it says that
the images that didn't load was located in www.mysite.com/folder2/images ....
2d Traveling On Browser
PHP Game (4) Alright I am developing a PHP Game. I have worked on one but left them due to creative differences.
Something that I have had trouble finding in script tutorials and script archieves is a way to do
like a 2d mini world inside of the game. Like let's say that you have a icon for your person, it
would put it on the map where you are at in the game and it moves as you go to different places in
the world. something like this(horrible cause done with X's and | _): _______________________
|_|_|_|_|_|_|_|_|_|_|_|_|_| |_|_|_|_|_|_|_|_|_|_|_|_|_| |X|_|_|_|_|_|_|_|_|_|_|....
Postnuke Install Problems On Subdomains
(1) I'm trying to install PostNuke on a empty server I allready got PostNuke downloaded and uploaded
the downloaded files to the server but I can't get it to work. I'm trying to do this on 2
servers both are sub-domains and both support php. One of them has a MySQL database and MyAdmin but
I can't find them anywhere on the sub-domain. I'm pretty new to this and any advise would be
more then welcome to me. I tryed looking for a MySQL database to install but when I do I get
something like 30 different versions and don't know whitch one I need I tryed th....
Php And Gd Tutorial
I'm having problems (6) I am trying to learn PHP and was wondering what is wrong with the tutorals on this site:
http://www.phpfreaks.com/tutorials/105/1.php I copied the code between the body tages in my site,
and am returned with an error regarding headers. Does anybody why this is?....
Problems With Apostrophes [ ' ] In Php
(4) Yes I have another problem. I have a blog that I made with php and mysql. It's working just
fine except for the text being displayed on the page. Everytime there's an apostrophe
encountered, *something puts a slash before it. It's fine in the database only the page.
Probably a problem with PHP. I hope you understand what I say. Here's a sample line displayed
in my blog: -- It\'s Saturday but I\'m still in the office. -- ....
Ftp Script Problems - Authentication Failure
(3) I uploaded the code as a text file because it's pretty big: http://beeseven.trap17.com/ftp.txt
As I said it can't login. I get this error: Warning : ftp_login(): Authentication failed,
sorry in /home/beeseven/public_html/ftp.php on line 45 I think it might have something to do
with character encoding, but I'm not sure. If you think it is, what kind of encoding would work
as if I typed it directly? I tried putting it in the file, but then I got the missing required
fields error.....
Mysql Relational Problems
(3) didn't know where to post this but since I build this database with php, I post it here. I have
to build a relational database 4 a school project. Made a webbased interface and made a database
with primary&foreign keys and not null fields to preserve the integrety of my database. -When I
insert an empty field or I just don't give the field where the field has the property NOT NULL
it just fills in nothing or some default value (it ignores the not null property). -When I insert 2
rows with the same primary key in the same table it doesn't throw an error but ....
Looking for browser, problems, firefox
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for browser, problems, firefox
*MORE FROM TRAP17.COM*
|
advertisement
|
|