Saturday February 11, 2012 @ 10:05:49 GMT+10    ( Weather:  n/a )
Home » Weblog Archives

Powered byD's Bloggie
Weblog Archive browse by category ...
 → Category :
Display order:
Page 4 of 5   ( 46 entries , showing 31 - 40 )
<<  Previous  1 2 3 4 5  Next  

Redirecting with PHP header() - 11:41 pm
Browser , Bug , PHP , Site Issue , Standards  -  poster 

On the redirection of shoutbox, I've made 2 mistake causing it unable to work on some browsers, example IE 6. In PHP, to do a redirection is very simple.

[ Hide ]
[ Highlight ] [ Text ]
header('Location: http://domain.com/index.php');

However, don't do this [ Hide ]
[ Highlight ] [ Text ]
header('Location: http://domain.com/index.php');
die();


It seems logical if you put a die() after header('Location'). But the truth is, NO you shouldn't ! It will screw your code !
Took me some time to notice the problem. Not sure about header('Refresh') though, I'm calling die() after header('Refresh') and it seems running without problem.

Also remember to use absolute URI for the header instead of relative URI. Browser like Opera accepts relative URI but IE and Firefox ain't too friendly to it. That's the 2nd mistake I've made.

Last edited: Sun 2006-04-02 @ 09:06 , by DaRen 7 time(s)

Redirection on my site - 12:16 am
Browser , Bug , Site Issue , Web Hosting  -  poster 

Oh my god... the Shout box's redirection isn't working in IE 6. I just notice it after my dad told me about this... Before this, nobody encounter any problem ??? Or nobody is surfing my site using IE (impossible) ??? Please report any problem, error or weird CSS rendering and let me know which browser you're using. I can't test my site with all the browsers... takes too much time !

*FIXED*
I made 2 mistakes on the shoutbox redirection script. However the redirection problem in comment posting part is cause by the advertisement codes inserted by the hosting server. They're using window.onload to call their javascript and I'm using the <body onload> to do my redirction, that's why redirection isn't working, they just use my window.onload WITHOUT telling me...hehe... So I remove the onlaod inside the <body> tag and place under their code and it works.

Cause of problem [ Hide ]
[ Highlight ] [ Text ]
<body onload="my_redirect()">
<!-- start of server advertisemt -->
<script type="text/javascript">
    window.onload=their_function()
</script>
<!-- end of server advertisemt -->

Solution [ Hide ]
[ Highlight ] [ Text ]
<body>
<!-- start of server advertisemt -->
<script type="text/javascript">
    window.onload=their_function()
</script>
<!-- end of server advertisemt -->
<script type="text/javascript">
    window.onload=my_redirection()
</script>


Last thing I want to say is, Opera is working fine even there's 2 onload calling, I bet it will work with 3 or more onload inside a script. IE and firefox just can't cope with the extra onload and failed. Opera rulez !

D's Bloggie v2.0 - 8:27 pm
Site Issue , Site Updates  -  poster 

I've updated the blogging system. It's named as D's Bloggie.

What's New in 2.0
  • + Named D's Bloggie
  • + Added file upload/browsing
  • + % WEBLOG % is introduced for pointing to weblog's data folder (allowing the folder path to change dynamically in config)
  • - It's again integrated under admin's control panel with others functions like comment management
  • - Cosmetic updates on the interface
  • - Seperate [previewing in add new mode] and [previewing in edit mode] allowing more detailed info to be displayed
  • - Fixed some buggy BBCode parsing (eg. [ code ] [ list ] tag)
  • - Fixed misc minor bug

Click here if to find out more.

Seeking for greater hosting space - 3:29 pm
Site Issue , Web Hosting  -  poster 

I've abandoned my site for almost two weeks from last post. My storage is reaching the 100Mb quota, so I switched to other hosting and test their features. Among the hosting companies I tried, obviously the current hosting company remains to be my best option. One of the hosting company, WorldFreeWeb.com provides 1G of storage, greater control, free email account etc, but due to its amateur "support team", I decided to stay with current one. I guess I'll just have to cut down the images to save some space but eventually I'll still reaches the 100Mb quota, by then, I hope I'm able to find a better hosting.

Time zone! Oh come on... - 2:43 am
Bug , PHP , Site Issue , SQL , Standards , Web Hosting  -  poster 

I'm tired of dealing with time zone thing on this server... all my blog entries and calendar don't work out like what I expected... so there's the conversation between me and 100Webspace support team:
Quote:
31 October 2005
Me: Hi. I've noticed that PHP is using GMT+2 time zone but MySQL is set to use GMT+3 time zone. On top of that, apache log is using GMT+3 time zone. Can the time zones be standardized ?
Support: Finding a solution of your problem requires a consultation with our administrators. I have forwarded the issue to them and we will send you our answer as soon as we receive their instructions. If you have any additional questions, do not hesitate to ask. Meanwhile just wait for our next response.
Me: Hi. Thanks for replying. I'll wait for the next reply.
Support: We will contact you when we have solution about this issue.
01 November 2005
Me: Hi. Just wondering hows the progress.
Support: Our administrators haven't replied yet, I will remind them about this issue.
07 November 2005 (a week later...)
Support: The server time is now correct, sorry for the delay.
11 November 2005
Me: (revived) *geez* ... *checking back the access log*, found that the admin already response to it and standardize all the timezone on 31 October as soon as I made the post, but some how the reply from support team reaches me a week later...but at least they still reply, ain't that a good thing ? ;)

