Author Topic: PHP Assistance  (Read 929 times)

EKLIPz

  • Graphics Moderators
  • Newbie
  • *
  • Posts: 33
    • View Profile
PHP Assistance
« on: March 06, 2009, 10:45:52 AM »
I finally got my new site up, that supports PHP, and I am trying to learn some. I converted all of the previously HTML pages to php and put in alot of "includes".

-------------------------------------------------------------

I have a few problems and questions.

1) When you go to the main page (http://ekreationz.co.nr) and navigate to any other page, the URL does not change with it. Which means, you cannot click refresh or back to navigate, which sucks. Is there a way to fix this? I know with alot of PHP sites, the url usually goes something like this:
Main Pages - http://site.com/index.php
Other Pages - http://site.com/index.php?p=other

I just have no idea how to do that.

-------------------------------------------------------------

2) I would like to know if it is possible to have something like:
On images page, it displays a name, and a "view" link for every image in a dedicated folder. So that, when I add new images, they are added to the list.

-------------------------------------------------------------

3) Also, how can I add a user database to the site? All I want is the ability to have an upload from the page, but only for me, and maybe a few others, without them getting FTP info, or admin access. And the ability to make some pages only visible to those people would be really nice.

-------------------------------------------------------------

**I will post if I think of anything else. Please, someone that is good at PHP/MySQL help me out with this.

- EKLIPz
« Last Edit: March 06, 2009, 10:46:52 AM by EKLIPz »
[div align=\'center\'][img]http://ekreationz.comuf.com/img/mygfx/eklipzsig.gif\" border=\"0\" class=\"linked-sig-image\" /]
Hai Thair!!![/div]
I am the Secret Mod no one knows about. Who am i?
O_O Who is hiding in my sig? - EKLIPz
idk but its not me
so I got two people in my sig then? >.> - EKLIPz
~Actually there are three including me.
Holy crap...You guys are like ninjas - EKLIPz

riffruff

  • Sr. Members
  • Jr. Member
  • **
  • Posts: 94
    • View Profile
PHP Assistance
« Reply #1 on: March 06, 2009, 01:05:37 PM »
The reason the back and stuff doesn't work is because of the domain -- you're using a domain forwarder (I believe thats the term?) and the back button and stuff never works with them.

With your second, it all depends on how you want to do this.  If you want to use MySQL, it will be faster and use less server resouces, however you do one of these things in order for that to work..
1. Have a scipt you run that updates the image files (must be run manually)
2. Create a way to upload these via a PHP script and have it update the database.

On your third, you're getting into big stuff now -- read tutorials on creating a PHP login script, those will give you what you need to know.

EKLIPz

  • Graphics Moderators
  • Newbie
  • *
  • Posts: 33
    • View Profile
PHP Assistance
« Reply #2 on: March 06, 2009, 01:15:03 PM »
1) Aaah, that is gay. >_< I guess I'll get rid of the domain redirect shit.


2) hmmm, seems difficult.


3) I will look into it.
[div align=\'center\'][img]http://ekreationz.comuf.com/img/mygfx/eklipzsig.gif\" border=\"0\" class=\"linked-sig-image\" /]
Hai Thair!!![/div]
I am the Secret Mod no one knows about. Who am i?
O_O Who is hiding in my sig? - EKLIPz
idk but its not me
so I got two people in my sig then? >.> - EKLIPz
~Actually there are three including me.
Holy crap...You guys are like ninjas - EKLIPz

riffruff

  • Sr. Members
  • Jr. Member
  • **
  • Posts: 94
    • View Profile
PHP Assistance
« Reply #3 on: March 06, 2009, 02:38:14 PM »
The most convient for you and whoever uses the site would be option 2, however, it would be the most difficult to make.  The easiest would be to have it read and generate a list of files in the folder on load, which would be the easiest for you to make, however, would use the most system resources and take the longest to load the page.