|
If a PHP session variable is stored on file (like it is by default) then let's say I store a user's name into a session variable...
$_SESSION['username'] = 'Jason Davis';
Now when a page is built, if I call $_SESSION['username'] 100 times in the process...
Started by jasondavis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The file is only read when you call the session_start.
Runtime is ended or session_write_close is called.
|
|
I am trying to consume data from a webservice published by a 3rd party. I have a SDK win-app that is able to call the service (from my dev machine) and get results, but a web-app (running on the same machine) which has the same code, is getting nothing...
Started by madcolor on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Can you elaborate? Does the call not return.
Also, you say you get nothing back.
You have an "SDK win-app"? Is there some SDK code that calls the web service, or are you calling Security issue.
|
|
In a word, how?
I have a view controller that creates a few custom objects. One of those objects needs to call a method back in the controller. The object looks like it wants to call a class method in the controller, which might be fine, except that class...
Started by Eric Christensen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To create objects which can call the controller (to create more of the same), that i can help you.
|
Ask your Facebook Friends
|
I'm just about to make my first trip into the world of JNI (Java Native Interface) to provide file system change notifications from platform specific C/C++ code to Java. That is unless someone suggest some brilliant library for doing this that I've missed...
Started by Free Wildebeest on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Personally I would....
I strongly dislike make because of its implicit ruleset and treatment of whitespace .
As a simpler alternative to JNI, try JNA: https://jna.dev.java.net/, may solve this hassle for you and be simpler (assuming it can do what you want) .
|
|
Possible Duplicate:
How can I find the method that called the current method?
How can I get the calling function name from the called function in c#?
Started by Sauron on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Be careful not to go to far..
Is how far up the call stack to go.
|
|
Forgive me if the answer is obvious as it has been a long time since I have programmed vbscript.
Are there any avantages to using Call when calling a function in vbscript?
For example:
SomeFunction param1, param2
vs
Call SomeFunction (param1, param2)
Started by Kevin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The following example shows two ....
The Call statement is not required, but if you do use it, you must enclose any arguments in parentheses .
The difference as per MSDN -
To call a Sub procedure from another procedure.
No, there is not.
|
|
Hey Folks,
I have a doubt. I initialize COM, do CoCreateInstance and use some interfaces.Can I call CoUninitialize without calling Release? Does it cause any memory/resource leak?
Thanks in Advance, -Mani.
Started by Manigandan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You should only ever call CoUninitialize on shutdown and by that time it doesn't matter if you on the current thread....
Be called on application shutdown, as the last call made to the COM library after the application are discarded.
|
|
This little bit of syntax has been a bit of a confusion for me in Objective-C.
When should I call self.myObject vs just calling myObject.
It seems redundant however they are not interchangeable.
Would someone please enlighten me?
Started by Jonah on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're using synthesized accesors, then calling them just adds happens if you later subclassed your class.....
You should almost never call property accessors from within the implementation of the same class to access that state directly.
|
|
Hi,
Say my base method looks like:
public int GetCount() { }
Now I inherit from GetCount's class, and do:
public new int GetCount() { int count = base.GetCount(); count += 1; return count; }
Will calling base.GetCount() cause a return before my increment...
Started by mrblah on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Calling base....
No it will not.
If you are calling it like:
Base b = new Derived(); int result = b.GetCount();
you are calling the base method.
Probably showing us the code that calls it helps.
calling the base method.
|
|
Hi there,
Is there anyway to calling a function from another function .. little hard to explain. heres in example. One function loads html page and when ready it calls the original function.
I think i need to pass in a reference but unsure how to do this...
Started by mark smith on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I assumed that it may be an AJAX call so this would be trivial to call a callback....
Stuff and call function func func(); } order.anotherone(order.somefunc);
And if you need to refer doSomeStuff function accepts a callback function.
|