Tag Info

Hot answers tagged

11

You should have FTP login details somewhere in that list of usernames and passwords (if not call the supplier and ask for it) or if you have full cPanel access, you can setup an account for yourself. FTP information should have:- FTP Address in the form of ftp.yourdomain.com, yourdomain.com, or an IP address) Username Password Once you have the login ...


8

I found a solution for removing the "Line indented incorrectly" error but first I should say that dragonmantank has a excellent point - you shouldn't mix PHP and HTML. It is a recipe for headaches. However, unfortunatly I think mixing PHP and HTML is very common especially in legacy software. The quickest and dirtyest fix assuming we are using the phpcs ...


6

Check out HTML Tidy. There are a lot of different bindings for different languages, so you should be able to find one that works for you. Edit: If you're looking for something actively maintained, check out HTMLawed.


6

You're going to run into a lot of issues running PHPCS with your PHP code mixed in with HTML. PHPCS is only really useful when you parse pure PHP scripts. The built-in coding standards are built around pure PHP, not mixed PHP/HTML. One option would be to build your own custom standard and using that instead. The custom standard would take into account the ...


6

There's now an HTML5 version of tidy, found here: https://github.com/w3c/tidy-html5.


5

You can use conditional comments for IE users and then use JavaScript to redirect them to a page that tells them whatever it is you want to say. Try something like this in the <head> of your web page: <!--[if IE]> <script type="text/javascript"> window.location = 'ie-only.html'; </script> <![endif]-->


5

Aptana Studio 2 does what you want in the menu Edit > Format. I've used it and it formats html, css and javascript. The WYSIWYG editor BlueGriffon also can also format html when you open a file. Both solutions are free and open-source, but Aptana might be better. I'm not sure if BG keeps all the code unchanged, probably not. Notes: Aptana 2 needs to be ...


4

If you see a future in your site please rewrite it as soon as posible if it's not maintainable. I maintain several +5 year old big sites and in the time I've spend cursing on the stupid problems that came from it I could have rewritten them all. Do yourself a pleasure and rewrite it, it's more fun to build something new as well ;)


3

The named character references added in HTML5 do not work cross-browser, though the support is relatively widespread now. Generally, there is hardly ever any reason to use them (as opposite to references defined in HTML 4.1, which are well supported). Quite independently of this, the characters themselves (no matter whether entered as such, as named ...


3

This is the standard line ending issue. On Unix, line endings end with LF ("\n"), while Dos and Windows machines used a CRLF combination ("\r\n"). If your editor is changing the line endings as it writes files, the other system won't automatically adjust that. On the opposite end, older versions of Windows Notepad doesn't recognize line endings from ...


3

I was looking for an online tool and that's probably why I failed to find anything. I was pointed to the Coda plugin PHP & Toolkit that does it. Also most HTML editors like Taco do it natively (but not Coda).


3

Nightly DB Dump to file Nightly DB permissions dump to file (Maatkit) Use Tarsnap for offsite backup of DB dumps plus everything in /var/www/


3

The site code is in Subversion, which is in turn backed up nightly. Any development of the code is done on dedicated dev servers. Production is only updated once the new version has been tested. The content in relational databases is backed up nightly. Some of our sites have a huge volume of static content (images, pdfs etc.) and those are stored on RAID5 ...


2

Just google for a free web host that supports using your own domain name. Not sure how the hosting cost can be killing you though, most domains are more expensive than the cost of hosting nowadays unless your site is something special. :P


2

They've basically made a mashup using the APIs of these various apps and services. You can "get" exactly that by signing up for their service. If you want to build your own platform like that, then you need a programmer.


2

A request for a directory listing will have a URL that ends in /. So http://example.com/images/ will be a 403 because of the directory listing. http://example.com/private/document.html will be a 403 because of your rule for the private directory.


2

If a page has been deleted then it is correct to return a 410 (or 404). If, however, it has been temporarily removed and the intention is to restore it at some point then it could be acceptable to return a 503 (Service Temporarily Unavailable) and preferably with a Retry-After HTTP response header indicating a date when the resource will be next available. ...


1

The problem is that code inside “extension tags” like <syntaxhighlight> is not parsed, which is why the {{{code}}} is not replaced with the value of the code parameter. What you need to use is to use {{#tag}} parser function: {{#tag:syntaxhighlight|{{{code}}}|lang=java|style=background-color:lightgray; border:1px dashed gray;}}


1

Finally it worked by putting an additional line in the .htacces of the protected folder (call it private) ErrorDocument 403 /forbidden-because-of-protection and in the root's .htaccess I put the line like ErrorDocument 403 /forbidden-because-of-directory-listing So now when there is some request issued like /private/some/thing/bla the first .htaccess ...


1

You can accompish this by editing the CSS styling of the block quote so there's no need to remove the quote block as this would be bad for SEO purposes. Typical Example of a Scroll-bar within Block Quote: blockquote { width:600px; max-height:150px; overflow-y:scroll; } I made a online demo so you can take a look of it in action, here is ...


1

You might mean JavaScript library (or framework), there are several. As far as I know, these are the more popular ones: Yahoo's YUI Sencha's ExtJS Dojo Toolkit And probably dozens other ones, google for "JavaScript framework". Or check this Wikipedia article or this stackoverflow question.


1

Many applications and services have produced plugins so that they integrate with WordPress, which they're including in TodayLaunch anyway. You could look into using WP as the core rather than their custom interface and bolt things onto it. The video doesn't say how much integration they do(it's not exactly in-depth), so some more complex tasks might require ...


1

Eclipse seems to do a decent job of indenting/formatting HTML5. You just use the usual format command (Ctrl-Shift-F) on an HTML file loaded in the HMTL editor and it will reformat it. To adjust it, go to preferences --> web --> html files --> editor. You can also control validation here. (I'm using Eclipse v4.2.2.) Note that the HTML editor requires ...


1

I humbly suggest Espresso 2. From their website: The one and only CSSEdit 3 — CSSEdit's award-winning visual tools, now inside Espresso. With awesome CSS3 support for multi-browser gradients, shadows and more. Web Preview with X-ray — See how your CSS affects web layouts, visualize margins and padding, and quickly find the relevant style ...


1

A lot of browsers persistently remember sites that you've zoomed into before. You might want to check that it's not a local setting that is 'expanding' your particular website and cropping the white space. CTRL and zero will reset the zoom in Firefox, Chrome and IE.


1

No. They aren't all from the same code base. Interestingly, at least two of them are ColdFusion based: the Windermere one and the homes.com one. The URL schema is very different, though. I think the homes.com one may be using a ColdFusion framework (Fusebox?), but maybe the Windermere one is not. In contrast the movoto.com site uses ASP.NET (.aspx), as is ...


1

In addition to Subversion, nightly MySQL dumps, and a redundant (mirrored) server image, we're spoiled by having a host (AISO.NET) who also does hourly snapshots as part of all their hosting packages. Not only do I get to feel good about hosting with a company that's never used any grid-based power (they power the entire facility with on-site solar and ...


1

One option that I've used on a couple of sites is to use SyncBack, JungleDisk, and an Amazon S3 account. (I would post links to these products and services, but SE prohibits us new users from posting more than 1 link. Boo.) For those not familiar with these tools, SyncBack is an awesome and very feature-rich program for syncing files between different ...


1

I'm sure it depends on the specific circumstances, but be sure to factor in the extra time you have to spend maintaining your existing codebase vs. the expense of updating it. Not knowing more details, I'd say update it rather than struggling with what you've got.



Only top voted, non community-wiki answers of a minimum length are eligible