Unstoppable Domains โ€” Get your daily AI drops report

PHP Problem on my site, please help!

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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.
AfternicAfternic
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
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back