Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly


when i add php session

<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it.

and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.




View Complete Forum Thread with Replies

Related Forum Messages:
Random Order Help Request - Prevent Previously Displayed Objects
I have a query that is showing new items in a store based upon their
inventory date. The problem with my Random order sort is that when the
"next" link is pressed, the random function is called again and I may see
the image previously displayed rather than go through the entire new
inventory.

SELECT *
FROM `Catalog`
WHERE (`Catalog`.thumbnail LIKE '%-04.%' or `Catalog`.thumbnail LIKE
'%-05.%' or`Catalog`.thumbnail LIKE '%-03.%' ) and `Catalog`.img_status =
&#391;' and `Catalog`.views != &#390;' ORDER BY RAND()

View Replies !
Session Problem - User Do Not Log Off Properly
I have a website that is accessed by authenticated user through login
page. The problem is that when the electricity goes off or the user do not
log off properly, the users are not able to log in again.

For this purpose, i have to kill their sessions that is maintained at
the server, but despite the fact that the sessions are killed, the...

View Replies !
Server SESSION Not Working Properly.
i have wrote the following script but , it works 100% ok in my WAMP, but when i have uploaded it in server then its not working properly though it dosent shows any warning or error but sesson is not working.

ithe path and of the session save folder is also correct and i foxed CHMOD 777 for the folder. Code:

View Replies !
Problems With The Data From My Session Not Being Deleted Properly
I am having some problems with the data from my session not being deleted properly. I have a shopping cart on my site and when the cart is emptied, the session variables are unset. I then find that when I carry on using the site, items keep getting put back in to the cart. It seems that the session is being emptied but the data is still stored somewhere else and then is randomly put back in to the session again without being told to.

View Replies !
Invalid Session Being Displayed
I want this code to check if the session "user" is up and running. if so set a variable to true, otherwise set it to guest. however it seems to be setting the variable to guest no matter what the session is set to. I'm staring at this bit of code and just cannot see what is wrong.

public function loginCheck() {
if (isset($_SESSION['user'])) {
$this->loggedin = TRUE;
} else {
$_SESSION['id'] = "0";
$_SESSION['user'] = "Guest";
}
}

View Replies !
The Page Isn't Redirecting Properly
Host: Dreamhost
Access: Shell & FTP

I setting up a site but it seems to not like php extensions. I have a custom php running in my root folder. Cgi-bin has php.cgi in it for this.

Whenever I go view the site i give me this message

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.....

View Replies !
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly.

However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:

View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server
Program: EasyPHP1.8

Changed port to 81 in httpd.conf, rebooted and everything....

127.0.0.1:80 still connects to the index page
127.0.0.1:81 doesnt connect (Page cannot be displayed)
192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP)

Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?

View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox.

Have someone found the problem like this before? And how can I solve it?? My very very simple code is:

View Replies !
How To Prevent Duplicate Login With Session
When username and password is correct. I register username is session. but the problem is I already login in my computer and can login again in another computer. How to prevent duplicate login?

View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed"

What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network..

$cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/'

$i = 0;

$cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname

$cfg['Servers'][$i]['port'] = ''

$cfg['Servers'][$i]['socket'] = ''

$cfg['Servers'][$i]['connect_type'] = 'tcp'

$cfg['Servers'][$i]['controluser'] = ''

$cfg['Servers'][$i]['controlpass'] = ''

$cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'username' // MySQL user
$cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed
// with 'config' auth_type)

View Replies !
Page Cannot Be Displayed Using Php.exe On Win2k
Im using php.exe on win2k. When I visit a php page i get page cannot be
displayed. Other pages work fine. Any ideas? the php dll wont work at all,
it refuses to read the ini file at all.

Really anonying, cant figure this out.

View Replies !
SQL Statements Displayed On Every Page
Every php page that queries my MySQL db outputs the SQL string on the result page. I just want to output the results. Code:

View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail.

Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'.

I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.

View Replies !
CHMOD 777 - Page Cannot Be Displayed. Why?
I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500).

I have tried on individual files as well.. the same thing happens. Anyone know what is going on?

View Replies !
Hiding Hyperlinks For Page Displayed
Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.

View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store.

Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time.

So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on.

My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.

View Replies !
Upload Something To Gets Displayed On The Pagination Page
I coded an upload system, and a pagination script. These 2 things are linked together so when you upload something it gets displayed on the pagination page. Now I want to make it so if the upload page is executed, then refresh the pagination page.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:

View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not
displayed in the paypal page, but am sending the phone number in a
hidden value with the name "H_PhoneNumber".

Can anyone tell what could be the problem? Why am not getting Phone
number in the paypal page.

View Replies !
Linking Functions To Data Displayed On Page
I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward.

What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:

View Replies !
Page Cannot Be Displayed While Post Or Reply To A Topic
I can send emails through my forum can access Admin and change etc. for the first time ever the other night tried to post or reply to a topic and I get the below message I have tried everything I can think of. Code:

View Replies !
Page Cannot Be Displayed While Attach Images To Posts
i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?

View Replies !
Editor To Be Displayed On A Page Giving To The User
I want an editor to be displayed on a page giving to the user the chance to write anything he likes, and then save those contents and display then into an html page, which is exactly what i'm doing now, posting this new thread. How can i do that?

View Replies !
Is There A Way To Prevent A Refresh Of A Page?
Is there a way to prevent a refresh of a page?
When a user refreshen on a certain page, pictures he already uploaded, will
upload again...



View Replies !
How To Prevent A Whole Page Refresh
I built a site in PHP. All the site is working with the same URL, which is rachelkinarti.com. My paging is done with forms that sends the submit info to the same index.php script.

The problem is that every time a user is changing the page (via the main menu or other ways), all the page is refreshed (dissapear for a while and appears again with the new page), even though most of the page is unchanged.
Does anybody know what can cause that problem (maybe caching issues?) and how can I solve it?

View Replies !
How To Prevent Page Refreshes
I am trying to come up with a method to prevent users from refreshing/reloading a page using PHP

I am making a PHP web based game. I don't want players to reload the page because it will reset the game -- this will be a way for them to cheat. It isn't a Flash game -- it's a pure PHP based combat system.

The best way I can think of this is to generate a random number and use that number for the combat instance. Store that number in a mySQL table and do a check to see if the number is the correct random number for the combat instance.

If the page reloads then a new random number is generated and the check fails, which doesn't allow the combat instance to display thereby preventing the player from cheating.

View Replies !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination?  I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50.  How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses

    for($i = 1; $i <= $numofpages; $i++){
        if($i == $page){
            echo($i." ");
        }else{
            echo("<a href="$PHP_SELF?page=$i">$i</a> ");
        }
    }

View Replies !
Prevent Page Access Outside Website
I have a php webside with a guestbook and I want access to the guestbook
only via the homepage. How can I modify the index.php of the guestbook to prevent access from outside the website?

View Replies !
Prevent The User Of Seeing The Main Page After Loged Out?
I am new in PHP and i have some problems. The website i am trying to create has a login page and works with sessions. When the user wants to logout, he goes to another page where i have the code:

session_start();
$_SESSION = array();
session_destroy();

After that the session is destroyed. My problem is that if i press the button "Back" here , i will be able to see the content of the previous page. I dont't like it! Have i done something wrong? Can i do something to prevent the user of seeing the main page after loged out? (the ideal would be to get him to the login page again)

View Replies !
Dynamic Data - Prevent The Counter From Incrementing If The Page Is Refreshed?
I have a PHP web page that is linked to a MySQL database for dynamic data and page hit counts. In my SQL statement I have limited the results to 1 record i.e. "DESC limit 1" unfortunately the page shows the same record twice. any idea why that is happening? Also I would like to refresh the data on the page once a minute, if I use a redirect to the same page the counter increments. How can I prevent the counter from incrementing if the page is refreshed?

View Replies !
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved.

I'm on a Windows 2003/PHP 5.22 setup.  I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well.  I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work.

The install dumped all the PHP related files under "c:program filesphp".  I've ensured that path is in my windows PATH statement for my env vars.  I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". 

From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine.  It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed".  I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine.  It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error.

My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.

View Replies !
Size The Page Displayed To The Size Of The Persons Browser.
I would like to know if there is some code in php that will size the page displayed to the size of the persons browser.

View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's
like a 404 error but I think it might be something else.

Basically, I have a page where a user inputs his email address. The system
is supposed to look up the email address and send the associated password to
that email address. It worked up until a few months ago. Note that the
validation works. So, if the user tries to submit a blank text box, it
returns an error. If the email address is not found, it returns an error
"Email not found." But if the email is valid, it just dies. This code
worked a few months ago when I initially wrote it....

View Replies !
Session Var Is Setting ONLY AFTER I Reload Page, Form Var Displays First Page Load
Page1 has a form that calls Page2. The beginning of Page2:
<? php session_start();
$s=$_POST['sSelected'];
session_register("s"); ?>

in the middle of Page2 I have a form varaible:
<?php echo $_POST['stateSelected']; ?>
<?php echo $_SESSION['s']; ?>

The form var displays the first time the page loads. The session var
displays only after reloading the page2.

View Replies !
Is There A Session ID That Exists When You Start A Session On A PHP Page?
Is there a session ID that exists when you start a session on a PHP
page? I have noticed that it sometimes is passed in the URL. How do I
get this session ID even if it doesnt exist in the URL?

