I am trying to understand how to remove frames from an animated GIF.
Currently I am trying this (as a test):
$count = 1;
foreach ($_im AS $frame) {
if ($count > 1) { $frame->removeImage(); }
$count++;
}
However this seems to toast everything in the object.
Suggestions from workmates have been to just create another I...
I have been trying to get the WordPress menu inline and below my side navigation but FireBug is not helping and I cant see where I am going wrong! The doe for the side nav is blow but if you go to http://bradburyembroidery.com/houses4cash/blog/ you will see how it moves out of line!
<?php
/**
* @package WordPress
* @...
I have this PHP code I am trying to integrate with the html layout below it however I can not figure it out, the php
code gets all status post and displays them in order but it then displays all comments that are associated with the status post so a status post could have
0 comments or it could have multiple comments.
If you read the no...
Hi guys,
i create my prepared statement as:
pg_prepare('stm_name', 'SELECT ...');
Today, i had a problem (calling twice a function for mistake) when declaring a prepared statement with the same name twice:
Warning: pg_prepare() [function.pg-prepare]: Query failed: ERROR: prepared statement "insert_av" already exists in xxx on line 2...
How to include multiple paths when a PHP script is called?
For example, I need to point include_path to multiple directories; inside each directories containing sub directories etc. But I want to include all the php files inside the sub directories as well, so that when my master PHP script can call any methods and objects defined insid...
Hi, I am in dilemma situation, and do not know which one is better. Lets say I have 100++ (or more) games on my website. I want to store highscore for each game. Should i store all the highscore in 1 table or each game has its own table?
Compare:
1 table: 1 table contains a lot of rows(data). Every user play different game will submit ...
Is it possible to convert AI to PNG using PHP?
...
Basically, we have this here module that we offer to our users that want to include a feed from elsewhere on their pages. I works great, no sweat. The problem is that whenever users mishandle the feed link on their hands we have to manually remove the module from existence because Zend Feed crashes and burns the entire page just like any...
Hey there lovely stackoverflow people!
I have got directories which contain brackets in the names.
i.e. "dir_123[[email protected]]"
Within that dirs there are .tif files.
What I do is counting the Tif files. On my Mac I did that with MAMP and it worked great:
$anz = count(glob(str_replace("[", "\[", "dir_123[[email protected]]/*.tif")));
On...
I need a regular expression which extract type specifier ( like %d,%s) from a string.
<?
$price = 999.88;
$str = "string";
$string = "this is a %f sample %'-20s,<br> this string is mixed with type specifier like (number:%d's)";
//output 1 :echo sprintf($string,$price,$str,500);
//output 2 should b...
I am currently writing a CMS and remember someone (it might have been on here) criticise the existing CMS for not having a robust enough user permissions system. I've got a method planned out but it I feel it has fallen into the usual trap of being a bit too fine-grained which makes understanding and implementing it a horror for end use...
I want to truncate some text (loaded from a database or text file), but it contains HTML so as a result the tags are included and less text will be returned. This can then result in tags not being closed, or being partially closed (so Tidy may not work properly and there is still less content). How can I truncate based on the text (and p...
I want to send emails through a web app, for example, reminders of a tasks manager, reminders of birthdays... I want to program a date and an hour, and get the email sent at that moment.
I think I have two options to do this: using cron or sending email with a future timestamp.
Using cron involve to run a command (which will query the ...
I want to record number of hits to the pages and I'm thinking either plain file-based or SQLite storage.
File-based option
A file includes only an integer incremented with each page visit and every page has a unique file name. If I open a file using a mode, I can write but is it possible to not to close it in order to save from opening ...
Hi friends,
I want to modify my xml file in PHP based on the following criteria.
my xml structure look like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<markers>
<marker>
<type></type>
<title></title>
<address></address>
<latitude></latitude>
<longitude></longitude>
<marker>
<marker>
...
I have a Treeview on my main page. This makes the control a member of main page class.
How can I access this control from another PHP script?
A "require_once" with the main page file doesn't work, that re-creates the main page when the other script is called because of the commands at the bottom of each VCL-page's source.
...
Hi,
for our latest project we used Django, where one can specify a list of folders, that are searched for a template, say, with name example.html. Now, we switched back to Smarty (PHP) and are wondering, if there is something similar.
Smarty version: Can be cutting-edge.
Behaviour:
Feed Smarty with an array of folders.
Call a templa...
Hello, I am trying to place items dynamically from a mysql database into a shopping cart(jcart). I have a page with 3 divs and all contain a form for the shopping cart(form code below). I am grabbing info from the database and placing it in the form.
The first div is getting the info correctly, but the second div displays the exact same...
regular expression for find [# # 1] , [# # 2] ,[# # 125] .. in php
i have string
"php, regu[]lar expre[# # 1]ssio [# # 2]nssadas das dasd as das dasdssd [# # 301]dfs dfsdf sd fsdfds"
want to replace all these with {number}
...
Hi,
I know it is not a programming related,
I am in PHP Development for last 2 years, now will it be possible(how hard) or advisale for me to shift to .net Development.
any help ?
Thanks in Advance,
...