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
https://forums.phpfreaks.com/topic/68731-running-php-files/
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
https://forums.phpfreaks.com/topic/68731-running-php-files/#findComment-345537
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
https://forums.phpfreaks.com/topic/68731-running-php-files/#findComment-350047
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.