Page 1 of 1

to call .php file from a java script

Posted: Thu Feb 09, 2006 12:35 am
by vidhya
Hi,
1)i have just called a example.php .Is it possible to do so...If yes then how?
2)can we pass argument to session_start() function and if so wat type of arguments can be passed?
3)apc_clear_cache() is used to clear the cache and when i use this function i am getting fatal error:call to undefined funtion apc_clear_cache();

Posted: Thu Feb 09, 2006 12:46 am
by feyd
  1. I don't understand.
  2. session_start() takes no arguments. Explain what you are wanting to do, in as much detail as possible.
  3. Are you sure that the APC extension is loaded? On most hosts, it is not.

Posted: Thu Feb 09, 2006 1:20 am
by vidhya
1)onclick of the link a open a new page and the new session is not created for that page.so when i logout the new page the main page also logouts.so i tired to create a new session when a open a new page.i gave javascript function on the onlick and that javascript will inturn call a example.php.in the example.php i have written session_start funtion to start a new session and i want pass the username in that session_start function.

i am not sure about the apc extension...what is the way to load the apc extensions....

Posted: Thu Feb 09, 2006 1:26 am
by m3mn0n
Have you looked into maybe using AJAX?

Google for "php ajax tutorial" for more info.