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
update post issues
I am trying to create an update to a post function, while the update does occur, the page routing and selecting of posts to be updated is whats getting screwed up. I have so many files involved in
Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code below that uses POST, but I need to modify this one so that it uses PUT instead.Code: <?php
void* and sizeof()
Hi,Using void* and sizeof is it possible to get the value of the object ?I understand that dereferencing a void pointer is not directly possible. Is there a way (like casting) or something else to get
Simple AND question
Hello,I've got following code:Code: if(strpos($row[13],"http://")!==false) $info['results'][$num]['player']="PREVIEW"; else
MS Exchange 2007 integration with ECC 6.0
Hello Experts,
Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but.... I'm scraping a ringtone site just so that I can download all of the ringtones and add them to my personal library.The website's code that
Code error with Index.php
Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/runevid/public_html/index.php on line 25<html><head><title>CrazyQuest -
php problem?
I don't think I'm stupid, but maybe I am.I am working on a sit for a friend I am try to put a link on a page and it is not working in FireFox and Safari. It works in IE but nothing else.I can get it
highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm trying to take individual search terms that are being $_POSTed and highlighting them in the search
Oracle Connectivity
Hi Every One,