Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Urgent Help! Please


Guest

Recommended Posts

Posted

Hi!

I want to sell videos on my store and I am made it that instead of downloading a file it opens the htm or php file. Now I am wondering how to protect may file that the users can only access it from My Account link in the store and not by direct access to it by typing in the url like http://xxxxxxxx/nakup/pub/video.php

In the download.php file is

$letters = 'abcdefghijklmnopqrstuvwxyz';

$dirname = '.';

$length = floor(tep_rand(16,20));

for ($i = 1; $i <= $length; $i++) {

$q = floor(tep_rand(1,26));

$dirname .= $letters[$q];

}

return $dirname;

That generates virtual directory but if I leave that on then the url is

http://xxxxxxxxx/nakup/pub/.qppuxyeqqrtljscq/video.php but it shows me

Not Found

The requested URL /nakup/pub/.qppuxyeqqrtljscq/video.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

How can i do that the store will generate virtual directory but the system would find the right file but if typed in the url the page wouldn’t be found .

I know this is a little confusing but I hope you will understand what I want to say.

Thank you in advance

Posted

i create my own download system, where in file like download.php i use header(location: FILE_ADDRESS) and then real file address is not visible.

Posted
i create my own download system, where in file like download.php i use header(location: FILE_ADDRESS) and then real file address is not visible.

 

Can you tell me where to put that string

Posted

just like i sad its my own download system, and i don't want to give it all world.

Posted
Hi!

I want to sell videos on my store and I am made it that instead of downloading a file it opens the htm or php file. Now I am wondering how to protect may file that the users can only access it from My Account link in the store and not by direct access to it by typing in the url like http://xxxxxxxx/nakup/pub/video.php

In the download.php file is

$letters = 'abcdefghijklmnopqrstuvwxyz';

$dirname = '.';

$length = floor(tep_rand(16,20));

for ($i = 1; $i <= $length; $i++) {

$q = floor(tep_rand(1,26));

$dirname .= $letters[$q];

}

return $dirname;

That generates virtual directory but if I leave that on then the url is

http://xxxxxxxxx/nakup/pub/.qppuxyeqqrtljscq/video.php but it shows me

Not Found

The requested URL /nakup/pub/.qppuxyeqqrtljscq/video.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

How can i do that the store will generate virtual directory but the system would find the right file but if typed in the url the page wouldn’t be found .

I know this is a little confusing but I hope you will understand what I want to say.

Thank you in advance

 

Dose any one know. :'(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...