Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question about editing html as part of PHP site?

    Hi,

    I had someone build me a website a while back.

    I have never dealt with PHP before, but all the files i downloaded from the FTP are all PHP files.

    I need to change the advertisement link on the left side of my website so it is a valid coupon code.

    The website is eriedekhockey dot com and the coupon is the dicks coupon on the left about halfway down.

    I have opened every php file in the root directory searching for the href link and its not listed anywhere!

    Where can i find the actual HTML to edit in a PHP website?

    Any help would be greatly appreciated

  • #2
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I downloaded RAPID PHP and i am able to open it to view from web, i see the html source in there?

    What am i missing?

    I could really use some help with this please I just have to change one simple link.

  • #3
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,436
    Thanks
    11
    Thanked 304 Times in 303 Posts
    PHP runs on the server, and outputs HTML. So if you look from your browser or another tool that's just viewing the result of the PHP script, then you'll see what looks like a normal HTML web site. But the issue is that this site was not just coded as static text, it was generated by PHP. There are many ways the PHP script might generate that coupon code, and since none of us have the PHP, we could only guess as to how and where it might be doing it. Have you done a search on *all files* in the directory & subdirectories, for something like "sporting"? It's even possible that entire thing is coming from a different site - again, we cannot tell from where we sit.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,917
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    Do a multi-file search (I’m sure Rapid PHP is capable of that) and use a string that’s likely to be unique to the situation. For example, looking at the output HTML I see the link and the image for the advertising. You could use the link’s title (“Erie Dek Deals @ Dick's”) or the image’s alternative text (“Dick's Sporting Goods”) or file name (Hockey_280x400.png) to search for in all files. If the ad is stored as code in a file within your jurisdiction then you’ll most likely find it.



    Oh, hang on: I just noticed your site’s favicon. That looks suspiciously like Joomla CMS. So it’s possible that the PHP files you have there are just the files of the CMS, which stores all contents in a database and not as files. In order to remove any content you need to log into the admin area of that CMS and manage content there. You should have gotten some sort of admin login, right?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •