By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

Php-MySQL-Apache with XAMPP

P: 65
Hi friends,
when we are using XAMPP, where we should write php scripts and where we should run it?
Please tell me soon.......
Feb 11 '08 #1
Share this Question
Share on Google+
10 Replies


code green
Expert 100+
P: 1,726
Write them in htdocs and run them from localhost
Feb 11 '08 #2

ronverdonk
Expert 2.5K+
P: 4,258
Welcome yasmine!

I don't quite understand what you want, but I'll try.

XAMPP is an Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. I assume you have installed this package at your own PC.

When you want to run PHP scripts, you'll first have to develop them (write them) at your client in an editor of your choice. Then you 'upload' them or place them somewhere under the root of your server and run them via your browser, whereby the server url is http://localhost. So when you place your script TEST.PHP in a folder (under the web root) named TEST_FOLDER, you run your script by typing
Expand|Select|Wrap|Line Numbers
  1. http://localhost/test_folder/test.php
  2.  
Ronald
Feb 11 '08 #3

P: 2
can any one give a code for spilitting a numerical value randomly from a input file.....
Feb 11 '08 #4

ronverdonk
Expert 2.5K+
P: 4,258
What (code) have you developed so far yourself?

Ronald
Feb 11 '08 #5

P: 65
Welcome yasmine!

I don't quite understand what you want, but I'll try.

XAMPP is an Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. I assume you have installed this package at your own PC.

When you want to run PHP scripts, you'll first have to develop them (write them) at your client in an editor of your choice. Then you 'upload' them or place them somewhere under the root of your server and run them via your browser, whereby the server url is http://localhost. So when you place your script TEST.PHP in a folder (under the web root) named TEST_FOLDER, you run your script by typing
Expand|Select|Wrap|Line Numbers
  1. http://localhost/test_folder/test.php
  2.  
Ronald
Thank u Ronald.
But, Apache is not running in XAMPP control and mysql, fileZillaFTP, Mercury are running.
I don't know what to do?
Help me soon...
Feb 12 '08 #6

werks
100+
P: 220
Thank u Ronald.
But, Apache is not running in XAMPP control and mysql, fileZillaFTP, Mercury are running.
I don't know what to do?
Help me soon...
Try re-installing it..


Kenneth
Feb 12 '08 #7

P: 65
Try re-installing it..


Kenneth
yah! I did it so. But, now i don't where to write php script and where to create db.
I wrote a script in textpad and stored it in htdocs as a.php. when I run it as "http://localhost/a.php" it shows the script as it is with the php tags.
Plz... tell me what to do......???
Feb 12 '08 #8

code green
Expert 100+
P: 1,726
In the root folder of the XAMPP installation is xampp-control.exe.
Run this (just double click) to open the XAMPP Control Panel Application.
Here you can stop and start Apache, MySql FileZilla and Mercury.
Apache must be running, and probably MySql also
Feb 12 '08 #9

werks
100+
P: 220
can any one give a code for spilitting a numerical value randomly from a input file.....
Post your question in the forum not in Thread..


--
Kenneth
"Better Than Yesterday"
Feb 12 '08 #10

werks
100+
P: 220
yah! I did it so. But, now i don't where to write php script and where to create db.
I wrote a script in textpad and stored it in htdocs as a.php. when I run it as "http://localhost/a.php" it shows the script as it is with the php tags.
Plz... tell me what to do......???
Hi Yasmine. What do you mean by the word write? Hope im correct with this..you can write/create a PHP script using Dreamweaver and for the database like MySQL there is a built in database manipulator in XAMMP the [b]phpMyAdmin[] or you can use SQLYog..


--
Kenneth
"Better Than Yesterday"
Feb 12 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.