#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Perth Amboy
    Posts
    15
    Rep Power
    0
    Hello...I would like to know whats the advantages or differences if loading PHP as an Apache module
    as opposed to CGI (i'm sorry if thats not the right terminology).

    Also, I installed PHP, and wrote a simple scripts that searchs a mySQL database, but when i get the search results, i was wondering why i didnt get something like http://<domain>/search.php?pattern=d...&show=nosource (would be different on my site...this is from a search from www.php.net)

    I only get http://<domain>/search.php and the results.

    Thank you for any response!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    cranbrook BC canada
    Posts
    12
    Rep Power
    0
    from what i read, the main advantage of a module based installation over a cgi based is greatly improved speed.

    it took me quite a while to find how to make a module based install work though.... finally found a good tutorial here:
    http://www.blazonry.com/scripting/install_apache.html

  4. #3
  5. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    16
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Also, I installed PHP, and wrote a simple scripts that searchs a mySQL database, but when i get the search results, i was wondering why i didnt get something like http://<domain>/search.php?pattern=d...&show=nosource (would be different on my site...this is from a search from www.php.net)[/quote]

    The reason you get this is because your form is probably sent via the POST method rather than GET. GET sends the form data as part of the URL whilst POST sends it as a data stream. GET is best for database queries and short things: POST is better for longer queries. POST is the more secure method for sending sensitive information such as passwords or credit card info.

    --------------------------------------------
    Alex
    (http://www.alex-greg.co.uk)

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo