|
Haven't registered yet? Do it here now!
|
hugeheav
Joined: 11 Feb 2009 Posts: 13
|
|
|
|
|
|
|
Posted: Thu Feb 19, 2009 4:44 pm Post subject: Links show on LOCAL server but not REMOTE server |
|
|
|
|
|
|
|
|
|
|
Hi Kaktus,
What's the most likely cause of this problem?
I added a new template for testing purposes in LO but can't get the links to show on a remote site.
First I created a (LOCAL) php file on same server as LO:
Code: | <?php
@ini_set('expose_php', 'Off');
@include "/home/mysite/public_html/lo/site_templates/site_2_2.php";
?> |
and it worked great.
Then I created a (REMOTE) php file on different server to LO with this code:
Code: | <?php
@ini_set('expose_php', 'Off');
@include "http://mysite.com/lo/site_templates/site_2_2.php";
?> |
but it didn't show anything this time!
Any ideas what to try first?
Thanks,
Hugey |
|
|
|
|
|
|
|
hugeheav
Joined: 11 Feb 2009 Posts: 13
|
|
|
|
|
|
|
Posted: Thu Feb 19, 2009 5:07 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I just tried PHP CURL Include (REMOTE) method to:
Code: | <?php
@ini_set('expose_php', 'Off');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://mysite.com/lo/site_templates/site_2_2.php");
curl_setopt($ch, CURLOPT_HEADER,0);
curl_exec($ch);
curl_close($ch);
?> |
but it doesn't seem to work either. |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Thu Feb 19, 2009 9:11 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
when you open the template url itself, do you see any trades in it? _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
hugeheav
Joined: 11 Feb 2009 Posts: 13
|
|
|
|
|
|
|
Posted: Thu Feb 19, 2009 11:49 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Hi Kaktus,
Yes I see trade links but only when the php file is on the same server as LO install. When I FTP the same file to a remote server I don't see the trade links, just a blank page with no apparent server errors.
Thanks,
Hugey |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Fri Feb 20, 2009 12:57 am Post subject: |
|
|
|
|
|
|
|
|
|
|
yeah, thats because errors are surpressed..
try with this code:
Code: | <?php
ini_set('expose_php', 'Off');
error_reporting(E_ALL);
include "http://mysite.com/lo/site_templates/site_2_2.php";
?> |
ofcourse replace the url with your template url _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
clayblogger
Joined: 20 Feb 2009 Posts: 5
|
|
|
|
|
|
|
Posted: Sat Feb 21, 2009 6:11 am Post subject: |
|
|
|
|
|
|
|
|
hugeheav
Joined: 11 Feb 2009 Posts: 13
|
|
|
|
|
|
|
Posted: Mon Feb 23, 2009 1:43 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Atanasis wrote: | yeah, thats because errors are surpressed..
try with this code:
Code: | <?php
ini_set('expose_php', 'Off');
error_reporting(E_ALL);
include "http://mysite.com/lo/site_templates/site_2_2.php";
?> |
ofcourse replace the url with your template url |
Hi Kaktus,
I get just the same as before - blank page. I'll PM you the test page URLs I'm using to see if that gives you any further insight.
Please let me know what to try next.
Thanks,
Hugey |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Mon Feb 23, 2009 9:19 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
check your pms.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
elixir346
Joined: 07 Apr 2009 Posts: 2
|
|
|
|
|
|
|
Posted: Tue Apr 07, 2009 10:39 am Post subject: |
|
|
|
|
|
|
|
|
|
|
Hi, I have same problem
Can someone help me, how I can fix this problem ??
Thank |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Tue Apr 07, 2009 12:09 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
have you tried with the curl linking codes? also try opening the template url first and see if it prints the trades fine or throws some error _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |