I have a script that's gonna check a zipfile containing a number of matching PDF+textfiles. I want to unpack or somehow read the textfiles from the zipfile and just pick out some information from the textfile to see that the file version is correct.
I was looking at the tempnam function to find an equivalent to make an tempdir, but mayb...
Instead of declaring each function as "static" in a class, is there any way that I can make a class itself "static"?
...
I'm looking to draw a 3d bar graph similar to the one below
My problem is that I can't seem to find any useful library that can do this for me, any classes available that can do this for me. I tried pchart but this does not seem to work for this, only for 3d pie charts
...
I have a entry form. Below it, I want to show a grid containing existing records. As the user clicks on a row of the grid, the values must get filled in the fields of the form above.
Is there any way to do this without refreshing the page?
...
For example in php I have a list of clients:
foreach($clients as $client)
echo '<li id="client_'.$client->id.'">' . $client->name . '</li>';
What is the correct way to bind a click event to each list item w/o using
onclick="my_function(the_elements_id)"
right in the list item.
...
I have a windows application and a php web application(not connected to internet all times), eventually data add/remove/update can happen at either places. So data has to be synchronized every day or manually.
I have a small sqllite database file (less than 500K) in my end, and the php web app uses Mysql, the structures remain the same....
Hi
i want to implement comet in php...
i have idea about how ajax works but i tried to study about long polling server push using comet but i am facing problem to figure out how it works. so can you please help me...
...
Now i do send emails with this loop:
while($data = mysql_fetch_assoc($resultat)){
...
sendMail();
}
function sendMail(){
...
mail($to, $subject, $text, $headers);
}
But this is not so memory efficient what I can understand. The script should be able to send to over 1000 receivers.
Do you know how to do this in a bett...
hello all!
i'm starting to work with php basics and i have some problem understanding how mix code with strings.
I found a great and useful style to print string blocks but i don't know the name and i'm not able to find examples.
the code below return me the error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expect...
I have one login page used by all users on the site. However, once they login, they go to different pages.
The users are currently stored in different tables in the database and I need to check to see which page I should navigate to.
Does this mean that I should add all these users to a single table and specify the kind of user?
W...
Pretty simple question here, hoping for a simple answer.
I want to display my wordpress time output as DD.MM.YY
So today it would be 10.11.09
I couldn't find anything in the wordpress codex, I supposed its a little php?
...
When displaying images on our website, we check if the file exists with a call to file_exists(). We fall back to a dummy image if the file was missing.
However, profiling has shown that this is the slowest part of generating our pages with file_exists() taking up to 1/2 ms per file. We are only testing 40 or so files, but this still pus...
Has anyone found a way to get Server Side Includes to work inside a Magento product description?
I tried adding one and the published page did not show the content I'm trying to include.
For example, I added this to the product description field in the Magento Admin:
<!--#include virtual="../test.php" -->
...
I have the following array that I need to recursively loop through and remove any child arrays that have the key 'fields'. I have tried array filter but I am having trouble getting any of it to work.
$myarray = array(
'Item' => array(
'fields' => array('id', 'name'),
'Part' => array(
'fields' => array('pa...
With the help of members from this post, I converted from prototype to jQuery.
function jsUpdateCart(){
var parameter_string = '';
allNodes = document.getElementsByClassName("process");
for(i = 0; i < allNodes.length; i++) {
var tempid = allNodes[i].id;
var temp = new Array;
temp = tempid.split("_");
var real_id = ...
I have a script in production - an ecommerce checkout page - that has had some errors in the past that have prevented it from working and have cost me money. I wanted to get notified on errors so I worked this up:
<?php
function mailErrorHandler($errno, $errstr)
{
echo "<!--PHP ERROR:";
echo "---[$errno] $errstr ---";
echo "-->...
I've written a PHP script that has to fork and do some processing in parallel, and then the main page returns data after processing. I'm currently using the pcntl functions to do this. I need to run anywhere between 2 and 10 threads to work in parallel, and I have to wait until I get a result from all of the threads before the script out...
Hello. Every one.
Actually I would like to know the list of commands & there use, which can be helpful for php development.
Say for example,
Crop Command => May be used to crop an image, Cut image
I know very few commands of linux like "ls", "pwd" just the basic ones.
I am not much interested to learn all linux programs. But The com...
I'm trying to determine a file based on specific parameters. First, I am recursively iterating through a directory structure such as the following:
C:/Users/programmer/Downloads/reviews/XBOX
C:/Users/programmer/Downloads/reviews/PS3
C:/Users/programmer/Downloads/reviews/GBA
Please notice the console game type at the end of the string...
I'm in a dilemma, hoping you guys can help:
I've created a website for a friend of mines relative. However, after making the whole thing, the relative says she didn't understand that the design pictures I sent her where scale 1:1, so she wants the website "bigger". (basically the same thing as pressing ctrl+plus in Firefox)
Do I have t...