php

Integrate Yahoo Pipes into PHP App?

Hi, I just found this pipe. http://pipes.yahoo.com/jonbishop/8vA1gjvl3RGqWknCBB50VA I was just wondering if it was possible to integrate this into my web app? How would I go about doing it. Basically, I have a form on my website - I would like this form to interact with this pipe to get the relevant data. Could someone post a summar...

how to run php in zend server ?

how to run php in zend server ? ...

Notice: Undefined index: XXX - Does it really matter?

Hello. Since i changed my error reporting level to error_reporting(E_ALL | E_STRICT); I am facing this error. I can obviate from this error using isset() but the code looks so ugly! So my question is: What if I go back to my normal settings of error reporting? does it really matter to know that something is not already defined? becau...

SugarCRM - How to set the default homepage for all users

I am using SugarCRM Version 5.2.0k (Build 5837). I would like to be able to set a default home page (with dashlets I've created myself) that will be the same for all users, can anyone advice on best way to do this? Thanks in advance for your help ...

building a query string with jquery and checkboxes

Hi I'm building a search form with several filter options on the results page. It's a basic search form, results show in an friendly url such as: domain.com/resuts/country/age/type/ The filters are simply checkboxes which on click, should reload the page with a query string to identify what has been checked/unchecked. (there is no sub...

How to change image on locale base in magento?

I want to change search image in magento. On search in magento the image name is btn_search.gif. Right now it take image from skin/frontend/default/default/images. And the file is /app/design/frontend/default/default/template/catalogsearch/form.mini.phtml where mention this tag as <input id="search-button" type="image" src="<?php echo ...

Multiple views in codeigniter

Hello, I am working on a codeigniter site, in which a page is built using multiple views, I have come to a point where I need to work with a variable that is being set in another view is it possible to access it from another view? This is code I have Controller: public function index() { // $this->output->enable_profiler(TRUE); ...

Has anyone used python in php (PiP) ? Do you recommend it?

I have to use a custom build python libraries inside PHP and is considering using PiP. Any other recomendations? ...

regex problem in php

<div class="begin">...</div> How to match the html inside(including) <div class="begin"> in PHP? I need a regex solution that can handle nested case. ...

Is it possible to 'store search criteria' and the reuse it at some other time?

I have a classifieds website where users may search ads. I wonder if I can somehow store search criteria and whenever the users wishes, reuse that search criteria to make another search again, exactly the same... ? This would make it easier for users to search for a specific car for instance, and not have to fill in all the details suc...

Get SOAP XML before __soapCall?

Is it possible to get the XML generated by SOAP Client before sending it to webservice? I need this because response from webservice if one of parameters is really wrong I get errors like Server was unable to read request. ---> There is an error in XML document (2, 408). ---> Input string was not in a correct format. This typicall...

Update a row if ID exists else Insert.

This is the code of a .php file. The column "memberid" has a unique index. When a user enters a record with an existing memberid, the record must get updated else a new row is created. I also want to show an alert box. For test purposes I added like the way below, but it is not firing. No message is displayed. I also want to know wheth...

GPG key import through PHP not working (works in shell)

Hello, I have to import a GPG key in a PHP script, it works using the commande line gpg --import "/home/me/pubkey.txt" but does not work using the PHP gpg class with the import method even with the gnupg_import function. My configuration is : RedHat Enterprise Linux 5 PHP 5.1.6 GnuPG 1.4.5 GPGme 1.1.8 GPG extension 1.3.1 I also...

How to store search criteria or search results?

I have a php classifieds website (mostly) and I am currently using MYSQL as a database. Later on I will use SOLR or maybe Sphinx as a "search engine". I want to make it possible for users to view "results" of searches they have made before, but I don't know where to start... How is this done? Currently I have a form which is filled i...

Dynamic Background images advice

I am creating a site where users can upload there own background images, after upload they see each background they uploaded in a menu represented by a number, clicking on the number will in theory load in the new background, however I have noticed that does this calls in the view again as well (the view is already loaded from another fu...

Download Form - Select files combile into Zip

Im looking to create a form where the user will select from a list of brochures. 10 in total. They may only want to download 3 brochures, or 6, or 1, or 9, but the idea being they select what brochures they want and then a script combiles a zip file containg the required brochures. Can anyone suggest anything? ...

Alternatives to Yahoo Pipes

I've used Yahoo Pipes for some prototyping, but I'm unwilling reluctant to use it in full production as we'll have no control over it uptime etc. Is there an (ideally open source) alternative that I can run on my own server? Or any application that can convert a pipe into PHP or Ruby? ...

Extract data from website via PHP

   I am trying to create a simple alert app for some friends.    Basically i want to be able to extract data "price" and "stock availability" from a webpage like the folowing two: http://www.sparkfun.com/commerce/product_info.php?products_id=5 http://www.sparkfun.com/commerce/product_info.php?products_id=9279     I have made the alert ...

Accessing 3rd association

Hi, I have following models: - Agenda (id, user_id, event_id) -> belongsto Event, User - Event (id, etc) -> hasmany Agenda - User (id, city_id, etc) -> hasmany Agenda, belongsto City - City (id, name) -> hasmany User While in the Agendas controller, I want to display the City.name of an user that has a certain event_id in his Agendas. ...

PHP Form - download to zip

I have the following form: <form action="download.php" method="get"> <input type="checkbox" name="file1" /> File1 <br/> <input type="checkbox" name="file2" /> File2 <br/> <input type="checkbox" name="file3" /> File3 <br/> <input type="checkbox" name="file4" /> File4 <br/> <input type="checkbox" name="file5" /> File5 <br/> <input type="...