Jump to content

tim@getdim

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tim@getdim's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello all, i have a feeling im doing something wrong, but i have no idea what. being server-side code, php should not show when you 'view page source' in your browser (or rather it should display as html), correct ? why, then am i seeing php code when i view page source? see attached image
  2. Actually its perfectly valid HTML - its the same way you link a stylesheet. It works perfectly fine in every other site ive used it in. I actually just figured out what my problem was. i had tried to use raw html outside the <?php tag but it was causing error messages when i uploaded the file. turns out i had the wrong file. the site in question is using the MODx CMS which i am not familiar with - but after searching through the file structure for a while i was able to find the file that was generating the html for the index page. once i put in my html code there right underneath the stylesheet links, it worked perfectly fine. Thanks for your time, though. Sorry it turned out to be unneeded.
  3. I know basically nothing about PHP but i have a few websites i manage that are built with PHP. I plan to learn PHP but for the time being learning Javascript has a wider range of usability for me. That being said, Im trying to link to an XML sitemap using php. in html i would use <link href="sitemap.xml" /> how can i do this in PHP? I have searched google and such for how to do this but was unable to find an explanation that i could understand as relating to my need.
×
×
  • 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.