Solved

Apache-PHP-Mysql configuration

Posted on 2011-02-23
5
381 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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The goal of the tutorial is to teach the user how to how to record live broadcast.

912 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

21 Experts available now in Live!

Get 1:1 Help Now