Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 16-07-04
scifind's Avatar
thin[box]king
 
Join Date: Aug 2003
Location: Cambridge
Posts: 1,844
Thanks: 8
Thanked 4 Times in 4 Posts
scifind is an unknown quantity at this point
  Inculde a static version of a dynamic php page

Hi (not exactly an affiliate thread I know)
I am running OS COmmerce and an a bit miffed at the fact that the install from my host will only install to a sub folder.
Thus my OSCommerce store has the URL
www.shopscifi.co.uk/catalog
I want www.shopscifi.co.uk/index.php to be a copy of www.shopscifi.co.uk/catalog/index.php
I have tried include() but it tries to include a multitude of functions that have reletive paths specified.

Help please

(would there be any interest from peeps if i set up an affili prog with this store?)
__________________
Earn an average of £45 per sale. | New Star Trek Trailer | Looking for Mobile Phone Link Swaps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 16-07-04
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
The quick and dirty way of doing it would be to make index.php simply
Code:
<?
readfile('http://www.shopscifi.co.uk/catalog/index.php');
?>
though you would have to check all the paths on the catalog/index.php page include /catalog/ otherwise the images or links won't work correctly.

The other option would be to make index.php
Code:
<?
header('location: http://www.shopscifi.co.uk/catalog/index.php');
?>
which would redirect the user to the location page. That will save you from any path issues and I don't think having catalog in the url is really a big issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-07-04
Stress Head's Avatar
Registered User
 
Join Date: Apr 2004
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Stress Head is an unknown quantity at this point
scifind, if I understand correctly all you need to do is use the FTP move function to move everything up a directory.

You will the need to ammend the config.php file in both the catalog and admin part of the site (back them both up first).

At present the path in the config.php file will point to catalog and catalog/admin. If you remove the directory catalog from the path then you should be sorted.

PM me if you need any help.
__________________
Work like you don’t need to, Love like you’ve never been hurt, Dance like no one is watching.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-07-04
scifind's Avatar
thin[box]king
 
Join Date: Aug 2003
Location: Cambridge
Posts: 1,844
Thanks: 8
Thanked 4 Times in 4 Posts
scifind is an unknown quantity at this point
Cheers - the readfile worked.

I will do it this way for three reasons.
1) I am lazy and writing 1 line of code is easier than moving the files and changing the config file
2) I have some pages in google already
3)I might put a pretty custom frontpage at some time.
__________________
Earn an average of £45 per sale. | New Star Trek Trailer | Looking for Mobile Phone Link Swaps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 16-07-04
Retail-Therapy's Avatar
Can't Touch This
 
Join Date: May 2004
Location: КРОМИДОВО
Posts: 321
Thanks: 3
Thanked 0 Times in 0 Posts
Retail-Therapy is an unknown quantity at this point
PHP Code:
<base href="'http://www.shopscifi.co.uk/catalog/">


<?
$handle 
=  file_get_contents ("http://www.shopscifi.co.uk/catalog/index.php");

echo 
$handle;
?>
gets around all the image and other path issues
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7