Forumsnerdybsdss 012

This topic has 2 voices, contains 3 replies, and was last updated by  jezmck 1252 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
November 3, 2008 at 11:04 am #6898

stu-green

Hi Brad,

I just came across your download store and have been trying it out, looks good.

I want to use my own hosting rather than Amazon so I’ve specified a location and placed the file there. I also left the Amazon section of the config.php unentered.

This is my items.ini

#
# newborns test store
#

id = 1
name = blah blah blah song 2
type = song
price = 00.00
location = http://cheek.webclubbing.net/store/downloads/
filename = dis-engage_-_makina
formats = 192k MP3
192k MP3 = .mp3
thumbnail =
thumbnail_link =

This is my store http://cheek.webclubbing.net/store/

When I pick this free track, go to the cart and then click ‘Download your files’ I get redirect through the notify.php as you would expect but then end up on a blank page with a link as so:

http://cheek.webclubbing.net/store/completed/?tx=795748d519a624670dfb47023dd91a94

What could I be doing wrong?

November 4, 2008 at 12:20 pm #6899

stu-green

I seem to have got a step closer to solving this myself.

In the index.php of the completed folder is the following.

<?
ini_set(“include_path”, “.:../:../includes”);
// transaction completed, clear the cart
include “../../cart/cartclass.php”;
include “../config.php”;

I altered ../../cart/cartclass.php to become ../cart/cartclass.php
and I know get a page saying completed purchase and a download link. The download link does nothing but I’m guessing there might be a further similar thing I need to do to the above code.

November 4, 2008 at 12:25 pm #6900

stu-green

Indeed I was correct.

I was required to edit index.php in completed folder again:

ini_set(“include_path”, “.:../:../includes”);

to become ini_set(“include_path”, “../includes”);

Now my free download section seems fully functional!

December 17, 2008 at 6:10 pm #6901

jezmck

It would be better to append to the path, rather than replace it.

<?php ini_set('include_path',ini_get('include_path').':../includes:');  ?>

note that the colon is the list separator for *nix machines.

refer to:
http://uk.php.net/manual/en/function.ini-set.php

Viewing 4 posts - 1 through 4 (of 4 total)

Forumsnerdybsdss 012

You must be logged in to reply to this topic.