PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Fwd: 403 Forbiden
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Fwd: 403 Forbiden

Réponse
 
LinkBack Outils de la discussion
Vieux 10/09/2007, 06h10   #1
Jesús de Diego Alarcón
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

  Réponse avec citation
Vieux 10/09/2007, 06h29   #2
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/
  Réponse avec citation
Vieux 10/09/2007, 06h43   #3
Jesús de Diego Alarcón
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/


  Réponse avec citation
Vieux 10/09/2007, 07h46   #4
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/
  Réponse avec citation
Vieux 10/09/2007, 22h18   #5
Jesús de Diego Alarcón
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/
>


  Réponse avec citation
Vieux 10/09/2007, 23h11   #6
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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/ovcservweb/OVCSWLocalizacionRC/OVCCallejero.asmx/ConsultaProvincia';
> $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....
  Réponse avec citation
Vieux 11/09/2007, 14h31   #7
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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....
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h31.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14619 seconds with 15 queries