Hi,
we are building a PHP script that we need at work to create reports in PDFs
the reports will be created by using templates from postgrSQL.
so far I found that it can be done with the use of php and odt (openoffice) files [http://www.odtphp.com/] (do you have any other suggestions?)
now how I can convert the results to PDF so tea...
Hi, I've been tasked to create a PHP app which accesses an existing PostgreSQL database. This is my first time working with Postgre, not to mention the PHP has already been installed in the Linux box on which the app is supposed to run. I have no experience setting up this stuff, I just code.
My question is that I can't seem to get the ...
I'm creating a PDF file from a txt-template with tcpdf ([Example 8][1]). The txt-template looks like this:
SALUTATION
FIRSTNAME LASTNAME
STREET CURRENTDATE
SOMEMOREINFORMATION MYWEBSITE
I replace those markers with the correct value. So that it would look li...
I'm wondering if it's possible to use Paypal Adaptive Payments in the way that Kickstarter.com are using Amazon Payments to collect/fundraise.
For example: A user sets up a project. People pledge $5 to that project, and if it meets a goal, the system then automatically extracts the money from everyone, and puts it into user who created ...
Hi,
I've been Googling a lot, but I just can't figure out how to add a couple fields to user registration. By default Mediawiki only asks for username, password and real name. I noticed that form is a template under /includes/templates/UserLogin.php, but I don't want to modify that file to make the changes.
What is the correct way to d...
Hi,
I am generating a PDF with fPDF.
I need to strikethrough a long text inside a MultiCell. The text is justified to left and right, which probably is the source of the problem.
Here is my code:
//get the starting x and y of the cell to strikeout
$strikeout_y_start = $pdf->GetY();
$strikeout_x = $pdf->getX();
$strikeText = "Some te...
I'm working on a word press project. I noticed that rss is not working fine on google chrome. After I googled about it, it turned out that I need to install a plugin for google chrome so rss works. I want to know how to detect if the plugin is installed or not in case the user is using chrome browser.
Currently I'm doing the following:
...
Final: I've decided to basically use this: http://shiftingpixel.com/2008/03/03/smart-image-resizer/
As it handles everything, Ive turned caching off and do this in the admin controllers:
$image = file_get_contents(SITE_ADMIN_IMAGE.'/SmartImage.php?width='.$this->thumb_width.'&height='.$this->thumb_height.'&image=/images/'.$this->im...
I'm currently trying to write to a txt-file with PHP, I've found this small script:
<?php
$filename = 'testFile.txt';
$somecontent = "Add this to the file\n";
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'a')) {
echo "Cannot open file ($filename)";
exit;
}
if (fwrite($handle, $someconten...
Hello,
I created subdomain for my application.
host_www.type = "Zend_Controller_Router_Route_Hostname"
host_www.route = "www.mywebsite.com"
host_www.defaults.module = "default"
host_www.defaults.controller = "index"
host_www.defaults.action = "index"
store_infos.route = "storeinfos/:store"
store_infos.defaults.controller = "store"
sto...
I want to expire my previous page whet end user clicks on LogOut or Back button of browser. (PHP)
...
<?php echo isset($areas['footer']) ? $areas['footer'] : null; ?>
Any way to improve that?
...
I need to write some scripts to carry out some tasks on my server (running Ubuntu server 8.04 TLS). The tasks are to be run periodically, so I will be running the scripts as cron jobs.
I have divided the tasks into "group A" and "group B" - because (in my mind at least), they are a bit different.
Task Group A
import data from a file ...
I have a PHP site which runs quite a lot of database queries. With certain combinations of parameters, these queries can end up running for a long time, triggering an ugly timeout message. I want to replace this with a nice timeout message themed according to the rest of my site style.
Anticipating the usual answers to this kind of ques...
Hi all,
I have to implement chat application to mywebsite using php.
Chat has the features like audio, video, and file transefer.
so please give reply for this,
Thanks,
...
I'm trying to figure out the best place to put xdebug's excellent xdebug_time_index() function so that I get the best indication of page execution times when using a Zend Framework application structure.
I was thinking of putting it in post dispatch hook in my controller (all my controllers inherit from a base controller class) but I've...
I just spent 3 hours wondering why I couldn't start a session, then realised that I used:
session_start;
when I should have used:
session_start();
I received no error messages at all!
Perhaps then, I thought, it's a lazy way to differentiate functions from variables - but then remembered that it can't be as variables require a $
...
<?php
$user_id = $facebook->require_login($required_permissions = 'email,photo_upload');
$has_permission = $facebook->api_client->users_hasAppPermission("photo_upload");
$albums=$facebook->api_client->photos_getAlbums($user_id, NULL);
var_dump($albums);
?>
I am getting null when run this code
...
Using PHP, How to identify that the string is a path to any file?
...
Hello!
I have a really puzzling problem: I am writing a PHP CLI application running on a debian server. I am connected to the server via SSH, just the normal way. Everything runs as usual. Except the following:
echo "My CLI fun\n\n";
echo "Is this.";
Outputs on the SSH terminal, when executing the PHP script:
My CLI funIs this.
I ...