Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 3:34 PM   #1
Ian.H [dS]
 
Ian.H [dS]'s Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Look what happens when you mess with the .htaccess file!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Fri, 11 Jul 2003 10:05:42 GMT, "Greyhound"
<m.burton2@ntlworld.com> amazingly managed to produce the following
with their Etch-A-Sketch:

> PHP and me don't get along too well.
> I respect those who harness it's true power!



Ahh, I can feel the love Mark =)


>
> I pay for the php bits for my site at:
> www.darlingtontown.co.uk



I think it'd look quite nice, but I see the issue, where not
everything is being parsed and trashing the layout (probably your CSS
stuff too?)


> and last night I foolishly uploaded a file called .htaccess
> to make my 404 page display instead of the norm at:
> http://www.darlingtontown.co.uk/404.html
> (quite good) but you need to wait and read the text



Or have read it before =P


>
> I was over-the-moon when typing an address incorrectly it worked
> but to my horror the once nicely laid out site with the nav bar
> like this: http://www.darlingtontown.co.uk/directory/index.php
> has vanished to all but the php-folder programs.



Ahh, now that's a much nicer looking site than what has happened to
the "real" site.


>
> This could not of happened at a worse time as the local press show
> interest in
> purchasing the site from me.
>
> Hopefully I can fix this but for time being hear I sit fairly close
> to real tears :::



Firstly, remove the .htaccess file. This should atleast then restore
your site back to how it was / supposed to be (it'll look nice again
for the suits ), then work on what's wrong in the .htaccess file.

For error documents, you want to use something like:


ErrorDocument 404 /path/to/404.html


>
> The moral of this story is to those of you who don't have the
> foggiest idea about php is
> NOT TO MESS WITH IT!



But that way you don't learn, and learning's more than half the fun
=D

PHP's easier to learn than Perl IMO (although I started with Perl),
it's like anything, if you research it enough to requirements (ie:
not everyone learns at the same speed), then PHP can prove to be a
very powerful and flexible language indeed, with a more
"user-friendly" coding structure than the likes of Perl =)



Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPw6Limfqtj251CDhEQJGegCgh5Wkv3W/GjjMDhmankFyQO+s4MAAoJWB
5nB9QvTM/LIxhNSl4dnb6YY0
=/8P9
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 3:35 PM   #2
Greyhound
 
Greyhound's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Look what happens when you mess with the .htaccess file!

Thank you Ian for your kind reply.
The site 'thankfully' is now back to it's former glory
www.darlingtontown.co.uk

The problem was completely my fault.

I uploaded the .htaccess with the following contents:
'ErrorDocument 404 /notfound.html'
and saved it to the same folder as where a file of
the same name already existed, but I could not see?

Thankfully the lovely folk at XCalibre Communications Ltd
backed up this file and re-inserted it to fix the problem
The original .htaccess file has the following contents:
'RemoveHandler server-parsed .shtml
AddType application/x-httpd-php .php .html .htm .php3 .shtml
DirectoryIndex index.shtml index.html index.php index.htm

#AddHandler server-parsed .foo'

The folk at XCalibre added:
"If you need to do any other .htaccess configuration
just add the config commands to the .htaccess file that is
already there instead of making a new one "

Hhhhmmmm
I'm scared to do anything with this file!
If I added to it my:
'ErrorDocument 404 /notfound.html'
where would I put it?
and if I did would the whole thing go wrong again?

Best not to even think about it LOL

Best regards
Mark Burton






"Ian.H [dS]" <ian@WINDOZEdigiserv.net> wrote in message
news:oc2tgvssdb7dk2uetis0a5dpgd8ehqn1m8@4ax.com...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Whilst lounging around on Fri, 11 Jul 2003 10:05:42 GMT, "Greyhound"
> <m.burton2@ntlworld.com> amazingly managed to produce the following
> with their Etch-A-Sketch:
>
> > PHP and me don't get along too well.
> > I respect those who harness it's true power!

