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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:50:48+00:00 2026-05-27T06:50:48+00:00

I have working code I developed for a linux server that when I have

  • 0

I have working code I developed for a linux server that when I have tested locally using WAMP have started to get strange Xdebug errors of the form

Notice: Use of undefined constant fullName - assumed 'fullName'

The code is…

$allVars = array(
    fullName=>$fullName, 
    telephone=>$telephone,
    email=>$email,

    fAddr=>$fAddr,
    tAddr=>$tAddr,
    sngRtnSelect=>$sngRtnSelect,
    oDate=>$oDate,
    rDate=>$rDate,
    tAdditional=>$tAdditional,
    noPassengers=>$noPassangers,
    vehicleType=>$vehicleType,
    distance=>$distance,
    priceTot=>$finalPrice

); 

I thought the above was a straight forward array definition. Could anyone shed light on why such errors are appearing on WAMP and not the linux server?

If I have missed something obvious, then my apologies, however this is the identical code that worked on the linux/apache server. Thanks.

  • 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-05-27T06:50:48+00:00Added an answer on May 27, 2026 at 6:50 am

    If you are defining a string key then you should put it inside quotes. Like this:

    $arr = array ( 'some_key' => 'some_value' )
    

    However, when you are working with integers you should not use quotes, otherwise you’ll create a string.

    $arry = array ( '0' => 'this is a string key because it has quotes around.', 
                     0  => 'this is an integer key because it has not quotes around.');
    

    By the way, when you do not use quotes for a string value, it means that you refer to a defined variable.

    define ( 'name', 'Savas Vedova' );
    echo name; // this will print Savas Vedova to the screen. 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started working on some code left behind by previous developers, and I'm
I have this code working in C#: var request = (HttpWebRequest)WebRequest.Create(https://x.com/service); request.Method = GET;
I have been working on some legacy C++ code that uses variable length structures
Hi I am working Android application development using titanium studio.I have developed small application.my
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I've developed an application at working using MySQL 5, that uses Views to access
I have an Out-of-process COM server executable which was developed using Visual Studio 6.0
I'm trying to get my code(developed with Watir for IE8) working with watir-webdriver and
I have a CakePHP website that's been working great. I just developed a new
I am currently working on some older java code that was developed without App

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.