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 7992817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:40:43+00:00 2026-06-04T13:40:43+00:00

I use many functions in my PHP codes like these; UID(), user_getProfileImage() … etc

  • 0

I use many functions in my PHP codes like these; UID(), user_getProfileImage() ... etc. I’m writing all my projects on Windows and working well. It’s OK up here but when I put my project on my server it’s giving error like this;

Fatal error: Call to undefined function UID() in /var/www/vhosts/...

What? Is it undefined?!

I’m checking all my project files and FTP’ing all files to server again, again… And same error.

But when I change the name of UID() to uid() (both in lib.php and other places that where it’s used), it’s working well.

So what’s the problem? What’s the matter with this server?

Local PHP vers: 5.3.10

Server PHP info: http://… removed

Note: I’m encoding all PHP files in “UTF-8 without BOM” (as always) with Notepad++, and interestingly the other project is working well even use same functions and run on the same server.

Thanks.

/##############################/

UPDATE (and solution);

  1. Do not use “I” (capital “i”) character in any function name
    or
  2. Simply use setlocale like this; setlocale(LC_TIME, "tr_TR.UTF-8") // I need just locale time config and used this
  3. If you need LC_ALL, do not forget set back LC_CTYPE in en_US, i.e:

    setlocale(LC_ALL, "tr_TR.UTF-8"); setlocale(LC_CTYPE, "en_US");

  • 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-04T13:40:45+00:00Added an answer on June 4, 2026 at 1:40 pm

    This hints at suffering from “the I problem“, which manifests itself when PHP is using a Turkish locale (tr_TR, tr_TR.utf8…). When doing so, the case-insensitive check between uppercase and lowercase letter “i” fails.

    See https://bugs.php.net/18556 — “Setting locale to ‘tr_TR’ lowercases class names”


    You have a couple of solutions:

    • Define and call your function with same-cased letters (or, at the very least the letter “i”); upper or lower is not important.
    • Use a locale not affected by this (mis)behaviour.

    The latter is preferred, mostly because it’s usually a one-tiny-change-fixes-all-problems sort of task.

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

Sidebar

Related Questions

I want to use many bars like this one in my app (i don't
Kind of like this question I have many text snippets that I use many,
I've seen people use many-to-one mappings to represent one-to-one relationships. I've also read this
If I use many CLOB variables in the PL/SQL stored procedure to store many
In my Application I use many Webservices. As the WSDL does not change, I
This article on MSDN states that you can use as many try catch blocks
I am trying to set up a clean vm I will use in many
Many graphing applications use orthogonal edge routing for objects on a canvas. I am
Many times I use 'mqsc' for create MQ queue manager from script files but
Many WPF examples use CollectionViewSource as DataSource for DataBinding. It provides sorting and other

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.