473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Php-MySQL-Apache with XAMPP

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
10 1743
code green
1,726 Expert 1GB
Write them in htdocs and run them from localhost
Feb 11 '08 #2
ronverdonk
4,258 Expert 4TB
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
can any one give a code for spilitting a numerical value randomly from a input file.....
Feb 11 '08 #4
ronverdonk
4,258 Expert 4TB
What (code) have you developed so far yourself?

Ronald
Feb 11 '08 #5
yasmine
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
220 100+
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
yasmine
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
1,726 Expert 1GB
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
220 100+
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
220 100+
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

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

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
8
by: Marcel | last post by:
I have a problem with a PHP page that seems to get executed twice. I am running PHP5 ISAPI on 2003 server. The script is a PHP page with a form. When the form is submitted one record have to...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
0
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ...
0
by: Patriot89 | last post by:
I have a quick question in reference to php file extenstions... I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default (This is my nav.php file) ...
5
Chrisjc
by: Chrisjc | last post by:
Good afternoon, I am seeking some php configuration help. Here is the run down I am running Windows server 2003 and IIS V6.0 I have never had issues before until now. I have Symantec Antivirus 11.0...
1
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.