LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   about web page editing (https://www.linuxquestions.org/questions/linux-software-2/about-web-page-editing-285407/)

felnlily 02-02-2005 12:54 PM

about web page editing
 
after setting up an apache server, i would like to make a new web page n which the filename would be save in /var/www/html....

i wnat to know what to use as an editor and after making it i want to test if its executable...

what should i use and what are the steps in doing it?
pls help me

secesh 02-02-2005 01:06 PM

do you know html... i assume not. you'll want to use a graphical alternative to creating a site -- word/frontpage are from MS.

if it's just an html file, it needs not be executable.

if it's a script, you'll have to write it by hand using your favorite text editor, and add some directives to apache config... but i'm assuming this is not the case...

felnlily 02-02-2005 01:28 PM

follow-up on web page editing
 
i know about html and i forgot to add that im using fedora core3 os....

i wanted to use php but i dnt know how to......

and if i would use php where can i find its editor under fc3 os and also how would i be able to run it?

initialdrifteg6 02-02-2005 01:43 PM

to use php you NEED to install php on the machine hosting the website. This will act as a server end script so that the browser doesn't have to execute the php coding. this will also allow security for your website as the php scripting is server side executed and the user end will only see the resulting script. go get php and install it on your apache server. configure your httpd.conf or http.conf to execute the php server on apache server startup... wham! bam!

felnlily 02-02-2005 02:04 PM

followup
 
will html run on fc3?

and if i would use that in making a web page how would i do that?

pls help

and also how would i be able to link up with the apache server that i hve configured to the web page im making?

secesh 02-02-2005 02:09 PM

no. html will not run on fc3. it doesn't run anywhere. it is not executable.

but using apache, you can serve html pages to clients like firefox, IE, or even telnet.

initialdrifteg6 02-02-2005 02:09 PM

just copy the webpage that you are making into your directory... usually /var/www/

apache web server hosts websites... so essentially it will run the html files... php is where you have to add extra modules...

then you will have to use a text editor and just save it as *.html or you can use a program like blue fish, quanta or nvu.... just do a pdf search online for basic web design techniques or visit your local bookstore to fine out more ways..

secesh 02-02-2005 02:13 PM

^^ except that by default it'd be /var/www/htdocs or /var/www/html ... or otherwise similar location...

Tux_Phoenix 02-02-2005 02:16 PM

I think you are a little confused or are wording your question wrong. To do html this is all you need.
Code:

<html><body>Text here</body></html>
There is much more to it da but this will indeed make a webpage. After you have done this save it as a .html or a .htm file. (Oh yea just do it in your favorite txt editor)
Html does not need to be compiled because your browser compiles it automaticly when you veiw the page.
Make sure you save that file in the /var/www/ directory.
Then to access the page you made from the web you would go to http://<your-site-or-ip>/<your-file.html>

Now if you are wanting to do php as stated earlier you need php on your server. The deference is in php, your server would compile the webpage and then sent out the compiled page to the browser on the computer accessing your site.

You should really read up on it seeing as there is too much to learn about both html and php here. Google search on html coding or php coding.

secesh 02-02-2005 02:23 PM

*cough*
Code:

<html><head><title>none</title></head><body></body></html>
--not http

Tux_Phoenix 02-02-2005 02:27 PM

Oh sorry typo. Thanks I will fix it.

felnlily 02-02-2005 02:36 PM

about php
 
how would i be able to know if in fc3 theres an existing php editor already?

where would i check on it?

on what part would i look for it in case if there exist an editor for php?

felnlily 02-02-2005 02:45 PM

php
 
how would i be able to make a script in controlling the movement of the camera through a button on the webpage which would be interfaced in the pc through parallel port with stepper motor

the purpose of the webpage is for the client ot be able to control the caera movemnet and at the same time to see the video captured by the camera

cadkins 02-02-2005 03:20 PM

php is just text that is parsed by the web server, in your case Apache.

You can use anything you want to edit PHP (Kate, Quanta, whatever)

If you don't know how html and PHP work, then I think you are jumping the gun on writing a script. Might want to first learn html basics, CSS basics and then go into scripting such as JavaScript or PHP.

Gotta crawl before you can run.

Tux_Phoenix 02-02-2005 06:26 PM

Sorry dude but your questions are pretty advansed and not something that is easly covered here. I really hate to do this but google is your friend. As far as your php editor on fc3 just google php editor on fc3. Just that simple.


All times are GMT -5. The time now is 02:47 AM.