php

gravatar: force dispaying identicon

Is there any way to force gravatar to always return identicon URL? The only way I found so far is: ?forcedefault=1&default=myCustomGeneratedImageUrlHere. However I don't want to generate identicon myself. Any ?forceIdenticon param? ...

Decode amf3 object using PHP

My flash code: var request=new URLRequest('http://localhost/test.php'); request.method = URLRequestMethod.POST; var data = new URLVariables(); var bytes:ByteArray = new ByteArray(); bytes.objectEncoding = ObjectEncoding.AMF3; //write an object into the bytearray bytes.writeObject( { myString:"Hello World"} ); data.data = bytes; ...

Service Browser for Zend AMF

Hi there ! I have some questions: Does Zend AMF has a service browser feature like AMFPHP does? Some people do mention about zamfbrowser, but at the time I'm posting this question, the site is still unavailable. Is there any possibility to use AMFPHP's service browser with Zend AMF? Thanks in advance! Regards, Andree. ...

Cron jobs and php script question

Hi, I have 5-6 jobs to be done by cron, and i have separated php scripts for those jobs. My question is, which one is better, putting all the jobs in one php script or keeping them in separated php files and entering them to crontab separately ? thx ...

Version control a content management system?

I have the following directory structure in the CMS application we have written: /application /modules /cms /filemanager /block /pages /sitemap /youtube /rss /skin /backend /default /css /js /images /frontend /default /css /js /images...

How to keep character encoding with database queries.

Hi, I am doing the following. 1) I am exporting a database and saving it to a file called dump.sql. 2) The file is then transferred to a different server via PHP ftp. 3) When the file has been successfully transferred the administrator has an option to run a 'dbtransfer' script on the new host. 4) This script blows up the script and ru...

How to pass variable value to gpg commands

$importkey = system('gpg --import newkey.asc . $username'); need to pass the file name as a variable.so that file name with its contents can be import in gnupg keyring. $gpg = system('gpg --recipient userid --output filename --armor --encrypt filename to encrypt', $retvalue); how can i pass the recipient email id(userid) and the f...

curl function and multipart/form-data issue

does curl function need any special option to post multipart/form-data ? ...

Assign debug_backtrace() To a variable in PHP

I tryed to email me debug_backtrace() but it just prints out the array. I need to assign it to a variable so that var_export can work with it. How can i do that? ...

how to send a POST value to a server with a PHP script waiting for it from iPhone app

Hi In my iPhone app - I am trying to get what the user types in a box emailed to me. I am going to use a PHP script sitting on my server, and try send the data to it for it to be processed. Promblem is... how do i do this? Im using the ASIHTTPRequest wrapper and have some code like this ASIFormDataRequest *request = [[[ASIFormDataReq...

Print and array to a file..

Hi, I would like to print an array to a file. I would like the file to look exactly similar like how a code like this looks. print_r ($abc); assuming $abc is an array. Is there any one lines solution for this rather than regular for each look. P.S - I currently use serialie but i want to make the files readable as readability is qui...

Another application in the dialog in facebook?

I have a fanpage which has a tab/facebook application, that renders some info from my server in this application(tab) I want to have button that will open up a dialog box where I would like to refer to another application. Is it possible? and any suggestion concerning how to implement this would be appreciated PS. the Application that I...

PHP Site Deployment Suggestion

I'm currently quite troubled by the way of deployment my team is adopting... It's very old-fashioned and I know it doesn't work very well. But I don't exactly know how to change it, so please give some suggestions about it... Here is our current setup: 2 webservers 1 database server 1 test server Current deployment adaptation We d...

Yahoo Open Social PHP SDK - Birthday

I am working on a Yahoo! App which involves the usage of Profile Information of the logged in user. The Application is being developed using yos-social-php and is hosted on one of our Servers. As per the requirement, I need the Birthday of the user for a special task. To achieve this, I loaded the user profile and echoed it in the brows...

Autocompleting MVC View Variables in Eclipse PDT/Zend Studio

When using Zend Studio to write views for a MVC framework, is there any way of having those variables autocomplete, perhaps using PHPdoc? For example, I set a variable in a view called $cart which is an instance of my ShoppingCart class. When I type "$cart->", I'd like the IDE to pop up with all of the objects properties. ...

How Can I Mage A Custom Version of the jQuery Splitter

Hi, How can I make a custom jQuery splitter. I have used jQuery spliter but it uses nested elements. Is it possible to make it work without nested structure? ...

get contents of php file after it's ran/executed

how can i put the result of an include into a php variable? I tried file_get_contents but it gave me the actual php code, whereas I want whats echoed. ...

How to parse text fragments located outside tags (inbetween tags) by simplehtmldom?

Hello! I'm using simplehtmldom to parse html and I'm stuck in parsing plaintext located outside of any tag (but between two different tags): <div class="text_small"> <b>Аdress:</b> 7 Hange Road<br> <b>Phone:</b> 415641587484<br> <b>Contact:</b> Alex<br> <b>Meeting Time:</b> 12:00-13:00<br> </div> Is it possible to get...

Help PHP Login not working correctly?

Ok so I am trying create a login script, here I am using PHP5 and mysqli, I would to ask if you could let me know why it keeps just returning "the error: your username and password does not match any in our db"? when I have created the an account and it clearly does? It's probably something obvious I've missed. Heres the code... //Check...

How can we re-use the deleted id from any MySQL-DB table?

How can we re-use the deleted id from any MySQL-DB table? If I want to rollback the deleted ID , can we do it anyhow? ...