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 8 of 8
  1. #1
    New Coder
    Join Date
    Nov 2009
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Cool Editing PHP - Is DEVELOPER SHOOTING STRAIGHT?

    Here is my situation. Have a developer programming some pages plus a shopping cart for my site using CRELoaded. I also have personally designed numerous other pages for the site using Expression Web.

    The question - I want to edit some of the text that the developer is using for the pages he is working on. I don't want to change any of the "information" fields. Example; “Create an Account” – has numerous "fields" to enter name, address, email address etc. Designating "mandatory" fields for email, etc. All the standard stuff.

    However, there is a ton of stuff I DO want to change on his pages. Different size fonts, rewording text descriptions and so on. I am NOT talking about changing any of the basic functions, just editing the HTML portion of the pages.

    If I download his work (name.php.html) and open in Expression Web, I can change any of the text I want. When viewing in “Code” view, all the form’s php coding is still intact. Of course when I save as Web Page, it saves as name.htm.

    But he is saying that won’t work – that I have to edit the php files from my web site after they have been uploaded. Somehow that just doesn’t sound right. All the original code he is doing is still there and when comparing the page in “name.php.html” and “name.htm” seems to be identical.

    Is what he telling me right? Is there a way to edit on my computer and not have to go to the actual web site? And WITHOUT knowing/learning php?

    Additional information for your consideration;

    While I am fine with my web authoring tool and VERY Basic HTML Editor (Coffee Cup). You will lose me real quick with long and involved coding scripts I’m afraid.

    I do not have CRELoaded installed on my computer; of course it will be installed on my site.

    There is no way I am going to learn PHP coding. I only have the one site and I am already short on time.

    I ONLY want to edit HTML, NOT the php code.

    Thanks for your input,
    Ron

  • #2
    bdl
    bdl is offline
    Regular Coder
    Join Date
    Apr 2007
    Location
    Camarillo, CA US
    Posts
    590
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Hey Ron. From a purely technical standpoint, no script should be named "name.php.html", it should either be "name.php" or "name.html". Either one of these two extensions can be parsed as PHP if the server configuration is made to do so. Heck, you can have an extension ".ron" and have it work. I am curious why any script is named "name.php.html", but I suppose there is a reason in his mind for that. It seems amateurish to me.

    I don't use or expect to use Expression Web. It looks to be Micro$oft's newest version of "FrontPage" (shudder). Unless I'm mistaken, however, the PHP scripts may very well have to be uploaded and exist in your "web" before you can manipulate them. I think if we can find another Expression Web user here they may be able to clear this up. I typically SSH into the server and hand code everything using VIM, so I'm not much help here.

    Overall, from the developer's perspective, it could also simply be that he doesn't want to altering anything that might "break" the script and wind up causing him more work - that he'll probably have to eat. I would probably do things differently, either create templates that the end user can alter to their heart's content, or collaborate a bit more with the client to ensure they're getting exactly what they want in the application.

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    If I download his work (name.php.html) and open in Expression Web, I can change any of the text I want. When viewing in “Code” view, all the form’s php coding is still intact. Of course when I save as Web Page, it saves as name.htm.
    I assume you are downloading the page using your browser. If so, the developer is right. What you have obtained is the parsed html output of that php page and not the actual file containing all serverside codes. For example, if you save this CF thread's page, you'll get showthread.php.htm, which would be a complete html document, where as the actual file showthread.php file may not contain all these tags or other elements.

    Thus the developer is right. He can't easily(though he might be able to understand your requirement from that modified html and then change the serverside code at his end.) plug the modified html output to the actual serverside file.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Clickman (03-13-2010)

  • #4
    New Coder
    Join Date
    Nov 2009
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Okay, understand a bit more now. I just THOUGHT I had downloaded all the code by downloading his page.

    Let me take this a step further. Say the pages are posted on the web site. Can I download them into some sort of WSWG PHP editor, tweak just the HTML then upload the revisions to my site?

    Or am I going to always be tied into a developer (as I won't be learning PHP programming)?

    Ron

  • #5
    New Coder
    Join Date
    Nov 2009
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    PS - to supplement my last post.

    If I have all the ORIGINAL PHP files; "address_book.php" which I just realized that I do, can I open them in some sort of editor to edit just the HTML?

    More of a WSWG Editor as opposed to a hand coded editor?

    Thanks

  • #6
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    It sounds like you're just viewing the rendered HTML and editing that? That absolutely will not work and could potentially erase a lot of work.

    You'll want to open the original PHP files in a text editor, preferrably an IDE or similar program that supports syntax highlighting. There are numerous programs available for free that will provide that.. Notepad++, Komodo Edit, etc.

    Do NOT use a WYSIWYG editor when working with files that contain PHP code. Again, the potential is there to erase a lot of work.

    Having said that -- and as a full-time programmer myself with a "hands on" boss -- if you admittedly have a limited knowledge of HTML, I would highly advise against editing source files.
    Last edited by kbluhm; 03-13-2010 at 10:04 PM.

  • Users who have thanked kbluhm for this post:

    Clickman (03-13-2010)

  • #7
    Regular Coder
    Join Date
    Dec 2007
    Posts
    137
    Thanks
    1
    Thanked 21 Times in 21 Posts
    +1 on not editing source files, if you don't know code.

    Even seemingly harmless whitespaces, which are invisible, when introduced to a PHP file like after php tags, can break a page. VIM and other programming editor let you see whitespaces, but learning VIM is like learning a new language. It rocks but a very steep learning curve.

    There are PHP template systems, like Smarty, or if he was using a framework which have template systems built-in, then he'd might be able to let you edit the template pages. I'd imagine though, that would cost more money (or time) as he'd have to refactor his code for a template system and/or PHP framework.

  • Users who have thanked pigpen for this post:

    Clickman (03-13-2010)

  • #8
    New Coder
    Join Date
    Nov 2009
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    THANKS EVERYONE

    Bottom line - keep my cotton picking hands off it!

    Got it!

    Thanks,
    Ron


  •  

    Tags for this Thread

    Posting Permissions

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