php

php mail headers for outlook - the email arrives empty to outlook, and great to gmail to yahoo

mail($to, $subject, $message, $headers); the $header is: From: [email protected] Reply-To: [email protected] Content-Type: text/html; charset=iso-8859-1 X-Mailer: PHP/5.2.5 MIME-Version: 1.0 I built $header with those line and I changed the order in every way, putting the Mime in the beginning, at the end, moving the from ...

having issue with fsockopen while sending mail with swiftmailer

Hello guys I was playing around the new swiftmailer 4.0.4 using my zend studio embbeded apache server where i can send successfully emails through gmail smtp. Now that it's was fine and that i decided to use it in real project and this time along using xampp 1.6.8.any time i run the same function there is this error Warning: fsockop...

PHP Scope and Class Instance Interaction

It seems as though different instances of a class can know about each others' private member variables. I have provided some code that attempts to showcase my issue, and I will try to explain it. We have a class with a private member variable, $hidden. modifyPrivateMember sets the value of $hidden to 3. accessPrivateMember takes an Obj...

WYSIWYG HTML editor, but limit to certain tags by context

Hi all, I want to provide my users with the ability to edit blocks of content on the sites I've designed for them. Most blocks are contained in a <div>, and the users can have free choice of the HTML they use inside the block. However, there are some blocks which are contained in, for example, <ul> tags, and I want to limit the users ...

javascript to php question

<script type="text/javascript"> $(document).ready(function() { $("#uploadify").uploadify({ 'uploader' : 'scripts/uploadify.swf', 'script' : 'scripts/uploadify.php', 'buttonImg' : 'css/btn_browseFiles.png', 'rollover' : 'true', 'wmode' : 'transparent', 'height' : ...

Manipulating a URL created by Flash w/ php or js

Hi I'm looking for a little help trying to manipulate a url created by flash, I'm using SSP and would like to generate some meta and title information in my php / html based on the value after the #id= (hash) in the following url; http://dev.website.com/gallery#id=Guests&amp;num=19 Any ideas? ...

Send emails to multiple users using PHP/Javascript

I was trying to find an easier way to send e-mails to all my clients using our database (MySQL). I wanted to see if there is a way that it can select all the e-mails of my clients and I can add message, Subject and send it to all of my clients from my website rather than copying each of the mail. Is there a way to integrate SMTP to do t...

Why is $_POST empty in PHP5 under Apache?

In the file http://example.com/path/foo.php, I have the form (formatting deleted): <form action="/path/foo.php" method="post"> Email: <input type="text" name="email"> Password: <input type="password" name="password"> <input type="checkbox" name="remember" checked="checked"> Remember me <input type="submit" value="Log In"> </form> Some...

PHP Mass Mailing (25K-100K) lists

Hi, I have a PHP app I have written for clients to create HTML newsletters and send them out to emails in a database. Mailing is done via the mail() command (I know, crappy), from a CRON job with proper pauses, etc. Up to now, all clients have had limited lists (the maximum was 8000 mails, sent in two hours). The server is my own - no re...

html_entity_decode characters like &Yuml vs &yuml

I'm trying to do a bunch translating of html encoded text into utf-8 to put it into my database. There are a ton of characters that get missed with both html_entity_decode, or iconv with Translit. I've written up a long list of characters to strip out, but now I see that &Yuml is not translated, but &yuml is. I'm sure there are othe...

PHP: Simplest way to delete a folder (including its contents)

The rmdir() function fails if the folder contains any files. I can loop through all of the the files in the directory with something like this: foreach (scandir($dir) as $item) { if ($item == '.' || $item == '..') continue; unlink($dir.DIRECTORY_SEPARATOR.$item); } rmdir($dir); Is there any way to just delete it all at once? ...

How do I debug web services when using Zend_Rest_Client

So I have an app that uses the Zend amazon web services client. I am now getting an error from the service, and I want to see the raw request and response. I can't find a way to do this in the docs! This class implements Zend_Rest_Client so it seems like there should be a rawResponse() method but there isn't. This is on a production se...

How to I post a value through the XMLHTTPRequest Object?

I have a set of links dynamically generated in a table. Each of the rows has a unique "id" property on it's tag. The goal is to get XMLHTTPRequest to tell the page 'deletepost.php' which record to remove from an outside database. It changes a hidden input value to the value of the row (a number), and then submits that form <script...

Wordpress static pages 'SEO' ?

Good Day! I have a photostudio site running on a Wordpress. It's have a blog and a bunch of static pages. In blog we post some news and the static pages contains info about our services. We have idea to add some relevant URLs from our blog to those static pages. The links would be acquired from our blog by Wordpress Related Posts plugi...

Do variable functions get overwritten by actual functions?

I know that you can call functions using variable names like this: $foo = "bar"; function bar() { echo "test"; } $foo(); // echos test I am wondering if in a class, an actual function overrides that. If I had this class: class myClass{ public $test; public function __construct() { $this->test = new myOtherCla...

PHP's phpwhois in Java?

phpwhois is a script for PHP that allows you to perform whois lookups on any domain: http://sourceforge.net/projects/phpwhois/ Does anyone know of a comparable Java package that can accomplish the same thing? Thanks! ...

NL char when useing imagestring in php

I was wondering if anyone knows how I could remove or replace these annoying N over L (I'm guessing means newline) from my php string before printing them to an image. the text looks like this any help much appreciated as I have wasted hours on this little problem... <?php exec('/usr/games/fortune -s', $fortune); for($i = 0; $i <= cou...

phpmailer error "Could not instantiate mail function"

I'm using the mail() basic example modified slightly for my user id and I'm getting the error "Mailer Error: Could not instantiate mail function" if I use the mail function - mail($to, $subject, $message, $headers); it works fine, though I'm having trouble sending html, which is why I'm trying PHPMailer. this is the code: $mail ...

Excluding a variable when its value is blank

Hello, The code below works great. I have a MySQL database that contains book titles classified in different categories. In the code below, the variable "site" represents a book title. Each category is represented by a different table in the MySQL database. The code below ranks the top 25 book titles (site) by total votes across all...

Implementing vanity urls (like http://facebook.com/JohnDoe) in Zend framework?

Is there anyway to create a vanity url "catch all" route whilst maintaining the default /module/controller/action/value routing structure? Thanks! ...