php

What technologies does Rightmove.co.uk use? PHP? Ruby? Python? Mysql?

Does anyone know how rightmove.co.uk is made? What technologies, databases, programming languages are they using? PHP? Ruby? Python? I can see that it is using Apache. I would really love to know what database they use. Thank you in advance ;-) ...

PHP read sub-directories and loop through files how to ?

I need to create a loop through all files in subdirectories. Can you please help me struct my code like this: $main = "MainDirectory"; loop through sub-directories { loop through filels in each sub-directory { do something with each file } }; Can you help, plz? ...

Facebook Connect from Localhost, doing some weird stuff.

So maybe the documentation is out of date, or I am just off here. But I have done a slew of FB iframe apps (connect), but I am starting my first FB Connect site. Running it from localhost, and the Connect URL is http:// my_external_IP_address. When I click on the FB login button on my site, it pops up, says waiting for facebook, and it ...

Does apc_compile_file() invalidate the in-memory cache for the particular file?

Hi, If I run the following PHP code: apc_compile_file("relative/path/to/file"); will it invalidate the in-memory cache that is used for this particular file? That is, if I first access /path/to/file, APC will compile it, and cache the OpCode in memory. Now, if I access /path/to/file again, APC will just use the cached OpCode. Howeve...

Trying to make a CodeIgniter controller called "List"

Hi I have the following code in controllers/list.php: <?php class List extends Controller { function index() { echo "hi"; } } ?> However, trying to access it gives me the following PHP error: Parse error: syntax error, unexpected T_LIST, expecting T_STRING in /var/www/whimventory/htdocs/system/application/contro...

Making static pages in Symfony

Hey, Im new to symfony and have some simple questions. I am trying to understand the module system, but I dont understand how I create the actual homepage or other pages that are not based off of a model from the db. For example, the simple about page that has static info or the homepage that is a combination of a bunch of information f...

Tracking down use of functions marked for deprecation

Following this thread: How to handle functions deprecation in library? I want to find a way to track all calls to the deprecated function so I can make sure I get them all replaced before the function is removed. Given the following PHP methods /* @deprecated - just use getBar() */ function getFoo(){ return getBar(); } function ...

php/java/c# script to build email marketing service

Anyone, which know of a script/system which could be used as a starting point for building a email marketing/newsletter sending resell service? (like http://www.campaignmonitor.com/ or mailchimp.com ) We are looking for something professional, which are able to handle bounces etc etc ...

PHP loop through multi-dimensional array

Hello, I am currently working on a site that is being built on codeigniter, I am currently querying the data at the moment I think there could be possible 3 arrays that could be returned as array each with a varying amount of results, my question I cannot for life of me loop through the array I have at the moment, my model looks like...

SimpleXML: Working with XML containing namespaces

I am trying to get to the geo information off the google-picasa API. This is the original XML: <georss:where> <gml:Point> <gml:pos>35.669998 139.770004</gml:pos> </gml:Point> </georss:where> I already have come this far, with: $ns_geo=$item->children($namespace['georss']); $geo=$ns_geo->children($namespace['gml']); var_dump...

Log4Php properties setting at runtime

I have a PHP application containing multiple modules and various settings within each module. I'd like to enable logging using log4php, but each individual module has different settings (ie. Log level, log file, etc). Some of these settings need to be changed on the fly by end users (log level), and I'd like to store these properties in ...

Comparing data between two MySQL tables with PHP

Hi, I have two tables table1 = records, table2 = duplicates. Both tables contain a variable number of columns at any given time and they both contain the exact same columns with the exception of table2 having and additional "ID" column... Both tables contain a column, "user_id". The data comes from a CSV import. If the "user_id" alread...

How can I make if statement using the number of array in PHP?

findParent() function find array. There could be one array or more than one. Now I want to make if statement depends on the number of array. How can I make if statement using the number of array? function findParent($order_id){ ... $Q = $this->db->get('omc_order_item'); if ($Q->num_rows() > 0){ foreach ($Q->re...

Is the Zend engine embeddable outside of PHP?

One of the original designs of the Zend engine, if I recall, was that it was to be relatively easy to embed for other languages one might wish to create. Basically, the PHP syntax without all the PHP modules. Is this still the case? ...

How to get data in an array with PHP?

findParent() function returns the following array. Array ( [0] => Array ( [order_item_id] => 3 [order_id] => 2 [product_id] => 77 [quantity] => 1 [price] => 268.00 ) ) I want to get 2 in [order_id]. I tried the following but it does not work. $child...

ISO-8859-1 to UTF-8 Charset conversion in PHP

Hello all. I am having to import data from a database where the character encoding being used is ISO-8859-1 and the new site that we are using is using UTF-8. The site that the data is being pulled from is old, hence the reason that it is in ISO still I presume. I have tried the following solutions with no results: iconv Neverthe...

an alternative to stored procedures

I am having problems using stored procedures. Making call to a stored procedure is not working for me. So I replaced the stored procedure by an sql statement. But now, I have some stored procedures which receive parameters. for example CREATE PROCEDURE get_category_details_proc(IN incat_id INT) BEGIN SELECT name, desc FROM category W...

PHP exec_shell using unrar.exe

I'm running the following php code; $output = exec('"D:\TESTDIR\unrar.exe" e "D:\TESTDIR\Icons.rar" -ppassword'); echo $output; Which isn't working... I want it to extract the files into the same directory. If I copy the contents of the exec into a command line prompt it works just fine, so slightly confused. Trying the following; $...

Two Rows Get Inserted with One INSERT statement?

Hello all, How is it possible that this function below inserts two rows in my database? //called like save_session_db($_SESSION['user_id']); function save_session_db($session){ include('includes/db-connect.php'); $connectionInfo = array( 'Database' => 'Belior'); $conn = sqlsrv_connect( $serverName, $connectionInfo); if...

PHP & mySQL: Repeating entries problem - Need each entry to show up only once but they repeat

Hi all, MY PLATFORM: PHP & mySQL WHAT I HAVE HERE: I have 4 tables, namely, 'books', 'book_type', 'book_categories', 'all_categories'. WHAT I AM TRYING TO DO: In simple words, I want to display all the books that are in stock i.e. in_stock = 'y', with all the book related information from all the tables, only once without repeati...