Fwd: 403 Forbiden

This is a discussion on Fwd: 403 Forbiden within the PHP General forums, part of the PHP Programming Forums category; Hello Brian Thank you, but permisions are ok (777). Any other idea? Thank you in advance Jesús de Diego &...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2007
Jesús de Diego Alarcón
 
Posts: n/a
Default Fwd: 403 Forbiden

Hello Brian

Thank you, but permisions are ok (777).
Any other idea?
Thank you in advance

Jesús de Diego

> Hello all and thank you in advance.
> I'm totally beginer in PHP .
>
> I'm developing:
> http://www.my3dgis.es/visor/visor.htm#
>
> At Options > Herramientas > Búsqueda en Catastro the application showsa
> form (ExtJS). In this form, the combobox Provincias should be loaded

using:
>
> http://www.my3dgis.es/visor/php/provincias.php
>
> However, using Firebug i can see that call to php/provincias.php always
> shows 403 (403 Forbidden).
>
> I don't know where the problem can be... this application is working ok

for
> me at localhost....
>


Check the permissions on php/provincias.php

brian

Reply With Quote
  #2 (permalink)  
Old 09-10-2007
Chris
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

Jesús de Diego Alarcón wrote:
> Hello Brian
>
> Thank you, but permisions are ok (777).


What about the permissions on the visor/php folder?
Can you access other files in that folder?

What about the permissions on the visor/ folder?
Can you access other files in that folder?

Do you have access to webserver error logs? It'll be a lot easier for
you to debug this if you do.

--
Postgresql & php tutorials
http://www.designmagick.com/
Reply With Quote
  #3 (permalink)  
Old 09-10-2007
Jesús de Diego Alarcón
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

Hello
I've noticed the problem is not well described:

1º There are some times the correct XML appears. However, these times, the
call in Firebug comes with "(403)" and highlihted in red color.

2º The others times, also appears (403) in the Firebug call , and as
response i get:
<HTML>
<HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD>
<BODY>
<H1>Forbidden</H1>
You do not have permission to access this document.
<P>
<HR>
<ADDRESS>
Web Server at my3dgis.es
</ADDRESS>
</BODY>
</HTML>
......
......

About permisions, visor directory has 755 also like php.
provincias.php has 777 permisions.

Thank you

Jesús de Diego



On 9/10/07, Jesús de Diego Alarcón < jesdial@gmail.com> wrote:
>
> Hello Brian
> >
> > Thank you, but permisions are ok (777).
> > Any other idea?
> > Thank you in advance
> >
> > Jesús de Diego
> >
> > > Hello all and thank you in advance.
> > > I'm totally beginer in PHP .
> > >
> > > I'm developing:
> > > http://www.my3dgis.es/visor/visor.htm#
> > >
> > > At Options > Herramientas > Búsqueda en Catastro the application

> > shows a
> > > form (ExtJS). In this form, the combobox Provincias should be loaded

> > using:
> > >
> > > http://www.my3dgis.es/visor/php/provincias.php
> > >
> > > However, using Firebug i can see that call to php/provincias.php

> > always
> > > shows 403 (403 Forbidden).
> > >
> > > I don't know where the problem can be... this application is working

> > ok
> > for
> > > me at localhost....
> > >

> >
> > Check the permissions on php/provincias.php
> >
> > brian
> >

>
>
>
> --
> Visit: http://www.kingzones.org/


Reply With Quote
  #4 (permalink)  
Old 09-10-2007
Chris
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

Jesús de Diego Alarcón wrote:
> Hello
> I've noticed the problem is not well described:
>
> 1º There are some times the correct XML appears. However, these times, the
> call in Firebug comes with "(403)" and highlihted in red color.


Does your host have any rate-limiting? Maybe you're hitting the server
too much and you're being seen as a denial-of-service attack and being
denied access.

> About permisions, visor directory has 755 also like php.
> provincias.php has 777 permisions.


Try what I suggested - access other files in the same folders.

That will tell us whether it's a file specific issue, a folder specific
issue or something else.

--
Postgresql & php tutorials
http://www.designmagick.com/
Reply With Quote
  #5 (permalink)  
Old 09-10-2007
Jesús de Diego Alarcón
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

Hello all

I can call other php files like:

http://www.my3dgis.es/visor/php/municipios.php

without problem (The response is OK so no Provincia parameter is providen )..

Indeed, the php file always work if i simply type :

