Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

PHP Problem on my site, please help!

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
Watch

emalen

Established Member
Impact
0
So I have a small php script for a site i'm working on... and at times, i find pages that have it embedded load really slowly. Ie. the php sidebar is the last to load.

Not sure if anyone can help, but feel free to check out a page i'm talking about.

http://www.eventworks.ca/recentevents.php

Thanks,

emalen
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It's really long, so long I can see the page until now... but it's impossible to help you if we can't read the php script source you use or/and the database schema.
 
0
•••
what do you need to see?

the code of php I use is:

<?php include("http://www.eventworks.ca/include.php") ?>

then the include.php is just a html file ?

Does that help?

i'm really not that knowledgable in php, as you probably figured out already!
 
0
•••
Are you sure to have only html code in the include.php file ? Nothing in php ?...

Anyway, you have the following message error...

Code:
Warning: main([url]http://www.eventworks.ca/include.php[/url]): failed to open stream: HTTP request failed! in /home/eventwor/public_html/recentevents.php on line 397

Warning: main([url]http://www.eventworks.ca/include.php[/url]): failed to open stream: HTTP request failed! ” in /home/eventwor/public_html/recentevents.php on line 397

Warning: main(): Failed opening 'http://www.eventworks.ca/include.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/eventwor/public_html/recentevents.php on line 397

Maybe could you consider to include the file using the local syntax, something like :

<?php include("./include.php") ?>

David.
 
0
•••
Unless the file you are including is on a remote server, use the path, not the URL.
 
0
•••
that is a horrible answer! Sorry! :)

only because I've set up the whole site with a absolute path - as I have files in different directories.....

but thanks for the advice!

I'll see if it makes a difference

emalen
 
0
•••
only do include on local file, it will fail on remote files
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

Watched threads: your alert now keeps up with new replies
When you watch a thread, each new reply now updates your alert. Before, you got one alert and then nothing until you read the thread...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back