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.





Script To Open A Small Page When Loading A Large Page?


the idea is a script that loads when a large page is trying to open that need for example 5-6 mins to load and in the mean time to open a very small page that is saying loading the page please wait and when the large page is loaded to go directly to that page. Do u get my idea?




View Complete Forum Thread with Replies

Related Forum Messages:
Page Loading?
At last page of my prepaid system i want to show the information of the user means display congratulation,the username and password etc. which he/she choosen before. And at the last line i use a perl script which disconnect the user(Dial up) using killuser. But the whole code is execute at a time for that perl code is execute before the php file load. As a result the user never seen the username and password because the dialup line is disconnect before the information page is load.

Some of my code is :
echo "Thank you for chosen the $username";
echo $username;
echo $password;

And the last of my code is :

$kuser = "/usr/bin/killuser.pl $prepaid_serial_number";
$run=exec($kuser);

View Replies !
Allow Page Loading
i have a page (frame.php) that is loaded in an iframe of another page. now i want to disallow that frame.php is loaded in the browser without the mother-page. i know there is the javascript solution, but in case someone turns that off, i want to add a php solution as well. i was thinking that this problem is solveable using sessions, but i have never used them before.

View Replies !
Loading A Web Page
I'm presenting users with an input box and asking for a ref number. The submit button loads a php file which searches the database for the ref nunber. If its founds I'd like the PHP code to then go extract a web url from the database and load that page.

I can do all the searching bits but have yet to found out how I can get php to load a page if the ref number is found in the db.

View Replies !
Loading Page
I need to know if theres a way i can stripout the value of variables (take out characters) or revert them to their previous state?

View Replies !
Loading Another Page
I have built an entire website in php ad html, eery page ends wth .php. Know when i proccess a html form it loads another page. Now on that page can i load the main one or do i have to copy the hole source.

View Replies !
Page Loading
I have built a web site entirely using PHP and MYSQL.

