5, December 2008

Turning my new site into a php project - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Turning my new site into a php project
« previous next »
Pages: [1] Print

Author Topic: Turning my new site into a php project  (Read 766 times)
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« on: Oct 07, 2007, 12:39:31 AM »

Hi
I am setting up a new site for beginner guitarists.

I have it written in html and this is fine, but I want to intergrate user management into the site with member access areas, login, registration etc.

From my experience with php, I am thinking that the best start for this project is to set up an index.php page that calls the necessary funtions such as, header, content, login/register etc.

Can anyone point me in the right direction for getting started?

My site can be found at:
http://burnmybanjo.com/ Visit through proxy
« Last Edit: Oct 07, 2007, 12:41:44 AM by hugeknot »
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #1 on: Oct 07, 2007, 01:46:55 AM »

Hi,

You should check this project : http://phpuserclass.com/ Visit through proxy
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 07, 2007, 10:00:33 AM »



Last blog : Just a better Internet portal provided by Google
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #3 on: Oct 07, 2007, 12:30:05 PM »

Hey thanks for you help guys!
The problem I am having is using the scripts with my html pages.
I am not completely sure how to convert them??
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 07, 2007, 12:46:21 PM »

Hey thanks for you help guys!
The problem I am having is using the scripts with my html pages.
I am not completely sure how to convert them??

you need to use files with the extension .php, try the example files first


Last blog : Just a better Internet portal provided by Google
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #5 on: Oct 07, 2007, 01:04:44 PM »

Quote
or this class:

Thanks Olaf
I have looked at the script and it looks exactly what I need. Couldn't find any set up instructions anywhere... can you give me a link?

Quote
you need to use files with the extension .php, try the example files first

Sorry for being dim, do you mean that I simply rename my html files with a php extention? And then put php code snippets in among the html?
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #6 on: Oct 07, 2007, 01:14:07 PM »

yes, when you rename html files to .php they still work exactly like they did before, but you can now put php code into them.


Last blog : Are You Stumbling Yet?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Oct 07, 2007, 01:31:03 PM »

there is a manual file included, maybe its easier to start with the example files and then add your own html code to those files. rename only the files where you need to add php code.


Last blog : Just a better Internet portal provided by Google
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #8 on: Oct 07, 2007, 01:46:33 PM »

Yeah thanks, I found the manual file, I set up database and changed config environment and then created the classes and access_user folder as instructed.

Still can't get the example to work.  I think I have a problem with either hierachy or paths.

Hierachy: I placed the 'classes' folder in public_html (above) my test folder.

Paths: I really dont know what I am doing, but here is the extract from my db_config file:
Code:
// use this pathes and/or define the pathes for the "standard" pages
define("CLASS_PATH", dirname($_SERVER['PHP_SELF'])."/home/musicoll/public_html/test2"); // the location where the class is executed
$sec_path = "/home/musicoll/public_html/classes/access_user/"; // a second location where the scripts should be
define("APPLICATION_PATH", $sec_path);

Here is the example page:
http://www.musicollaborate.com/test2/home/musicoll/public_html/test2login.php Visit through proxy
« Last Edit: Oct 07, 2007, 01:57:03 PM by hugeknot »
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Oct 07, 2007, 01:56:10 PM »

I think you need to understand the directory structure first, this makes no sense:
dirname($_SERVER['PHP_SELF'])."/home/musicoll/public_html/test2

create a file with the function phpinfo() and access this file to learn.Wink


Last blog : Just a better Internet portal provided by Google
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #10 on: Oct 07, 2007, 01:59:33 PM »

What?

Sorry!
I will persevere. What exactly do I put in this file? Just
Quote
phpinfo()
and run this?
« Last Edit: Oct 07, 2007, 02:10:42 PM by hugeknot »
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #11 on: Oct 07, 2007, 02:34:34 PM »

Just out of interest... how much would you charge to set this up for me?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Oct 07, 2007, 02:37:59 PM »

PHP has the best manual I ever saw, check:
www.php.net/phpinfo Visit through proxy

Sorry I'm too busy to help you (10 projects in queue)

maybe someone else here?


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #13 on: Oct 07, 2007, 11:05:27 PM »

hugeknot, you should start from here: http://php.net/tut.php Visit through proxy

Php is a scripting language, and that means that you will have to know a little about programming if you want to do this.

Otherwise, you can use a CMS software like Drupal or Wordpress in order to get the job done.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #14 on: Oct 07, 2007, 11:29:52 PM »

Thanks for the link Nikolas... just what I needed.

Programming is a little over my head although I have had some success modifying php scripts.  I was completely lost in the infomation I had so far.

I will try that intro to php and see if I can develop my knowledge... I may be coming back with questions.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #15 on: Oct 08, 2007, 01:40:36 PM »

Sure. We are always open to people who want to learn Smiley

Actually I've learned php over the internet too, but I was already knew programming.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #16 on: Oct 08, 2007, 02:09:48 PM »

I followed your advice for a Drupal system and have now installed 'Dragonfly' on my site.
Still lots of work, but you are right, it is handy having all that php written automatically for me.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7192
Tags : Newbie php user user management php site Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Turning my new site into a php project
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 05, 2008, 01:52:06 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.995
Total Topics: 7.685
Total Members: 4.467
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: jschless81

30 Guests, 4 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.