supercars01 Posted September 10, 2007 Share Posted September 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 10, 2007 Share Posted September 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 10, 2007 Share Posted September 10, 2007 You can also run them through the command line, but that is likely not what you wanted seeing as you installed XAMPP. $ php script.php Quote Link to comment Share on other sites More sharing options...
mytutorisfat Posted September 17, 2007 Share Posted September 17, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.