I am in the middle of building a site with user submitted posts that let the user upload a zip file along with images. At the moment I am using TDO-Miniforms and wordpress 2.9.2, but TDO-miniforms has stopped development and is broken with wordpress 3.0 that just came out. I would like to update the site to 3.0 but I don't know of any al...
Hi,
I've been building a simple ticket system and it's all done and working except for when it receives PDF files via email that have been sent using quoted-printable encoding. I've tried using quoted_printable_decode(), the quoted-printable.decode stream filter, the later just created an empty file. I've also tried using $input = preg_...
Hi, how to test if a file exist on the current computer using the application ?
I try to put the full url at my file like this, but it doesn't work :
if(file_exists("C:/wamp/www/project/photo/".$nom_photo))
{
echo "file exist";
$extension=pathinfo("C:/wamp/www/project/photo/".$nom_photo,PATHINFO_EXTENSIO...
Hi,
I've upgraded PHP on my local dev system to version 5.3.0, and there is some problem when I use constants in application.ini - following manual http://framework.zend.com/manual/en/learning.quickstart.create-project.html I have:
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
which leads to:
Warning: require_once(APPLICATION_P...
hii..I want to edit single row.i used
$this->data = $this->BuildingProperty->read(null,$id);
but it didnt fetch the values of this id.
so what can i do. Give me any suggestion.
...
What will work faster? How strongly will it affect productivity?
$test = new Test();
$a1 = array();
$a2 = array();
$a3 = array();
$a1[1] = $test;
$a2['qwe'] = $test;
$a3[] = $test;
...
Hi there,
I am generating an XML stream with a DomDocument. I need the pure XML stream, so I don't want to change the sourcecode with an xsl Transformation. Nevertheless I want people to be able to 'read' the XML in their browser without right click->View Source.
So what I do is I create a DomDocument and add a processing instruction:
...
Hi, I hope someone here could help me, because I couldn't find any solution with Google. What I have to do is to generate a XML-string (that works) an save that directly into a file on an sftp-server.
So far, so good... I used the following code with ftp and it works to, but not with ftps. So I either need another options-configuration ...
Hello, I have problems outputting UTF-8 characters into pdf file with Zend_Pdf. Here is my code:
// Load Zend_Pdf class
include 'Zend/Pdf.php';
// Create new PDF
$pdf = new Zend_Pdf();
// Set font
$page->setFont(Zend_Pdf_Font::fontWithPath('fonts/times.ttf'), 12);
// Draw text
$page->drawText('Janko Hraško', 200, 643, 'UTF-8');
...
Hi,
I have developed my webservice in Java CXF which returns java.util.List. This webservice is password enabled. that means i have used org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor for security purpose.
Now i want to call this webservice from php. but i am not able to do so. Without security settings i am able to access my webs...
I need to determind when a file has been uploaded via an ftp account so i can parse the data and insert into a db.
I could do this 2 different ways, either set up a schedule or watch the directory for any change. Either option would be fine.
I'm new to the apache /php space so any keywords that i can search upon would be handy.
Tha...
I have been asked to do a project where the client can create PHP plugins and add them to the website… same concept as WordPress plugins.
What is the best way to make a software that supports that? I'm not asking for the solution, I'm asking for the concept or structure.
Thanks.
...
Can any one please let me know is there any way to find a solution for the below stuffs. I need to find out the KEY and IV value from the below byte array. the byte array in .net and this has to be convert into KEY(string) and IV(string) via PHP.
private static readonly byte[] Key = {
0xda...
I have two sets of arrays like this for example.
$Arr1['uid'][]='user 1'; $Arr1['weight'][]=1;
$Arr1['uid'][]='user 2'; $Arr1['weight'][]=10;
$Arr1['uid'][]='user 3'; $Arr1['weight'][]=5;
$Arr2['uid'][]='user 1'; $Arr2['weight'][]=3;
$Arr2['uid'][]='user 4'; $Arr2['weight'][]=20;
$Arr2['uid'][]='user 5'; $Arr2['weight'][]=15;
$Arr2['ui...
What are the available options for me to stream a Audio file, in a website build on PHP?
What is the minimum RAM to have in the server to reduce the buffer time
...
in optimization in mysql wat are the topics i have to cover? there are so many things in that .......
...
I'm trying to track down a bug with some random characters appearing when saving data to our database. So far my travels have indicated that it's a character encoding issue.
I've swapped the collation on the dev to utf8_general_ci and it doesn't seem to have made a difference to the system, but I'm still unsure as to the full implicatio...
Hi,
I got the following error,
An invalid character was found in text content. Error processing resource
when I dynamically created xml file using php.The encoding I used was utf-8.I changed it to ISO-8859-1.The error resolved.But the issue is I am having tamil,hindi content So it is displayed as
à®à®à¯à®°à®¾-à®à¯à®à¯à®à¯-
header(...
I have trouble reading Postgresql arrays in PHP. I have tried explode(), but this breaks arrays containing commas in strings, and str_getcsv() but it's also no good as PostgreSQL doesn't quote the Japanese strings.
Not working:
explode(',', trim($pgArray['key'], '{}'));
str_getcsv( trim($pgArray['key'], '{}') );
Example:
// print_r(...
Hello,
I am working on my personal site, where I want to store my customers recent search result limited to that particular session.
I am using PHP platform and Javascripts.
Here is an example of what I am exactly looking at :
It stores your previously searched domain name for that particular session so that user can make decision ...