Jump to content


Photo

NEW PERSON{NEW QUESTION)


  • Please log in to reply
4 replies to this topic

#1 luciferonline

luciferonline
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 03 October 2006 - 11:28 AM

Hi all just took a shift from kirupa.
I am using an include{ object.php} (excuse my novicness)
haha

the question is how do i load that file only once?

not on every instance? or page change?

cheers brndn

#2 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 03 October 2006 - 11:30 AM

include_once('filename.php') or require_once(filename.php)
Registered Linux User #399942
Ubuntu User #14134
--
my blog

#3 luciferonline

luciferonline
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 03 October 2006 - 12:43 PM

still seems not to working. ???

this file contains some java vars and functions. so i want to store them for the next page.
anyone encountered this type of issue?

here a link for anyone who is interested
http://nvah.co.nz/first_test.php

thanks for the straight up response

cheers lucifer

#4 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 03 October 2006 - 12:49 PM

ok, now i'm a little confused. you're storing java vars in a PHP include file? or are you talking about spitting out javascript? also, if you include the file on each page, the vars should be there. i'm not sure i follow.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#5 luciferonline

luciferonline
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 03 October 2006 - 01:18 PM

yeh thats the one but i am not sure that this can be done?
if you have a play with the blue text links you will see what i am trying to do?
is this possible with php or am i better off using js?

Not too sure yet.
any pointers?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users