View Replies !
Set Page URL Session
Please would you tell me how to set session on page URL?

all i want to do is when click on a link(say "Continue Shopping"), it will go back to the last viewed search result page (for customers continue add items to their shopping cart).

is it possible?

View Replies !
How To Set Page Session
im stuck in setting the session on page URL. what i want to do is re-direct the customers back to the last search result page (from which they added an item to the shopping cart) for them to continue shopping after they click on the "continue shopping" button. someone told me need to set session on the last search result page viewed, but i don't know how.

View Replies !
Set The Session Variable To Read The Session Variable In The Next Page.
I have a PHP web app, that runs with Register global off. It sets $_SESSION variables that are used in other pages. The script works fine on my server that runs Apache2 and PHP 5.0.1.

But when I move the scrip to my hosting company that runs , IIS and PHP5.0.2, they don't work. It seems that its not able to set the session variable to read the session variable in the next page. cvWhat should I be checking ? Has anybody faces this situation before ?

View Replies !
Start A Session On Page
im trying to start a session on my page... and it kind of works... after initializing the session, and assigning a value to that variable, when i print that variable... it prints the value, but also shows some error messages...

This is my code...
session_start();
session_register('userNum');
$userNum = mysql_result($res,0,"userId");
printf($userNum);

These are my errors...
Warning: Cannot send session cookie - headers already sent
by (output started at 'examplesiteandpage':2)
in 'examplesiteandpage' on line 8

Warning: Cannot send session cache limiter - headers already
sent by (output started at 'examplesiteandpage':2)
in 'examplesiteandpage' on line 8

Does anyone know why this happens? The variable is still created, and the value assigned... but i get the errors... thanks

View Replies !
Session And Search Page
In my search page "search.php" (where the form is) I have set the session: PHP Code:

View Replies !
How To Pass Session Id To Another Page?
I have a script for loggin to a site. My problem is that I want to pass the session Id to another page but I dont know how to do this. what is the correct way to pass another page the session id for security issues?

my another page is: pagina_entrada.htm in this page I have the script for checking if it is the real session id if not it is refused the page This is the script in each page belong to site. All pages has this script first. Is tthis correct? Code:

View Replies !
Sharing Session With ASP.Net Page
Is there a way of sharing sessions between PHP and ASP.Net 2.0 page if they are both in the same directory?

Let's say I have a PHP page page1.php with the following code:

View Replies !
When Using SESSION, It Gives BLANK Page
I installed PHP 5.2, MySQL (latest version) and Apache 2 on Win XP. it works OK except SESSIONS when I have a file beginning like this, it gives a blank page:

session_start();
if (isset ($_SESSION['loggedin']) && isset ($_SESSION['time']))
{

I think it must be about php installation.and yes it works on other servers, but on my pc, it gives a blank page. Code:

View Replies !
Pass XID Via A Session Along Each And Every Page
the user sets up the account and adds each subuser as part of his "group". they share an XID inside the database. so user XID = 001 and subuser XID=001 so i know they belong to the same group.

I want to be able to pass this XID via a session along each and every page. So one of my functions in my application would be to list all submembers with this XID. when the main user signs in, how can he carry this XID over every single page he visits? (There is no telling when the main user wants to perform the function above)

So login would include username and password, but in the background i want the XID to be passed along somehow after login. So obviously the username password and XID would be in the same table. Would i pass information in an array? how does the script know to hit this one table. I guess im having trouble putting 2 and 2 together.

View Replies !
Session Destroys Only A Page Later?
This is the code that I'm using to check if someone is logged in or not.  This code is on every page because there is a login or logout button on every page.

if (!isset($_SESSION['user'])){
echo '<a href="login.php">LOGIN</a>';
}else{
echo '<a href="logout.php">LOGOUT</a>';
}

In the flow of my php document this checking if the user is logged in happens after the actual login or logout script.  Because of this, I assumed that as soon as someone logs in, the code would reflect the change.  For some reason, on the page that logs me in, the code still thinks that the session is not set yet and therefore I still see the login option.  Same thing with logout.  It takes for me to click on another page for the code to finally change.  Any ideas what is going on?

View Replies !
Session Slowing Page Down.
I'm writing a script that uses php sessions to track logged-in users, as well as to pass some variables around. Everything works find on my computer. However, when one of my colleagues access the script, the page takes about 5x longer to load.

While a page will load in less than a second for me, it takes about 4-5 seconds for him. When a page loads in 4 seconds for me, it takes about 15-20 seconds for him. Code:

View Replies !
Session Not Working On Page 3
session ..cant get it to work on page 3 it will not display anyhting on page 3
whhat i do wrong Code:

View Replies !
Page Not Recognizing Session
I am trying to do a very simple login form and register a session in order to validate the user on a particular section of my web site. Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved