![]() |
|
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. |
| |||||||
| 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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| -----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 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. | |||
|
| Advertisements |
| | #2 | ||
| 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 > > 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 | |||
|
| | #3 | ||
| 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 > > > > 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 | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: file, happens, htaccess, look, mess |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 | ||||
|