forum Posted July 6 Share Posted July 6 I’ll say right away that I’m not a fan of this language, but for analysis I want to find out why, when moving to another file, it says that the page was not found and the extensions in the HTML browser. , not PHP? It also sometimes happens that from the main page it goes to another page, but if you go back, it gives the error file not found, how can I not find it if I’ve already been there? Are the problems only with this language or is it a problem with the servers? Or am I doing something wrong, but the documentation doesn't help me. Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/ Share on other sites More sharing options...
dodgeitorelse3 Posted July 6 Share Posted July 6 Some code that you are using would be a big help to understand what is happening for you. Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629394 Share on other sites More sharing options...
forum Posted July 6 Author Share Posted July 6 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Game Website</title> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="wrapper"> <header class="container"> <span class="logo">logo</span> <nav> <ul> <li class="active"><a href="/">Home</a></li> <li><a href="about.php">About us</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">News</a></li> <li class="btn"><a href="contacts.php">Contacts</a></li> </ul> </nav> </header> <div class="hero container"> <div class="hero--info"> <h2>3D game Dev</h2> <h1>Work that we produce for our clients</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.</p> <button class="btn">Get more details</button> </div> <img src="img/joystick.svg" alt=""> </div> <div class="container trending"> <a href="#" class="see-all">SEE ALL</a> <h3>Currently Trending Games</h3> <div class="games"> <div class="block"> <img src="/img/game1.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game2.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game3.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> <div class="block"> <img src="/img/game4.png" alt=""> <span><img src="/img/fire.svg" alt=""> 40 Followers</span> </div> </div> </div> <div class="container big-text"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </div> <div class="container banner"> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> <img src="/img/banner.png" alt=""> </div> </div> <div class="features"> <div class="container"> <h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> <div class="info"> <div class="block"> <img src="/img/feature1.png" alt=""> <p>Mobile Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature2.png" alt=""> <p>PC Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature3.png" alt=""> <p>PS4 Game Development</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature4.png" alt=""> <p>AR/VR Solutions</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature5.png" alt=""> <p>AR/ VR design</p> <img src="/img/arrow.png" alt=""> </div> <div class="block"> <img src="/img/feature6.png" alt=""> <p>3D Modelings</p> <img src="/img/arrow.png" alt=""> </div> </div> </div> </div> <div class="wrapper"> <div class="container projects"> <h3>Our Recent Projects</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <div class="images"> <img src="/img/Project1.png" alt=""> <img src="/img/Project2.png" alt=""> <img src="/img/Project3.png" alt=""> </div> <div class="images"> <img src="/img/Project4.png" alt=""> <img src="/img/Project5.png" alt=""> <img src="/img/Project6.png" alt=""> </div> <a href="" class="see-all">SEE ALL</a> </div> <div class="container email"> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <div class="block"> <div> <h4>Stay in the loop</h4> <p>Subscribe to receive the latest news and updates about TDA. We promise not to spam you! </p> </div> <div> <input type="email" id="emailField" placeholder="Enter email address"> <button onclick="checkEmail()">Continue</button> </div> </div> </div> </div> <footer> <div class="blocks container"> <div> <span class="logo">logo</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> </div> <div> <h4>About us</h4> <ul> <li>Zeux</li> <li>Portfolio</li> <li>Careers</li> <li>Contact us</li> </ul> </div> <div> <h4>Contact us</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <p>+908 89097 890</p> </div> </div> <hr> <p>Copyright ® 2021 Lorem All rights Rcerved</p> </footer> <script> function checkEmail() { let email = document.querySelector('#emailField').value; if (!email.includes('@')) alert('Нет символа @'); else if (!email.includes('.')) alert('Нет символа .'); else alert('Все отлично!'); } </script> </body> </html> // about.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Game Website</title> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="wrapper"> <header class="container"> <span class="logo">logo</span> <nav> <ul> <li><a href="/">Home</a></li> <li class="active"><a href="/about.html">About us</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">News</a></li> <li class="btn"><a href="/contacts.html">Contacts</a></li> </ul> </nav> </header> <div class="hero-about container"> <div class="info"> <h1>Lorem Ipsum is simply dummy text of the printing and.</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p> <button class="btn">Get in touch</button> </div> <img src="/img/about-banner.png" alt=""> </div> <div class="container work"> <h2>Why work with us</h2> <div class="blocks"> <div class="block"> <span class="badge purple">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> <div class="block"> <span class="badge brown">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> <div class="block"> <span class="badge green">Lorem ipsum</span> <h3>Lorem Ipsum</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p> </div> </div> </div> </div> <footer> <div class="blocks container"> <div> <span class="logo">logo</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> </div> <div> <h4>About us</h4> <ul> <li>Zeux</li> <li>Portfolio</li> <li>Careers</li> <li>Contact us</li> </ul> </div> <div> <h4>Contact us</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p> <p>+908 89097 890</p> </div> </div> <hr> <p>Copyright ® 2021 Lorem All rights Rcerved</p> </footer> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629395 Share on other sites More sharing options...
Barand Posted July 6 Share Posted July 6 Perhaps the PHP isn't working because there isn't any PHP code in there 1 Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629396 Share on other sites More sharing options...
forum Posted July 6 Author Share Posted July 6 the file itself with the php extension Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629397 Share on other sites More sharing options...
Barand Posted July 6 Share Posted July 6 The .php extension merely tells your server to processs any php code that may be in the file. In this case there isn't any, so it is just an HTML file. Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629399 Share on other sites More sharing options...
maxxd Posted July 6 Share Posted July 6 So you're saying you don't like HTML? Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629407 Share on other sites More sharing options...
requinix Posted July 6 Share Posted July 6 6 hours ago, forum said: I’ll say right away that I’m not a fan of this language, but for analysis I want to find out why, when moving to another file, it says that the page was not found and the extensions in the HTML browser. , not PHP? It also sometimes happens that from the main page it goes to another page, but if you go back, it gives the error file not found, how can I not find it if I’ve already been there? Are the problems only with this language or is it a problem with the servers? Or am I doing something wrong, but the documentation doesn't help me. "Not found" means you have the wrong URLs. Pay attention to what's going on in your browser's address bar. For instance, I see you link "about.php" in one page but "/about.html" in the other... Quote Link to comment https://forums.phpfreaks.com/topic/322175-why-doesnt-php-work-correctly/#findComment-1629415 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.