Linked Questions

-1 votes
1 answer
270 views

I am trying to have XAMPP's Apache execute <?php ... ? that is embedded in a HTML document: <html> <head><title>abc</title></head> <body> <?php echo("bla")...
René Nyffenegger's user avatar
0 votes
0 answers
133 views

So in working with my website, I am trying to use .php files for my header and my footer to make the code infinitely easier to work with, but I am running into a wall. Here is my code on my index.html ...
Adam McGurk's user avatar
0 votes
2 answers
94 views

In development, should we convert the .html or .htm file extension to .PHP? To implement the PHP session, and not to redirect if the session is destroyed? I mean, in C# we use RedirectToPagePermanent ...
Levesque Xylia's user avatar
-1 votes
1 answer
72 views

I have created a simple web server using LAMP on Ubuntu 18.04, with PHP7 installed. The web server is only accessible by its local IP address, and can host web pages with HTML5 and CSS3, but I'm ...
Edward Drake's user avatar
59 votes
19 answers
154k views

I need to run all of my .html files as .php files and I don't have time to change all of the links before our presentation tomorrow. Is there any way to "hack" this with my Apache server?
Michael Novello's user avatar
-3 votes
1 answer
4k views

[registervistor.html] <p> <b>Userid:</b> <input type="text" name="userid" size="20" maxlength="80" value="" /><br> </p> <p> <b>Password:</...
SKYF's user avatar
  • 11
1 vote
3 answers
3k views

Background I am working on a website, which runs on an Apache server on Windows (at least at the moment). My website directories consist of HTML and PHP files. The idea is to have accessible webpages ...
Henri Korpela's user avatar
0 votes
2 answers
1k views

Can anyone tell here, what is the command to run html with php script. Normally in my linux terminal, if i want to run html, my command is firefox <filename>.html It works fine and display ...
daffodil's user avatar
  • 197
0 votes
4 answers
316 views

I have a .php file which renders a webpage and works as intended. It contains the following chunk: <?php } else { openConnection(); $userid = $_SESSION["userid"]; ...
jaynp's user avatar
  • 3,335
0 votes
2 answers
2k views

Edited: This is not a duplicate - other questions suggested are not the same situation. In this case, MOST html files with PHP work, there's just one file that does not work. Also, all of the answers ...
mcheah's user avatar
  • 1,326
2 votes
1 answer
2k views

As we have upgrade OS from centos 6.9 to Centos 7 on server. We have installed "Apache/2.4.6" and "PHP 5.6.36 (fpm-fcgi)" on this server. But we are facing problem to execute "PHP Code" in ".html" ...
Raju Seervi's user avatar
1 vote
1 answer
983 views

I am trying to update some placeholder text (not the placeholder attribute) with values that come from a form-input, that are all on the same HTML page. So I have one index.html file and one test.php ...
bleah1's user avatar
  • 481
0 votes
1 answer
135 views

I have the following code in index.html: <div class="button"> <a href="ridiculously long string" title="title">Title</a> </div> I'd like to save "ridiculously long string" ...
John HaTrick's user avatar
0 votes
0 answers
184 views

In firefox I repeatedly tried to get PHP working, but no luck My code is as follows: <!DOCTYPE html> <html> <body> <h1>My first PHP page</h1> ...
Velcro's user avatar
  • 1
-2 votes
1 answer
47 views

Am using following code to create chat system and store data to txt file. it does what i need but there is a small error while submitting data, when i type text and hit enter AJAX loads data from file ...
sanoj lawrence's user avatar

15 30 50 per page