I tried something like this but it just makes the background of the image white, not necessarily the alpha of the image. I wanted to just upload everything as jpg's so if i could somehow "flatten" a png image with some transparently to default it to just be white so i can use it as a jpg instead. Appreciate any help. Thanks.
$old = imag...
It's part of an information retrieval thing I'm doing for school. The plan is to create a hashmap of words using the the first two letters of the word as a key and any words with the two letters saved as a string value. So,
hashmap["ba"] = "bad barley base"
Once I'm done tokenizing a line I take that hashmap, serialize it, and append i...
Hello,
The simple query below is not working. Any idea why? When I echo the three variables, the correct values are returned, so I know I have variables.
Thanks in advance,
John
$comment = $_POST['comment'];
$uid = $_POST['uid'];
$subid = $_POST['submissionid'];
echo $comment;
echo $uid;
echo $subid;
mysql_connect("mysqlv12", ...
If I run "next saturday" into strtotime function it shows 4/3/2010 as the date. Why does it not show 4/10?
...
I've started working on a Joomla! project (I'm mainly a C#/ASP.NET kind a guy). I'm using BreezingForms and have created forms, got them working, but now I need to do some additional code in the "Finalize Code" section.
I need to access form elements via BreezingForms(FacileForms) API. Here's what I'm doing, but it chokes:
// load the ...
PHP 5.2.12
OS X 10.5.8
If I compile PHP from source with the following configure command
./configure --disable-all --with-openssl=shared,/opt/local
it succeeds. However, after a make and make install,
php -m
does not list the openssl module.
Based on what I've read, I think it may be due to multiple installs of the openssl librar...
Hello All!
I'm embarking on a major project, but am stuck on a tiny issue at the very start. I'll try to be as concise as possible.
I have a PHP script that will be echoing into the footer of the page (the last stuff before </body></html> a bunch of <div>s containing visible buttons and <div>s containing hidden dialog boxes.
The plan ...
How to distinguish robots from normal user?
How does SO do this job?
Currently I'm met with a robot which post once every 1 hour...
...
Ok, I have an array like so:
$myArray[32]['value'] = 'value1';
$myArray[32]['type'] = 'type1';
$myArray[33]['value'] = 'value2';
$myArray[33]['type'] = 'type2';
$myArray[35]['value'] = 'value3';
$myArray[42]['value'] = 'value4';
$myArray[42]['type'] = 'type4';
Ok, looking for a quick way to change all numbers in the first key 32, 33, ...
hi all,
I have a functionality where a user is given file to download.
It works fine. BUT -
1. How to know whether user has downloaded a file or cancelled it?
2. After downloading I wat to redirect current page to another one that is also not happening.
Please let me know if any one of you have any idea about it.
(I am doing it in Joom...
I need to upload multiple files from directory to the server via FTP and SFTP.
I've solved this task for SFTP with python, paramiko and threading. But I have problem with doing it for FTP. I tried to use ftplib for python, but it seems that it doesn't support threading and I upload all files one by one, which is very slow.
I'm wonderin...
Hello,
I'm using Eclipse IDE + remote Xdebug.
EclipseIDE is listening 9000 port for some kind of Xdebug information.
There are some php scripts running by cron on server. So, every cron execution xdebug is sending information to my workstation and EclipseIDE is trying to find this file in my project. But file couldn't be find because c...
There are loads of questions for "the right" PHP template engine, but none of them is focused on caching.
Does anybody know a lightweight, high-quality, PHP 5 based template engine that does the following out of the box:
Low-level templating functions (Replacements, loops, and filtering, maybe conditionals)
Caching of the parsed resul...
I am using php and i am iterating a table with a result array ... I want to add row color and alternate row color to it.... How to do so? Any suggestion...
<table id="chkbox" cellpadding="0" cellspacing="2"
width="100%" class="table_Style_Border">
<tr>
<td style="width:150px" class="grid_header" align="center">RackName<...
Hi all,
I have this query:
SELECT DISTINCT brand_name FROM masterdata WHERE in_stock = '1' ORDER BY brand_name
It works well, except that I get far too many results. How do I limit this such that rather than just looking for distinct entries, it will only give me distinct entries that exist a minimum of 3 times (for example)?
Basica...
Hi
I have a data april/2010 to jan/2011
Is there any way to split the data with character to
and select the date as
The value before "to" as FROM
and The Value after "to" as TO
how to selet the splited value......... while i am selecting the data as it is as
select date from mytbl
how to select the date as two values
...
Though I don't tolerate joomla for it's buggy 3rd party components , decided to look at it's core architecture, and any diagram would make my investigation efficient, thanks
...
Hello,
I have a index.php file that will include several external files:
"content/templates/id1/template.php"
"content/templates/id2/template.php"
"content/templates/id3/template.php"
etc.
All these files are loaded dynamically into index.php (it reads all folders inside "templates" directory and then includes every "template.php" fil...
I want to item's subcatory selected when editing category:
<?php
function categoryFormEdit()
{
$ID = $_GET['id'];
$query = "SELECT * FROM category WHERE id= $ID";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$subcat = $row['subcat'];
$text = '<div class="form">
<h2>Add new category</h2>
...
I am a newbie to both PHP and Wordpress (but do ok in C#), and am struggling to understand the error handling in a custom plugin I am attempting to write. The basics of the plugin is to query an exsiting MSSQL database (note its not the standard MYSQL db...) and return the rows back to the screen. This was working well, but the hosting p...