RE: [PHP] 404 page

2009-12-28 Thread Gautam Bhatia
Hey,
There is one more way of going about it, Try using Absolute URL's
instead of relative ones' , If you are on your local computer using wamp for
testing codes and all, don't think you need to use putty :) , if you are try
to login to your local pc from another system, you can enable telnet on your
local machine, so that you can use putty to telnet to your system . you will
also need to change mysql setting to allow remote access , due to security
by default only local account are allowed to access the mysql server for
user, you will need to create account like u ''username'@'%' . good luck.

Regards,
Gautam Bhatia

-Original Message-
From: Sudhakar [mailto:sudhakarar...@gmail.com] 
Sent: Monday, December 28, 2009 11:14 AM
To: php-general@lists.php.net
Subject: [PHP] 404 page

hi

1.
i have a .htaccess file in my root directory on unix hosting

following is the code in .htaccess file

ErrorDocument 404 /filenotfound.html

the file filenotfound.html is also in the root directory as the htaccess
file

when i intentionally type a wrong url either if a misspell a file ex=
http://domainname.com/filenam.html or a folder ex =
http://domainname.com/100
to test if this is working filenotfound.html is not being called

any reason why this is happening



also the same thing with wamp on my local computer, i have a htaccess and
also the filenotfound
in d:/wamp/www however when i misspell the ulr of my localhost, i have
noticed in the status bar that the page is being redirected to
http://linkhelp.clients.google.com and i get a 404 from this website, how
can i change this redirection



2.
how do i access the php.ini and httpd.conf file from my cpanel, do i need to
ask my hosting provider to make any changes or can i make these changes
myself

3.
after downloading putty and if i have wamp in d:/wamp/www how do i access
mysql from the command prompt
using putty on my local machine

please advice


thanks.

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.698 / Virus Database: 270.14.122/2590 - Release Date: 12/28/09
12:46:00

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 9.0.698 / Virus Database: 270.14.122/2590 - Release Date: 12/28/09
12:46:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] 404 page

2009-12-27 Thread Thijs Lensselink

navneet sharma wrote:

Hi,

- About 404 error document... Make sure  filenotfound.html is in public_html
or www directory as your are using shared hosting...

- Generally in share hosting environment you are not allowed to modify
php.ini (GoDaddy allows), you can modify some property of httpd.config and
php.ini using .htaccess but again depands on server administrator's
permission.

Navneet.

On Mon, Dec 28, 2009 at 11:13 AM, Sudhakar  wrote:


hi

1.
i have a .htaccess file in my root directory on unix hosting

following is the code in .htaccess file

ErrorDocument 404 /filenotfound.html


try removing the '/' in front of the file. I don't think the 404 file 
resides in the root of your filesystem.




the file filenotfound.html is also in the root directory as the htaccess
file

when i intentionally type a wrong url either if a misspell a file ex=
http://domainname.com/filenam.html or a folder ex =
http://domainname.com/100
to test if this is working filenotfound.html is not being called

any reason why this is happening



also the same thing with wamp on my local computer, i have a htaccess and
also the filenotfound
in d:/wamp/www however when i misspell the ulr of my localhost, i have
noticed in the status bar that the page is being redirected to
http://linkhelp.clients.google.com and i get a 404 from this website, how
can i change this redirection



2.
how do i access the php.ini and httpd.conf file from my cpanel, do i need
to
ask my hosting provider to make any changes or can i make these changes
myself

3.
after downloading putty and if i have wamp in d:/wamp/www how do i access
mysql from the command prompt
using putty on my local machine

please advice


thanks.






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] 404 page

2009-12-27 Thread navneet sharma
Hi,

- About 404 error document... Make sure  filenotfound.html is in public_html
or www directory as your are using shared hosting...

- Generally in share hosting environment you are not allowed to modify
php.ini (GoDaddy allows), you can modify some property of httpd.config and
php.ini using .htaccess but again depands on server administrator's
permission.

Navneet.

On Mon, Dec 28, 2009 at 11:13 AM, Sudhakar  wrote:

> hi
>
> 1.
> i have a .htaccess file in my root directory on unix hosting
>
> following is the code in .htaccess file
>
> ErrorDocument 404 /filenotfound.html
>
> the file filenotfound.html is also in the root directory as the htaccess
> file
>
> when i intentionally type a wrong url either if a misspell a file ex=
> http://domainname.com/filenam.html or a folder ex =
> http://domainname.com/100
> to test if this is working filenotfound.html is not being called
>
> any reason why this is happening
>
>
>
> also the same thing with wamp on my local computer, i have a htaccess and
> also the filenotfound
> in d:/wamp/www however when i misspell the ulr of my localhost, i have
> noticed in the status bar that the page is being redirected to
> http://linkhelp.clients.google.com and i get a 404 from this website, how
> can i change this redirection
>
>
>
> 2.
> how do i access the php.ini and httpd.conf file from my cpanel, do i need
> to
> ask my hosting provider to make any changes or can i make these changes
> myself
>
> 3.
> after downloading putty and if i have wamp in d:/wamp/www how do i access
> mysql from the command prompt
> using putty on my local machine
>
> please advice
>
>
> thanks.
>