![]() | | ||||||||
| | #1 |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
|
Hi Kompozer experts, I've got a client using Kompozer who is trying to paste some PHP code at the very top of her webpage. Kompozer removes anything above the <HTML> tag when you save it, though - does anyone know how to stop it? Thanks! Sam |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | |
| | |
| | #3 |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
|
Unfortunately not - the code creates a cookie session, which needs to be the very first thing on the page. The HTML tag creates a browser output, which starts the session, and so by the time too cookie is set you get a "session already started" error. I actually thought Kompozer was a little more PHP friendly than this? cheers Sam |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | |
| | |
| | #4 |
| The Ethical Marketer War Room Member Join Date: May 2006 Location: Wisconsin, USA
Posts: 6,060
Thanks: 1,750
Thanked 3,026 Times in 1,340 Posts
|
Hi Sam, This may not be the best solution, but it should work. I had a similar issue with NVU. What she may have to do is upload the file to her server, and then go into to the file by logging into her hosting account and editing the file there. After I did that, the PHP code stayed. It may be a bit of a hassle, but it works. All the best, Michael Oksa |
| | |
| | |
| | #5 |
| Senior Warrior Member War Room Member Join Date: Aug 2002 Location: , , .
Posts: 1,186
Thanks: 62
Thanked 92 Times in 84 Posts
|
I used to have to add it by hand with notepad after the page was completed, and then don't open it in Kompozer, or if you do add the code back with notepad again. No matter what I tried it used to unencrypt some code. Alan |
| | |
| | #6 |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
|
Thanks a shame, I was thinking that might be the only way out - thanks guys, I'll pass it on ![]() cheers Sam |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | |
| | |
| | #7 |
| Always be learning War Room Member Join Date: Sep 2007 Location: Kitchener, Ontario, Canada.
Posts: 1,940
Blog Entries: 2 Thanks: 344
Thanked 397 Times in 295 Posts
|
Well, kompozer is a straight HTML editor. It doesn't do php. I've found the best thing for me is this: If I'm doing anything with PHP I use a free editor called aptana. If it is something quick I use kompozer.
|
| | |
| | #8 |
| Senior Warrior Member War Room Member Join Date: Aug 2006 Location: U.K
Posts: 1,720
Blog Entries: 4 Thanks: 94
Thanked 311 Times in 175 Posts
|
Hi I think there is an option in Kompozer where you can tell it not to modify the code when you upload the page. Ask her to look in the oprions and it should be something like "Do not reformat HTML code" I know you are talking about php but this may be the problem. At least I had a simalar issue with NVU. All the best Chris |
| Want A Step By Step Guide To Making $100+ A Day? SWTOR Savior Is 100+ Gravity In Under 3 Weeks... CLICK HERE TO MAKE $100 A DAY FAST... | |
| | |
| | #9 | |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
| Quote:
The problem is they seem to stick to a "we know best" model, where they block anything that isn't basic HTML. For example, it seems you also can't save a file that doesn't have any HTML tags in the top. Why would you want a file with no HTML tags in the top? This is very common for "include" files, were you're using various HTML files as a template. But Kompozer blocks this as well. When software tries to get too smart for it's own good, it dramatically decreases it's usefullness. This was one of the downfalls of Frontpage, back in the day. I think it still trys to "clean" your code up, but there is an option to turn it off. Dreamweaver's biggest strength is it doesn't force the user to play by it's own rules. It assumes the user knows what they're doing. It's refreshing. A shame, because Kompozer is a great free solution, apart from this. Hi Chris, I tried those settings, but they didn't seem to make any difference. I'm not sure what they do, actually? Either these both On and Off, Kompozer still removes tags at the top of the page. Thanks for the help, though! It looks like my client may go for a different solution. cheers Sam | |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | ||
| | |
| | #10 |
| Senior Warrior Member War Room Member Join Date: Dec 2006 Location: Cairns, Australia.
Posts: 3,267
Thanks: 3
Thanked 784 Times in 425 Posts
|
I've had exactly the same problem. I just create the page, edit it etc in Kompozer then after I'm finished add in the PHP by opening the page in Notepad. It is annoying that if you have to edit the page with Kompozer again you also have to use Notepad after you're finished to add the PHP back in. It does work though. If anyone has a better solution I'd love to hear it. Kindest regards, Andrew Cavanagh |
| # 1. Special Offline Gold Report PLUS 2 FREE Gifts!...$500 In 24 Hours Without A Website # 2. Make $1,500 Today...This Original 48 Page Offline Gold Report Reveals The Simple Step By Step System For Selling Your Online Marketing Skills To Businesses Right In Your City # 3. Click Here For More FREE Online Copywriting Secrets Than Any Other Site On Earth! | |
| | |
| | #11 |
| GarrieWilson.com War Room Member Join Date: Jul 2006 Location: Mount Vernon, IL
Posts: 4,236
Blog Entries: 20 Thanks: 489
Thanked 300 Times in 185 Posts
|
right click html file, open with notepad, paste php code, save, upload. Pretty simple. |
| | |
| | |
| | #12 | |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
| Quote:
The best solution is for Kompozer to give an option to NOT modify source code automatically. Some philosophy for the morning: "A masterful programmer is not he who can offer the best features, but he that can offer the best user exerpience." -- Sam Stephens, 2008 ![]() cheers Sam | |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | ||
| | |
| | #13 |
| DLGuard.com War Room Member Join Date: Nov 2004 Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
|
I just found an alternative - better than Kompozer, and doesn't mess with your code: FREE HTML Editor - Better than Kompozer! cheers Sam |
| DLGuard v4.6 Now Released! Full integration with Amazon S3 for authenticated large file and high bandwidth downloads. www.dlguard.com Where size doesn't matter! | |
| | |
| | #14 | |
| Senior Warrior Member War Room Member Join Date: Oct 2006 Location: San Francisco, CA
Posts: 3,386
Blog Entries: 11 Thanks: 723
Thanked 778 Times in 494 Posts
| Quote:
| |
| | ||
| | |
![]() |
|
| Tags |
| code, experts, kompozer, page, removing, stop, top |
| Thread Tools | |
| |
![]() |