When I click on a link on my web site the screen immediately goes blank (I'm using IE5.50) and there is a pause until the new page is generated and then displayed. During this time all the user gets is a blank screen.

Is there anyway to generate the page and then load it when it is ready without the page going blank first?

View Replies !
One Large, Or Many Small Files?
I'm asking: for the PHP parser, it's better to create one large file
with all the code inside or a lot of small files?
Can a large file slow down the execution of the script?

View Replies !
Loading Another Page Within Script
Quick Question for a newbie,

I would like to know how i can get php to point another page, so that in the middle of a script eg. www.somedomain.com/firstscript.php the php script can make the web browser load the next page eg.

View Replies !
Exit() And Page Loading
I am using exit() at the end of an "if" statement that identifies if a variable has or has not been submitted to the page. The problem is that if the variable does "not" exist the exit() stops the script at that point and the rest of the page does not load. If I take out the exit() then the php script continues to run but when the script reaches the point that it need the variable it spit out an error and once again the remainder of the html page does not run. Any ideas on how to fix this problem?

View Replies !
Slow Loading Page
Have a website using a mysql database with php pages created to add to fields in the database.  One of the pages has recently started to take minutes to load and when I go to 'save' changed info to be loaded in to the database, it takes up to 20 minutes ... times out and often does not save the changes.

View Replies !
Continue Loading Page
I have a form to allow a user to change their password. Pretty standard form with 3 text boxes, old password, new password and retype new password. I have some pretty standard checking, like comparing the old password typed with the actual old password, comparing both the new passwords, etc.

Anyhow, if a condition isnt met, i want the script to exit and then to notify the user what happened. If I use the exit() function any HTML that comes afterwards wont load. How can i just exit out of the php script but continue to load everything below it.

View Replies !
Loading Diffentet Page Each Day
What i want is a new page loading every day. So the index of my site will be index.php, and i want to tell the PHP page to load page1.php/htm if it is day 1, page2.php/htm if it is day 2 and so on. These pages will be stored on the same server, but may be contained in their own directory.

I believe that some arithmacy is involved, and that i have to base the calculations on the time or date functions, however i have not used these before, so would appreciate any help in this area.

View Replies !
Page Loading Order
Is there a function in PHP that will allow items to load up order? For example, lets say I have three images on a page. Is there anything that can ensure image one fully loads up before going on to image two?

View Replies !
Page Loading Indicator
I have been trying to figure out a way to have an indicator that shows when you go to a page on a web site that takes a little longer to load then other pages because of a script that is being executed or something else. I have found a lot of different ideas for using Java Script to do this but none of them really seemed that simple or were a little buggy. Does anyone have any recommendations on what I might use that works well? I don't have a lot of experience with Java Script so that is a small set back for me.

View Replies !
Page Stops Loading
i have a form for people to submit information. that form has an onsubmit fetaure to execute a javascript. then it goes to the next page. on that next page is where it puts information into a mysql database.

then its supposed to display that information ina printable form. The page will enter information into the database but not display the data. It used to display the data fine, then i added the insert statement and it stops.
heres the last line that gets executed:

return mysql_query($q,$conn);

View Replies !
Automatically Loading A Php Page
I have a php page that has a flash intro in it. After the flash intro completes I need to load another php page. Does anyone know how to redirect the header on a php page after a flash intro completes. Do I have to do that in flash or can it do it from php?

View Replies !
Safari Not Loading PHP Page
I have a html page that has a flash movie embedded in it. In the movie, when a button is pressed, it passes variables to a PHP script, processes them and then sends the variables back to the movie (all behind the scenes). It works perfectly in Firefox, but in Safari 2.0.4 (for mac) nothing happens when I press that button. looking at the 'Activity' window in Safari, it shows the url to the php file and beside it Ɔ bytes of?' indicating that it can't locate or process the page properly.

The strangest thing is that I just tested it on my older mac laptop which has Safari 1.3.2 on it, and it worked fine. I've never had problems with php on the 2.0.4 version of Safari before (being run on an intel iMac). and I also tested this file on a PC with both IE and Firefox and it worked fine.

View Replies !
Page Loading Problem
I've just noticed that if I load a page on my site for example: Code:

View Replies !
Loading Page Fresh (without Cashe)
I have a Database driven site, and I use some tricky url parsing stuff out of a file called index.php3. Now depending on where the user comes from, the url will remain the same, but the header info will be different.

View Replies !
Loading All The Data Of A Page Into A Variable.
I was wondering how you would go about emulating

header('Content-Type: application/csv');
header('Content-Disposition: attachment; filename=' . 'test' . '.csv');

but instead of getting a file...I would like to load all the data into
a variable.
Is this possible?

View Replies !
Automatically Loading A New Page In A Frame.
the basic idea here is that I want a web page that is made up of
frames to redirect automatically to a frame depending on an if
statement...

if($1 == $2)
{
load url1.php in frame "main"
}else
{
load url2.php in frame "main"
}

The frame "main" is an <iframeif that makes a difference.

View Replies !
Displaying Text While Page Is Loading
i'm trying to display text while a page is loading using a method
similar to the following:

<?
ob_end_flush();
echo 'AAA<br>'
flush();
sleep(10);
echo 'BBB'
?>

in this script, AAA and BBB appear at the same time - when the page has
fully loaded - which is not what i want (i want AAA to appear and then
10 seconds later, BBB to appear). pursuant to the suggestions on
php.net's entry for flush, i've also tried the following to no avail:

<?
echo 'AAA<br>'
ob_flush();
flush();
sleep(10);
echo 'BBB'
?>



View Replies !
Loading A Page With Ajax Or Sajax?
Well i have a problem i want to be able to run my messenger and music
player or every page on my site just right now not much of the site is
using Ajax or sajax, is there a way to load a php document in the page
without having to reload my messenger or music player?

View Replies !
Loading Swf Files Into A Php Page From A Database....
I am wanting to create a games website where all the data is stored in a database.

i want the urls for the swf also in the d.b.

so when the page loads it will show all the games on the site and when clicked it will load the correct swf url depending on the game name.

View Replies !
Stop Loading If Page Is Slow
I have an external newsticker on my site. The newsticker is often heavily slow, and slows down my site. I don't want to remove it, but I want php to stop loading that ticker if it doesn't display in 2 seconds. Code:

View Replies !
Measuring Page Loading Time
if there's any solution out of PHP that can measure load time of an HTML page. I know adding a javascript into a page and then calling a php script would do the trick but I'm playing around on this thing for a month now and I could get anything better. Would anyone care to share a solution or a script for that matter?

View Replies !
Loading Part Of Page Using Includes
If I use includes to create a website pages, how can I make sure that the header part I where i have a flash movie, will load only once?

View Replies !
Problem Loading Page With Ajax
I'm trying to load a page with ajax but it's javascript file not being loaded with
I want solution for this problem.

View Replies !
Mediaplayer Loading - Small Clip Or Text
Client wants that when the video is loading a small clip or text should show
which should say Video loading......plz wait

is this possible to do can anyone tell how to do this ....

View Replies !
Best Practice For Large Page W/ MySQL...
Here is an example of what I am going to be outputting. My question is what is the best/fastest way to do this.

A) Do a query and store data in variables (ie a bunch of these.. $fname=$row['fname']; ) then close the connection and output the HTML with includes calling the variables ($fname) stored at the query.

