php

HTTP headers for jpg files after mod_rewrite

Hello, I'm using Apache's mod_rewrite to route requests for .jpg files to a directory outside my web root. It generally has been fine, but there are a few images that do not display. I then realized that when I use PHP's get_headers() function on my image URLs, they are all returning "Content-Type: text/html; charset=UTF-8" instead ...

image upload with ajax and php

i want to use ajax to upload image. in this module 1. on clicking brows image will be upload and display over file field. 2. after ading title and description and clicking on button that image will be display bellow and upper image field will be blank I have tried meny way but not working. Plz anyone help me asap ...

PHP webpage generator will not generate?

How do I fix this so that when php calls $fontcolor and the user selects the option value = "fblue" the font color will be blue? Likewise if the user selects the value = "size1" for Font Size 1, how do I change the font based on the user selection, since this is a radio button I think only the value will be sent to the php script, in...

Ajax, PHP, Javascript, smart solution please!!!

Hi. I am currently creating a type of "classifieds" website, and when the user enters the site he/she is able to choose for example "Vehicles" in a dropdown list, and then choose mileage, year, price range etc... Here is my problem, I have managed to make contact with a db using ajax to call a php script which then checks the mysql db ...

Magento: change advanced search layout

I want to change the advanced search layout to my needs. Instead of select boxes I want to have radio buttons with a picture and text in the description. For one button the layout is: [button][image][text] Thank you, Ivo Trompert ...

Caching in PHP.

We run a number of web applications written in PHP. Unfortunately there are some select queries within these with some pretty hefty joins which are causing MySQL to become less responsive. Because of this we are looking into caching some of the regularly used joins. I have looked into Zend_Cache which looks promising, are there any oth...

I want to insert a checkbox inside a accordion header in my Application (AIR).Can any one of you please help it out?

In my application i want checkbox on the accordion ,so is it possiable to set checkbox ? if it is possiable How can i identified child ? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"> <mx:Accordion> <mx:headerRenderer> ...

How can I speed up image load time in my web site?

I am currently developing a web site with PHP + MySQL and jQuery. So far I have been doing it in my local machine. I notice that when I see the page the images on it take some time to load (few time but its visible). All images are small (PNG's with less than 3 KB). Now, when I load the page, there are some database connections happening...

email application help. Send email to made up email address which is redirected to real email.

I'm wondering how i would go about making the following application: a user signs up, say with the username "johny-jones". Lets say for example that my domain is www.example.com if anyone emails [email protected] this email is redirected to johny-jones REAL email address ...

How can I use a php file's output with Ajax?

I was following this tutorial. I need to use a php file's ouput in my HTML file to dynamically load images into a gallery. I call function setOutput() { if (httpObject.readyState == 4) document.getElementById('main').src = httpObject.responseText; alert("set output: " + httpObject.responseText); } from ...

Where can I obtain the wurfl_patch.xml file

I'm busy implementing the wurfl api using PHP, but somehow just can't seem to find where I need to download the wurfl_patch.xml file. Patch file Does anybody have the file stored somewhere? ...

HTML WYSIWYG editor for php code

i looking javascript editor for php code, include tab support and php code highlight ...

Mirror SQL's LIKE functionality for a PHP array?

At the minute I have a page with an AJAX script that searches a database with LIKE '%search term from input box%'. I need to modify it so that instead of searching the database it searches an array (that has been constructed from two tables - I can't use a JOIN because there's a bit more to it than that). How do I go about creating a ...

Jquery - Toggle, Show - need to wait before next effect

Hello! I use 4 link (submenu button) on my site. Every link open a DIV tag. This DIV tags default stat is hide. (with jquery) $('div[class*="my_"]').hide(); After i click a submenu then i show() the div tag i need: $('a#submenu_1').click( function() { $('div[class*="my_"]').hide(); // hide all DIV if some of them opened befo...

Zend_Feed entires and colon seperated keys

Hey everyone! I've created a function that consumes an RSS feed from Flickr using Zend_Feed. Unfortunately I am struggling to extract some keys! I can get the < title > and such by echoing $entry->title(); But how can I echo out something like < media:thumbnail >? I'm sure there's a completely simple way of doing this but I can't f...

How to get value from elements and add to array with specific names using loop

I am currently sending a query variable to a php file like this: query = "?price_from=" +price_from+ "&price_to=" + price_to etc etc... I want to populate this query variable by using a loop to check if the user has chosen any search criteria in dropdown lists that exists on the page... It is only optional to chose the search cr...

quickest way to display data

I have several forms in one HTML page... I have to filter these forms somewhere... (eg check if all or some form elements have values etc...) I am using ajax to submit the forms, but i dont know if i should filter it before submitting it to my php file, or filtering it inside the php file? I want the fastest way for the data to show u...

ZIP Files get corrupted by IE

I am delivering a ZIP file in 64k chunks using a loop in PHP (but the problem would arise with any server side language). When fetching the file with FF, everything goes just fine. When fetching the file with IE7, some bits get corrupted. This leads to an error message regarding wrong CRC (a hash) and some of the unzipped files end up ...

set total number of checkbox in array

i have check box array like this for($j=1;$j<=10;$j++) <input type="checkbox" name="chkLimit[]" id="chkLimit_<?php echo $j;?>" value="<?php echo $j;?>" /> i got 10 check box and i write the jquery code like this... $(document).ready( function (){ setLimitSelection(); } ); function setLimitSelection(){ $('input...

find nearest cities that have listings (businesses)

I have two data sources already in Sphinx: source cities { ... sql_query = SELECT id, city_name, state_name, state_abbr, latitude, longitude, population FROM cities; sql_attr_uint = population sql_attr_float = latitude sql_attr_float = longitude ... } source listings { ... sql_query = SE...