How to make changes to a website done in with PHP.

by Adorer
16 replies
Hello folks,

I am a newbie.

I want to make a couple of basic changes in my website one of which is the contact email in my website which was done with PHP. The other is to connect the Facebook and Twitter icons to the corresponding pages on those sites.

I understand, so far, that to change the contact email I need to go to the contact file and then the freecontactformsettings.php file and change the email.

I am not sure how I can get to the contact file. Is it through cpanel? I went to the file manager on cpanel but if I click the section I want to open within the database it just downloads it to my computer.

Do I need to use a special program to open the files in order to make the changes?

Thank you kindly for your time and assistance.
#make #php #website
  • Profile picture of the author shahriyar
    Hi, is this wordpress site? If yes, then you can just use this plugin to display and configure your contact form, http://wordpress.org/plugins/contact-form-7/
    {{ DiscussionBoard.errors[8871808].message }}
  • Profile picture of the author joe ferdinando
    Originally Posted by Adorer View Post

    Hello folks,

    I am a newbie.

    I want to make a couple of basic changes in my website one of which is the contact email in my website which was done with PHP. The other is to connect the Facebook and Twitter icons to the corresponding pages on those sites.

    I understand, so far, that to change the contact email I need to go to the contact file and then the freecontactformsettings.php file and change the email.

    I am not sure how I can get to the contact file. Is it through cpanel? I went to the file manager on cpanel but if I click the section I want to open within the database it just downloads it to my computer.

    Do I need to use a special program to open the files in order to make the changes?

    Thank you kindly for your time and assistance.
    Most php files can be opened in Notepad++ do a search and download it. then go to your php file and right click and select to open in Notepad++ then edit and save!

    Always make a backup copy before you edit any file!
    Signature
    {{ DiscussionBoard.errors[8871870].message }}
    • Profile picture of the author shahriyar
      Also, maybe if you post the contact URL here, we will be able to understand better.
      {{ DiscussionBoard.errors[8871879].message }}
      • Profile picture of the author Adorer
        Originally Posted by shahriyar View Post

        Also, maybe if you post the contact URL here, we will be able to understand better.

        I am not receiving the contact emails and I need to make sure the correct email is there.

        Thanks.
        {{ DiscussionBoard.errors[8871914].message }}
    • Profile picture of the author Adorer
      Hello Joe Ferdiinando,


      Thanks for the help.

      I downloaded Notepad ++, made a backup which will go to my computer (I am expecting an email)I went to the File Manager in the cpanel, right clicked on contact but I do not see a selection to open the file nor even with Notepad ++. The selections are; Move, Copy, Rename, Change Permission etc...

      Thanks
      {{ DiscussionBoard.errors[8871909].message }}
      • Profile picture of the author joe ferdinando
        Originally Posted by Adorer View Post

        Hello Joe Ferdiinando,


        Thanks for the help.

        I downloaded Notepad ++, made a backup which will go to my computer (I am expecting an email)I went to the File Manager in the cpanel, right clicked on contact but I do not see a selection to open the file nor even with Notepad ++. The selections are; Move, Copy, Rename, Change Permission etc...

        Thanks
        You cannot edit the file online, you need to download the file and edit it on your computer with notepad++

        then save and reupload!

        Once again save a unedited copy on your computer just incase an error was made!
        Signature
        {{ DiscussionBoard.errors[8872057].message }}
        • Profile picture of the author Adorer
          Oooooooooooh.

          I thought I could edit the file online via the File Manager.

          Okay.

          I downloaded the file and when I go to open it, I get to select the program. Now, which one is Notepad++ there is Wordpad and Notepad. I had regular Notepad in the computer so it is not clearly distinguished.

          Thanks.
          {{ DiscussionBoard.errors[8872099].message }}
          • Profile picture of the author joe ferdinando
            Originally Posted by Adorer View Post

            Oooooooooooh.

            I thought I could edit the file online via the File Manager.

            Okay.

            I downloaded the file and when I go to open it, I get to select the program. Now, which one is Notepad++ there is Wordpad and Notepad. I had regular Notepad in the computer so it is not clearly distinguished.

            Thanks.
            I got your PM, I replied. OK once again go online and search for notepad++ and download it and install it, its FREE

            download the file you want to edit and edit it with notepad++ then save and reupload.

            Please ensure you save an unedited copy somewhere safe just in case of an error!


            Hope that helps
            Signature
            {{ DiscussionBoard.errors[8872113].message }}
            • Profile picture of the author Adorer
              Joe,

              I downloaded Notepad++ from here: Find out more about Notepad++ | SourceForge.net

              However, what shows on my computer is the Notepad the computer came with. Is it the same?

              Also, when I go to 'open with', the options are: Wordpad or Notepad. Which one of these two is Notepad++?
              {{ DiscussionBoard.errors[8872213].message }}
              • Profile picture of the author joe ferdinando
                Originally Posted by Adorer View Post

                Joe,

                I downloaded Notepad++ from here: Find out more about Notepad++ | SourceForge.net

                However, what shows on my computer is the Notepad the computer came with. Is it the same?

                Also, when I go to open with the options are Wordpad and Notepad. Which one of these two is Notepad++?
                when you right click the php file to edit you should see notepad++

                if you do not then click open with and you should see notepad++

                if not the right click on file and scroll down to properties and click properties.

                then where it states "open with" there is a "change button" click the button and find notepad++ and click to open with notepad++ and save by clicking OK

                edit your php file and save then go back to properties and change the open with to be internet explorer and click ok to save.

                Then upload your edited file and test to see if it works and has the desired change!
                Signature
                {{ DiscussionBoard.errors[8872268].message }}
                • Profile picture of the author Adorer
                  Hi, Joe.

                  I delete the previous download as it apparently was not working and downloaded a different and actually later model from here: Download Notepad++ version 6.5.3 They want you to download a lot of spam stuff like AVG and some tool bars but, I just said no, no, no.

                  It worked. I now have Notepad++ and it does come up as an option when I right click the file.

                  However, it looks like an alien language when the file is opened.

                  E.g., ñž•Ã½‚÷=bpÞc7ïY‰½Øñž•Ã¦Ã·Ã˜

                  What in the world is that? Is there somethin wrong with the copy of Notepad++?
                  {{ DiscussionBoard.errors[8872333].message }}
                  • Profile picture of the author Adorer
                    Just watched a Youtube video and the person is recommending not to open an exe file on notepad.... because it comes out mumble jumble/


                    What to do then? What are the options?

                    +++

                    Edited to add information I found as I researched the situation:

                    Well, Notepad++ is on the top of the list of the top ten on this site:
                    Top 10 Free Source Code Editors – Reviewed
                    http://www.hongkiat.com/blog/free-co...tors-reviewed/

                    I wonder why it opens to gibberish for me. Could it be that I am using Vista? Notepad++ seems to be the most popular and easy to use code editor.

                    Why is causing it not working properly?

                    Thanks.
                    Ummm, I wonder
                    {{ DiscussionBoard.errors[8872404].message }}
                    • Profile picture of the author joe ferdinando
                      Originally Posted by Adorer View Post

                      Just watched a Youtube video and the person is recommending not to open an exe file on notepad.... because it comes out mumble jumble/

                      How to Open EXE in Notepad : Computer Programming - YouTube

                      What to do then? What are the options?

                      +++

                      Edited to add information I found as I researched the situation:

                      Well, Notepad++ is on the top of the list of the top ten on this site:
                      Top 10 Free Source Code Editors - Reviewed
                      Top 10 Free Source Code Editors – Reviewed

                      I wonder why it opens to gibberish for me. Could it be that I am using Vista? Notepad++ seems to be the most popular and easy to use code editor.

                      Why is causing it not working properly?

                      Thanks.
                      Ummm, I wonder
                      Yes you dont open an exe file with notepad++ you open text, html, php files with notepad++
                      Signature
                      {{ DiscussionBoard.errors[8873275].message }}
                      • Profile picture of the author Brandon Tanner
                        Save yourself the headache and use FTP software to edit files on your server. It's a much better option than using cPanel for that. There's several good FTP programs out there, but I like Filezilla the best. You can configure Filezilla to use your favorite text editor (ie Notepad++) for the actual editing part.

                        Also, I don't know why you're messing around with .exe files. Normally, the only types of files you'll ever need to edit on your server are HTML, CSS, JS, and PHP.
                        Signature

                        {{ DiscussionBoard.errors[8873723].message }}
                  • Profile picture of the author joe ferdinando
                    Originally Posted by Adorer View Post

                    Hi, Joe.

                    I delete the previous download as it apparently was not working and downloaded a different and actually later model from here: Download Notepad++ version 6.5.3 They want you to download a lot of spam stuff like AVG and some tool bars but, I just said no, no, no.

                    It worked. I now have Notepad++ and it does come up as an option when I right click the file.

                    However, it looks like an alien language when the file is opened.

                    E.g., ñž•ý‚÷=bpÞc7ïY‰½Øñž•æ÷Ø

                    What in the world is that? Is there somethin wrong with the copy of Notepad++?
                    Sometimes they encode a file so that nobody has access to the php file code, so nobody can edit the file except for them. This is done to ensure and to secure more work from the end user. It may be a zend script or ioncube script! If thats the case you need to contact whomever done the origanal file and have them edit it.

                    Or if they advise you and tell you what file to edit then you edit that file. you can search the document for your email address and edit it!
                    Signature
                    {{ DiscussionBoard.errors[8873272].message }}
  • Profile picture of the author davidsotto1810
    Possible a failed download of the file. (I wonder though as it would be just a few kbs)

    Within cPanel you can edit the file. Right click and choose the option edit as code. It will recognize the code type and open accordingly. Edit and save. If you still get 'alien language', I wonder if it is encoded!!
    Signature
    {{ DiscussionBoard.errors[8872739].message }}

Trending Topics