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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:56:28+00:00 2026-05-30T13:56:28+00:00

I just installed LAMP. Everything seems to be working fine except when I send

  • 0

I just installed LAMP. Everything seems to be working fine except when I send data from js to php via ajax, php does not receive the data sent. I suspect this has to do with a setting in php.ini but I don’t know which to change. My js ajax function looks like this:

function ajax (url, data_to_be_sent, callback_func) {

if (window.XMLHttpRequest)

{// code for IE7+, Firefox, Chrome, Opera, Safari

    xmlhttp=new XMLHttpRequest();

}

else

{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

}

xmlhttp.onreadystatechange=callback_func;

xmlhttp.open("POST",url,true);

xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");

xmlhttp.send(data_to_be_sent);

}

  • 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-30T13:56:29+00:00Added an answer on May 30, 2026 at 1:56 pm

    Two things you need to do:

    1. Debug your client side Javascript to verify you’re making the right call, with the right URL string.

    2. Look at your server side logs to see if any client-side requests are being made, and if there are any errors.

    This really has nothing to do with PHP, and messing with php.ini isn’t going to help.

    PS:
    You’re using something like Firebug, aren’t you?

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

Sidebar

Related Questions

I've just installed LAMP on my Ubuntu 9.10 machine, and everything works fine except
I just installed ssmtp to send email with LAMP on Ubuntu. And a simple
i've just setup a LAMP development environment on my laptop, all works fine except
I've recently installed phc, the php compiler. I started out installing LAMP from source
I am new to the asp.net environment coming from a Lamp background with php
I just installed Emacs on my mac from here: http://emacsformacosx.com/ and that got rid
Just finished installing libevent(1.4.8), memcached(1.4.5), pear, and libmemcached(0.40) to my lamp server (running PHP
I just installed Turnkey LAMP Stack Appliance , and I need to install Drupal,
Just installed Xcode 4 so far so good, except that Apple changed all the
Just installed a nginx server with ubuntu 11.04 and after loading my php program

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.