₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,346,862 members, 8,525,567 topics. Date: Thursday, 26 November 2026 at 08:14 PM

Toggle theme

My PHP Code Run Locally On XAMPP But Showing Syntax Error Online - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › My PHP Code Run Locally On XAMPP But Showing Syntax Error Online (642 Views)

1 Reply (Go Down)

My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by Akprof(op): 2:51pm On Jan 29, 2021
What can be making my php code to be running online but showing syntax error online?
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by Csami(m): 3:21pm On Jan 29, 2021
Put up a picture of the error
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by talk2hb1(m): 5:20pm On Jan 29, 2021
Akprof:
What can be making my php code to be running online but showing syntax error online?
A screenshot of the error to get started with
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by etoluw: 5:46pm On Jan 29, 2021
Akprof:
What can be making my php code to be running online but showing syntax error online?
The php version you are using locally is probably different from the one on the server
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by Anonime1105(m): 5:55pm On Jan 29, 2021
1. Make sure the php version for both camp and online are the same.

2. Check ur php .ini file
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by naijasensei: 10:18am On Jan 31, 2021
Akprof:
What can be making my php code to be running online but showing syntax error online?
Please try uploading a screenshot of said syntax errors. These sort of issues can arise for so many different reasons. One such reason, as some have kindly pointed out, could be due to differences between your local XAMPP environment and the environment of your online server.
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by goouser: 12:01pm On Jan 31, 2021
Let's see a screenshot of the errors
1 Reply

How To Install Ssl On Lampp Or Xampp (beginners Friendly) • I Need Php Code To Open Email Domain After Client Submit Their Form • Help Python Syntax Error! • 2 • 3 • 4

Blockchain Developers Are Now The Highest Paid Programmers • Need A Developer Job • Software Engineering - Independent Contractor