Jump to content

vantheman

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vantheman's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I have a website that I'm working on that has a secured password protected folder (.htaccess). I'm looking for a way to allow viewers to log into this folder (which contains downloads and other 'members only' features) using facebook login info. I've seen several FB connect scripts but they don't provide a solution for the 'secured folder'. They merely log you into the site, show your profile pic, and that's it. I need something that will keep the area locked until a valid FB username and password is entered. I've been searching this for a while now so any help would be greatly appreciated. Thanks in advance.
  2. Hi, I'm using Oscommerce shopping cart on a website that I'm creating and I've installed the purchase order module to accept po# instead of online payment. Tha problem I'm having is when the customer gets to the confirmation page, there are 2 fields to put "Company name & PO#", but it keeps returning the error "Company name not valid". Does anyone know what the problem is? Also, is there a way to have the contents of the cart emailed to a specified email address? Thanks Van
  3. Hello, I'm fairly new to php and I'm hoping my issue is much more simple than I think it is. I have an oscommerce shopping cart template that I want to use for my companies website. I want everything to work normal (browse categories, add items to cart, view cart, etc.), but when the customer clicks "checkout", I don't want his/her items to redirect to a credit card processing page, or PayPal or anything like that. Instead, I want the items to be sent to an email address (like form mail) with a PO # that would be required. Does anyone know how to manipulate this? Thanks Van
  4. Thanks for your response WT88, Can you give me an example of what I need to do at this point? I am a complete novice. Thanks
  5. I know it has been a few weeks since the reply was posted to my post. My appologies. When I test this script, it comes up as a blank page. Could it be that no particular directory is specified? If so, where/how do I specify the desired folder/subfolders to return? Thanks
  6. Hi, What's the best way to list the contents of multiple subdirectory in one list? For example: On the site, there's a "secure" folder which contains several subfolders (week_of_1-22-09, week_of_1-29-09, etc.). Each folder contains mp3 files. a.) I would like to populate a list, on the "home" page (which is not inside the 'secure' folder), that will show the Artist, Title, Genre & which folder it resides in. b.) Secondly, I would also like to be able to search by (artist, title, etc.). c.) The items on this list are for vewing ONLY (not clickable). Thanks in advance
  7. I forgot to point out that, the php file with the code, resides inside the "secure" folder. The "includes" folder that this php file calls, resides 1 level up, inside the httpdocs folder. With that being said, how should the relative statement be typed?
  8. Yes the is an "include" folder at the root. I inserted the code that you gave me, uploaded and here's what is displaying: Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/getid3/getid3.php) is not within the allowed path(s): (/var/www/vhosts/nervedjsemf.com/httpdocs:/tmp) in /var/www/vhosts/nervedjsemf.com/httpdocs/secure/DisplayWeeksTest.php on line 4 Warning: main(/includes/getid3/getid3.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/nervedjsemf.com/httpdocs/secure/DisplayWeeksTest.php on line 4 Fatal error: main() [function.require]: Failed opening required '/includes/getid3/getid3.php' (include_path='.:') in /var/www/vhosts/nervedjsemf.com/httpdocs/secure/DisplayWeeksTest.php on line 4 Thanks for your quick response.
  9. Hello, I'm experiencing a problem with a php page on a website. The page is coming up blank & I've searched and searched for the problemn but can't seem to find the cause. Here's the code: --------------------------------------------------------------- <?php require_once('/includes/getid3/getid3.php'); require_once('/includes/code/functions.php'); $DAYS_TO_DOWNLOAD = 1; $CanRate = 1; $CanDownload = 1; $dtret = GetUsersFirstTimeRated('2008_01_14'); if ($dtret != "") { #User has rated before $CanRate = 0; $days = (strtotime(date("m/d/Y H:i:s")) - strtotime($dtret)) / (60 * 60 * 24); if ($days >= $DAYS_TO_DOWNLOAD) { $CanDownload = 0; } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Weeks Available</title> <style type="text/css"> <!-- body { background-color: #FF0000; background-image: url(/includes/images/bg_temp.jpg); } .style4 {font-size: large} a:link { color: #FF0000; } a:visited { color: #FF0000; } a:hover { color: #CCCCCC; } .style5 {font-size: medium} .style6 {color: #FFFFFF} .class1 A:link {color: #FFFFFF} .class1 A:visited {color: #FFFFFF} .class1 A:active {color: #FFFFFF} .class1 A:hover {text-decoration: underline; color: red;} --> </style></head> <body> <table width="500" height="379" border="3" align="center" bordercolor="#000000"> <tr> <td bordercolor="#FF0000" background="/includes/images/bg2_temp.jpg"> <div align="right"><span class="style5"><span class="class1"><a href="SearchFiles.php">Search for Artist</a></span></span> </div> <BR> <div align="center"><span class="style2"><span class="style4"> <?php #Get list of folders starting with 2(weekly folders) @$d = dir("."); if ($d) { while($entry=$d->read()) { if ($entry[0] == "2") { $items[] = $entry; } } $d->close(); sort($items); } $i = sizeof($items)-1; while ($i >= 0) { $dirname = $items[$i]; print "<a href='DisplayFiles.php?wk=" . $dirname . "'>" . GetWeekFromDirectory($dirname) . "</a><br><BR>\n"; $i--; } # for($i=0; $i<sizeof($items); $i++) { # $dirname = $items[$i]; # print "<a href='DisplayFiles.php?wk=" . $dirname . "'>" . GetWeekFromDirectory($dirname) . "</a><br><BR>\n"; # # } ?> </span></div></td> </tr> </table> <!--<a href="/logout.htm">Logout</a>--> <?php echo "<BR> $CanRate : $CanDownload"; ?> </body> </html> --------------------------------------------------------------- Can anyone help please? Thanks in advance Van
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.