42 users online (0 members and 42 guests)  


Page 2 of 4 First 1 2 3 4 Last
  Results 16 to 30 of 49

Related

  1. Need help on Apache Installation Please    Forum: PHP Forum
    Replies: 2
  2. skins/templete installation prob.    Forum: HTML Forum
    Replies: 2
  3. Replies: 0
  1. #16
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    Well..

    If you on windows, you need to lick shift + rightclick on a .php file, and click Open With, select Internet Explorer and check the box that say all the time

  2. #17
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Heres how to setup a file type

    To setup .php -

    Start Button -> Settings -> Folder Options

    Then choose File Types

    That brings up all your extensions.

    Choose Create New Type, asks for extension and name.Give it a name etc

    There is a box called Actions. Below that, choose New.

    Call the new action Open. Then it asks for a program to perform the Action. Browse to

    C:\Program Files\Internet Explorer\iexplore.exe

    Done. Now Create another New Action. Call it Edit (or whatever) and browse to C:\windows\notepad.exe or your favourite text editor.

    Choose Apply and your done. Windows should even give it a nice IE icon, but if it doesnt, just choose one.

    For looking at the files in PHP, then -

    You should have, somewhere, a document root for your server software. This is where the page comes up when you type in localhost in the browser.

    If you put a folder in there, call it practice, then put one of your php scripts in that folder, you can see it with

    http://localhost/practice/yourpage.php

    And thats how it works

    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #18
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312

    Re: Heres how to setup a file type

    Originally posted by QuietDean
    To setup .php -

    Start Button -> Settings -> Folder Options

    Then choose File Types

    That brings up all your extensions.

    Choose Create New Type, asks for extension and name.Give it a name etc

    There is a box called Actions. Below that, choose New.

    Call the new action Open. Then it asks for a program to perform the Action. Browse to

    C:\Program Files\Internet Explorer\iexplore.exe

    Done. Now Create another New Action. Call it Edit (or whatever) and browse to C:\windows\notepad.exe or your favourite text editor.

    Choose Apply and your done. Windows should even give it a nice IE icon, but if it doesnt, just choose one.

    For looking at the files in PHP, then -

    You should have, somewhere, a document root for your server software. This is where the page comes up when you type in localhost in the browser.

    If you put a folder in there, call it practice, then put one of your php scripts in that folder, you can see it with

    http://localhost/practice/yourpage.php

    And thats how it works

    Dean.. this is just the long way to do wha i said :P

    -Eric

  4. #19
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Yes, but

    It's always useful to know where to change these things if the need arises.

    Plus, I have three options for every web extension I use,

    Open IE
    Open NN
    Edit

    Can't setup stuff like that without knowing where the filetypes are managed from.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #20
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    True......


    (I don't care anywayz.. GO LINUX!)

  6. #21
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Agreed!

    I will!
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #22
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    LAST problem

    I'm havin trouble understanding the part about making a folder in the localhost root directory?

    You should have, somewhere, a document root for your server software. This is where the page comes up when you type in localhost in the browser.
    Can u explain more in detail? Maybe Zaire can explain that part a little better only because he has fox serve. But Dean you probably know it too So I dunno.

  8. #23
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    If you installed foxserv, i believe your root folder is c:\foxserv\www\

    Thats where u put ur files, say c:\foxserv\www\test.php

    would be localhost\test.php

    If your using netscape, try localhost.localdomain\test.php

  9. #24
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    problems

    ok, I have more problems now.

    I installed the php and everythin in program files and a folder called php, I don't know if that's a problem so that may have somethin to do with it. I went to the localhost,www, I have apache runnin and it says the php is runnin, and I have mysql runnin (with the green light of course), but when I click on any php document, a quick download thing comes up then disappears and that's all that happens. I dont' know what I did wrong. I even tried yoru way zaire of making the documents open through internet explorer. I'm really confused now.

  10. #25
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    ok

    I just made my own page called "hello.php" in the www folder, and it displayed! Problems over, right? No. Now I tried two simple scrips from the intro tutorial at php.net, but they wouldn't work! Any suggestions?

  11. #26
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    what scripts would they be?1?1?1

  12. #27
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    scripts

    <html><head><title>PHP Test</title></head>
    <body>
    <?php echo "Hello World<p>"; ?>
    </body></html>

    Nothin showed up, html will show up but not php.

    <html><head><title>PHP Test</title></head>
    <body>
    <?php echo $HTTP_USER_AGENT; ?>
    </body></html>

    And this, both from the intro on the php.net page.

  13. #28
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Are you looking at the page through localhost/www/yourpage.php or are you just viewing the page through your browser, C:\php\www\yourpage.php?

    basically, whats it say in the address bar?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  14. #29
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    OOPS!

    Sorry, Z. didn't see all your posts above explaining this already.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  15. #30
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    it's cool

    I put it where you said dean



Page 2 of 4 First 1 2 3 4 Last

Tags for this Thread