MacRumors Working with PHP and mySQL

Discussion in 'Web Design and Development' started by kingcouch, Dec 7, 2006.

  1. kingcouch macrumors newbie

    Joined:
    Dec 7, 2006
    #1
    I just opened an account today and it looks like I need to start posting some stuff before I can edit pages on macrumors.

    From the little I understand so far regarding php, the tag "<?php" would be necessary to display the information noted this page:

    http://guides.macrumors.com/Working_with_PHP_and_MySQL

    Maybe? I tried it w/out the "php" part and it didn't work... and then it worked when I added it.

    Maybe someone with editing capibilities can fix that? Or tell me that I'm wrong?

    :)
     
  2. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
  3. kingcouch thread starter macrumors newbie

    Joined:
    Dec 7, 2006
    #3
    I'm having trouble saving the document httpd.conf to the directory httpd,
    I opened the httpd.conf using Terminal w/ this command:

    sudo open -e /etc/httpd/httpd.conf

    Which opened the file with TextEdit.
    After configuring the file I asked TextEdit to save the document and I received this error message from TextEdit:

    -------------
    Couldn't Save

    Couldn't save document as "httpd.conf" in folder "httpd".
    -------------

    I temporarily change the permissions on the file, should I have done that before opening the document? If so, the article should specify that.
     
  4. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    That instruction probably shouldn't be there, TextEdit won't see the EUID switch from sudo the way OS X is currently set up. The pico command would have worked, though.
     
  5. kingcouch thread starter macrumors newbie

    Joined:
    Dec 7, 2006
  6. kingcouch thread starter macrumors newbie

    Joined:
    Dec 7, 2006
    #6
    So, when I tried to turn websharing off, and then on again, System Preferences seems to be stuck in a state of "Web Sharing Starting Up..."

    ??
     

Share This Page