home
Guest
Signup/Login
to unlock all features
[quote uid=eaweb pid=1876] From here on I will be posting code examples. Let's look at our second code example. [b]Example 2[/b] We will be doing a static vs dynamic web page app. Our app will be displaying today's date on the screen when we run it. Now let's look at the code: [i] code updated on 22-03-17 (reason: syntax error) [/i] Type the above code and save the same way you did earlier. You can choose any filename you like or just name it [i]today.php[/i] then goto your browser and enter [i]http://localhost:8080/today.php[/i] (replace today.php with whatever name you saved your file with). So the about program should output The first line on the output uses static design while the second line uses dynamic design. The major difference between these outputs is that after 24hrs if you run today.php again the second line output will change from Thursday 09-march... To the current date of running. The beauty of dynamic design is that values can change on your image without you updating your code manually. [/quote]