473,834 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wondered If anyone could help a newbie? add a file after page has loaded in php

1 New Member
Hi.
Im A complete newbie with php and know only the very basics and wondered if anyone had the answer to my problem?
I have been adding/including files within my php pages like so:
<?php include("http://www.website.com/webpage.php"); ?>

This works fine except when i have a large list to add.(almost at the top of the page).then it seems to take forever for the page to open.

I was wondering if there was a way to first load the page and once loaded this include page/file would be added?
(the file contents is html if this helps - a list of categories i need to amend regularly on about 100 pages hence the include file)

The website does not have a database as i havent progressd that far yet

I have hunted high and low and cant seem to find a solution to this.

If you can i help it would be very much appreciated.
THANK YOU in advance.
Feb 1 '08 #1
2 1243
Amzul
130 New Member
Hi.
Im A complete newbie with php and know only the very basics and wondered if anyone had the answer to my problem?
I have been adding/including files within my php pages like so:
<?php include("http://www.website.com/webpage.php"); ?>

This works fine except when i have a large list to add.(almost at the top of the page).then it seems to take forever for the page to open.

I was wondering if there was a way to first load the page and once loaded this include page/file would be added?
(the file contents is html if this helps - a list of categories i need to amend regularly on about 100 pages hence the include file)

The website does not have a database as i havent progressd that far yet

I have hunted high and low and cant seem to find a solution to this.

If you can i help it would be very much appreciated.
THANK YOU in advance.
what do you mean by "large list to add" lots of files?
first if its on the same server give it a relative path

(the file contents is html if this helps - a list of categories i need to amend regularly on about 100 pages hence the include file)
humm? what? shu?
Feb 2 '08 #2
dlite922
1,584 Recognized Expert Top Contributor
Explain the general target of what you want. Including a 100 files is never the right way to go, and no you can't include files after the page has loaded because the web is state-less. PHP is server side.

If you're displaying these HTML files, why do you need to include them? link them?

More infor on what you're trying to do.
Feb 2 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5483
by: Aliandro | last post by:
Hi I am really stuck and need some expertise help please. I have an XML file: <XML> <USER_INFO> <USERNAME>username</USERNAME> <PASSWORD>password%</PASSWORD> </USER_INFO> <SITE_INFO> <SITE_NO>18856</SITE_NO> </SITE_INFO>
16
2913
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed loaded into cache, the slideshow doesn't look very nice. I am not sure how/when to call the slideshow() function to make sure it starts after the preload has been completed.
9
9380
by: Ian Richardson | last post by:
If I follow the steps on http://www.dhtmlcentral.com/tutorials/tutorials.asp?id=11 to add .js files to a document on demand, let's say by <body onload="blah();">, how can I reliably tell that it has been loaded? BTW, I'm doing this for several .js files (and I don't always know how many I'll be loading), so I need to check them all. If I code for IE, I can check all the document.scripts.readyState values (not being "uninitialized" or...
0
1756
by: msnews | last post by:
Hi -- I'm very, very new to ASP.Net, and I've been trying for several days to figure out how to update a datagrid AND refresh it on the client side so that the page doesn't refresh. I've torn my code apart over and over each time I tried what I thought would be the code that would solve my problem. Maybe I'm going down the completely wrong path here. Essentially, here is an explanation of my ASP.NET webform application and what I want...
2
2102
by: abhishek.srivastav | last post by:
I am a newbie in db2. We have a table CLOBTAB defined as CREATE TABLE CLOBTAB(COL CLOB(2M)) We are trying to load a file of around 1 MB into this table using load command. The file is deos not have a record delimiter as we want this complete data as one record in the table. The load command is as follows:
1
957
by: suresh | last post by:
Hi! Guys, I am using a base class and I am inheriting it into derived class page instead of using System.Web.UI.Page. which is giving the following error. "The file could not be loaded into the Web Forms designer. Please correct the following error and then try loading it again: An exception occurred while trying to create an instance of
9
1125
by: Arvind R | last post by:
Hi, I need to log all info,of whoever logs into my application and what all he clicks...and which all methods are executed and what parameters are passed. Is there any way I can log info at a single place....a common place and so that I dont need to put code in all methods and in all pages... any sample apps/code for this? --
6
5005
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
53
4764
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
0
9799
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9646
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10793
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10510
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10219
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7758
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5794
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.