AnneMarie Posted April 5, 2010 Share Posted April 5, 2010 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 More sharing options...
Pikachu2000 Posted April 5, 2010 Share Posted April 5, 2010 Are you trying to edit the file, or view it as though it were on a web server? Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037212 Share on other sites More sharing options...
AnneMarie Posted April 5, 2010 Author Share Posted April 5, 2010 I just want to view the file in order to transfer the information to the new website. When I download it, it comes up in TextEdit as symbols and random words. Would it be helpful if I sent you the file?? What do you think I should do? Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037220 Share on other sites More sharing options...
AnneMarie Posted April 5, 2010 Author Share Posted April 5, 2010 The file is a copy of the website's content before installing the CMS. I want to view the file in order to copy some of the info to the new site with a CMS. Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037223 Share on other sites More sharing options...
Pikachu2000 Posted April 5, 2010 Share Posted April 5, 2010 If it's not too big, you can paste it here, enclosed in [ php] . . . [ /php] tags. Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037228 Share on other sites More sharing options...
AnneMarie Posted April 5, 2010 Author Share Posted April 5, 2010 Ok. thanks. It should be attached. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037229 Share on other sites More sharing options...
Pikachu2000 Posted April 5, 2010 Share Posted April 5, 2010 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? Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037235 Share on other sites More sharing options...
AnneMarie Posted April 5, 2010 Author Share Posted April 5, 2010 I am not sure. This is the copy of the website I was sent. Here are the other files for the website. Any ideas? Thanks! [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037237 Share on other sites More sharing options...
AnneMarie Posted April 5, 2010 Author Share Posted April 5, 2010 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. Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037238 Share on other sites More sharing options...
Pikachu2000 Posted April 5, 2010 Share Posted April 5, 2010 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. Link to comment https://forums.phpfreaks.com/topic/197627-help-do-not-understand-php-file/#findComment-1037244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.