(This is not an interface: I simply omitted the method bodies)
class _ {
protected $_data = array();
function __construct($data);
function set($name, $value);
function get($name);
function __set($name, $value);
function __get($name); //aliases for their respective non-magic methods.
# and some other gene...
Hey, I have put together an iPhone web app and i'm currently reading and displaying data from a MySQL database. I have added a search bar to this page and was wondering what the best way would be to search the content on the page.
http://j.mp/c6lV8c
...
Sorry for unclear description, my English is not good.
My problem is that I want to decode a string, and this string has nested content delimited by {}.
For example:
The string:
{any string0{any string 00{any string 000....}}}{any string1}any string.
The result I want to get:
array[0] = {any string0{any string 00{any string 000....
I wrote a script for screen pops from our soft phone that locates a directory listing for the caller but occasionally they get "Can't read input stream" and the rest of the script quits.
Does anyone have any suggestions on how to suppress error the error message and allow the rest of the script to run? Thanks!
$i=0;
$open = fopen(...
I've 2 databases, which are set up as mentioned here. How can I write a SQL query which involves database_1.table_1 and database_2.table_1 ?
E.g. consider this query
$sql = "SELECT distinct database_1.users.id, database_1.users.name
FROM database_1.users, database_2.sales
WHERE database_2.sales.user_id = database_1.use...
I am admittedly a PHP newbie, so I need some help.
I am creating a self-designed affiliate program for my site and have the option for an affiliate to add a SubID to their link for tracking. Without having control over what is entered, I have been testing different scenarios and found a bug when a full URL is entered (i.e. "http://examp...
<?php
mysql_connect("localhost", "username", "password") or die(mysql_error());
echo "Connected to MySQL<br />";
?>
This is the code I am using to check if I am able to connect to Mysql.
I am having problem connecting using this code. Should I change localhost to the name of the website?
I tried ("www.abc.com","login username", "pass...
I want to check if some products are in stock but whatever I do the isInStock() method always returns TRUE. My products are configurable products with no associated products and under the "Inventory" tab "Stock Availability" is set to "Out of Stock".
What am I doing wrong?
Thanks!
...
We have an xml word doc with image on title page that downloads correctly via ftp but the image is always missing if we try to download it via a link in an html page. We're using Firefox if that makes a difference. But we also tried it using Opera, with the same results.
Here's the link we're using:
$fileDest = './mydoc.xml';
<a type="m...
Is it possible using PHP (I was thinking may the phpinfo file or a php.ini file) or an .htaccess file to set a doctype for an entire subdirectory?
Basically, in a nutshell, I'm using a software that uses XSL templates to output data to a set of HTML files. Modifying the xsl:output tag to include the doctype breaks the template and ther...
Hi,
I have seen a few answers to this on SOF but most of these are concerned with the use of subdomains, of which none have worked for me. The common one being that the use of session.cookie_domain, which from my understanding will only work with subdomains.
I am interested in a solution that deals with deals with entirely different d...
I.e.
Month Returns
January 1
February 2
March 3
April 4
May 5
June 6
July 7
August 8
September 9
October 10
November 11
December 12
I've seen examples using mktime when given the number of the month and returning the month string, but not the reverse.
...
Hi,
Ive made a query in PHP, and I'm trying to send the results back into Flash via AS3, but it's throwing up this error...
Error: Error #2101: The String passed
to URLVariables.decode() must be a
URL-encoded query string containing
name/value pairs. at
Error$/throwError() at
flash.net::URLVariables/decode() at
flash.net...
Apologies: this is my first time on stackoverflow and I'm starting with a question and seeking advice. Sorry.
Caveats: I know HTML and CSS pretty well. Javascript and PHP are not completely alien, but I'm really pretty basic on those. That said, I'm pretty sharp and willing to search for explanations independently.
Ok, so my question i...
Hi,
Using php5 I´m making soap requests to a webservice based on a wsdl that doesn´t use the Header element.
Everything, Í´ve been asked now to use gzip compression on my soap requests.
So my client now looks like this:
$client = new SoapClient(xxxxx.wsdl', array('compression'=> SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP, 'trace...
So I need a wary bacik interaction example of C# client using some PHP API (A remote service being called from a C# app). I want to see a simple php API conteining 2 methos sum(a, b):c and echo(string):string and a simple C# client able to use that methods. How to do such thing?
...
So I am making a basic log-in page. I have a good idea of what to do, but I'm still unsure of some things.
I have a database full of students and a password column of course. I know I'm going to use md5 encryption in that column. The student enters their e-mail and student ID, and they get e-mailed a password if correct.
But, where do...
Okay, so I have an issue with an AJAX request. I currently have this URL:
http://www.google.com/images?hl=en&safe=off&gbv=2&tbs=isch%3A1&sa=1&q=cars+imagesize%3A500x500&aq=f&aqi=&aql=&oq=&gs_rfai=&start=0
I then pass it to my proxy script by modifying the string to this:
proxy.php?url=http:/...
Hello!
I've got a problem with a CKEditor plugin.
I need PHP code to make use of a MySQL database and several variables the CMS (WebsiteBaker) gives me. The CKEditor plugin should open a new dialog, gives several links defined in the PHP part you can choose of.
In the plugin.js the code
CKEDITOR.dialog.add('wbdropletsdlg', this.path + ...
When I try to use imap_open I get the following error:
Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.domain.com:110/pop3/novalidate-cert/} in /path/to/mailbox.php on line 5
Can't open mailbox {mail.domain.com:110/pop3/novalidate-cert/}: invalid remote specification
My phpinfo says that I have:
IMAP c-Client Ve...