http://www.my3dgis.es/visor/php/provincias.php

in a navigator.

The problem seems to arise if i use a call from the same domain , so the
call is done against the "php/provincias.php" file.

And... i think there is no rate-limiting ... The problem began as soon as i
uploaded the application...

Thank you anyway

Jesús de Diego

2007/9/10, Chris <dmagick@gmail.com>:
>
> Jesús de Diego Alarcón wrote:
> > Hello
> > I've noticed the problem is not well described:
> >
> > 1º There are some times the correct XML appears. However, these times,

> the
> > call in Firebug comes with "(403)" and highlihted in red color.

>
> Does your host have any rate-limiting? Maybe you're hitting the server
> too much and you're being seen as a denial-of-service attack and being
> denied access.
>
> > About permisions, visor directory has 755 also like php.
> > provincias.php has 777 permisions.

>
> Try what I suggested - access other files in the same folders.
>
> That will tell us whether it's a file specific issue, a folder specific
> issue or something else.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>


Reply With Quote
  #6 (permalink)  
Old 09-10-2007
Daniel Brown
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

On 9/10/07, Jesús de Diego Alarcón <jesdial@gmail.com> wrote:
> Daniel
>
> Here is the provincias.php code:
>
> <?php
> header('Content-Type: application/xml');
> //error_reporting(E_ALL);
> $request = '
> https://ovc.catastro.meh.es/ovcservw...rovincia';
> $xml = file_get_contents($request);
> echo $xml;
> ?>
>
> However, i'm not calling the PHP from another php but for the ExtJS ComboBox
> :
> http://extjs.com/deploy/ext/docs/out...tml#properties
>
> http://extjs.com/deploy/ext/examples/form/combos.html
>
> In my case, you can see the Javascript code at:
> http://www.my3dgis.es/visor/scripts/catastro.js


[snip]

Jesus,

On line 52 of visor/scripts/catastro.js, try changing the method
from post to get. If necessary, make those changes in
php/provincias.php.

See if that changes anything for you.

If it doesn't, what have your web logs told you so far?

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
Reply With Quote
  #7 (permalink)  
Old 09-11-2007
Daniel Brown
 
Posts: n/a
Default Re: [PHP] Fwd: 403 Forbiden

On 9/11/07, Jesús de Diego Alarcón <jesdial@gmail.com> wrote:
> Daniel
>
> Wowwww... Yes. This solved the problem...
> Thank you; many , many thanks......
> I'm really surprised with the very goog PHP people....
>
> Jesús de Diego
>
> 2007/9/11, Daniel Brown < parasane@gmail.com>:
> > On 9/10/07, Jesús de Diego Alarcón < jesdial@gmail.com> wrote:
> > > Daniel
> > >
> > > Here is the provincias.php code:
> > >
> > > <?php
> > > header('Content-Type: application/xml');
> > > //error_reporting(E_ALL);
> > > $request = '
> > >

> https://ovc.catastro.meh.es/ovcservw...sultaProvincia
> ';
> > > $xml = file_get_contents($request);
> > > echo $xml;
> > > ?>
> > >
> > > However, i'm not calling the PHP from another php but for the ExtJS

> ComboBox
> > > :
> > >

> http://extjs.com/deploy/ext/docs/out...tml#properties
> > >
> > > http://extjs.com/deploy/ext/examples/form/combos.html
> > >
> > > In my case, you can see the Javascript code at:
> > > http://www.my3dgis.es/visor/scripts/catastro.js

> >
> > [snip]
> >
> > Jesus,
> >
> > On line 52 of visor/scripts/catastro.js, try changing the method
> > from post to get. If necessary, make those changes in
> > php/provincias.php.
> >
> > See if that changes anything for you.
> >
> > If it doesn't, what have your web logs told you so far?
> >
> > --
> > Daniel P. Brown
> > [office] (570-) 587-7080 Ext. 272
> > [mobile] (570-) 766-8107
> >
> > Give a man a fish, he'll eat for a day. Then you'll find out he was
> > allergic and is hospitalized. See? No good deed goes unpunished....
> >

>
>


My pleasure, Jesus. I'm just replying this to the list - not for
bragging rights, but so that people searching the archives can benefit
as well. Nothing worse than searching the web, finding someone else
who had the EXACT same problem you're having, and finding no solutions
posted.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
Reply With Quote
Reply


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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0