Web Design

How do I get rid of the index.html or index.php

I want the www.domain.com/index.html (or php, whatever) to redirect to www.domain.com/

I thought I had it but getting a permanent / recursive redirect error

(http://qampanswers.com/question/31/simple-way-remove-html-page-links - see also)

Does location.href work on a relative url?

I'm following an example for a button

<input type="button" value="click" onClick="location.href='http://qampanswers.com';" />

Which works fine. But mine needs to be location.href='/category/question-tags/php' which doesn't seem to work for me in firefox or chrome

Drupal Crash Warning: Got a packet bigger than 'max_allowed_packet'

Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO

I'm getting this quite often almost every page view. I can sometimes get in and disable modules to try and get rid of whats causing it but so far no help

Jquery rounded corners IE error

I've already solved the problem but just listing here as I couldn't google an answer I had to try everything before I found the solution.

I had a site which displayed a list of letters <a href="#" id="a" class="clajaxletter">a</a> ... through the alphabet depending upon if there were entries for the letter. On all pages it worked great in Firefox but in IE on certain pages I had an error in jquery rounded corners and the ajax calls from these letters

The pages were practically equivalent so couldn't figure it out.

How do I alter the position of tags in drupal

I have recently installed drupal and like it pretty much but can't figure out how to move the tags output to the bottom of the post.

tags: tag,tag2,tag3
post content

to this

post content
tags: tag,tag2,tag3

Restore large backup files in Plesk

I had to reinitialize a server I use for hosting and had 3 domains on it.

I use Plesk parallels (9.2.3) and had recent backups but 2 of the domains the backup files were about 1.5 gig and when uploading the backup files to restore it just sits for hours and nothing happens. Is there a way to upload them a different way to get them to how they were before the re install??

How to reuse the same query on the page

I have added my first php page to add a dynamic page but need to display the results of a my sql query in different sections.

For a menu to link to its own page and display a summary of each seperatly on the page.

<?php
$query
= mysql_query("SELECT * FROM descriptions");
while (
$row=mysql_fetch_array($query)){
  print
'<a href='more.php?id=' . $row['id'] . '">' . $row['name'] . '</a><br />';
}

?>

Simple way to remove .html from page links

I have a simple 5 page site with pages index.htm about.htm contact.htm events.htm directions.htm I want my web addresses to all be http://www.mydomain/about ... for each execpt index just / for that I've been looking into using rewrites but seem they are all complex and full of things I don't need Sera

Attempting to remove an image from a product in Drupal / Ubercart error

While attempting to update a product on a site using Ubercart and Drupal I get the following error.

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (25 MB) that this server supports.

There is no file being uploaded as I'm removing the current one I get this error and no upload form appears.

I'm using IE7, No issues in firefox though.

PHP date questions (GetYear,GetMonth,GetDay)?

Does PHP have functions for GetYear, GetMonth, & GetDay

example:
$Date = 2009-8-7;
$Year = GetYear($Date);
print $Year;//print 2009
and so on . . .

Syndicate content