>
>
> Ahh, I can feel the love Mark =)
>
>
> >
> > I pay for the php bits for my site at:
> > www.darlingtontown.co.uk

>
>
> I think it'd look quite nice, but I see the issue, where not
> everything is being parsed and trashing the layout (probably your CSS
> stuff too?)
>
>
> > and last night I foolishly uploaded a file called .htaccess
> > to make my 404 page display instead of the norm at:
> > http://www.darlingtontown.co.uk/404.html
> > (quite good) but you need to wait and read the text

>
>
> Or have read it before =P
>
>
> >
> > I was over-the-moon when typing an address incorrectly it worked
> > but to my horror the once nicely laid out site with the nav bar
> > like this: http://www.darlingtontown.co.uk/directory/index.php
> > has vanished to all but the php-folder programs.

>
>
> Ahh, now that's a much nicer looking site than what has happened to
> the "real" site.
>
>
> >
> > This could not of happened at a worse time as the local press show
> > interest in
> > purchasing the site from me.
> >
> > Hopefully I can fix this but for time being hear I sit fairly close
> > to real tears :::

>
>
> Firstly, remove the .htaccess file. This should atleast then restore
> your site back to how it was / supposed to be (it'll look nice again
> for the suits ), then work on what's wrong in the .htaccess file.
>
> For error documents, you want to use something like:
>
>
> ErrorDocument 404 /path/to/404.html
>
>
> >
> > The moral of this story is to those of you who don't have the
> > foggiest idea about php is
> > NOT TO MESS WITH IT!

>
>
> But that way you don't learn, and learning's more than half the fun
> =D
>
> PHP's easier to learn than Perl IMO (although I started with Perl),
> it's like anything, if you research it enough to requirements (ie:
> not everyone learns at the same speed), then PHP can prove to be a
> very powerful and flexible language indeed, with a more
> "user-friendly" coding structure than the likes of Perl =)
>
>
>
> Regards,
>
> Ian
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBPw6Limfqtj251CDhEQJGegCgh5Wkv3W/GjjMDhmankFyQO+s4MAAoJWB
> 5nB9QvTM/LIxhNSl4dnb6YY0
> =/8P9
> -----END PGP SIGNATURE-----
>
> --
> Ian.H [Design & Development]
> digiServ Network - Web solutions
> www.digiserv.net | irc.digiserv.net | forum.digiserv.net
> Programming, Web design, development & hosting.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 3:36 PM   #3
Greyhound
 
Greyhound's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Look what happens when you mess with the .htaccess file!

I have dared myself and it's paid off!
now it's working just fine...
Nice to finally get there in the end!
Try: www.darlingtontown.co.uk/sillylink



"Greyhound" <m.burton2@ntlworld.com> wrote in message
news:a6ad8f3ddc3ee86b6ca6dffc9c56f9e2@free.teranew s.com...
> Thank you Ian for your kind reply.
> The site 'thankfully' is now back to it's former glory
> www.darlingtontown.co.uk
>
> The problem was completely my fault.
>
> I uploaded the .htaccess with the following contents:
> 'ErrorDocument 404 /notfound.html'
> and saved it to the same folder as where a file of
> the same name already existed, but I could not see?
>
> Thankfully the lovely folk at XCalibre Communications Ltd
> backed up this file and re-inserted it to fix the problem
> The original .htaccess file has the following contents:
> 'RemoveHandler server-parsed .shtml
> AddType application/x-httpd-php .php .html .htm .php3 .shtml
> DirectoryIndex index.shtml index.html index.php index.htm
>
> #AddHandler server-parsed .foo'
>
> The folk at XCalibre added:
> "If you need to do any other .htaccess configuration
> just add the config commands to the .htaccess file that is
> already there instead of making a new one "
>
> Hhhhmmmm
> I'm scared to do anything with this file!
> If I added to it my:
> 'ErrorDocument 404 /notfound.html'
> where would I put it?
> and if I did would the whole thing go wrong again?
>
> Best not to even think about it LOL
>
> Best regards
> Mark Burton
>
>
>
>
>
>
> "Ian.H [dS]" <ian@WINDOZEdigiserv.net> wrote in message
> news:oc2tgvssdb7dk2uetis0a5dpgd8ehqn1m8@4ax.com...
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Whilst lounging around on Fri, 11 Jul 2003 10:05:42 GMT, "Greyhound"
> > <m.burton2@ntlworld.com> amazingly managed to produce the following
> > with their Etch-A-Sketch:
> >
> > > PHP and me don't get along too well.
> > > I respect those who harness it's true power!

