Jump to content

Running PHP Files


Recommended Posts

Hi Im new here and im a complete noob at php, Ive got some experience on C++,

I am trying to install php and ive used XAMPP to do it,XAMPP tells me that it was installed successfully but when i run my .php files all i see is a bunch of codes,.

1) can i run .php files anywhere on my desktop or do you have to place them in the htdocs folder.??

2)can i have more than one web folders in my htdocs folder??.

thnx.

Link to comment
Share on other sites

You cannot run your php files, like you can with html files. You have to run your php scripts through the server (XAMPP). You must place them in the htdocs folder. Then ensure XAMPP is running and go to http://localhost/script.php

 

change script.php to name of the script you want to run.

 

And yes you can place as many folders in side the htdocs folder.

Link to comment
Share on other sites

Hi guys,

I've had the same problem as the starter of this thread and I needed to ask something I'm working on a simple three input form with for now until I get to know it better, the php for sending the data as an email in a seperate file...now do I put the whole site I'm working on in the htdocs folder or just get the form to point to the php file in the folder?

 

I hope I explained myself well enough and will be grateful for any help or advice I'm not too daunted by the language itself but the configuring is starting to turn me grey!

 

Mytutorisfat

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.