Hi,
I have a bit of experience with PHP but not extensive. It seems I cannot store any items to the array $details.
The class:
class Newsletter {
public $details = array();
function Newsletter($id) {
$details['id'] = $id;
echo "From same function: " . $details['id'];
$this->Load();
}
function Load() {
echo "From sibling function: " . $details['id'];
}
}
The call from the webpage:
$x = new Newsletter(123);
//output
From same function: 123
From sibling function:
Is there a special way to interact with the array so that it sticks for use with other functions?
Thanks
Sending a hyperlink through mail
HI all,
Passing Arguments to execlp()
I'm writing a program that mimics a unix shell. It's supposed to take commands with arguments and execute them. I'm having trouble passing in the arguments into the execlp call to correctly execute
Alterar a hora do servidor
Se alguém souber, ajude-me a adicionar 6 horas, obrigado<tr> <th>{ov_server_time}</th> <th
batch file not building to webapps folder
Hello. I just started running Vista :P and can't seem to get my projects deployed. I found out how to run the .bat file, but my project isn't in the Apache webapps folder. I'm getting an error in
cPanel API
Hi Guys,Need a little guidance. I'm trying to get my script to communicate with cPanel (or WHM) to show certain statistics, for example, how much space/bandwidth has been used.I have been reading
convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javascript array. is this possible? I tried with Json_encode but it doesn't seem to work. is there
foreach loop, assistance request
I would like some guidance on the usage of foreach as I try to parse through a large database and whittle down to a few select stocks. I'm currently doing this with vb, but I'm wanting to get it
Call Screen statement Error
Dear Experts,
Not "Just Another" MMORPG - text based.
Hello,I've been learning MySQL and PHP for the last 2-3 years.Though, I've had long pauses and months without touching PHP.Now, I started at a new school this autumn, and I found that some of my old
ME54/ME54N Conditional check for Release of PR
Hi Gurus,