[PHP] Includes werken niet altijd

Pagina: 1
Acties:
  • 39 views sinds 30-01-2008

  • TommyGun
  • Registratie: Mei 2004
  • Laatst online: 29-04 13:37

TommyGun

Stik er maar in!

Topicstarter
Beste GoT'ers

Ik draai met een vriend een photoshop site en daarin maken we veel gebruik van PHP en het includen van pagina's. Echter is er een vreemd probleempje. Sommige includes werken gewoon en anderen werken gewoon NIET. We hebben al van alles geprobeerd maar snappen echt niet wat het zou kunnen zijn.

Zie:
http://www.photoshop-arts.com/index.php?page=javascript

Arrays gaat terug naar de INDEX
Basic werkt wel gewoon. En zo zijn er wel meer op die pagina die niet werken en weer wel werken.
Kijk niet vreemd op als er pagina's totaal niet kloppen. Die tuts zijn namelijk niet klaar qua code.

Het vreemde is dus dat alle pagina's op dezelfde manier ge-include zijn.

/tutorials/javascript/index_javascript.php

Code van Arrays:

code:
1
2
3
4
5
6
7
<tr onMouseOver="this.style.backgroundColor='#B3E44C';this.style.cursor='hand'"; onMouseOut="this.style.backgroundColor='';" onClick="window.location.href='index.php?page=javascript_arrays'">
<td width='24' align="center">A</td>
<td width='102'>[img]"images/tutorials/javascript_standard.jpg"></td>
<td[/img]<b>Arrays</b><br>
<font size="2" color="000000">Learn how to use arrays</font></td>
<td width="177">Wie het gemaakt heeft</td>
</tr>


Code van Basic:

code:
1
2
3
4
5
6
7
<tr onMouseOver="this.style.backgroundColor='#B3E44C';this.style.cursor='hand'"; onMouseOut="this.style.backgroundColor='';" onClick="window.location.href='index.php?page=javascript_basic'">
<td width='24' align="center">B</td>
<td width='102'>[img]"images/tutorials/javascript_standard.jpg"></td>
<td[/img]<b>Basic</b><br>
<font size="2" color="000000">Learn how to use javascript in HTML files!</font></td>
<td width="177">Wie het gemaakt heeft</td>
</tr>

/tutorials/javascript/

Naam van Arrays:

javascript_arrays.php

Naam van Basic:

javascript_basic.php

Zoals ook te zien op dit plaatje:
Afbeeldingslocatie: http://gamergun.mine.nu/files/1/javascript.PNG

/

De inlcudes in de index.php in de hoofd dir:
code:
1
2
3
4
5
6
case "javascript_array":
  include("tutorials/javascript/javascript_arrays.php");
  break; 
case "javascript_basic":
  include("tutorials/javascript/javascript_basic.php");
  break;

We snappen er dus echt _helemaal_ niks van. Misschien weet iemand hier een oplossing?

B.v.d

[ Voor 136% gewijzigd door TommyGun op 07-10-2005 16:01 ]

“In a world without walls and fences, who needs Windows and Gates".


  • Snake
  • Registratie: Juli 2005
  • Laatst online: 07-03-2024

Snake

Los Angeles, CA, USA

alles gaat toch goed?

ik bemerkt nergens errors

wat is de link naar je echte site ( daar hebben we meer aan )

Going for adventure, lots of sun and a convertible! | GMT-8


  • TommyGun
  • Registratie: Mei 2004
  • Laatst online: 29-04 13:37

TommyGun

Stik er maar in!

Topicstarter
snake903 schreef op vrijdag 07 oktober 2005 @ 15:56:
alles gaat toch goed?

ik bemerkt nergens errors

wat is de link naar je echte site ( daar hebben we meer aan )
http://members.lycos.nl/a...hp?page=javascript_arrays
Gaat naar de index ipv dat ie de tutorial laad.

http://members.lycos.nl/a...php?page=javascript_basic
Laad de tutorial wel.

