I'm paralyzed by choice.
I know PHP, C# and Java fairly well as languages. Most of my web development in the past has been in PHP (with my own or other OSS frameworks). I've spent the last 2-3 years developing desktop GUI apps in C#. Before that I was doing desktop GUI apps in Java (with a little Servlets/JSP).
I want to develop a...
Has anyone found a good class, or other file that will convert a .doc file into html or something that I can read and turn into html?
I have been looking around for a couple hours now and have only found ones that require msword on the server in order to convert the file. I am pretty sure that is not an option but I have not actually t...
I need to conduct a survey of 3 questions.
The first question will be Yes/No, the second will have multiple answers, in which you can select multiple answers for just that question, as well as a "other" box that you can fill in an answer.
And the last will be a textarea in which they can enter general comments/suggestions.
I would lov...
I am wrestling with a php 5.2.6 problem. An api we use returns dates in this format DDMMYYYYHHMM. Exactly that format, fixed length, no delimiters. However, in my experimentation, this format seems to break strptime, which returns a false (fail) when I feed it a date in this format. It can reproduced, at least on my system, with this exa...
I am getting the following errors:
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
when running the following command at the command line:
php -c /etc/php.ini /path/to/script.php
/etc/php.ini is the same php.ini that shown in phpinfo().
Any ideas?
...
I'm working through Practical Web 2.0 Appications currently and have hit a bit of a roadblock. I'm trying to get PHP, MySQL, Apache, Smarty and the Zend Framework all working correctly so I can begin to build the application. I have gotten the bootstrap file for Zend working, shown here:
<?php
require_once('Zend/Loader.php');
...
How does one go about converting an image to black and white in PHP?
Not just turning it into greyscale but every pixel made black or white?
...
I know that PHP doesn't have native Enumerations. But I have become accustomed to them from the Java world. I would love to use enums as a way to give predefined values which IDEs' auto completion features could understand.
Constants do the trick, but there's the namespace collision problem and (or actually because) they're global. Arra...
I am wondering how I can break up my index.php homepage to multiple php pages (i.e. header.php, footer.php) and build a working index.php page using those separate php pages. I know WordPress uses this with different functions like:
GetHeader();
GetFoodter();
But when I tried to use those functions, it errors. I am guessing they are...
hello, does anybody know how could I get the TWO most largest values from the third column on the following array?
$ar = array(array(1, 1, 7.50, 'Hello'),
array(1, 2, 18.90, 'Hello'),
array(3, 5, 11.50, 'Hello'),
array(2, 4, 15.90, 'Hello'));
Output should be:
15.90
18.90
Thanks...
I've been looking for a good PHP ORM tool to use, and I recently found a good ORM class in Kohana. It has a fairly good and simple ORM implementation. The problem is, the code is unreusable outside of the Kohana framework without a rewrite/refactor. It relies on the Kohana class loader and various framework loading strategies to even wor...
Hi All,
I am deciding on a framework to try out for PHP and have narrowed it down to CakePHP and CodeIgniter.
I have a couple questions for any of you who have used or are familiar with both:
I like the fact that Cake keeps most of the code outside the webroot by default. Especially since I may end up using a single framework instal...
Say i have this PHP code:
$FooBar = "a string";
i then need a function like this:
print_var_name($FooBar);
which prints:
FooBar
Any Ideas how to achieve this? Is this even possible in PHP?
...
I'm trying to make a page in php that takes rows from a database, displays them, and then give the viewer a chance to upvote or downvote a specific entry. Here is a snippet:
echo("<form action=\"vote.php\" method=\"post\"> \n");
echo("<INPUT type=\"hidden\" name=\"idnum\" value=\"".$row[0]."\">");
echo("<INPUT type=\"submit\" name=\"up\...
This is a very complicated question concerning how to serialize data via a web service call, when the data is not-strongly typed. I'll try to lay it out as best possible.
Sample Storage Object:
[Serializable]
public class StorageObject {
public string Name { get; set; }
public string Birthday { get; set; }
public List<NameValueP...
I'm pretty sure this has already been answered, but for the life of me I could not find the question or answer after browsing/searching StackOverflow for the last 20 minutes. Anyway, the question:
What's the difference between \n and \r (I know it has something to do with OS), and what's the best way to echo a line break that will work...
I am having some trouble manipulating images using CodeIgniter 1.7. With the following code, the image is uploaded correctly, but, instead of a new image being made and then modified, the existing image is modified. Any help?
//Upload image first
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png|bmp';
$th...
At work we do almost everything in Java and perl, but I wanted to build out a feature using PHP and sessions. Some peeps thought that it was a bad idea to try to do PHP sessions on our system, cause it's distributed to many servers. What would the specific problem be?
...
The event returns a standardized timestamp in the format of "Sat Oct 25 21:55:29 +0000 2008"
How can I compare this with the current time in PHP so that it gives me the result in a form like "It has been 15 minutes!" or "It has been three days!" Also, how can I get the current time?
...
Photoshop has that great:
BiCube Shaper option for resizing.
However I cannot find an equivalent.
I've seen various code using GD that used imagecopyresampled and custom unsharp mask, but no where near the quality I am expecting.
Any help?
...