Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 01-16-2007, 06:23 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default PHP question

Hi

I´m having a rather hard time figuring out how to protect the member area on my site. I´m using php script from a site called Sentrylogin. It all looks good, but I must be doing something wrong because I keep getting an "HTTP 404 error" when trying to connect to the login page. I have followed the following procedure so far:

1: Got scripts (login form and topcode) from Sentrylogin for my login page and changed the extension from html to php in BlueVoda page properties (do I need to do anything else when renaming the extensions???)
2: Placed keyfile in a folder I named "member"
3: Were in doubt about placing a Meta redirect (maybe I encountered the first problem here. You tell me )
4: Uploaded the login page
5: Placed PHP Page Protection Topcode (on all of my protected pages (not using Access levels since I don´t know what it is) and changed the extensions from html to php in BlueVoda page properties
6: Again encoutered problems setting up a Meta redirect
7: Hyperlinked from my index page to my login page like this: mysite.com/login.php (is this neccesary or should I just link to "mysite.com/login")
8: Uploaded pages to folder public_html/member (where keyfile is placed)

Basically it... I tend to think the mistake is that I hyperlinked the wrong way or that I screwed up the extensions in some way. Or maybe the script is placed wrong or maybe the fact that I placed the protected pages in a different folder than "public_html" called "public_html/member"

I hope someone can guide me step by step or just point out any potential error(s) I have made.

Thanks

Morten Fabrin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 01-16-2007, 06:59 PM
Collectors-info's Avatar
General
 
Join Date: Feb 2006
Location: London (UK)
Posts: 5,703
Default Re: PHP problem

Hi, it’s a bit hard to say without knowing which program it is & for someone to see the script you are working on or the url of the page.
You will need to pop your ID or website in your signature.
(User CP top of page)
__________________
Regards Chris,
Sites are view in FF & IE, with res @ 1024 x 768 on 19” screens.


How to ask for help on the forum. - VH prices. - BV Tutorials. - Using PIXresizer - Image/Photo Tips -
Collectables, Collecting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 01-16-2007, 07:50 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

Website: www.scandiaband.com

PHP Login Form Topcode:

<?php $WebKey='DOQyHLPo0g1ffsdc'; ?><?php $FormView=1; ?><?php $Sentry_ID=904; ?><?php include('Sentry_keyfile.php'); ?><!-- Sentry PHP Login Script v.2.0.4 - Sentrylogin.com -->

PHP Page Protection Topcode:

<?php $WebKey='DOQyHLPo0g1ffsdc'; ?><?php $MembersOnly=true; ?><?php $Sentry_ID=904; ?><?php include('Sentry_keyfile.php'); ?><!-- Sentry PHP Page Protection v.2.0.3 - Sentrylogin.com -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 01-16-2007, 09:07 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP problem

Don't know about your script, because it uses a file and not a database check. If you wish have a look at http://www.dbtechnosystems.com/examples.php
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 01-17-2007, 07:43 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

Is it necessary to put your protected pages and files inside the CGI folder?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 01-17-2007, 07:55 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP problem

No. Protected pages have a piece of code at the beggining of the page code, which checks if the user is logged in or not. If he is logged in, he can view the page, otherwise access id denied and the visitor gets redirected to the loggin (or registration) page
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 01-17-2007, 08:03 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

Good...

Could you also please clarify this: In Bluevoda when you select the "php extension" in "page properties"? Is that it? Is the page automatically a php file/page at this point ready for password protection? Or will it first be a php when uploaded to server?

And thanks for your patience, but i´m very new at this...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 01-17-2007, 08:06 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP problem

If you select the php extension, the page will be published as php. This doesn't mean that there is php code in it. There will be no php code until you place some in it. The php extension though is necessary for the server to know that it has to look for php commands in the page code. To protect your pages you need to embedd the php protection code at the start of the page.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 01-17-2007, 08:09 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

And when linking to the protected pages, will I have to manually write php, for instance like this: "www.scandiaband.com/login.php"?
And let´s say the "login.php" is located in folder named "member" will i have to link like this: "www.scandiaband.com/member/login(php or not)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 01-17-2007, 08:13 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

And thank you for the quick replies....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 01-17-2007, 09:29 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

And when linking to the protected pages, will I have to manually write php, for instance like this: "www.scandiaband.com/login.php"?
And let´s say the "login.php" is located in folder named "member" will i have to link like this: "www.scandiaband.com/member/login(php or not)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 01-17-2007, 10:01 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP problem

when you link to a php page, ofcourse you need to link like www.scandiaband.com/login.php

Then again, if the page is in a folder, called "member", then yes, the link should be www.scandiaband.com/member/login.php
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 01-18-2007, 08:09 PM
Corporal
 
Join Date: Jan 2007
Posts: 13
Default Re: PHP problem

Thank you very much

Very useful....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 01-30-2007, 06:05 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 264
Default Re: PHP + HTML question

Hi Folks,

Using BV is great.

My question is this?

When we publish a page (i.e. application.bvp) am I correct in saying that depending on the setup on the page it will produce a application.php file or a application.html file.

That being the case where would those files be stored and are they accesible?

Your help here would be most appreciated

Regards
ROb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 01-30-2007, 06:46 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP question

The .bvp file, when published, is converted to html code (exception made for eventuall external (php , javascript etc) code embedded in the page.

The files are published as html or php depending on the page settings, in your site (in most cases, in the public_html folder)

The files are accessible only through FTP directly from your site, not available on your computer.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 01-30-2007, 06:54 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 264
Question Re: PHP question

Hi NavalDesign,

Thanks very much for the rapid reply.

As they are created in your explanation and are accesible through FTP, can they be copied or transfered to my computer in the ".html" / ".php" format?

Bearing this also in mind when would one create .php files rather than .html and how do they differ specifically to one another. I ask this question so as to know which is the better way to develop pages going forward.

Regards
ROb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 01-30-2007, 07:02 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP question

Yes, you can transfer the html or php files back to your computer. But why would you do that ?

PHP is only for php pages. If you have some php scripting in your pages, then you need to publish them as php. Otherwise html is ok
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old 01-30-2007, 12:03 PM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 264
Default Re: PHP question

Hi Navaldesign,

There is no specific reason other than curiosity. I dable with other sites and programmes and would merely like to know.

If this is possible please tell me how?

The other thing I am trying to find out - Is there a method I can download BV to disc (the program) so that I have a bootable copy?

Is there a way of saving the whole webdesign in its whole to disc as backup?

If I start desiging another site will it affect anything I have currently done?

So many questions.

Regards
ROb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old 01-30-2007, 12:20 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: PHP question

You can download the html files directly from the server using FTP.
No bootable copy is possible. Befor ANY programm can run under windows, it needs to be installed (and, by doing so, declared to the OS (windows in this cae)

You can save all of your website work on a memory stick or burn a CD or save it another disk (if you have more than one) just as you would do for any other file. MAke sure to also save the images.
A good tip is to have a "myimages" folder inside your BV folder, and save all the images there, just in case you need to restore from your backup.

No, creating a new website will not affect anything. Create a new folder, inside your BV folder, called i.e. "site2" and save all the files of the new site in there, so there will be no conflict with eventually same name files of the first site.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.us