Home » Web Development

Zend Class not found, PHP Error

Question:
I’m trying to run an RSS zend class, but it says the class is not found.
My server is Ubuntu 9.10 x64 , I had the same php file on my another server almost identical and I don’t get this error, I can’t figure out how to enable these zend classes….
Here’s the error I get:
Fatal error: [...]

Overlapping elements – CSS (Z-index) ?

Question:
Hey, I have some text I’d like to appear on top of another element. You can see it peaking out at the top but is covered with a black bar element: http://www.stunnazine.com/
I tried using the following CSS code and playing around with different values but nothing is working. This is in Wordpress and uses much [...]

Open Source Financial Portfolio software

Question:
Hello,
I have been tasked at work with finding an open source or even closed source for that matter of a portfolio management software.  By portfolio I mean financial so it should be able to do stocks, positions, and all that kind of funk stuff.  It can be php or .net
Solution:
ref. http://www.hotscripts.com/category/php/scripts-programs/financial-tools/

How to sum a calculated PHP column?

Question:
Only prints last $formattedc instead of a grand total.  Please see code.
There are 4 to 5 results in this query and it only gives me the last result of $formattedc instead of a grand total of the 4 to 5 results.
Code Snippet:
<?php
function arraySumRecursive($array)
{
$totals = 0;
foreach(new recursiveIteratorIterator( new recursiveArrayIterator($array)) as $num)
{
$totals += $num;
}
return $totals;
}
require_once(‘Connections/localhost.php’);
mysql_select_db($database_localhost, $localhost);
$sql = [...]

Create XML file via PHP MySQL

Question:
Hi,
I want to create an xml file as shown below via PHP, but need to add the photos from my database instead of hard coding, is there an easy way to do this?
<?xml version=”1.0″ encoding=”utf-8″?>
<slide_show>
<options>
<background>#FFFFFF</background>
<interaction>
<rotation>mouse</rotation>
<view_point>mouse</view_point>
<speed>20</speed>
<default_speed>20</default_speed>
<default_view_point>20%</default_view_point>
<reset_delay>30</reset_delay>
</interaction>
</options>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website01.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website02.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website03.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website04.jpg</photo>
</slide_show>
MySQl connection and query here..
do {
$imagesml = ereg_replace ( ‘.jpg’, ‘_sml.jpg’,  $row_view_photos1["image1"]);
$website = [...]

Login Page Working Sporadically

Question:
The form at https://www.webloginproject.com/login-project/phphtml/login.php is not working reliably.
It is the same code and database as the very plain form at https://www.webloginproject.com/login-project/php/login.php.
Userid: test
Password: password
Is a valid account.
Both pages collects debug information in a string variable which is output at the bottom of the page.
If you try the second link (to the plain page) first you will [...]

Exclude a MySQL result

Question:
I have a php page that shows some mysql results on a page. I would like to filter the
$cp_action = $got_data['action'];
One action it shows is “move”.. I would like to filter this out so it shows every action, except “move”
The line below defines “action”
while($got_data = mysql_fetch_array($tmp)) {
$cp_action = $got_data['action'];
This line calls it onto the page:
<?php [...]

Can mysql ignore quotes?

Question:  I have a field in a text area that is for product desriptions but whenever a single quote is included such as in the word you’re sql throws an error because it counts it as part of the query.  How can I tell it to ignore the quotes and upload the text, quotes included?
tia [...]

Add customer’s review on company website

Question:
Hi Experts.  A client of mine is trying to add a way that customers can leave feedback on their experience with his company.  Some sort of rating system like 5 stars and a brief comment or something similar.  Does anyone know of an app/website (free preferably) that can do this?  It would need to reside [...]

words with vowels

Question:
Greetings PHP Gurus (again),
I am trying to calculate the number of words that begin with certain named vowels like a, e, i, o, u.
I know I am off with this function but any help is appreciated.
Thannks a lot in advance.
<?php
$mystring = “Hell, world. I am checking for words that begin with a vowel”;
$loweredstring = strtolower($mystring[0]);
function [...]