Jump to content

loading php files in local host


Roar

Recommended Posts

Hi, I'm a php newbie. Due to my work I've needed to set up Moodle on my pc which is all fair and well as its a pretty cool thing to learn.

 

Anyway, my problem is where do I keep and how do I display my homemade php files?

 

I've tried keeping them in the same folder as the moodle php files but when I try to open them in a browser it doesnt like it and repeatedly shows the run/save gui.

 

Ive changed the internet file type options to open with ie as opposed to DW which was the previous setting.

Link to comment
Share on other sites

ok so moodle is a php cms ? never used it before but im guessing its like phpnuke and the like,

 

what webserver do you have? i would definetely reccomend apache 2x/2.2x

you can use xammp and similar projects for ease of installation.

 

if you can run php at all from a browser im stumped as to why a simple php script on its own would not be recognised....

 

cheers,

Link to comment
Share on other sites

Thansk for the swift reply.

 

moodle is a free software e-learning programme, a cms as you say.

 

My http//localhost default is my moodle 'homepage' default. If I type the http//localhost/helloworld.php in I get the page I required (now you know my knowledge of php lol)

 

However surely I should be able to click/ right -click the file in its folder location and open/open with in the ie browser?

 

Maybe im missing something obvious here.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.