php

What is the best framework for web app in php(Zend, symhony, kohana,yii,phpCake)?- I oop programer and use only php5

Possible Duplicate: What PHP framework would you choose for a new application and why? Hi, What is the best framework for web app in php?(Lib,Orm, time, easy) Thanks ...

What are best practices storing confidential data encrypted in 3-rd-party-hosted MySQL servers?

I am developing (as A PHP 5.2 + MySQL application) a personal information manager web application for my own which is meant to be hosted on a shared hosting (like bluehost or dreamhost) and to store lots of very confidential personal data including those like passwords, personal private keys, financial details, contacts, etc. How do I be...

PHP - Processing Invalid XML

I'm using SimpleXML to load in some xml files (which I didn't write/provide and can't really change the format of). Occasionally (eg one or two files out of every 50 or so) they don't escape any special characters (mostly &, but sometimes other random invalid things too). This creates and issue because SimpleXML with php just fails, an...

Is there any good universal PHP MySQL HTTP tunnel?

Many Windows MySQL tools like Navicat or EMS have this thing - You just put a PHP file on a shared hosting and can connect local running program to the remote MySQL server on the Web via the web service exposed by that php file. Are there any good popular free solutions to expose full MySQL as a web service using PHP? ...

PHP performance difference between passing variables method

Hi everyone, Will there be any measurable performance difference when passing data as values instead of as reference in PHP? It seems like few people are aware of that variables can be passed as values instead of references. Is this common sense or not? ...

PHP won't receive POST requests at /directory/ only at /directory/index.php

When POST request are sent to "http://domain.com/directory/", the POST data isn't received. But if it's sent to "http://domain.com/directory/index.php" it is received. How can I make it work when just the directory is called? Thanks! ...

Find the % character in a LIKE query

Hi, I've an SQL database and I would like to do a query who show all the datas containing the sign "%". Normally, to find a character (for example: "z") in a database I use a query like this : mysql_query("SELECT * FROM mytable WHERE tag LIKE '%z%'"); But here, I want to found the % character, but in SQL it's a joker so when I write:...

Pulling specific entries from RSS feed [PHP]

So, I have an RSS feed with variations of each item. What I want to do is just get entries that contain a specific section of text. For example: <item> <title>RADIO SHOW - CF64K - 05-20-10 + WRAPUP </title> <link>http://linktoradioshow.com&lt;/link&gt; <comments>Radio show from 05-20-10</comments> <pubDate>Thu, 20 May 2010 1...

Approaches for memcached sessions

Hi everybody, I was thinking about using memcached to store sessions instead of mySQL, which seemed like a good idea, at first. When it comes to the failover part of utilizing memcached servers, It's a bit worrying that my sessions will stop working if the memcached would go offline. It will certainly affect my users. There's a few te...

Can you use PHP libcurl to pull files from server A to server B?

Hi, cURL and libcurl let you do things you normally do with a browser, right? Like, as if you have a jini sit inside a server and fire up a browser and do stuff. Ok then. I need a script to sit on server B, and click on download links on a server A and download files (from server A to server B). I am new to curl, and not sure if all I...

iPhone Apache server and PHP

hi, i tried to install apache and php on my iphone(i actually did it), i've installed apr,apr-util and Apache BossPrefs Switch from Rock than i tried to acces the server(127.0.0.1 from safari) but i get en error(server couldn't be found). When i'm trying to switch on Apache in BossPrefs it looks like is on but still doesn't work and when...

ajax load and php server request uri

Hi, I am loading "myscript.php" to a div. When i use $_SERVER['REQUEST_URI'] in myscript.php, it prints myscript.php's url. how can i print the page's url that myscript.php is loaded into ? thanks ...

Call into a website and use php to recognize caller ID

I have this idea where I want to allow someone to call a phone number from their cell phone, and then a website would display their caller ID. I want to do this in php, but I'm really not sure how. I'm pretty good with PHP and I'm assuming you need some kind of GSM modem attached to the web server to accept the incoming phone calls, but ...

Replace %20 with spaces when downloading files?

Is it possible to get a url/downloaded file name change the "%20" to spaces? Like instead of downloading the file my%20file.pdf, download my file.pdf? I'd like to use PHP if possible... ...

php error: unexpected T_OBJECT_OPERATOR.... trying to install magento using ssh commands to dreamhost

I am trying to install magento (e-commerce platform) I am following a tutorial that tells me to run this command using ssh: ./pear mage-setup but i'm getting this error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/domainname.com/downloader/pearlib/php/System.php on line 400 Line 400 is commented in the code snipp...

Are there any security issues to avoid when providing a either-email-or-username-can-act-as-username login system?

I am in the process of moving from a "username/password" system to one that uses email for login. I don't think that there's any horrible problem with allowing either email or username for login, and I remember seeing sites that I consider somewhat respectable doing it as well, but I'd like to be aware of any major security flaws that I...

php csv high load request

i have PHP serve and one csv file . i need to read csv file and send the data to the browser. if individual request = 10,000 or more (may be) then reading csv file from harddisk may be costly.how can i efficiently read csv file from PHP and send the data to the browser. there is no option to read data form relational db. only browser<--...

Flexigrid Jquery

I don't know how to use Flexigrid jQuery in my website, please answer me sir. ...

Reverse Timezone offset

I have a timezone name and I want the name of the timezone double its offset. For instance, Asia/Dubai is +4, I want to reverse that to -4... and have it resolved to EDT Language: PHP Here's a sample of what it would look like: $timezone = "Asia/Dubai" $offset = $timezone->getOffset(); $offset 0 - $offset; $timezone = $offset->getTim...

Can a simple web form like this get hacked?

Hi I have a web form that sends a string to one php file which redirects them to a corresponding URL. I've searched about web form hacking and I've only received information about PHP and SQL... my site only uses a single PHP file, very basic etc. Would it be open to any exploits? I'm obviously not going to post the URL, but here is some...