De andere tuts vallen buiten de site maar dat ff terzake. Is fout gescript :)

Op de echte site staan deze tuts nog niet omdat ze nog niet af zijn en mede door dit probleem.

[ Voor 17% gewijzigd door TommyGun op 07-10-2005 16:00 ]

“In a world without walls and fences, who needs Windows and Gates".


  • Xandrios
  • Registratie: Februari 2001
  • Laatst online: 22:11
In een situatie als dit mag je best een URL noemen. De vorige keer is hij waarschijnlijk gesloten omdat het topic over de website ging...dat is hier niet het geval (Het gaat namelijk om een include-probleem) :)

  • TommyGun
  • Registratie: Mei 2004
  • Laatst online: 29-04 13:37

TommyGun

Stik er maar in!

Topicstarter
Xandrios schreef op vrijdag 07 oktober 2005 @ 15:59:
In een situatie als dit mag je best een URL noemen. De vorige keer is hij waarschijnlijk gesloten omdat het topic over de website ging...dat is hier niet het geval (Het gaat namelijk om een include-probleem) :)
Dan upload ik deze tuts ff naar de echte site :)

// Uploaded:

http://www.photoshop-arts.com/index.php?page=javascript

[ Voor 10% gewijzigd door TommyGun op 07-10-2005 16:02 ]

“In a world without walls and fences, who needs Windows and Gates".


  • Snake
  • Registratie: Juli 2005
  • Laatst online: 07-03-2024

Snake

Los Angeles, CA, USA

heb het gevonden:

PHP:
1
 case "javascript_array":


moet zijn:

PHP:
1
 case "javascript_arrays":


javascript_arrays

;)

Going for adventure, lots of sun and a convertible! | GMT-8


  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 22-04 22:07

Bosmonster

*zucht*

case "javascript_array":

http://members.lycos.nl/a...hp?page=javascript_arrays


kut te laat :P
We hebben al van alles geprobeerd ...
vanalles behalve gewoon even de namen controleren? :P

[ Voor 45% gewijzigd door Bosmonster op 07-10-2005 16:03 ]


  • TommyGun
  • Registratie: Mei 2004
  • Laatst online: 29-04 13:37

TommyGun

Stik er maar in!

Topicstarter
.... :X 8)7 |:(

Geen woorden.... Wat een afgang :P

Alleen nu op zien te lossen waarom alles buiten de pagina's valt.

Bedankt iig!

“In a world without walls and fences, who needs Windows and Gates".


  • Snake
  • Registratie: Juli 2005
  • Laatst online: 07-03-2024

Snake

Los Angeles, CA, USA

je bent ergens je tabel vergeten te sluiten!

offtopic:
hoe kan jij je weg vinden in zo'n code?

Going for adventure, lots of sun and a convertible! | GMT-8


  • TommyGun
  • Registratie: Mei 2004
  • Laatst online: 29-04 13:37

TommyGun

Stik er maar in!

Topicstarter
Er was wel meer fout. In een haastige bui gemaakt. Is inmiddels al opgelost.

Veel span class tags en idd vergeten table's af te sluiten of juist dubbel afgesloten. Thanks iig

“In a world without walls and fences, who needs Windows and Gates".


  • imp4ct
  • Registratie: November 2003
  • Laatst online: 19-04 22:55
offtopic:
Als informatie website vind ik wel dat je, je website er ook een beetje naar mag maken. Want je code is nogal redelijk "amateuristisch", no offence, maar je kan VEEL meer CSS hier gebruiken, misschien een gouden tip.

Bedrijf : Webtrix

Foto materiaal:
Nikon D7100 | Nikor AF-S DX 18-105mm | Nikor AF-S 50mm | Nikon SB600


  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 22:53

Creepy

Tactical Espionage Splatterer

Hmmmja.. volgende keer zelf wat beter debuggen dus ;)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney

Pagina: 1

Dit topic is gesloten.