Shouldn't they take care of this in early stage when server is set up ?

Major site updates - 3:12 pm
Browser , Site Issue , Site Updates , Standards  -  poster 

Recent site updates:
  • fully XHTML 1.0 compliance (except the banner part from my hosting company)
  • changes in some parts of the layout
  • fixed the css/templates to make layout displayed corrently with Opera, FireFox and IE
  • CAPTCHA (code verification) added to comment section
  • shoutbox added (along with a stupid banner)
  • fixed some broken bbcode parsing (eg. the [list] tag) and other codes
  • added a lot of administration/management features to my admin control panel

Some findings

Im using 3 browsers, Opera, FireFox and IE6 to test my site, a normal routine, and I found that:
  • Opera Smartest and fastest browser, although weak security support in early versions, but using the latest version 8.50, you can do things like online banking without trouble.
  • Firefox A browser that is build 'strict' and doing things in 'strict' mode. I'm not saying this is bad, but sometimes it shows that the browser is somehow dumb, but still a lot better than IE in many ways. One thing I dislike about FireFox is how it handles the cache, clicking a "Back" button and your previous data in a form is lost and you need to retype EVERYTHING.
  • IE6 Im using IE 6, haven't test out the latest IE 7, nothing much to say about it. Any human being who knows how a computer looks like, they surely seen IE in action or at least used it once. Good thing about IE ? they're everywhere...
No chance to use a Netscape browser, not really not having the chance, just that I'm lazy to download and install a 4th browser in my computer. Netscape Communicator was my first choice back in the old days until Opera is born.


Also found a free online XHTML conversion service, not tested.

Quote (from PSE, the website):
Translate a block of HTML, XHTML or XML script and turn it into a format compatible with XHTML. If you have tried translating old HTML into XHTML you will understand what a time consuming exercise this can be. Ensuring all tags are closed and attributes are quoted is tedious work. Finding where alt tags are missing from images is even harder. This utility also formats the document so that proper tag indentation is used, but without interfering with the visual appearance of the document.

Shoutbox is opened ! - 1:12 pm
Site Issue , Site Updates , Web Hosting  -  poster 

The shoutbox is in the navigation menu on your left hand side if you cant find it. I've always wanted to code a shoutbox and it's in my TO-DO list since I started my site long ago. But since it's not the most important thing, it's dragged until recently I begin to lay my hands on it.

The shoutbox is embeded inside a IFRAME...so...? SO I DIDN'T EXPECT ANOTHER BANNER WILL SHOW UP INSIDE THE IFRAME TOO !!! The banner there is making the shoutbox and me looking stupid...grrr... angry whatever...anyway, like the commenting system, it's implemented with some simple abuse-protection. You can only post a new shout message 1 min after the previous shout of yours, double posting is not allowed too.

ps: design and layout are "stolen" from ShoutMix, however, all the codes are written by myself, so the copyright thing ? duh, you decide...

Which one ? HTML or XHTML ? - 1:48 am
(X)HTML , Browser , Computing , Internet , Site Issue , Standards  -  poster 

Currently the site's content is HTML 4.01 Transitional compliance, it works fine until I realize doing a <link> thing inside the header breaks everything... one example is:

[ Hide ]
[ Highlight ] [ Text ]
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href='/favicon.ico' />


It doesn't belongs to HTML 4.01...So, Im thinking of changing to XHTML, kinda headache though because I need to search and replace a lot of html tags like <br> to <br /> <input> to <input /> inside my templates...tons of them...omg...gayness...I should standardize my code in the beginning...

Last edited: Mon 2005-10-24 @ 16:35 , by DaRen 1 time(s)

CAPTCHA - 4:24 pm
Computing , Security , Site Issue , Standards  -  poster 

CAPTCHA image
This is what I'll implement it later to shoutbox/comment section. Shoutbox section should generate a smaller image to save space ? Haven't decide...let me think about it...

CAPTCHA ( Completely automated public turing test to tell computers and humans apart ), click here for more info.

Last edited: Sat 2005-12-17 @ 03:20 , by DaRen 3 time(s)

Found a bug ? Report to me ! - 7:14 pm
Bug , Site Issue  -  poster 

If you spot any bugs, security exploit, warning/error messages or weird CSS rendering when visiting my site, please kindly report them to me. Please also specify the browser and version of the browser you're using. In other words, I would like to hear from you if your web browser is throwing you with errors (either Windows / Linux / Mac based).

You can leave me a message by posting a comment on this entry or contact me. Thanks happy

ps : not those bugs that crawl on your LCD screen or keyboard ... hehe ...
Page 4 of 5   ( 46 entries , showing 31 - 40 )
<<  Previous  1 2 3 4 5  Next  
$ view_blog.php 2009.09.17 18:16:41 $
Lost? | XML/HTML sitemap | Contact
38.107.179.241 , 21 queries , 0.126s
Gzip enabled , CSS compressed , JS compressed
Copyright © 2005-2011 Darren's Outpost