Jump to content

HELP!! Do not understand php file


AnneMarie

Recommended Posts

HELP!!! I want to open a php file on my macbook but cannot do so because the technical aspects are beyond my understanding. The file I want to view contains the content of a website that I manage. I really, really need to be able to read this information.  The original website's content was emailed to me as a php file which is what I am trying to access. When I download it, it comes up in TextEdit as symbols and random words. Any help would be greatly appreciated!! Thanks.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/
Share on other sites

When I look at those, I see is a database connection script inclusion. If the data you need to get is in the database, you won't be able to get it by opening the script files on your laptop; not easily, anyhow. Is the old database still intact, or is there at least a backup of it?

This is from the readme file:

Notes for reestablishing site:

 

1. Change line in web/admin/.htaccess:

AuthUserFile /FULL-PATH-TO-WEB-ROOT/admin/.htpasswd

 

2. Update the database connection script in web/inc/db_connect.inc.php

   

Not sure if its helpful though.

The instructions imply the files need to be on a webserver, and the database needs to be accessible by that webserver. You should contact the person who sent you the files and have them set you up with a temporary directory on the webserver, then re-upload the files. Without Apache and MySQL running on your laptop, and the database restored to the installation, you won't be able to accomplish this. You should contact the person or department that made the changes, and ask them how they think you should handle this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.