LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2010, 06:47 AM   #1
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Rep: Reputation: 15
Cool "where php code is to be written in linux "?


Hello i am using ubuntu 9.10 .AS in window for html code we normally write it in notepad and execute it in browers but now i am using ubuntu . i wanna to create my website with php ,please tell where the php code is written in ubuntu , and how to execute it means how i can check output of my written php code ??///
Thanks
 
Old 03-15-2010, 07:25 AM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Write it wherever you want. Choose your favourite text editor. Joe, kate, emacs, vi, nedit, gedit, jedit... there are plenty to choose from! Hell, you can even just use
Code:
cat > myfile.php
if you really want!

And to run it - either set up apache (beyond the scope of what I have time to reply to here!) or upload to your web server.
 
Old 03-15-2010, 07:53 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Take a look at http://bluefish.openoffice.nl/ or check out http://www.eclipse.org/ for a full blown IDE
 
Old 03-16-2010, 01:42 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by devnull10 View Post
Write it wherever you want.
I doubt standards like the FSSTND / LSB / FHS don't mention /var/www and ~/public_html as defaults.
 
Old 03-16-2010, 02:39 AM   #5
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
By wherever I meant "in whatever text editor you want" which was in response to the comment "we normally write it in notepad ".
I always write my files in a separate place in my home directory and then copy them over when I'm ready - I don't like editing the master files on-line!
 
Old 03-16-2010, 09:51 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,636
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
It works like this ...

(1) There are lots of "programmer's editors" out there which have nice features like syntax-checking, syntax highlighting, and so on. Pick one that you like.

(2) It's certainly possible to run a PHP script from the command line, but usually PHP is part of a web browser. However, note that there are many web-browsers that are designed to be run (by developers...) right from your own session, without requiring an Apache install for example.

I suggest you surf to some PHP-oriented pages and have a look around. You'll be coding with the best of 'em in no time ...
 
Old 03-16-2010, 10:22 PM   #7
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
You have to install Apache web server, php5 and (nornally, if you want) MySQL and phpmyadmin.

They are the tools that you would use on Windows, but they are actually Linux software with a Windows version.

Your www directory is normally in /var/www but LSB ask for /srv/www, but onyl few distro apply that rule.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java code to implement "wget" to save a web page in linux Kakarot_Rathish Programming 5 03-08-2010 02:02 AM
Facing error while running "g++ 3.4.4" code in "g++ 4.3.3" Suranjit Ubuntu 2 10-08-2009 11:22 PM
PHP code for "Post comments" for your website? frenchn00b Programming 3 04-17-2009 08:39 AM
Incorrect PHP code is working, shoud I "fix" it? rblampain Programming 6 04-28-2006 10:33 PM
A source close to SCO: "linux code has been copied in to system V" qanopus General 4 06-12-2003 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration