Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,214 members, 7,953,785 topics. Date: Friday, 20 September 2024 at 06:12 AM

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 (462 Views)

Help Python Syntax Error! / Xampp Server User Please Come In And Assist / How Many Lines Of Code Run Nairaland? (2) (3) (4)

(1) (Reply) (Go Down)

My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by Akprof(m): 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

1 Like

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

1 Like

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

2 Likes

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

1 Like

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.

1 Like

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
Re: My PHP Code Run Locally On XAMPP But Showing Syntax Error Online by Mason9: 9:38pm On Sep 19
This could be due to differences in server configurations, PHP versions, or specific settings between the local and online environments. To resolve the issue, check for compatibility and ensure the code adheres to the PHP syntax requirements on the online server. https://therahealthwellness.com/

(1) (Reply)

I Need Help On these C++ / The First Websites I Built Were Terrible. / Please Help, My Iphone Locked Itself Out

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.