to call .php file from a java script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vidhya
Forum Newbie
Posts: 4
Joined: Wed Feb 08, 2006 11:27 pm

to call .php file from a java script

Post 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();
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
vidhya
Forum Newbie
Posts: 4
Joined: Wed Feb 08, 2006 11:27 pm

Post 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....
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Have you looked into maybe using AJAX?

Google for "php ajax tutorial" for more info.
Post Reply