I have been trying to get the latest version of phpmailer from here:
http://sourceforge.net/projects/phpmailer/files/
but I keep getting "file not found" / "unable to load mirrors" errors. I tried other files it seems like sourceforge is messed up right now or something is wrong with my connection to it.
Any ideas? And if it is source...
1.Hi, I have a internal use only file upload script that uploads the files to a directory. When I upload something from my computer with a spcace in the name i.e example 1.zip it uploads with a space in the name thus killing the link in a email. Is it possible to make apache remove the space when its uploaded or make it a underscore?
Th...
On my non membership site I would might like to keep track of what songs a user last listened to via Cookies
The maximum number of values in this cookie would be maybe 100 values. The IDs of the songs: (30,31,32,32,34....... and on and on.)
Is there any reason not to do this?
Users are not authenticated in anyway.
And this is non ess...
Hello,
My question and the thing that goes wrong
is when I have two segments
example: www.xxx.nl/products/id
and I have this in the htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
is there a solution, or is this caust by the host
thanks ...
Hi There,
I am using FPDF / FPDI to build a pdf templating system. One pdf is used as the background and has a number of editable regions defined within it (stored in database). An editable region could be an image, or text, or both, however this is not my question, just a bit of background.
Some of the backgrounds (FPDI source pdf) ...
Is this the best way to do it?
Should I do this to every value in every query? GET and POST?
Is addslashes(mysql_real_escape_string()) overkill?
...
Hi!
I'm coding a web site and I have a php fonction called site_nav.php which first define a $list array and than echos it in a json form.
This way, I can get my web site map with ajax.
My problem is that now, I would like to get the $list object in php, without echoing the json object.
My question: Is there a way to include my php f...
I've inherited some code that uses the sqlsrv_connect method to instantiate a connection to a SQL Server database. My personal development machine is an OS X box that I'm running apache an PHP on. I have an instance of SQL Server running in a virtual machine.
When I attempt to connect to the database, I get the following error.
Fatal...
My image roll over works... But only one way.
function heartOver(id)
{
if(document.getElementById('heart' + id).src == 'images/heart.png');
{
parent.document.getElementById('heart' + id).src = 'images/unheart.png';
}
if(document.getElementById('heart' + id).src == 'images/unheart.png');
{
parent.document....
I'm fixing some PHP scripts and I'm missing ruby's pretty printer. i.e.
require 'pp'
arr = {:one => 1}
pp arr
will output {:one => 1}. This even works with fairly complex objects and makes digging into an unknown script much easier. Is there some way to duplicate this functionality in PHP?
...
I want a jQuery driven editor that can create the form HTML on the fly, and then generically save it all into a database field. I can handle all the jQuery, but I'm just looking for a structural DB design on how to make a quick, simple, generic form editor. Is saving all the HTML of the form a good idea?
Background information:
We nee...
max($caption);
gives me this:
Array
$caption is defined here:
$i = "0";
while ($i < $count) {
list($oldCaption, $year, $order) = explode("-", $galleryDirectory[$i]);
$caption[$year][$order] = str_replace("_", " ", "$oldCaption");
echo $year; //debug
echo "<br />";
$i++;
}
$year comes ou...
I am sending php errors, all mysql queries, apache2 errors and mod_rewrite debugging to one file, needless to say it's busy in there.
Can the format be changed from:
[22-Jul-2009 23:00:58] Parameters:
GET Array
(
)
POST Array
(
)
[22-Jul-2009 23:00:58] Finding Associations
237 Query SELECT `table`.* FROM `table...
I've got a probably very simple issue to which I can't find a satisfactory (subjectively seen) answer in the Zend Framework manual or elsewhere...
There are so many ways how I can hand over my php variables to my sql queries that I lost the overview and probably I lack some understanding about quoting in general.
Prepared Statements
$...
I have a client using quickbooks on a Mac platform. I have a PHP5-based web application that needs to export customer/sales records. I would love to try the quickbooks web connect soap framework that Keith developed but that system is not supported on Mac.
I've read that IIF is not the best way to handle it, but at this point it seems t...
Has anybody tried out simpleloginsecure authentication library for codeigniter? I like that it has such a small footprint. Also it uses phpass for hashing which is supposed to be good. I am concerned that it does not store session data in the database (i.e. $config['sess_use_database'] = FALSE;). I guess I could add custom functional...
Hey, I'm trying to get php's mail function working on my local dev box in such a way where all mail sent using mail(), regardless of recipient, would stay local and show up in a thunderbird account (pop/imap/etc).
I've got php set up to use sendmail and I've got postfix installed. But i'm at a loss where to go next.
Any pointers?
...
I can't believe I couldn't find this on Google, but I actually looked. Is there function in PHP that can normalize an email address? eg if case isn't significant, then [email protected] -> [email protected]. I don't know the rules for when email addresses should be considered "the same", so I don't want to implement this myself.
...
A friend of mine was about to be scammed by a bunch of pseudo-programers that intended to sell him a opensource shopping cart as if it was developed by them. Luckly he was smart enough to ask his geek friends first.
Now I'm committed to help him with this endeavor. But to be honest Im more into custom software development that into impl...
Ok now I am confused. I have been getting advice from SO users on libraries to use with codeigniter for authentication. I have explored dx_auth and simpleloginsecure (I think I will use the latter due to its supposed secure hashing and small footprint).
BUT, what about hashing the password on the client side? I haven't seen any mentio...