473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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

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 1217
Amzul
130 100+
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 Expert 1GB
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
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>...
16
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...
9
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...
0
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...
2
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...
1
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...
9
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...
6
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...
53
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,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.