B) Do a query and echo all of it and call them by '.$row['fname'].' etc. where needed and close the connection at the end of the page almost.

My concern with option B was that holding open the connection and outputting all that code might cause it to be slow?

View Replies !
Why Would A Large Not Upload, When A Small Does, When It Is Still Within The POST Limit?
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.

I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?

View Replies !
Loading Page Makes My Server Reboot
I have a simple page with a bit of php code on it. The code is below: PHP Code:

View Replies !
Browser Trys To Transfer Something After Loading The Page
I have some real web pages in PHP and sometimes after loading them the
browser still show the transfer indicator in the status bar, although it
also says 'Done'. My client isn't very happy with this and I don't know why
this happens. Visit
http://193.247.86.118/loveparty/index.php
and click Home in the page header (the site is not really functional yet)

The page will reload and after that the transfer indicator in the status
bar (IE 6, Mozilla Firefox looks ok) will show an ever incomplete transfer.
Otherwise the page works. No errors, no warnings. The pages are some sort
of a tag soup unfortunately. I didn't do them from scratch.

This is an old problem of mine and appears on many pages, not only this
site.

Anyone knows what might be causing a last, ever incomplete transfer with
the browser, or maybe a tool which can show me what URL my browser is
trying to get ?

View Replies !
Apache Process Terminated When Loading Php Page
Itanium 2 (64-bit)
HP-UX 11.23
Apache 1.3.33
PHP 4.2.9

When loading a php page, the browser just pop-up a window telling
'Document contains no data'.

Apache error_log says:

child pid ? exit signal Segmentation fault (11)
....
....



View Replies !
Loading External HTML File In Every Page
how can I load a HTML into my "every-page" template. Let's say I have a menu (HTML - ul list that becomes a collapsing menu thru CSS) and I want to have it loaded in every page of my site.

View Replies !
Higher Home Page Loading Time !!!!!
This is the website i have developed in php/my sql.. http://www.***********.com
THe problem is..the home page takes too much time to load..specially under dial up connection.

View Replies !
Best Practice For Making Large Queries In A Page
I've been doing php for a while now was always run into the problem of creating messy queries in my php files.

For example, sometimes I add a LEFT JOIN, sometimes I add a WHERE CLAUSE and sometimes there's a search on my page so I have to add the LIKE '%xxx%'. Basically, I want to have a organized method of generating queries. I think C# uses a mysql function like APPEND.

Should I put all my query parameters in the SESSION variables? and then just append/delete from the session variables before generating the query?

Eg.
$_SESSION['tables']
$_SESSION[where_params]
$_SESSION[like_params]
$_SESSION[left_joins]

Then before each query, I just explode the array and make my query? IS this the best solution? or is there already one out there?

View Replies !
How Does One Send A Large String As A POST To Another Web Page?
If I've a big string and I want to send it to another web page as a GET
request, I just use file(). I've done this often.

But what command do I use when I want to send the same string as a POST
request?

View Replies !
Resizing Image With Php Works With Small Images But Not Large
If I upload a picture using a picture at 1024x768 at 112k the image is
uploaded fine and the thumbnail is generated fine.

