NameSilo

PHP Problem on my site, please help!

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
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
Close
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
Close
Unless the file you are including is on a remote server, use the path, not the URL.
 
0
Close
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
Close
only do include on local file, it will fail on remote files
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back