I've put the Zend library folder into classes folder of my app and renamed all files and folders to lowercase ( using Ant Renamer ).
When I call Zend_Feed, instead of loading /classes/zend/feed.php, kohana loads Zend from my servers share\ZendFramework\library\Zend\ (Zend Server), so I get a Cannot redeclare class Zend_Uri_Http error.
...
how to add multiple records in mysql using php. Is using array the only solution to this problem. Because I tried using array but the record that would be added in the database would look like this:
array
...
I've noticed an annoying peculiarity in PHP (running 5.2.11). If one page includes another page (and both contain their own variables and functions), both pages are aware of each others' variables. However, their functions seem to be aware of no variables at all (except those declared within the function).
My question: Why does that h...
Hi,
I have a big list of Twitter users stored in a database, almost 1000.
I would like to use the Streaming API in order to stream tweets from these users, but I cannot find an appropriate way to do this.
Help would be very much appreciated.
...
Hi, I am newbie to Kohana (v3 used).
When I run the Hello World example.
If I link to another css file, the css doesn't work.
Original example works well.
Let's go and make the view file application/views/site.php for our message:
<html>
<head>
<title>We've got a message for you!</title>
<style type="text/css">
...
I have a static function in a class that needs to be called from several child classes. I need a constant from the calling child class to be available in that function. To have these constants available in other places, the child classes have a function that returns the value of that constant (php 5.2.9).
However, when in the parent cla...
I want to code a commercial web application and I wanted to use a PHP class which is under the LGPL license in that project.
Could I use the class and must I make the project open-source (what I don't want to)?
Edit:
I don't want to sell the Code - I just want to offer special things in the web app.
...
I've been looking all over but I can't find the documentation of Wordpress's XML-RPC API including a listing of all the functions, their parameters, etc. Can someone post the link(s)?
...
Really weird one going on here. Recently, my memcached instance basically stopped setting keys and data. Like 99% of things just silently fail, when before, completely worked before.
Is there any way to fix this guys? I try setting a key named 'a' with the data 'test', and it still just fails and doesn't set.
It has been working for mo...
I have a PHP script that needs to execute programmes that will work on files that have spaces in the names. Most PHP functions for executing external commands (e.g. exec()) take an 1 string argument for the command line to execute. However then you have to do things like escapeshellarg() to make your input safe.
Is there some way to exe...
Hi ,
I have a form which is accept html data but we need only their respective text not anything else.
is there any particular way to extract the text out of the html in php?
regards.
...
how i can merge two images in php without GD
...
I am currently trying to add a progress bar to a command line script and I've tried various solutions (including Zend and Console_ProgressBar). The problem they both have in common is that the progress bar doesn't stick at the bottom of the window because during the script, new lines and other information is outputted.
Is there any way ...
I am using adodb for PHP library.
For fetching the id at which the record is inserted I use this function "$db->Insert_ID()"
I want to know if there are multiple and simultaneous inserts into the database table, will this method return me the correct inserted id for each record inserted ?
The reason I am asking this is because I use t...
Hi,
I'm using below code for triming titles and show it recent posts section on my blog:
<?php global $post;
$releaseDate = get_post_meta($post->ID, "gosterim_tarihi", true);
foreach( $images as $image ) {
$title = get_the_title();
if (strlen($title) > 20) { $title = substr($title, 0, 20) . '…'; }
$attachmentimage=wp...
Is it possible to have an upload box on a website where as the XML file is being uploaded it can be parsed at the same time. So for example the values could start to populate say a div rather than waiting for the complete file to be uploaded and then parse.
...
I am having a problem using PHP's PDO object to prepare an update statement and updating the record. I have taken the raw SQL query and ran it in phpMyAdmin with the params replaced by their values that are passed to the function. Which updates the record as intended. However, when ran from the script it does not update. It throws zero e...
Currently I can add a Zend Form element dynamically to a form after it is first loaded. I do this through a mouse click and some ajax. However, I want to add the exact same element with a different name (basically I am giving each element an id). However, when I add the field it just shows up like a normal field and isn't Dojo'fied. ...
I'm using the substr() function to limit the characters in strings. but sometimes, the output text contains some obscure characters and Question marks etc...
the text which is "substred" is already UTF8 encoded, and NOT in html entities to make like this problem.
Thanks
...
I am looking for a basic open source CMS to build social bookmarks site like delicious.com. I need just basic functionality:
Users should have pages like site.com/username where titles and links for the bookmarked sites will be displayed.
Ability to check who else added a specific URL to the bookmarks.
Bookmarklet to quickly add a site ...