If I upload a picture at 2333x1750 at 2mg the original file is
uploaded fine but the thumbnail is not created. Anyone know why?

My php is set to upload files at a max of 8 megs so Im not sure as to...

View Replies !
Stopping <a> From Loading New Page But Still Performing Onclick Action
I want to use hyperlinks to 'load' content by changing the display of
div tags. the problem i have is that unless i specify a href the anchor
does not change the mouse pointer on hover even if display is set to
block. it only look changes when there is a href there. but if i have a
href there then when i click it will load the page, which i dont want.

how can i get the anchor to look like a proper link where the users
pointer changes on hover (in firefox) but a page does not get refreshed
onclick only the onclick function gets loaded.

View Replies !
Preventing The Page From Automatically Using These Blank Values Upon Loading?
I am trying to create a login system. The values in the password and username textboxes are checked against my database and if they are in there access is granted.

However, when the page loads the condition is automatically checked with blank values and so access is denied. Is there a way of preventing the page from automatically using these blank values upon loading?? Code:

View Replies !
How To Open Page
I want to send the browser to a differnet page how do i do this with php? it's an if statment

if true send to example1.com else send to example2.com.

View Replies !
Open A New Page?
I have a small problem, this is my current script:

{$_SESSION['login'] = $_POST['login'];
$login='You are now logged in <b>' . $_SESSION['login'];}
else{
$login= 'Wrong user name or password.';}

If the user name or password is incorrect, it will just display Wrong user name or password. But what I want it to do is have the browser open a new page if it is incorrect, for example incorrect.php. Which will then display an incorrect user name or password message. This shouldn't be too complicated, I just have no idea how to go about it.

View Replies !
On If Statement Open .htm Page?
how to open a preset page from an if statement, such as:

if ($row["password"]==$password ) {
printf("Successfully Logged In!");
}else{
print("Login failed!");}

where instead of just printing the text string it opens a new page!!

View Replies !
IE Ask To Open The (php) Page As File
I just uploaded a new website onto a new server. On this server however, when you click on the only 2 php pages. IE will ask to open the page as file. Is there a simple way to fix this, or is it simply the new server that can't support php? The two pages are just a simple email form.

View Replies !
Open A Page In Grayscale On Mac...
I've having a serious issue that I need your help with as soon as humanly possible.  I have a page that has some products on it, when the product is clicked, it opens up the printable version along with the print dialog box for printing. My problem is, I need the page to open up in grayscale. It's working in IE, but it's not working in Fire Fox, and it's not working on Mac. 

View Replies !
Orig. Page Open
Usually when I use header it just replaces the current page, but now with this code it opens a new tab in firefox and puts in the page there, leaving the original page in the original tab. What can be the cause of that? code:

if ($_REQUEST['returnitems']) {
header("Location: http://" . getenv(HTTP_HOST) . "/index.php?section=admin&action=returns"); }

View Replies !
Open Page In Frame
i would like to open a page always inside a frame. This can be achiieved with a simple javascript

<SCRIPT LANGUAGE="JavaScript">
<!--
if (self == top) {
location.replace("index.htm");
}
// -->
</SCRIPT>

However this can cause a popup depending on the user's browser settings

View Replies !
Can't New Page To Open Using Button
Here is the code I have. Does anyone see anything wrong with it? It won't go to the url when clicked. Code:

View Replies !
Open Feedback Page
i am trying to open feedback page after a user visiting a particular site( that means when a particular user close all pages after see the ste and at last i want to open the feed back page).

View Replies !
Open And Process Remote Page
I want to be able to ask users for a URL, open that page, change some of the
contents and then display that page as if they had typed the URL into a
browser. I have toyed with some of the php functions for opening URLs, but
what I am not clear on is how much work my script will have to do (do I need
to fully emulate a browser, for example).

The net effect I am after is very similar to the page translation feature
that Google offers. Does anyone have any examples of this kind of technique.
Any ideas how much work is involved? (My 'translation' is pretty trivial, so
really it is mostly a question of how much work to display the remote page).

View Replies !
Open A Page Using The Function Fsockopen()
I try to open a page using the function fsockopen(), however I the following output appears: "HTTP/1.1 302 Moved Temporarily". How can I get past this?

View Replies !

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