php nightmare

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Benchelt
Forum Newbie
Posts: 2
Joined: Mon Apr 12, 2010 7:36 am

php nightmare

Post by Benchelt »

Hi there

I created a resources page on my website and i now want to edit the title and H1 tag but when i open the files in dreamweaver they are php code and different to the
html 'view source version'. There does not appear to be a html version of the page - only php?? - am i looking in the wrong place?

The website is http://www.centralstudioscheltenham.co.uk/resources.php

Many thanks in advance,

Ben
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: php nightmare

Post by roders »

Well you built it in php so obviously no there wouldn't 1. What are you trying to achieve?
Benchelt
Forum Newbie
Posts: 2
Joined: Mon Apr 12, 2010 7:36 am

Re: php nightmare

Post by Benchelt »

Thanks for your response

I did not build the site. it is a custom made content management system and i am trying to optimise the meta tag and H1 tags, but i cant seem to find the right files to edit - only php files
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: php nightmare

Post by roders »

These can be a real pain to modify, where did you get this from?? may b i can have a look and help you more. The problem with some CMS is that they use .tpl files and includes to create their page. Its not rocket science but its annoying.
scorpio90
Forum Newbie
Posts: 23
Joined: Wed Mar 10, 2010 10:45 am
Location: Newcastle

Re: php nightmare

Post by scorpio90 »

just a long shot...

But in dreamweaver if you open the file in php can you not go to;
File:
Save As :
then type in .html after the document name ? ... i tried this just before and it seemed to have worked.

unless i am misunderstanding what you need :D
solid
Forum Commoner
Posts: 28
Joined: Wed Aug 12, 2009 11:56 am

Re: php nightmare

Post by solid »

Try this:
Assuming that you are using Windows, and have a local copy of the entire site. You can try searching the local site directory for files (of any type, *.*) containing the string "Cheap hotels in Cheltenham,Budget Accommodation in Cheltenham,Cheap Hostel Cheltenham", as that is your current TITLE. If a file is found, open it in Notepad or a similar text editor, not DreamWeaver, and edit the text directly.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: php nightmare

Post by omniuni »

PHP is parsed on the server, so that is why it is different than the code generated in "View Source" Start with the "index.php" or whatever file is loaded by default, and follow the code to figure out where the metadata is being generated from. Telltale signs are often things like "require()" or "include()".
Post Reply