ci - windows下无法正常运行php项目
最近,给自己买了块ssd固态硬盘,于是迫不及待的把原来的windows系统格掉了重装,但是使用ssd重新安装好系统,php环境也搭建好了,于是把原来写了一半的php项目重新放回apache目录下,发现无法正常运行了,弄了好久都不知道咋回事,希望大家给点建议,谢谢。(apache、php、mysql安装没有问题,原先保存的sql备份文件也是正常导入了,是不是权限的问题还是别的?)
追加:其实,并不是有出错啥的,就是我原来使用的ci框架,现在在浏览器下输入localhost/demo/index.php
却无法运行了,什么都不显示。当我单独在该目录下新建一个测试文件<?php echo 'test';
,然后在浏览器上输入localhost/demo/test.php
却可以正常显示"test",这是怎么回事呢。不知道我描述的是否清楚。
回复内容:
最近,给自己买了块ssd固态硬盘,于是迫不及待的把原来的windows系统格掉了重装,但是使用ssd重新安装好系统,php环境也搭建好了,于是把原来写了一半的php项目重新放回apache目录下,发现无法正常运行了,弄了好久都不知道咋回事,希望大家给点建议,谢谢。(apache、php、mysql安装没有问题,原先保存的sql备份文件也是正常导入了,是不是权限的问题还是别的?)
追加:其实,并不是有出错啥的,就是我原来使用的ci框架,现在在浏览器下输入localhost/demo/index.php
却无法运行了,什么都不显示。当我单独在该目录下新建一个测试文件<?php echo 'test';
,然后在浏览器上输入localhost/demo/test.php
却可以正常显示"test",这是怎么回事呢。不知道我描述的是否清楚。
看看啥子错误赛,至少有个截图啥的
你先在php.ini里面把配置项Error_reporting = E_All (手打的不知道的有没有拼错),总之就是把报错信息打出来, 然后就在去访问localhost/demo/index.php
, 就会知道出什么问题了.
在文件开头加上下面一句,或许能看到错误提示:
<code>error_reporting ( E_ALL ); ini_set ( "display_errors", 1 ); </code>
我觉得你之前的项目是不是用了short tags ?>
这样的标记?PHP一共有四种标记,这个的话要自己去设置开启短标记。
怀疑你更新了PHP版本,不同PHP版本short tags的默认情况不一样,建议检查。
我在linux下遇到过类似情况,参考 http://stackoverflow.com/questions/2476072/tags-not-working-in-php-5-3-1

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.
