i have following code in my php jquery call...
<object type="application/x-shockwave-flash" data="mysounds/player.swf" id="audioplayer1" height="1" width="1">
<param name="movie" value="mysounds/player.swf" />
<param name="FlashVars" value="playerID=audioplayer1&autostart=yes&soundFile=mysounds/online.mp3" />
<param name="quality" va...
I'm using FQL to retrieve a list of users from Facebook. For consistency I get the result as JSON. This causes a problem - since the returned JSON encodes the user IDs as numbers, json_decode() converts these numbers to floating point values, because some are too big to fit in an int; of course, I need these IDs as strings.
Since json_...
I am trying to use the youtube API to pulldown some videos for my site. Currently am running this code here:
//Youtube Videos Pull Down
$youtubeURL = "http://gdata.youtube.com/feeds/api/videos?alt=json&q=cats+cradle+chapel+hill&orderby=published&max-results=10&v=2";
$youtubeSearch = file_get_contents($youtubeURL, true);...
Possible Duplicate:
Why use a framework with PHP?
To begin with, I just can say that I have always been programming by my own. I use php mostly. So, can you explain me why I should learn Zend Framework or other framework? Why just don't write a pure code by own?
edit: sorry, I really wrote into search input why use framework ...
I have registered and been approved, created my application and made a key/secret. I'm using the dropbox-php and I'm unable to download/retrieve files but I am able to access metadata info.
I have tagged my application as 'sandbox' and not metadata info. I am able to access the metadata info fine:
$dropbox = new Dropbox_API( KEY, SECRE...
Based on cakePHP's data model conventions, to setup a foreign key I would specify a column with the source_table followed by an _id.
I have an accounts and an account_messages table. Now the complication arises when I need 2 foreign key references to the same accounts table. Specifically I need to keep track of the account_id in the TO...
hail, i have a problem to serve file with PHP into client. that when i want to download it the save and open dialog will be appear but progress of download will not show. what is my problem?
header that i send it to client:
header('Content-Type: ');
header('Content-Description: File Transfer');
header('Accept-Ranges: bytes');
header('C...
i have the following code
$subject = "Subject Here";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Domain Name <[email protected]>' . "\r\n";
$to = $email;
$body = '
My Message here
';
mail($to, $subject, $bod...
Every so often, things work in my local PHP development environment, while in my test environment on my server, things do not. It's a nightmare to debug this. If I had a console like Rails provides, debugging would be much much simpler.
Is there anything like the Rails console but for PHP?
I should mention that I am using a home-brewn ...
What this symbol : mean in php?
...
My html webpage calls a php script to upload files to the server from a local computer as follows.
<form enctype="multipart/form-data" action="upload.php" method="POST">
<p><b><h3> <font color="#003366"> (1) Upload your reading text file. </font>
</h3> </b> </p>
<INPUT type="file" name="uploaded" size="50" >
<br/>
<input type="submi...
Hi, I am wondering if anyone has used or read about PHP scripts compiled as a .so extension for Apache... Thing is I think I remember reading about it somewhere but dont know if such a thing exists.
This looks promising, but incomplete and abandoned: http://phpcompiler.org/
Im interested because i think it could improve performance... ...
We have a "web application" which has been developed over the past 7 months. The problem is, it was not really documented. The requirements consisted of a small bulleted list from the initial meeting 7 months ago (it's more of a "goals" statement than software requirements). It has collected a number of features which stemmed from small ...
So I was reading about PHP namespaces, and I realized that in versions earlier than 5.3, if you write
namespace MyNamespace
you get a parse error.
Is there any way to avoid this i.e. make namespaces backwards-compatible, so the code doesn't simply crash?
...
We're looking to develop a CMS module for our website and I need some help in choosing the language/framework for this project. Basically we need to develop a "help' module like this one from ebay http://pages.ebay.com/help/index.html which will contain a lot of static pages with nice URLs for SEO.
The application must run fast using l...
Hi all,
I have a site with many files and directories. The directories are several levels deep. The problem is that they are in the wrong directory. They are in /www/upload/site/ and everything should be moved to /www/. Is there a short script to move everything two directories up?
Thank you.
...
I'm trying to rebuild an object encoded with Json but i'm not getting any value.
JQuery:
$.post("views/insert_tasks.php",{ clickedRows : clickrows , <?php echo "tasks:'" . json_encode($tasks) . "'"; ?> }, function(data)
{
});
this is the PHPcode to retrieve the object:
$tasks = json_decode(stripslashes($_POST['tasks']), true);
$t...
Hello,
I have some php code $_SESSION['username'] and I need to display it using html with something like <p>the username here</p>. I heard you might be able to do this using echo in PHP but Im not sure how. Thanks for any help.
...
move_uploaded_file() won't work for me anymore, it was working fine and just stopped out of nowhere. Is there a way for me to check why it's not working anymore? Here's what I currently have, but it only returns TRUE or FALSE.
$status = move_uploaded_file($tempFile, $targetFile);
if($status) {
echo 'its good';
} else {
echo 'it fail...
Hello,
I am having troubles generating a simple database form model. I am using:
Doctrine on Symfony 1.4.4
MySQL Workbench 5.2.16 with Doctrine Export 0.4.2dev
So my ERL Model is:
http://img708.imageshack.us/img708/1716/tmg.png
Genereted YAML file:
---
detect_relations: true
options:
collate: utf8_unicode_ci
charset: utf8
t...