Welcome, Guest. Please login or register.
November 24, 2024, 01:17:55 PM

Login with username, password and session length
* Home Help Arcade Login Register
.
+  Forum
|-+  NLG Members who host their own Repair Logs of Various Games.
| |-+  RickHunters Computer Help 101 (Moderator: rickhunter)
| | |-+  How to open PHP files?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to open PHP files?  (Read 6425 times)
Ron (r273)
NLG Welcome Wagon & General Chat
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 401
Offline Offline

Gender: Male
Posts: 1819



« on: March 29, 2010, 10:46:28 AM »

How can I open PHP files? Scratch Head     I am running XP with Firefox.


Ron (r273)
Logged
CarruthersIII
CyberTech Computerz
Contributing Gold NLG Member
New NLG Member 1 to 100 Post
*

Total Karma Storms: 56
Offline Offline

Gender: Male
Posts: 85



WWW
« Reply #1 on: March 29, 2010, 11:53:55 AM »

What exactly are you trying to open, you actually have a php file open when on thsi website  bust gut laughing

You should be able to open a php file using firefox, if not try dreamweaver.
Logged

Computer & Game Forum - www.ctcustomz.com/index.php
Ron (r273)
NLG Welcome Wagon & General Chat
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 401
Offline Offline

Gender: Male
Posts: 1819



« Reply #2 on: March 29, 2010, 03:32:12 PM »

What exactly are you trying to open, you actually have a php file open when on thsi website  bust gut laughing

You should be able to open a php file using firefox, if not try dreamweaver.

I have downloaded the files from the site. Some are pictures (Mikhon stuff) which I can open with Firefox and others are manuals and it gives me this:

Warning!
Sorry but you are not authorized to view the " ----------------------Topics"
Please login below or register an account with New Life Games Tech Forums.
Login
Username:    
Password:    
Minutes to stay logged in:    
Always stay logged in:    
Forgot your password?

Ron (r273)
Logged
CarruthersIII
CyberTech Computerz
Contributing Gold NLG Member
New NLG Member 1 to 100 Post
*

Total Karma Storms: 56
Offline Offline

Gender: Male
Posts: 85



WWW
« Reply #3 on: March 29, 2010, 06:59:59 PM »

So the pictures are fine, you cant open the manuals? Try to open them in Microsoft word. If you dont have it notepad should work as well.
Logged

Computer & Game Forum - www.ctcustomz.com/index.php
StatFreak
rotaredoM etiS GLN labolG
Global NLG Site Moderator
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 756
Offline Offline

Gender: Male
Posts: 8549


Warning! Spammers will be eaten, with relish!


« Reply #4 on: March 30, 2010, 11:16:54 PM »

I have downloaded the files from the site. Some are pictures (Mikhon stuff) which I can open with Firefox and others are manuals and it gives me this:

Warning!
Sorry but you are not authorized to view the " ----------------------Topics"
Please login below or register an account with New Life Games Tech Forums.
Login
Username:    
Password:    
Minutes to stay logged in:    
Always stay logged in:    
Forgot your password?

Ron (r273)


Ron, I experienced the same issue a couple of days ago. It is an issue with your login authentication. Perhaps something got corrupted in the forum database. Scratch Head At any rate, the solution is to log off of NLG, delete your cookies, your cache, and your temporary files, close and reopen the browser, and log on again. If you are using FireFox, add "Active Logins" to the list of things that you clear. It should then work. Unfortunately, you will have to re-log into other sites that you were previously logged into.

In Firefox, you first might try logging off of NLG, specifically deleting only your NLG cookies, along with your temporary files and cache, closing the browser and restarting. If it doesn't work, then clear the rest.


StatFreak garfield
nlg  Global Moderator
« Last Edit: March 30, 2010, 11:23:03 PM by StatFreak » Logged

I found myself at NLG garfield  ..but got lost again on the way home. Scratch Head 2
If found, please email me to myself. Thanks. yes
       Executive member in good standing of Rick's SMAA.                              Ehhh...What's Up Doc?
rickhunter
SMAA Founder and Chairman
Topic Moderator
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 226
Offline Offline

Gender: Male
Posts: 1456


I Void Warranties


« Reply #5 on: March 31, 2010, 06:01:42 PM »

Just for the record. PHP files are just text files that are scripts executed to form html content.  If you were to "open" a PHP file it would look like this: (not much to look at unless you are into this stuff).  All this script does is that it asks for a filename and then displays its contents on your browser.
<?PHP
 if (isset($_POST ["file"]))
 {
   $FileName = $File = $_POST ["file"];
 }
 else
 {
   $FileName = "";
 }
?>

<HTML>
<BODY BGCOLOR=#FFFFFF>

<FORM ACTION=/cgi-bin/cgiwrap/username/Example.php METHOD=POST>

<P>Enter FileName:
<?PHP
  echo " <INPUT TYPE=TEXT NAME=file VALUE=\"$FileName\" SIZE=75>\n";
?>
<P><BR><P>
<INPUT TYPE=SUBMIT VALUE="Show Me!">

</FORM>

<P><BR><P>
<P><BR><P>
<P><BR><P>

<?PHP
 if (isset($File))
 {
   $Handle = @fopen ($File, "r"); // '@' suppresses external errors

   if ($Handle)
   {
     $FileText = fread ($Handle, 10000); // Read up to 10,000 Bytes

     fclose ($Handle);

     // Fix HTML tags that may be there

     $SafeText1 = str_replace ("&", "&amp;", $FileText);
     $SafeText2 = str_replace ("<", "&lt;", $SafeText1);
     $SafeText  = str_replace (">", "&gt;", $SafeText2);

     // Now it is safe to display it

     echo " <H2 ALIGN=CENTER>File: $File</H2>\n";

     echo "<PRE>\n";
     echo $SafeText;
     echo "</PRE>\n";
   }
   else
   {
     echo " <H3>Error: File '$File' is not accessible.</H3>\n";
   }
 }
?>

</BODY>
</HTML>
Logged

A slot collector is like a coin hopper in a machine that never pays out.  they just keep on accumulating assets.
Pages: [1] Go Up Print 
« previous next »
Jump to:  


If you find this site helpful, Please Consider Making a small donation to help defray the cost of hosting and bandwidth.



Newlifegames.com    Newlifegames.net    Newlifegames.org
   New Life Games    NewLifeGames  NLG  We Bring new Life to old Games    1-888-NLG-SLOTS
Are all Copyright and Trademarks of New Life Games LLC 1992 - 2021


FAIR USE NOTICE:

This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner.
We make such material available in an effort to advance awareness and understanding of the issues involved.
We believe this constitutes a fair use of any such copyrighted material as provided for in section 107 of the US Copyright Law.
In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those
who have expressed a prior interest in receiving the included information for research and educational purposes.

For more information please visit: http://www.law.cornell.edu/uscode/17/107.shtml.

If you wish to use copyrighted material from this site for purposes of your own that go beyond fair use,
you must obtain permission directly from the copyright owner.

NewLifeGames.net Web-Site is optimized for use with Fire-Fox and a minimum screen resolution of 1280x768 pixels.


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Loon Designed by Mystica
Updated by Runic Warrior
Page created in 0.096 seconds with 21 queries.