Series of questions [all PHP related but different topics]

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Series of questions [all PHP related but different topics]

Post by jayshields »

Ok, I have a few questions and was going to start a new thread for each one, but I'd thought I'd give this a shot.

Here goes:

1. I installed Apache and PHP5 on my computer yesterday (was harder than I first thought...), but anyway, it's working fine, the thing is, if I go to http://localhost/whatever/ and there's and index.php in that folder, it wont take me to it (like on any hosting I've used previously), I have to click on the file from the file view page thing. Do I need to configure Apache to auto redirect to index.php files aswell as index.html files? How?

2. I found out quickly that http://127.0.0.1 works the same as http://localhost. So, I figured I would be able to access my home Apache set up elsewhere with http://myip. I have seen some other people do this, but to stop the hazard of giving their IP away, it's like http://blah.no-ip.com or something. I searched no-ip on Google and went on the official page, and it didn't make a lot of sense to me. Anyway, I would make a sub-domain to my IP on my hosting cPanel, but it's down at the mo, and I'm still curious :)

3. I've finished my File Management App and it's all working pretty nicely (as far as I know...), but the interface sucks. I've just been throwing code around getting all the functions to work in it and left the interface. Now I'm stuck for ideas. I like to think I'm pretty handy in Photoshop, but can't really think of a simplistic, flowing, easy on the eye, uncluttered design, I say design, I don't even want a design, I just want a neat way to set the stuff out with nice colours :) I can't really give you a live example of the app, because you could delete all my stuff (lol...), so if you have enough time you can download it and try it or whatever, this is the link: http://www.mrshammys.co.uk/jays-stuff/PHPJayFile.rar - don't mind the tacky name. Also, if you have any comments on the code or anything just post away, constructive critiscism is always welcome.

So, that's it all I think, if you can answer my Apache questions or give me some ideas for an interface on my app or just comments on the script I would be grateful.

Cheers guys :)

[edit]Oh yeah, about the app, edit the config file to the installation URL and your user and pass details. Also, you might need to edit php.ini if you want to upload large files.[/edit]
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Re: Series of questions [all PHP related but different topic

Post by sweatje »

jayshields wrote: 1. I installed Apache and PHP5 on my computer yesterday (was harder than I first thought...), but anyway, it's working fine, the thing is, if I go to http://localhost/whatever/ and there's and index.php in that folder, it wont take me to it (like on any hosting I've used previously), I have to click on the file from the file view page thing. Do I need to configure Apache to auto redirect to index.php files aswell as index.html files? How?
You should have a DirectoryIndex directive somewhere in your apache configuration. Make sure index.php is listed there.

Code: Select all

<IfModule mod_dir.c>
    DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Ok, sorted. Thanks alot.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

jayshields wrote:I searched no-ip on Google and went on the official page, and it didn't make a lot of sense to me.
You will need one of the dyndns clients, like these
Post Reply