php

Insert Variables into a table which is selected from a PHP variable name

So, I want to insert some data into a MySQL table where the table name that the data is being put into is a PHP Variable. Something like this: $tablename = "databasetable"; $insert = mysql_query( "INSERT INTO '".$tablename."' (column1, col2) VALUES ('Blah', 'Blah') "); But that of course doesn't work, so I'm not sure what to do. B...

Getting unneccessary data from mysql database??? (php)

I have a database that has a users first and last name. Some cases i display the users full name, but in other cases i just show the first name. i have a function that gathers user information. within the function, i use an sql query to gather the first and last name, but i also concat the first and last name and label it full_name. Ex...

Advice for setting up Aptana for CodeIgniter?

I've used Aptana for a good number of web projects and like it a lot. I've also used CodeIgniter for a couple projects and liked it, as well. Now I'm hoping to combine the two in a happy marriage of cross-platform productivity. Any advice on setting up Aptana's more useful features? I'm hoping to get any of the following: Code completi...

What is the better way to create thumbnails from video in PHP?

I ma creating a video broadcasting site, in which i need to know how to create thumbnails from the video. Please Help. Any Suggestions or References will be highly appreciated ...

How can I prevent the Facebook session key from expiring

I am developing a Facebook app in Zend Framework. I am using the Facebook session key for my PHP session ID (this is the practice recommended by Facebook). The problem is that after an hour or so, it appears that the Facebook session key expires because I lose my PHP session. Is there a way to prevent (or at least significantly delay) th...

how to generate url friendly in Joomla ?

Hi I have a problem with joomla 1.5 friendly url (that not so friendly actually) I am not using SEF at the moment (should i ?) heres is my problem I have some categories and sections. Each has alias. so i can check all news category for example by visiting www.myxyz.com/news/ to check an article the url that generated would become: ...

i have a curl that works in localhost but not in live website. i cannot figure out why.

i have this link http://www.bata.com.sg, this website actually exists that works in my curl code that checks if the page exists. it works in my localhost code, but it keeps failing in my live website. I have tested using other domains like http://www.yahoo.com.sg, it works all the time on my localhost AND my live website. i copied t...

Where does $row come from?

I am learning codeigniter and have a question. The codes are from http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/ The followings are model and controller. And it does not define $row but it still works. (The original had typo, so I fixed it.) Q1. Where does $row come from? Q2. Could you ...

Wordpress OR Joomla?

Which is better, Wordpress OR Joomla? What are their pros and cons? In which case you use Wordpress over Joomla and vice versa? For development which one I can use as development framework? ...

My website is a Video BroadCasting Site. Whether I MUST host on ffmpeg hosting or can i use normal hosting?

Im Implementing a Video Broadcasting site, I need to generate thumbnail for every video when the video is uploaded. For that i had to install ffmpeg and modify php.ini. My doubt is whether can i host on normal hosting or I MUST select ffmpeg hosting?? ...

Implementing a free trial period with PayPal

Hello, I am trying to implement a recurring subscription service on a website using PayPal however I would like to offer a free trial period before the user is billed and the subscription is started. Is this possible using PayPal's API? I have very little experience using the PayPal API and cannot seem to find any useful documentation ...

php script/program to view/edit/copy/paste XML data in grid/table format?

Anyone know of any software like this? I've found many datagrids that can handle XML, but none that allow copy and pasting or cloning/duplicating of row data. ...

Firefox : Open XLSX file not saving file butn opening binary.

Hello, I generate a file server side and I want the client to automatically open it : it's a XLSX file. Firefox just opens the file and I see the binary content of the XLSX file in the browser, but I want it to be open via a Save As... box. It works fine in Chrome with the same code (it saves it) but not firefox... Any ideas ? ...

How to grab data on website?

So, often, I check my accounts for different numbers. For example, my affiliate accounts- i check for cash increase. I want to program a script where it can login to all these websiets and then grab the money value for me and display it on one page. How can I program this? ...

Recognizing domain redirection

Hello! I have two domain for my site. The main site is example.net, and I have example.com. If someone type example.com (or www.example.com, http://example.com or whatever) then I redirect them to example.net (my provider set domain redirecting). So, is it possible, to take into a php variable if someone come from .com or directly ty...

How can I parse this response from nusoap to a php variable/array

So having managed to crack getting nusoap to poll the chemspider server for information however I get a response that will display using print_r but when using print will simply display Array. My question is this really, how do I take the given response and turn it into a php array The code for the nusoap client <?php require_once('....

How to properly test query performance

I have a function that takes either an array of IDs or a singular ID as an argument. If an array is passed, it is imploded on comma to make the IDs query friendly. There is a query inside this function that updates the records for the IDs that were passed. The query is as follows: "UPDATE tbl_name SET enabled = 1 WHERE ID IN (" . $ID...

CodeIgniter, ZF, etc.

I use ZF a lot and I like it very much. I've learned how to solve a big part of perfomance problems with ZF, so it's became not "enormous" and "monstrous" for me. But I'd like to know if there are any as powerful frameworks as Zend for PHP. Maybe CodeIgniter is? What is it? What are its cool features? Anything else? And, are there any ...

SOAP character encoding

Hi, I've built a webservice in php/soap, but I'm running into trouble when sending special characters through soap. Is there any way to specify what encoding to use with soap? Do you have to do it in the wsdl file or the client and server scripts? ...

URL problem on IIS, using PHP

Hi, I've developed an application, using LAMP, and everything works fine, after migrating over to IIS, some pages don't work correctly. I have a service_edit.php, which carries over URL parameters from the previous page, e.g.: service_edit.php?id=5&serv=22 After updating the record, the following variable should redirect the browser to...