Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X, Part 6
Subject:   Problems POSTing data to PHP scripts
Date:   2002-10-20 19:42:54
From:   anonymous2
The info provided is great. I have everything installed in MacOS X 10.1.5 and PHP and MySQL seem to work great (by great, I mean it works almost like my linux box), except for one major problem: phpMyAdmin cannot create or update data. In a simple html form with POSTed data, I cannot update any of my tables. If I use the mysql client in the Terminal app, everything works fine (just like it does in linux). In fact, the same scripts running on my linux box works great, accepting the POST'ed data like it should and updating databases and tables like it should. But in MacOS X, none of the POSTed data gets accepted by the PHP scripts. What's the deal?
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Problems POSTing data to PHP scripts
    2003-01-30 20:58:57  anonymous2 [View]

    You need to to place the following line in /usr/local/lib/php.ini:
    register_globals = on
    then sudo apachectl graceful to restart apache
    • Problems POSTing data to PHP scripts
      2003-02-16 11:28:50  qwave [View]

      ...or you could start using the new PHP 4 global varaiables handling. You will need this for your PHP scripts if you have to use other servers using PHP4 whre you don't have access to the php.ini file.
      Using the new PHP4 way of accessing global variables will improove security of your PHP scripts.