Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:04:48+00:00 2026-06-03T02:04:48+00:00

Why did my PHP just stop working? Several things I did all at once

  • 0

Why did my PHP just stop working?

Several things I did all at once that may have broke it:

  1. Put jquery in without the jquery script included, but with jquery within javascript tags.
  2. Created a stylesheet (which was working, but then I added a :before style and jquery and the php stopped working).
  3. Changed white space within PHP code.
  4. Put <!DOCTYPE HTML> at top, but then removed it and no change.

I expect a list of every folder and subfolder, but get a page with just the title, and Chrome shows me the php tags are within HTML comments (not sure if normal, never had php just not work).

Issue was: filetype not ANSI.

PHP:

<?php

function listFolderFiles($dir){
    $ffs = scandir($dir);
    echo '<ol>';
    foreach($ffs as $ff){
        if($ff != '.' && $ff != '..'){
            echo '<li>'.$ff;
            if(is_dir($dir.'/'.$ff)) listFolderFiles($dir.'/'.$ff);
            echo '</li>';
        }
    }
    echo '</ol>';
}


?>

HTML:

<html>
<head>
<title>
</title>

<?php include("find.php"); ?>

</head>
<body>

<h2>Folders</h2>

<?php listFolderFiles('../');?>


</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:04:49+00:00Added an answer on June 3, 2026 at 2:04 am

    I believe your file is saved other than ANSI, because PHP cannot run on an UNICODE file.
    try to open your file with your favorite editor and when you save … make sure you save it as ANSI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on small php application using codeigniter I did just copy paste
I have one PHP script that has to start a second script in the
Ok, all jokes aside... I just noticed that I was able to refer to
Why did the designers of PHP decide to use a full stop / period
Please don't laugh at me but I believe that I just did something extremely
I am just begining php and mysql. I have two queries from my database.
I've been working on a project that uses a frontloader to handle all requests
I just read thought php doucmentation for heredocs but I did not see any
I'm working with Eclipse/PHP and just starting with Drupal 7, which needs me to
I have just built my first PHP contact form with validation and yet it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.