Website Help

Talk about just about anything else that is non-gaming here, but keep it clean
User avatar
Michi
Next-Gen
Posts: 4815
Joined: Mon Dec 27, 2010 9:47 pm
Location: Florida

Website Help

Post by Michi »

Okay. Let me just start off by saying that I did not create this website. I am, however, being asked to see if I can fix it because the people who created it are busy right now and being a big pain. So the people I work for asked me to take a look at it to see what I could do.

Here's the problem though. I'm not familiar with .php. Now, I don't know if the PHP file is the problem or not, but I'm not sure what the issue is and thought I'd ask here to see if anyone who is perhaps more familiar with such things to perhaps tell me what's going on.

Now I am familiar with html, which the original creators of the site said was all the knowledge that was needed to fix this, before politely brushing everyone off with an "We're busy right now."

I've looked over the code, but I can't figure out what's wrong. I'm hoping I'm missing something obscenely small and stupid and I just need a fresh set of eyes to help me. Google has failed me, so I have come here.

Here's what's happening. The people I work for have a fundraising run every year that's spread over several days. The part of the website I'm working on has a map that links to six different .php page that describe what happens on each day of the run. But when I click on those links, the pages aren't showing up.

Image
http://keytrainingcenter.org/info/day_1.php

It looks like a simple linking error. But after looking at the the original pages, I'm not sure what's going on. Perhaps someone can help me.

This is the code for the map in question, as seen here.

Image

As you can see, every little dot is linked to a page from 'day_1' - 'day_6'. I figure the pages have perhaps been moved somehow, but when I check out the organization of the files I see this:

Image

So the files are there, and seemingly in the right place. They haven't been edited since 2010 and have only recently stopped showing up. So what's wrong? Have I missed something stupidly simple? Should I just replace "href="day_x.php"" with the full URL?

Any suggestions would me most appreciated.
User avatar
Stark
Next-Gen
Posts: 9585
Joined: Wed Jan 05, 2011 8:43 pm
Location: Wylie, TX

Re: Website Help

Post by Stark »

Is it possible the security permissions on the files have changed?
Let strength be granted, so the world might be mended...so the world might be mended.
User avatar
brandman
32-bit
Posts: 235
Joined: Tue Jun 19, 2012 7:22 pm
Location: Flerda USA

Re: Website Help

Post by brandman »

This may sound stupid, but can you just redo the pages from .php into .html?
Image Image Image VVV
3DS Friend Code: 4382 - 2058 - 7982
User avatar
Michi
Next-Gen
Posts: 4815
Joined: Mon Dec 27, 2010 9:47 pm
Location: Florida

Re: Website Help

Post by Michi »

Stark wrote:Is it possible the security permissions on the files have changed?
They all say this:

Image

brandman wrote:This may sound stupid, but can you just redo the pages from .php into .html?
I can make a copy and try :?
User avatar
KDub
Next-Gen
Posts: 1646
Joined: Fri Aug 06, 2010 11:47 pm
Location: St. Louis, MO
Contact:

Re: Website Help

Post by KDub »

Set the files to be completely open and see if that helps. I'd also suggest putting the full url after the href.

Sometimes it is just stupid stuff like that.
User avatar
o.pwuaioc
Next-Gen
Posts: 8484
Joined: Tue Mar 29, 2011 7:59 pm
Location: I miss NYC.

Re: Website Help

Post by o.pwuaioc »

Aren't the files under /info/rftm, not /info? This is showing up just fine for me:

http://keytrainingcenter.org/info/rftm/day-1
Last edited by o.pwuaioc on Thu Jun 21, 2012 4:09 pm, edited 1 time in total.
User avatar
KDub
Next-Gen
Posts: 1646
Joined: Fri Aug 06, 2010 11:47 pm
Location: St. Louis, MO
Contact:

Re: Website Help

Post by KDub »

He's right, change the code to the full url like that.
User avatar
Michi
Next-Gen
Posts: 4815
Joined: Mon Dec 27, 2010 9:47 pm
Location: Florida

Re: Website Help

Post by Michi »

o.pwuaioc wrote:Aren't the he files under /info/rftm, not /info? This is showing up just fine for me:

http://keytrainingcenter.org/info/rftm/day-1
That's just it. The rftm folder is not in the info folder:

Image

The whole thing is starting to confuse me.

Though now that you've found the correct links (Hurray! Thank you!) Maybe it'll let me just direct link the pages now. Though the server seems to be stuck at the moment. It's not registering any changes I've made yet :?
User avatar
Michi
Next-Gen
Posts: 4815
Joined: Mon Dec 27, 2010 9:47 pm
Location: Florida

Re: Website Help

Post by Michi »

Aaaaaaaaaaand my changes still aren't showing up...............*grumble grumble grumble*
User avatar
Cronozilla
Next-Gen
Posts: 2609
Joined: Wed Mar 14, 2012 8:15 pm
Location: Oregon, USA.

Re: Website Help

Post by Cronozilla »

I clicked on the link to the site and ... everything worked fine for me. So, it might be just, your browser doesn't like how the paths and permissions are set up.

The only things I explicitly noticed is, #1 when you put the path of the file, you want to denote the directory ... you don't want to use the full url, because then you have to change it if you change the domain or move the directory, which is not fun. So you want to tell it to execute in the current directory and you do this with "./"

So your A tag HREF address would be something like ... href="./file.php" ... It's basically saying "hey, execute this file in this directory" as opposed to trying to open the file up for other purposes or trying to access it as a directory.

The second thing is, the permissions on the PHP files should only be execute for all users other than owner and owner should be read, write, and execute (Users besides Owner should not have read or write permissions). You don't actually want people to be able to read the PHP files themselves (this is a security concern, as the PHP files will contain things like database passwords and addresses), you just want the files to execute when called.

Also, the error is saying it can't find the directory day1.php, that's the /name. (I think, anyway)

It might help, also, to head on over to the W3C schools pages and read up a little bit on PHP, it shouldn't take too long. They also have validator pages. It's so you can feed it various URLs and files and it'll tell you if the HTML, PHP, CSS, etc (per validator) is compliant code or not. It's extremely helpful.
Post Reply