document.ready-n a body tartalmat egy ajax endpointrol betoltod.
Ott a hiba magyarul a consoleban Az ajax csak azonos hoston megy, vagy CORS-al tudod engedelyezni: Using CORS - HTML5 Rocks
document.ready-n a body tartalmat egy ajax endpointrol betoltod.
Ott a hiba magyarul a consoleban Az ajax csak azonos hoston megy, vagy CORS-al tudod engedelyezni: Using CORS - HTML5 Rocks
If debugging is the process of removing software bugs, then programming must be the process of putting them in.
Ruby blog
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
Respect all, fear none
oregtata (2015-01-02)
Úgy sikerült megoldanom .htaccess helyet a valami.php írtam a következőt:
a .htaccess -el nem mentPHP kód:
<?php
header("Access-Control-Allow-Origin: *");
echo 'valami';
?>
Valaki nem tudja, hogy miért nem működik az include?
Mappaszerkezet
index.htm
- index
- info
index.htm
A fő index.htm-ben működik a
De a másiknál nem működik semennyi ponttal.PHP kód:
<?php include './index/module.php';?>
gondolom 3 kell... De 0-5-ig próbáltam...PHP kód:
<?php include '.../index/module.php';?>
Warning: include(.../index/module.php) [function.include]: failed to open stream: No such file or directory in /home/a4089503/public_html/index/info/index2.htm on line 4
Warning: include() [function.include]: Failed opening '.../index/module.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4089503/public_html/index/info/index2.htm
Mi baja van?
Norbii
Helló!
Nekem lenne, egy kérdésem:
Ha ezt a sort adom meg a .htaccess -ben akkor az oldalon azonnal internal 500 errort kapok:
# BLOCK SITE REFERRERS
SetEnvIfNoCase Referer blackhatworth.com spambot=yes
Order allow,deny
Allow from all
Deny from env=spambot
Ha pedig így adom meg:
RewriteEngine on
RewriteCond %{HTTP_REFERER} blackhatworth\.com [NC]
RewriteRule .* - [F]
, akkor meg nem történik semmi, ugyan úgy megtalálnak...
Van esetleg erre valami ötletetek?
Üdv!
Igen.
- Nincs bekapcsolva a mod_rewrite (Ha IfModule-t használsz, nem kapsz 500-at)
- Az allow,deny közé ne rakj spacet
A mod_rewrite elvileg be kell hogy kapcsolva legyen, mert mindenhol seo címek vannak.
Esetleg lehetséges, hogy a .htaccess-ben olyan egyéb más sorok vannak, amik kizárja ezt a beállítást?
Nem vagyok programozó, innen-onnan próbáltam összeszedni a megoldást.
Valaki nem tudja, hogy miért nem működik az include?
Mappaszerkezet
- index.htm
- index
-- info
--- index.htm
A fő index.htm-ben működik a
PHP kód:
De a másiknál nem működik semennyi ponttal.PHP kód:
<?php include './index/module.php';?>
PHP kód:
gondolom 3 kell... De 0-5-ig próbáltam...PHP kód:
<?php include '.../index/module.php';?>
Warning: include(.../index/module.php) [function.include]: failed to open stream: No such file or directory in /home/a4089503/public_html/index/info/index2.htm on line 4Mi baja van?Warning: include() [function.include]: Failed opening '.../index/module.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4089503/public_html/index/info/index2.htm
Norbii
Utoljára módosítva: Norbii által : 2015-01-11 13:21
A könyvtárakon felfele haladni ../ vel kell, ha kettőt mennél felfele akkor ../../ de amit itt mappaszerkezetnek adtál meg abban nem látom sehol a module.php-t...
Norbii (2015-01-12)
stvn
Köszönöm
Végre
Ment a
Norbii
Könyvjelzők