ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all,
I am a newbie to web serving. Have gotten apache installed, and working. My website is up (currently within my LAN specifically), but i am trying to work with PHP so i can allow visitors to interact with the site, and i can record some data on my server.
I am have much trouble getting php working. I have tried simply to put a php script in my html as follows:
<?php
echo "helllo world";
?>
Nothing.
This is embeded in my index.html file which is located in /var/www/html
I have tried to installed php on my machine, and I thought i did i right. ANyone know how to check the php installation, and incorrporate it with apache??
I added the line:
Loadmodule php4_module modules/libphp4.so
ohhh, when i changed the index.html file to index.php, the little php script worked, and the site remained the same. THis is correct?????? Now lets say i want to use forms, how would i included an external php script so i can capture use input in the index.html file???
First Name:<input type="text" size="15" maxlength="50" name="firstname" value="Enter your first name here" /><br /> Last Name:<input type="text" size="15" maxlength="50" name="lastname" value="Enter your last name here" /><br /><br /> <input type="submit" name="submit" /> <input type="reset" name="submit" /> </form>
THANKS!, that helps very much so, one last issue. HOw can I determine where on my server (what directory/file) to store this data in, and can i simply append more data to the end???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.