I'm having trouble finding documentation about how exactly to go about "turning on" mysqli. I'm running OS X SL and, as I understand it, since php5 is installed, the mysqli extension should already be there as well.
Is this as simple as adding a LoadModule line to php.ini? If I need to re-compile php, does anyone know of a good link...
Good Afternoon!
I have Joomla and a component called MyBlog (azrul.com) installed.
To enable pinging of Technorati I must enable xml-rpc.
By default this is disabled on my Shared Hosting account and cannot be changed. However, DreamHost says you can create your own custom advanced php5 installation.
Instructions here: http://wiki.dre...
I have the need to create an arbitrary amount of reports in many different file formats. Most of the formats I am able to use Smarty to template the output. However, outputting to Excel and PDF complicate things and require the use of FPDF or TCPDF and PHPExcel.
I am trying to figure out the best way to organize my classes via one or ...
echo ("<div style=\"text-align:center\">" . include ('file.php') . "</div>\n");
I'm not sure why, but whenever I put that line in my script I get blank screen :(
...
Hi!
I got a HTML/PHP5 page with a form, then when it gets posted, it creates a XML file with the form input as data.
But all åäö looks like if I had used utf8_encode() on them. I can't utf8_decode() them, because then the "service" I send the XML files to, complains that is not UTF-8 (like it should).
Parser failed. Reason :2: parser ...
I am writing a simple SFTP client in PHP because we have the need to programatically retrieve files via n remote servers. I am using the PECL SSH2 extension.
I have run up against a road block, though. The documentation on php.net suggests that you can do this:
$stream = fopen("ssh2.sftp://$sftp/path/to/file", 'r');
However, I have...
Hello! My first question is basically asking for a code-review. Does the code I'm about to provide use a Factory to promote Polymorphism? Its written in PHP. Here are the basic requirements:
Pass a long url to a library and
return a shortened url. Along with the
long url, pass user properties to
attempt to locate the users specifi...
Hello,
I am trying to implement a recurring subscription service on a website using PayPal however I would like to offer a free trial period before the user is billed and the subscription is started. Is this possible using PayPal's API?
I have very little experience using the PayPal API and cannot seem to find any useful documentation ...
So, often, I check my accounts for different numbers. For example, my affiliate accounts- i check for cash increase. I want to program a script where it can login to all these websiets and then grab the money value for me and display it on one page. How can I program this?
...
I like to prefix my tables in case I need to install the application to a host with only one database. I was wondering if there is a simple way of working with table prefixes using the PDO class?
At the moment, I am having to overwrite each method in my own database wrapped, replace %p with the prefix, and call the super method. It's wo...
I'm trying to implement an automatic timeout inside of an existing PHP application.
My goal is to have the system notify the user 15 seconds before the automatic timeout is set to occur and give them the opportunity to 'reset' the timeout timer.
I'm using jQueryUI bits as a part of all of this.
This chart may help describe what I'm tr...
Is there any way I can persist objects in PHP?
I am creating some objects in a script, but I have to create them everytime the script is run (losing their state unless I save it to DB).
I know variables can be persisted with $_SESSION global, but should I save objects in it?
If object persistance is not possible, what's the use of OOP ...
Maybe it's an obvious question, but I want to be sure.
How can i know if it MySQLnd is the active driver?
I'm runing PHP 5.3 and MySQL 5.1.37.
In phpinfo() mysqlnd is listed but only with this I can't be sure if I'm using MySQLnd or the old driver...
Extract of phpinfo() output
mysql
MySQL Support enabled
Active Persistent Links ...
I have a table (client) with 20+ columns that is mostly historical data.
Something like:
id|clientID|field1|field2|etc...|updateDate
If my data looks like this:
10|12|A|A|...|2009-03-01
11|12|A|B|...|2009-04-01
19|12|C|B|...|2009-05-01
21|14|X|Y|...|2009-06-11
27|14|X|Z|...|2009-07-01
Is there an easy way ...
In my googling it seems as though the mysql functions are not included in the base download of php5? I am seeing instructions for Linux, but I am running on a WAMP. Can anyone help me get these enabled?
I am fairly sure I have mysql/php/apache configured properly now (certainly apache and php are working), but I get an error when I try ...
Assume no byte cache.
Will the my_func be parsed before a & b are included, or after?
$x=my_func();
//a.php and b.php are **very** heavy scripts
include ('a.php');
include ('b.php');
//my_func makes the browser use it's cached version of the page.
function my_func(){
//send caching headers
//header(....);
exit;
}
...
I'm desperately looking for a PHP 5 framework that will work best to develop .mobi sites.
One major feature that it should contain is browser recognition for different handsets, so that the site will work properly on all types of phones?
...
I have an issue, my application works as follows.
First echo to the user that the generating of the csv file has started.
eg. echo 'Building of csv file started';
then I build the csv file.
Now I want to force the file to download, and this works perfectly.
this is my code
header('Content-Type: application/csv');
header('Co...
When I run the example code at http://us2.php.net/manual/en/exception.gettrace.php I get no "args" in the backtrace, as there is in the example output.
Is this a PHP bug or am I missing something?
My output:
array(1) { [0]=> array(3) { ["file"]=> string(25) "D:\www\project\index.php" ["line"]=> int(79) ["function"]=> string(4) ...
I am having trouble with my project and i think you guys can give me a hint (i'm a newbie and the prj manager is in a meeting).
I need to send and receive messages via SOAP. I read w3school and have some example code running. I want to know is there a site/server i can send SOAP commands for the purpose of learning? then i would need to...