Welcome Guest, Not a member yet? Register   Sign In
How do I test my Static Website on local Computer?
#1

[eluser]Volkof[/eluser]
Hi everyone,

I am currently creating a new website (aswe.com) and I am testing it on my local computer for practise purpose.

Thing is, I have installed and unpacked CodeIgniter. I created a "test.php" in Controllers Folder and "test_view.php" in Views folder. But I have no idea how do I view the test file in browser.
I tried "aswe.com/test" but it says website not found.

My codeigniter is in C:\Users\WK\Downloads

test.php
Code:
<?php

class Test extends CI_Controller {

public function index()
{
  $data=array();
  $data['modules'] = "Hello";
  $this->load->view('test_view', $data);
}
}

?>

test_view.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" c charset=utf-8" /&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;ASWE&lt;/title&gt;
&lt;body&gt;

Testing
&lt;?php
  echo $modules;
?&gt;
&lt;/body&gt;
&lt;/head&gt;
&lt;/html&gt;

Do advise. Thanks in advance
#2

[eluser]noideawhattotypehere[/eluser]
https://www.udemy.com/blog/xampp-tutorial/
#3

[eluser]Volkof[/eluser]
Another question, Does IIS conflict with WAMP?

Cuz I have IIS installed, and when I try to start WAMP services, one of them just won't start.
#4

[eluser]noideawhattotypehere[/eluser]
They should use diffrent ports, other than that there should be no problem.
#5

[eluser]Volkof[/eluser]
How do I set the ports?
#6

[eluser]noideawhattotypehere[/eluser]
https://www.google.com/search?hl=pl&q=wamp+change+port




Theme © iAndrew 2016 - Forum software by © MyBB