> >
> >
> > Ahh, I can feel the love Mark =)
> >
> >
> > >
> > > I pay for the php bits for my site at:
> > > www.darlingtontown.co.uk

> >
> >
> > I think it'd look quite nice, but I see the issue, where not
> > everything is being parsed and trashing the layout (probably your CSS
> > stuff too?)
> >
> >
> > > and last night I foolishly uploaded a file called .htaccess
> > > to make my 404 page display instead of the norm at:
> > > http://www.darlingtontown.co.uk/404.html
> > > (quite good) but you need to wait and read the text

> >
> >
> > Or have read it before =P
> >
> >
> > >
> > > I was over-the-moon when typing an address incorrectly it worked
> > > but to my horror the once nicely laid out site with the nav bar
> > > like this: http://www.darlingtontown.co.uk/directory/index.php
> > > has vanished to all but the php-folder programs.

> >
> >
> > Ahh, now that's a much nicer looking site than what has happened to
> > the "real" site.
> >
> >
> > >
> > > This could not of happened at a worse time as the local press show
> > > interest in
> > > purchasing the site from me.
> > >
> > > Hopefully I can fix this but for time being hear I sit fairly close
> > > to real tears :::

> >
> >
> > Firstly, remove the .htaccess file. This should atleast then restore
> > your site back to how it was / supposed to be (it'll look nice again
> > for the suits ), then work on what's wrong in the .htaccess file.
> >
> > For error documents, you want to use something like:
> >
> >
> > ErrorDocument 404 /path/to/404.html
> >
> >
> > >
> > > The moral of this story is to those of you who don't have the
> > > foggiest idea about php is
> > > NOT TO MESS WITH IT!

> >
> >
> > But that way you don't learn, and learning's more than half the fun
> > =D
> >
> > PHP's easier to learn than Perl IMO (although I started with Perl),
> > it's like anything, if you research it enough to requirements (ie:
> > not everyone learns at the same speed), then PHP can prove to be a
> > very powerful and flexible language indeed, with a more
> > "user-friendly" coding structure than the likes of Perl =)
> >
> >
> >
> > Regards,
> >
> > Ian
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGP 8.0
> >
> > iQA/AwUBPw6Limfqtj251CDhEQJGegCgh5Wkv3W/GjjMDhmankFyQO+s4MAAoJWB
> > 5nB9QvTM/LIxhNSl4dnb6YY0
> > =/8P9
> > -----END PGP SIGNATURE-----
> >
> > --
> > Ian.H [Design & Development]
> > digiServ Network - Web solutions
> > www.digiserv.net | irc.digiserv.net | forum.digiserv.net
> > Programming, Web design, development & hosting.

>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
>
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess - batch rewrite/ redirect? David Dorward HTML 2 07-01-2007 1:49 PM
.htaccess - batch rewrite/ redirect? Craig Bennett HTML 2 07-01-2007 1:49 PM
Halo PC- Networking mess McGrandpa [AGQx] Console Subjects 9 06-26-2007 11:35 AM
redirection by htaccess and stop the bot r.a.m. memory boomer 64 Website Reviews And Website Questions 0 05-28-2007 12:42 AM
Will using .htaccess prevent a good sitemap cashblogs Search Engine Optimization 3 05-07-2007 6:59 AM


Featured Websites




All times are GMT +1. The time now is 3:43 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98