Announcement

Collapse
No announcement yet.

gay PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    gay PHP

    I'm tryin to download freakin PHP so I can open a file and I can't get the crap to work. I downloaded an installer for PHP and it put the PHP program in my program files. BUT I still can't open the dang PHP file that I downloaded PHP for in the first place. If I click on the file I'm tryin to open it flashes the cmd box open real fast then closes itself. And nothing else happens.

    Anyone know how to get this crap workin. I built my own comp so I know a good amt about em but this is killing me. I may just take it to a comp place around here and pay em to install it and make the crap work...

    :hitler:
    ///Alpinweiß II 24v 91' 318is, Alpinweiß III 99' 323i, 04' Yamaha R6 SE for sale, 00' VW GTi, 83' El Camino BURNED, 01' P71sold, 92' Miatasold

    #2
    start->run->"cmd"

    then type "format c:" and press enter


    Just kidding. The file you're trying to open, if you right click and go to "open with" and choose your program, does that work?

    Don't know man.

    Comment


      #3
      FAILED INSTALL - Removing old files
      1) Search My Computer for php.ini..If found delete all the instances.
      2) Search My Computer for libmysql.dll..If found delete all the instances.
      3) Delete Previous Installations directories of Apache, PHP and MySQL. Go to Step 5
      4) If you have installed PHPDEV and want to try this Standalone installations Go To
      Start->
      Run->
      type regedit->
      Go To the Following Key: HKLM/CurrentControlSet/Services/dev4_* or dev5_*----* represents the version number of phpdev
      Delete the Key.
      Delete phpdev installation Directory and Startmenu Directory.
      Do the Steps 1,2 and 3 above.
      5) Restart the Computer.

      FRESH INSTALL - Begin here
      1) Install Apache - www.apache.org - VERSION 2.2.4--(recomend version 2+)
      2) Choose Custom installation and install it into directory C:\Apache
      3) Install Mysql - www.mysql.com - VERSION 5.0.41 -(recomend version 5+)
      4) Choose Custom installation and install it into directory C:\MySQL
      5) Download PHP5(Not Windows Installer but only Zip binaries-VERSION 5.2.2)
      6) Unzip into C:/php - www.php.net - (recomend version 5+)
      7) Configure Apache>Edit http.config from Directory C:\Apache\Conf\ and do the following:
      For Apache version 2.2.4 Add To the http.config file

      1) Find 'DirectoryIndex index.html' in dir_module and change it to:
      <IfModule dir_module>
      DirectoryIndex index.html index.php
      </IfModule>

      2) Insert the following lines inside <IfModule mime_module> below AddType application/x-gzip .gz .tgz
      # Load php module
      LoadModule php5_module c:/php/php5apache2_2.dll (!!!!Front Slashes please)
      AddType application/x-httpd-php .php
      8 ) Config php
      1) Copy the 'php5ts.dll' from "C:\php\" to the bin dir in the Apache main dir
      (C:\Apache\bin)
      2) Copy the 'php.ini-dist' from "C:\php\" to "C:\Windows" and rename it as 'php.ini' (Don't Move)
      3) Open C:\Windows\php.ini
      Set extension_dir:
      extension_dir = "C:/php/ext/" (!!!!Front Slashes please)
      Find and remove the ';'
      ;extension=php_mysql.dll

      4) Copy the 'libmysql.dll' file from "C:\php\" to C:\Windows

      *** NO NEED FOR ANY OTHER SETTINGS AND NO NEED FOR ANY PHP.INI IN PHP INSTALLATION PATH..
      *** NO NEED FOR ANY CHANGES IN THE PHP DIRECTORY APART FROM THE ONE'S EXPLAINED ABOVE ..
      *** DON'T TEST UNTIL THE COMPLETION OF ALL THE CHANGES ABOVE

      RESTART THE COMPUTER SEE IT WORKS.....BEST OF LUCK....

      FOR TESTING PURPOSE NOW...
      1) Ensure Apache Server is running...
      2) Open a Notepad and Type:
      <?
      phpinfo();
      ?>
      3) Save it as info.php at "C:\Apache\htdocs\"
      4) Open your browser and type http://localhost/info.php
      5) PHP information pages will be displayed in the browser and you have successfully integrated everything.
      6) If the page displays blank, then flush the browser cache
      7) Open C:\Windows\php.ini for editing
      8 ) Find the setting short_open_tag and Change its value to On if Off.
      9) If it still displays blank page
      10) Open a Notepad and Type:
      <?php
      phpinfo();
      ?>
      11) Save it as info1.php at "C:\Apache\htdocs\"
      12) Open your browser and type http://localhost/info1.php
      13) PHP information pages will be displayed in the browser and you have successfully integrated everything.

      DON'T FORGET TO TURN IIS or PWS OFF!

      Send me a PM if you have trouble.
      91 m3

      Comment


        #4
        thanks, I'll give that a try!
        ///Alpinweiß II 24v 91' 318is, Alpinweiß III 99' 323i, 04' Yamaha R6 SE for sale, 00' VW GTi, 83' El Camino BURNED, 01' P71sold, 92' Miatasold

        Comment


          #5
          Originally posted by 325Projectz View Post
          7) Configure Apache>Edit http.config from Directory C:\Apache\Conf\ and do the following:
          For Apache version 2.2.4 Add To the http.config file

          1) Find 'DirectoryIndex index.html' in dir_module and change it to:
          <IfModule dir_module>
          DirectoryIndex index.html index.php
          </IfModule>

          2) Insert the following lines inside <IfModule mime_module> below AddType application/x-gzip .gz .tgz
          # Load php module
          LoadModule php5_module c:/php/php5apache2_2.dll (!!!!Front Slashes please)
          AddType application/x-httpd-php .php
          8 ) Config php
          1) Copy the 'php5ts.dll' from "C:\php\" to the bin dir in the Apache main dir
          (C:\Apache\bin)
          2) Copy the 'php.ini-dist' from "C:\php\" to "C:\Windows" and rename it as 'php.ini' (Don't Move)
          3) Open C:\Windows\php.ini
          Set extension_dir:
          extension_dir = "C:/php/ext/" (!!!!Front Slashes please)
          Find and remove the ';'
          ;extension=php_mysql.dll
          4) Copy the 'libmysql.dll' file from "C:\php\" to C:\Windows
          *** NO NEED FOR ANY OTHER SETTINGS AND NO NEED FOR ANY PHP.INI IN PHP INSTALLATION PATH..
          *** NO NEED FOR ANY CHANGES IN THE PHP DIRECTORY APART FROM THE ONE'S EXPLAINED ABOVE ..
          *** DON'T TEST UNTIL THE COMPLETION OF ALL THE CHANGES ABOVE

          RESTART THE COMPUTER SEE IT WORKS.....BEST OF LUCK....
          To change these files what program do I need to use? I was doing it w/ wordpad and when I went to save it said that the save would be text only and the programing would be lost?

          TIA
          ///Alpinweiß II 24v 91' 318is, Alpinweiß III 99' 323i, 04' Yamaha R6 SE for sale, 00' VW GTi, 83' El Camino BURNED, 01' P71sold, 92' Miatasold

          Comment


            #6
            I think you might not fully understand what PHP is. PHP is a script that runs on the server side. You should have no problem opening up a PHP script with notepad for editing. If you want to Run the PHP script, that's another story. Since PHP is a server sided scripting language, you'll need some sort of web server to handle the php requests.

            If you do in fact want to execute the script on your local computer you're going to need a web server with php installed (Apache or IIS).

            What is it you're trying to do exactly? Modify a php script to run on a remote webhost? What is the purpose of this script?
            tasty

            Comment

            Working...
            X