Solved

Apache-PHP-Mysql configuration

Posted on 2011-02-23
5
382 Views
Last Modified: 2012-05-11
hi experts,

im working on a small project in flash (ActionScript2) and i need to call some php files from it. I have installed XAMPP 1.7.3. i dont wanna upload on the live site but, instead i want to work locally. Ive created a folder C://Xampp/htdocs/My_work. The flash project is in this folder  as well. now, what setings i have to make on Apache and or PHP configuration or .ini files in order to run php files in this folder?
Any help in this matter will be appreciated.

Regards
Raul
0
Comment
Question by:raulmonda
5 Comments
 
LVL 27

Assisted Solution

by:Lukasz Chmielewski
Lukasz Chmielewski earned 200 total points
ID: 34960060
You do not have to do anything. The files in that folder can be seen in the browsers window, for example: if you create C://Xampp/htdocs/My_work/index.php file, you can then enter the address http://localhost/My_work/index.php.
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 50 total points
ID: 34960087
Roads_Roads is correct (as usual), but I would like to gently suggest a slightly different approach.  

Get a hosting account.  Create a test bed.  Build your applications so that they work in the "real world" of the internet.  Why?  Because if you ever need specific help you will be able to come here to EE and post a link to the failing part of your application test bed.  You can easily get lots of experts to help you with things.  If the only place the application lives is on your laptop, and all you can tell us is "it doesn't work" and we cannot see the symptoms, we are much less likely to be able to offer concrete help.

That's just my $0.02.  Best of luck with your project, ~Ray
0
 
LVL 35

Accepted Solution

by:
torimar earned 250 total points
ID: 34960119
Is Apache running?
You should then see a XAMPP splash screen when browsing to http://localhost. If you see that screen, your installation should be "PHP-ready" which you could test by creating a phpinfo file:
<?php
phpinfo();
?>

Open in new window


If you do not see that screen, and instead receive an error message, your installation is not correctly configured. Please check here:
http://www.apachefriends.org/en/faq-xampp-windows.html
and here:
http://dalibor.dvorski.net/downloads/docs/InstallingConfiguringDevelopingWithXAMPP.pdf

ps:
You say you "created a C://Xampp/htdocs/My_work" folder.
This will only work if c:\xampp is actually your XAMPP installation folder. You should then be able to access files via:
http://localhost/My_work/filename.php
0
 

Author Closing Comment

by:raulmonda
ID: 34960184
Thanks to both of you.

Ray, I usually run my applications on my lap; when it works as i want i upload them on a live site. Only then , if i got problems i ask here (and of course post the links for a better view for those who may want to have a look).

Torimar, yes it works, so im ok, can start coding :)
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 34960481
:P
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now