My flex 3.5 application has an audio player whose content is accessed by calling an AMF service to get the mp3 data. As far as I can tell, flash.media.Sound is initialized with a URLRequest, so it's not clear to me how I can provide it with data using my RemoteObject.
I want to do one of the following things:
Provide data to the Sound...
I have created a custom content and I need to have links that go to the next post.
I am currently using this two methods:
previous_post_link( '%link', '' . _x( '', 'Previous post link', 'twentyten' ) . ' %title' );
next_post_link( '%link', '%title ' . _x( '', 'Next post link', 'twentyten' ) . '' );
But the problem is these methods ...
Is there a simpler function to something like this:
if (isset($_POST['Submit'])) {
if ($_POST['login'] == "" || $_POST['password'] == "" || $_POST['confirm'] == "" || $_POST['name'] == "" || $_POST['phone'] == "" || $_POST['email'] == "") {
echo "error: all fields are required";
} else {
echo "proceed...";
}
...
I have a Social Security number showing up like this:
1234567890
I want to show it like this:
###-##-7890
So, basically, masking the first five digits and entering hyphens.
How can I do that? Thanks.
...
I'm trying to add a space between any numbers that are passed over. Basically if $var2 was 1028 I want it to add a space so that it becomes 1 0 2 8. I only want it to add it for numerals though and not letters. I only need it to do it on var2-var5 and nothing above that. Any help is greatly appreciated! Thanks!
$apikey = $_GET['apikey']...
Hi every one,
im trying to fix the flash overlap using regular expressions. here is an example of markup im trying to convert to my needs
<object width="440" height="300" data=
"http://www.youtube.com/v/dMH0bHeiRNg&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"
typ...
Hopefully someone can help me out with this. I am upgrading a widget from the (really) old method of get_option/update_option to store/retrieve widget options to use the newer Widget API. The goal is to be able to use multiple instances of the widget, which I have successfully done, but now I'm running into a problem.
The plugin I'm wor...
Hello,
I'm currently rebuilding an admin application and looking for your recommendations for best-practice! Excuse me if I don't have the right terminology, but how should I go about the following?
Take the example of "users" - typically we can create a class with properties like 'name', 'username', 'password', etc. and make some meth...
our software is free to download
the source comes with it, so you are free to edit the code for your own use
we (the authors) own the rights to the code
...
Grr. I have that problem AGAIN.
I really have no idea what the problem is :|, I don't know how to explain so here's my code:
<?php
include("config.php");
$eUsername = $_POST['username'];
$ePassword = $_POST['password'];
$con = mysql_connect("localhost","MY_USERNAME","MY_PASSWORD");
if (!$con)
{
die('Could not connect: ' . mys...
I want to extract rows of group by rls_id but with latest/recent date
SELECT * FROM `tbl_revisions` where `date` in (SELECT MAX(`date`) FROM `tbl_revisions` group by `rls_id`) group by `rls_id`
The above query works well but i dont want to use subqeuries .I need some other way around.
CREATE TABLE IF NOT EXISTS `tbl_revisions` (
`i...
I've got my nice PHP syntax highlighting all set up and it looks great. What I need now is the ability to show built-in function signatures or hints while typing.
This is so common in so many IDEs, I would think somebody has a plugin to do this for VIM.
Example: While in insert mode, and typing str_replace, somewhere on the vim screen ...
I'm running PHP with Apache locally on my PC on Windows.
The script uploads files to the server.
When the file size is bigger than upload_max_filesize that is defined in php.ini or the max_execution_time is exceeded, the file is not uploaded to the server and I don't see any message error.
My question is where I can see what was the erro...
I have two configuration files. One is ini one is php. They look like below. I need to update the database file name but the rest of the files must be unchanged. Any idea how to do so?
config.ini
; Turning Debugging on
[test]
developer = true
; Production site configuration data
[production]
database.params.dbname = /var/lib/firebir...
Hello guys, i have a php script who parser a rss and give me the data in a know pattern. Im very new with ASP, JavaScript and Jquery so i dont have any idea of how to autoupdate the script and display the new data with a smooth animation (see this example, that exactly what i want). Thanks for the support and if you know a good script to...
I've created a bunch of errors in a file under APPPATH/messages/validate.php with a bunch of common messages such as...
return array(
'not_empty' => ':field must not be empty.',
'matches' => ':field must be the same as :param1',
'regex' => ':field does not match the required format',
'exact_length' => ':fi...
I created and application in facebook (it's in "sandbox mode").
I added a "connect to facebook" button in a page.
The login works OK, but when I try to use the method stream_publish, I get that error :
Uncaught exception 'FacebookRestClientException' with message 'The user hasn't authorized the application to perform this action' in
...
I'm using iPage.com host. In order to use PHP sessions in their host I need to add session_save_path('/home/users/web/.../cgi-bin/tmp'); at the start of each page (in my case only index.php because everything goes trough index.php first).
Now, they automatically add the session id to the end of every URL requested like this: website.com...
Hi
In WP you can filter shortcodes from a string and execute their hooked functions with do_shortcode($string).
Is it possible to filter a single shortcode, instead of all registered shortcodes?
for example I need a few shortcodes to be available for comment posters as well, but not all for obvious reasons :)
...
So I have this function that gets data from database and echoes it. The function takes from the database the article id, article title, and some other data..
When the user is not logged in, the function works good and shows all the data, but when a user is logged in, suddenly only the article title is fetched.. All the data is in the sa...