php

Send emails with international accent and special characters

I am sending a newsletter via PHP mail() in Spanish, they have accents and special characters (which I'm going to try to paste here: á, í, é, ñ ...). For the HTML version of the email, I think I solved the issue by printing á, é ... However for the plain text version, I assume I can't put those, right? What is the best thing...

2 Codeigniter Controller Querys on One View

How do you put two different function outputs from the same controller into the same view(page)? For example, I have a function going to the "article" div, and another function that I am trying to use within the "aside" div. (using HTML 5 nomenclature here) I have went as far as using the actual db query in the (view)aside div and it st...

cakephp routing without id?

Is there any way to route urls in cake without having the ID in the url? So instead of www.mydomain.com/id/article-name I just want www.mydomain.com/article-name I've been following this. http://book.cakephp.org/view/543/Passing-parameters-to-action ...

stack overflow error

i just got my first ever stack overflow when I ran this script: var hlat = 0.00; var hlong = 0.00; var mapdiv = document.getElementById('map'); var map_url = base_url + 'ajax/getPropMap'; var id_url = base_url + 'hotels/gethotel_id'; var id=0; var map = null; // apply gmaps to product map div $(function(){ $.get(id_url, {id: segmen...

find differences netween 2 htmls with php

Hi, did you find a way to display differences between two htmls?? Im telling you I need to get this but I cant find a way to do this. There is a php class called daisdiff but it has no documentation at all whatsoever... Please if you already implemented an alghoritm on some of your projects, pleas elet me know and five me some advice. ...

PHP image resize script help?

Okay I'm really new to PHP I found the following script below. But i dont know how to use it I was wondering where do I put the link to the image for example images/photo.jpg inorder to get me started in learning this script thanks. Here is the code. <?php function resizeImage($originalImage,$toWidth,$toHeight){ // Get the original g...

PHP GD PNG - Transparent text is pretty rigid

I'm using a PHP script that I found a while back that lets you specify text in a GET variable and it will convert it to a transparent PNG. This allows me to use non web safe fonts in my websites without having to manually convert each piece of text to an image. I've run into a slight problem, though, as seen here: http://imagebin.ca/vie...

Need to bulletproof this image parser function

I've got a function below which reads the contents of wp-content/uploads and writes out all images that it finds there. The problem is that it's reading off the blog title to determine the image path and when the blog title has a dot in it, there's trouble Blog title is abc123.com site url is abc123.com test image filename is abc123-...

Why does my submit button not work in php?

I've created a php script which ends with <?php $form->end('Submit'); ?>. But why does the button submit can't function and can't be clicked? Someone can help me solve this problem? <div class="campaigns form"> <?php $form->create('Campaign'); ?> </fieldset> <?php echo $form->end('Submit'); ?> </div> ...

Scaling File Systems

Hi, This could be a question for serverfault as well, but it also includes topics from here. I am building a new web site that consist of 6 servers. 1 mysql, 1 web, 2 file processing servers, 2 file servers. In short, file processing servers process files and copy them to the file servers. In this case I have two options; I can setup ...

Prevent Directory browsing and file retrieval without querystring token

I've got a paid download package that I want to host on a deep folder of one of my webservers. I've turned off directory browsing in .htaccess with the Options -Indexes But I'd also like to further lock down these valuable files by requiring a token be present on the Querystring before the server would let them go. Is this possible? I...

Is this code redundant when checking for a value greater than zero?

...

Joining Multiple Images into one with a PHP script

I have this test page http://thechozenfew.net/projects/write_font.php that generates the text in the input box as a font. Each letter is a different picture, How would i join all these pictures into one image with a php script? This what i've tried so far but the images appear on top of each other. Header ("Content-type: image/gif"); ...

Link to Wordpress 'latest posts' page when using static front page

I have a static page set as front page in Wordpress, instead of default 'latests posts' page. However, I would still like to be able to navigate to 'latests posts' page, but I'm not sure how to access it. I'm doing this since I want my top navigation to be HOME (static page, front page), BLOG (latest posts), ABOUT (static page), and so...

Need help on php avatar script?

I made a simple PHP script to display a users avatar image they uploaded but I was wondering how can I improve the script below. Is there something I can do to improve the load time on the users avatar images that are very big if so how can i add it to my code thanks. Here is the code below. <?php list($width, $height) = getimagesiz...

Does this SOAP Fault mean what I think it means?

So, I'm working on integrating Fedex's Address Validation into a site I'm working on. Fedex web services are SOAP-based, so we're in the magical land of WSDLs here. I'm not fluent with web services yet, so bear with me. One can only consume the Address Validation service at a production level; I've got my production credentials situated...

How do I redirect values from a PHP page to another?

I'm trying to post XML data from a PHP page to another (not necessarily PHP-based) one without a form post. Is it possible to say do a POST via the header() function? If so, how? ...

checking user status (active, idle) on a web page

hello! i am checking on the user status - whether he is active or idle - in a web page (in a pop up window). in case he is idle for more than 30 minutes, the window will automatically close and reset some flags in the database. i set cookies containing the time-in (the time he opens the pop-up window) and check it against the current ti...

PHP class generator for web services

Hello, I am trying to find some kind of php class generator for Web Services (WCF service if that matters) without any luck so far. Any ideas? thanks ...

querying domino from php

I've been tasked to extract data from a Domino and commit changes to it using PHP or web. I'm really new to Domino. I've been researching and it seems i must use urlcommands but i can't seem to find a way to directly extract/import data from Domino like a regular database. Another research of mine and i realized i need to code inside Des...