Trying to get .php to matchup with button script

As it stands now when you click the submit button, to submit
the form info., I get the form error message.
I know my server account is linux so php is fine, there must
be something that is butting heads in the code. Please take a look
a tell me what you think might help
PHP FILE
<?php
$to_1 = "[email protected]";
//$form_subject = "Contact Form Submission:";
$name = $_POST['name_value'];
$email = $_POST['email_value'];
$subject = $_POST['subject_value'];
$message = $_POST['message_value'];
$msg = "Sender: $name\nE-Mail: $email\nMessage: $message";
$headers = "From:[email protected]\n";
$headers .= "Reply-To:[email protected]\n";
//print error_reporting(E_ALL);
//mail_status = mail($to_1,$subject,$msg,$headers);
$mail_status = mail($to_1,$subject,$msg,$headers);
if($mail_status){
echo "returnVal=success";
else{
echo "returnVal=error";
?>
AS3 Form & Button Code
//initialize the form
resetForm();
initSubjects();
form_name_value.tabIndex = 1;
form_email_value.tabIndex = 2;
subject_btn.tabIndex = 3;
form_message_value.tabIndex = 4;
submit_btn.tabIndex = 5;
reset_btn.tabIndex = 6;
//add listeners to buttons so that these buttons can perform
some actions
submit_btn.addEventListener(MouseEvent.ROLL_OVER,b tnOver);
submit_btn.addEventListener(MouseEvent.ROLL_OUT,bt nOut);
submit_btn.addEventListener(MouseEvent.CLICK,btnCl ick);
reset_btn.addEventListener(MouseEvent.ROLL_OVER,bt nOver);
reset_btn.addEventListener(MouseEvent.ROLL_OUT,btn Out);
reset_btn.addEventListener(MouseEvent.CLICK,btnCli ck);
subject_btn.addEventListener(MouseEvent.ROLL_OVER, btnOver);
subject_btn.addEventListener(MouseEvent.ROLL_OUT,b tnOut);
subject_btn.addEventListener(MouseEvent.CLICK,btnC lick);
submit_btn.label.mouseEnabled = false;
reset_btn.label.mouseEnabled = false;
submit_btn.buttonMode = true;
reset_btn.buttonMode = true;
subject_btn.buttonMode = true;
function btnOver(event:MouseEvent):void{
event.currentTarget.gotoAndStop("over");
/*switch( event.currentTarget ){
case submit_btn:
submit_btn.gotoAndStop("over");
break;
case reset_btn:
reset_btn.gotoAndStop("over");
break;
case subject_btn:
subject_btn.gotoAndStop("over");
break;
default:
//trace(event.currentTarget);
function btnOut(event:MouseEvent):void{
event.currentTarget.gotoAndStop("up");
/*switch( event.currentTarget ){
case submit_btn:
submit_btn.gotoAndStop("up");
break;
case reset_btn:
reset_btn.gotoAndStop("up");
break;
case subject_btn:
subject_btn.gotoAndStop("up");
break;
default:
//trace(event.currentTarget);
function btnClick(event:MouseEvent):void{
switch( event.currentTarget ){
case submit_btn:
if( validateData() ){
sendData();
break;
case reset_btn:
resetForm();
break;
case subject_btn:
subjects_mc.gotoAndPlay("over");
break;
default:
//trace(event.currentTarget);
function validateData():Boolean{
var is_form_valid:Boolean = true;
if( form_name_value.text == '' || form_name_value.text ==
'Name is required.' ){
form_name_value.text = 'Name is required.';
is_form_valid = false;
if( !validateEmail(form_email_value) ){
is_form_valid = false;
if( form_subject_value.text == '' || form_subject_value.text
== 'Choose A Subject...' ){
form_subject_value.text = 'Subject is required.';
is_form_valid = false;
if( form_message_value.text == '' || form_message_value.text
== 'Message is required.' ){
form_message_value.text = 'Message is required.';
is_form_valid = false;
return is_form_valid;
function validateEmail(email:TextField):Boolean{
var email_exp:RegExp =
/^[a-z0-9][-._a-z0-9]*@(([a-z0-9][-_a-z0-9]*\.)+[a-z]{2,6}|((25[0-5]|2[0-4]\d|[01]?\d\d?) \.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))$/x;
if( email.text == '' ){
email.text = 'Email is required.';
return false;
if( !email_exp.test(email.text) ){
email.text = 'Email is invalid.';
return false;
return true;
function sendData():void{
var url_loader:URLLoader = new URLLoader();
//var url_request:URLRequest = new
URLRequest("email.php"+getTimer());
var url_request:URLRequest = new
URLRequest("email.php"+getTimer());
url_request.method = URLRequestMethod.POST;
var url_variables:URLVariables = new URLVariables();
url_variables.name_value = form_name_value.text;
url_variables.email_value =form_email_value.text;
url_variables.subject_value = form_subject_value.text;
url_variables.message_value = form_message_value.text;
url_request.data = url_variables;
url_loader.load(url_request);
url_loader.addEventListener(Event.OPEN,loadingOpen Handler);
url_loader.addEventListener(Event.COMPLETE,loading
CompleteHandler);
url_loader.addEventListener(SecurityErrorEvent.SEC
URITY_ERROR, securityErrorHandler);
url_loader.addEventListener(HTTPStatusEvent.HTTP_S TATUS,
httpStatusHandler);
url_loader.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
function loadingOpenHandler(event:Event):void{
form_status.text = 'Sending Data...';
function loadingCompleteHandler(event:Event):void{
form_status.text = 'Data sent successfully.';
resetForm();
function securityErrorHandler(event:SecurityErrorEvent):voi
d{
form_status.text = 'An Error occured.';
function httpStatusHandler(event:HTTPStatusEvent):void{
form_status.text = 'An Error occured.';
function ioErrorHandler(event:IOErrorEvent):void{
form_status.text = 'An Error occured.';
function resetForm():void{
form_name_value.text = '';
form_email_value.text = '';
form_subject_value.text = 'Choose A Subject...';
form_message_value.text = '';
function initSubjects():void{
for(var i=1;i<=4;i++){
subjects_mc["subject_mc_"+i].id = i;
subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.ROLL_OVER,subjectBtnO
ver);
subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.ROLL_OUT,subjectBtnOu
t);
subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.CLICK,subjectBtnClick
subjects_mc["subject_mc_"+i].buttonMode = true;
subjects_mc["subject_mc_"+i].subject.mouseEnabled = false;
subjects_mc.mask = subjects_mask_mc;
function subjectBtnOver(event:MouseEvent):void{
event.currentTarget.gotoAndPlay("over");
function subjectBtnOut(event:MouseEvent):void{
event.currentTarget.gotoAndPlay("out");
function subjectBtnClick(event:MouseEvent):void{
subjects_mc.gotoAndStop("up");
form_subject_value.text =
subjects_mc["subject_mc_"+event.currentTarget.id].subject.text;
}

Okay, nice!
I changed that bit to just "email.php"),
and now I get the mesage "data sent successfully"
The question is WHERE??
It doesn't show up in the email addy specified in the .php
file.

Similar Messages

  • I have a Power Mac G4 and i am trying to get it to work with my LCD

    I have a Power Mac G4 and i am trying to get it to work with my LCD Monitor/TV. The connection on the computer is DVI and the connection on the Monitor is DVI. The Monitor says in the manual to hook up computers using the DVI connection. When I connect the too the monitor says there is no video input. I tried changing the settings on the monitor from PC mode to DVI mode and nothing. I have also tried changing the display on the computer to a couple of different settings and nothing. Please Help?

    Hi-
    A little more info please.
    What model G4?
    What Graphics card?
    What OS?
    What model/make of monitor?
    G4AGP(450)Sawtooth, 2ghz PowerLogix, 2gbRAM, RaptorSATAATA, ATI Radeon 9800   Mac OS X (10.4.8)   Pioneer DVR-109, 23" ACD, Ratoc USB 2.0, QCam Ultra, Nikon Coolscan

  • Getting .php files(output)with java

    i'm trying to get he contenty of a php file,
    but i don't receive anything with .html files it works great kan someone help me, please
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }

    but i don't receive anything with .html files it works great kan someone help me, pleaseWhat's that mean? Either you need to call:
    URLConnection urlconnection = url.openConnection();
    urlconnection.connect();
    Or you mean you aren't getting things like the images in the file... Well, of course, cuz there are no images in an HTML file. Only links to images, which a browser would parse out of the HTML and make another connection to the server to get. So you'd have to do the same thing. URLConnection is not a browser, it doesn't parse HTML.

  • Trying to get PHP (5.2.5) via Apache Web Server (2.2.13) to work.

    From binaries.
    1. I was able to get the command line execution of 01.php to work with php w/o
    Apache.
    2. I am able to get normal PHP to work in Apache and I'm able to load up some php
    extensions that come with PHP such as php_zip.dll
    which show up as loaded when I execute this php script via the Apache Web server:
    <?php
    phpinfo();
    ?>
    3. I've tried both the CGI method and the apache module method of linking apache to PHP, but
    still get the same following error in my Apache error logs.
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Progra~1/Oracle/Berkeley DB XML 2.4.16/bin\\php_db4.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Progra~1/Oracle/Berkeley DB XML 2.4.16/bin\\php_dbxml.dll' - The specified module could not be found.\r\n in Unknown on line 0
    4. I've tried to move these two dlls to the /ext directory as well, but no joy.
    5. What confuses me is that it works on the command line, but not through Apache.
    Since they work on the command line, the dlls are proper dlls, correct?
    What could be causing them not to work from Apache?
    6. In my google searching on other php dlls, there are references that certain php dlls are dependent upon other dlls to be in the path. Does anyone know if there are any other dependecies for two dlls in question? And is it that php command line can find these dlls, but when apache starts up, it doesn't have access to these other dependent dlls?
    7. Anyone have any insight, suggestions into this? Behavior?

    I think 5.2.10 has mainly bug fixes in comparison to 5.2.5. If it works, I'd simply assume everything's fine.
    Be aware, though, that there is a general caveat with using DBXML in an Apache/PHP environment. You cannot maintain state at the application level as with a Java application server. On each request, you'll have to reopen the environment and the containers you want to access. So it's not as effiicient as on a more suitable platform. Also, if the need to run recovery arises, it is not clear how you would handle this in a multi-process environment with no built-in means for coordination of those processes.
    Michael Ludwig

  • Trying to get clean title transitions with CS5

    Hi -I have lot's of trouble trying to get a consistent, clean transition in CS5. Mulple systems, multple configs but here is an example of the latest.
    HP Z800
    Quadro FX 5800
    12 GB RAM
    2 x 6core XEON (X5680)
    Atto R380 RAID controller
    CalDigit HDOne Storage
    example:
    1. place title with a transparent drop shadow, fade in, the fade won't be smooth.  it will 'pop' at the end of the transition - the fade is smooth until the very end, and then jumps to opaque (or whatever opacity level is set for title/graphic)
    Rendering makes little difference, and in the case of the video behind it can sometimes result in additional blooming, jumping in opacity levels and so on.  For example if I have a cross dissolve from black on video clip, it will preview fine, but after rendering we will get color shifts, or opacity jumps instead of a smooth fade in.
    Changing from GPU to software will clear the video previews to resolve the rendered area problems, but then we are just back at unsmooth transitions of titles and so on.
    Have changed various rendering settings, codecs etc...
    any help?

    http://forums.adobe.com/message/2426130#2426130

  • Anyone tried to get Jabber to work with Domino for contact search

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

  • Trying to get rows to ResultSet with CallableStatement and stored functio

    Hello!
    I'm using JDBC with Oracle XE 11g2, driver ojdbc6.jar (Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers, JDBC Thin for All Platforms) from oracle.com
    I've got a table
    CREATE TABLE ORGANIZATIONS
    CODE VARCHAR2(4),
    DESCRIPTION VARCHAR2(255)
    And I'm trying to get all organizations into ResultSet using CallableStatement with stored function:
    CallableStatement cs = connection.prepareCall("{? = call FN_GET_ROWS}");
    cs.registerOutParameter(1, oracle.jdbc.OracleTypes.CURSOR);
    cs.execute();
    I've created two types:
    CREATE OR REPLACE
    TYPE TEST_OBJ_TYPE AS OBJECT (
    CODE VARCHAR2(4),
    DESCRIPTION VARCHAR2(255)
    and
    CREATE OR REPLACE
    TYPE TEST_TABTYPE AS TABLE OF TEST_OBJ_TYPE
    and my function is
    CREATE OR REPLACE
    FUNCTION FN_GET_ROWS RETURN TEST_TABTYPE AS V_Test_Tabtype Test_TabType;
    BEGIN
    SELECT TEST_OBJ_TYPE(A.CODE, A.DESCRIPTION)
    BULK COLLECT INTO V_Test_TabType
    FROM
    (SELECT CODE, DESCRIPTION
    FROM ASM.ORGANIZATIONS
    ) A;
    RETURN V_Test_TabType;
    END;
    but when I run my program I've got error:
    P LS-00382: expression is of wrong type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    It doesn't look like your PL/SQL Function is returning a REF CURSOR to me. It looks like you are returning a PL/SQL Index-By table of Objects.
    Regards,
    Mark

  • Trying to get this "One" sound with Logic pro 8

    Hi everyone i spent like 2 hours last night trying to get this sound with Logic Pro 8 soft synths trying to find a sound exactly like or close to this sound: http://home.comcast.net/~tommykry/Weezer%20-%20Troublemaker.mp3
    The sound can be heard at 00:19 and through out the song, its like a low bass synth kind of sound that drifts down when its hit, like a portamento kind of thing. In live weezer videos the bass player is hitting a pad on a keyboard so i know its a key sound not a bass guitar slide. ive heard this sound in trance and techno songs as well. I have Sonar 8 and pro tools 8 as well and can look there if i have too, also have an Access viress Ti, But im trying to do this all in Logic. Like i said i played around for like more than 2 hours going through most of all the Logic synths, patch after patch trying to find something close i could tweak, so if anyone has more experience with The Soft synths in Logic Pro 8 and can steer me in the right direction i would be greatful.
    Thanks
    Tommy

    In live weezer videos the bass player is hitting a pad on a keyboard so i know its a key sound not a bass guitar slide.
    He could just be triggering a bass slide sample...
    It's some kind of bass sound that bends down, in a similar style to what a bass player might do. Whether it's a real bass or a synth is difficult to say (and probably doesn't matter a great deal), but in any case it's certainly compressed, and grunged up dirty with some amp sim or distortion...
    Try that route...

  • Trying to get PM to work with our upgrade process

    We are trying to get Personality migration working properly in our
    environment to migrate our users from 2000 to XP. We have been able to
    get the files to migrate properly, but are having issues with the
    application settings. We have installed PM from Zenworks 7 which is the
    Computer Associates version. When we are setting up the template in the
    application area, there does not seem to be anything there. For example,
    how do we set PM to gather the IE settings but not gather the proxy
    settings? Also, where would I find better documentation on this product?
    THanks in advance for any help.
    Brian

    Brian,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Trying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.

    rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
    Does anyone know how to fix this?

    What EXACT version of Photoshop CS4 are you running?  You should be on Photoshop CS4 v 11.0.2.
    Also run Apple's software update to see whether it offers you the latest Epson update:
    Printer Driver v9.33
    Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
    MOST IMPORTANTLY:  have Photoshop re-create its own Preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
    How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • Trying to get on the wireless with old G5

    Hi,
    I have one of the first G5's and have been on the internet using a ethernet cable to my
    Airport Extreme.
    I bought a new computer and like to put the old G5 in another place of the house.
    Can anybody tell me how I can get on the wireless with this computer?
    Can I use an Airport Express and plug it into the ethernet port or do I need more stuff?
    Thanks
    John

    Hi John,
    Unless you can or wish to have an appropriate Apple wireless card installed, it ought to be possible to use the latest 802.11n (draft) AirPort Express as a wireless client the way that you have in mind (see the ProxySTA part of this article).
    Otherwise, a dedicated wireless Ethernet bridge (such as Belkin F5D7330, D-Link DWL-G810, D-Link DWL-G820, Linksys WET54G, Linksys WGA600N or Netgear WGE111) could be an alternative. WPA security may or may not be supported (with or without a firmware update), so check the specifications.
    Jan

  • Trying to get iCal to sync with iCloud on my mac

    Hi there, I have a 2009 Macbook Pro running Yosemite. Since upgrading to mavericks, and subsequently Yosemite, I cannot get iCal to sync with the iCloud. All my calenders were sucked onto the cloud, and I can access them via my Iphone 5s and online, but whenever I try to tick the box in iCal to sync with my iCloud account, it crashes iCal.
    When I was on Snow leopard, and had a Nokia phone, I used a terminal command to sync my iCal through dropbox, which worked fine, but has obviously migrated with my user account, as with a clean install of Yosemite iCal works fine, until I use Migration assistant to install my User profile.
    Is there anyway to reset just iCal without a clean install off the OS?
    Thanks in advance

    Well, per the Adobe website, After Effects CS6 for Students is only available via a Suite
    Creative Suite 6
    Or US$999 for the non-Student version of After Effects CS6 alone
    Creative Suite 6
    Both those options are expensive compared to the Cloud options and give you only outdated - 3 year old - software.
    All Cloud plans give you access to 3 independent versions: CS6, CC and CC 2014, so your Cloud options:
    There are no Single App Student versions, so your only other Student option is to subscribe to the Cloud Complete Plan for Students and Teachers @ US$19.99/month (requires 12 month commitment - so US$240 all up).
    Or Single App After Effects (non-Student) for US$19.99/month - not much point since you can get the full Cloud Student and Teacher version for the same price
    Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Financially, the Full Cloud Student and Teacher option seems to offer the best value for you. Just remember that you're only ever renting the software. You never own it.

  • Trying to properly code a menu with buttons that can go back and forth between external swf files

    I have a project I've been working on that, when properly coded, has a "main menu" with 4 "doors" (buttons). When the corresponding buttons to these "doors" are clicked, it should go to and play an external .swf file. If that doesn't make sense, think of a DVD menu. You click play movie, it plays the movie. When the movie is over, there's two buttons on that swf file to either play the movie over or go back the main menu, which is an external .swf file (Remember, we go to the movie from the menu, which is a seperate file). So far, the buttons work. The menu works. However, from the movie, at the conclusion, when I click the button to go back to the main menu, it displays the movie clip and the buttons, but none of the buttons work. I'm starting to think it has to do with the fact the main menu was written in AS3 and the movie was made in AS2. If anyone can assist me in being to able to keep both files and still navigate between the two, being able to bring up the menu from the movie and be able to play the movie again, and so on and so on, that'd be GREAT. I'm somewhat of a noob to Flash, but I learn quickly and I'm open to any suggestions. Here's the code for main menu, which I guess acts as the parent file, and the movie. If I get this to work, I essentially would duplicate the same actions for the other 4 doors, once I complete the environments for them. Thanks
    Main.Fla/Swf (written in AS3)
    (This is the action on the first frame, that has all the buttons. For this question, I'm just trying to properly code for 'Door4', which is the "door" to the movie.)
    import flash.display.Loader;
    stop();
    var myLoader1:Loader=new Loader ();
    Door4.addEventListener(MouseEvent.CLICK, jayzSwf);
    function jayzSwf(myevent1:MouseEvent):void
              var myURL1:URLRequest = new URLRequest("jayzspeaks.swf");
              myLoader1.load(myURL1);
              addChild(myLoader1);
              myLoader1.x = 0;
              myLoader1.y = 0;
    Movie.Fla/Swf (written in AS2)
    (This is action on the button that returns to the menu)
    on (release) {
              this.createEmptyMovieClip("container",this.getNextHighestDepth());
              container.loadMovie("main.swf");

    At least you're going in the correct (mis)direction. You have AS3 loading AS2. So that's not a huge hurdle.
    I believe all you really need to do is send your Main.swf a signal that the content it loaded (e.g. jayzspeaks.swf) is done and you want to get rid of it.
    The code I pointed you to asks you to (upon download and import then) instantiate it in both AS2 and AS3. They give a very simple easy to understand line of code.
    // as2, load this in jayzspeaks.swf
    var myBridge:SWFBridgeAS2 = new SWFBridgeAS2("connectionID", clientObj);
    // as3, load this in main.swf
    var myBridge:SWFBridgeAS3 = new SWFBridgeAS3("connectionID", clientObj);
    Make sure the connectionID matches between them. Set it to whatever you want.
    When you're done with your as2 loaded content you'd send a signal (over localconnection) back to the AS3 Main like they say:
    myBridge.send("someFunctionToUnloadContent");
    myBridge.close();
    You'd need to make the as3 function "someFunctionToUnloadContent()" (example purposes only name) and it should unload the jayzspeaks.swf that was loaded in the loader.
    Make sure you get that close in there so you don't drill up a bunch of localconnection objects just like the simple source code says.

  • Trying to setup PHP site (friendica) with nginx on localhost

    Hi, just new here :-)
    Started to use Arch a couple of month ago and sofar everything went fine thanks to the great documentation!
    Now I tried to setup friendica on my computer for testing some modifications but I just fail on installing the required modules :-(
    I already installed:
    php
    php-fpm
    php-gd
    php-cgi
    php-mcrypt
    mariadb
    nginx
    phpmyadmin
    But I still get the following errors:
    GD graphics PHP module (required)
    Error: GD graphics PHP module with JPEG support required but not installed.
    OpenSSL PHP module (required)
    Error: openssl PHP module required but not installed.
    mysqli PHP module (required)
    Error: mysqli PHP module required but not installed.
    Generate encryption keys (required)
    Error: the "openssl_pkey_new" function on this system is not able to generate encryption keys
    If running under Windows, please see "http://www.php.net/manual/en/openssl.installation.php".
    Command line PHP
    Could not find a command line version of PHP in the web server PATH.
    If you don't have a command line version of PHP installed on server, you will not be able to run background polling via cron. See 'Activating scheduled tasks'
    PHP executable path Enter full path to php executable. You can leave this blank to continue the installation.
    Url rewrite is working (required)
    Url rewrite in .htaccess is not working. Check your server configuration.
    My nginx.conf looks like this:
    #user http;
    worker_processes 1;
    error_log logs/error.log;
    #error_log logs/error.log notice;
    #error_log logs/error.log info;
    #pid logs/nginx.pid;
    events {
    worker_connections 1024;
    http {
    include mime.types;
    default_type application/octet-stream;
    #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
    # '$status $body_bytes_sent "$http_referer" '
    # '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log logs/access.log main;
    sendfile on;
    keepalive_timeout 15;
    gzip on;
    gzip_comp_level 1;
    server {
    listen 80;
    server_name localhost;
    location ~ \.php {
    root /srv/http/project;
    fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    location / {
    root /srv/http/project;
    index index.php;
    Can someone help me?

    Thanks for the quick answer!
    progandy wrote:Did you enable all necessary modules in your php.ini?
    I had a look at /etc/php/php.ini but I can't find things (with my knwoledge) that seem to be important....
    progandy wrote:Then you'll have to create the rules in the .htaccess in the format nginx understands.
    Haven't checked that yet...
    progandy wrote:https://github.com/friendica/friendica/ … tall-Guide
    This is quite complicated. Seems like I'd need to study  to understand it:-(
    progandy wrote:http://jcsesecuneta.com/tome/labox/sett … -on-nginx/
    This one seemed clear I changed my nginx.xonf according to it:
    server {
    listen 80;
    server_name localhost;
    root /srv/http/project;
    access_log off; # If you are using 'Analytics' type software for tracking, keep this 'off'
    log_not_found on; # Turn on if you want to track "not found" errors
    error_log /srv/http/project/logs/error.log info; # valid values: debug, info, notice, warn, error, crit
    #rewrite_log on; # Uncomment if you want to debug your rewrites (then change 'crit' above to 'notice')
    # block stuff early
    # Do not log favicon.ico and robots.txt stuff
    location ~* /(favicon\.ico|robots\.txt) {
    allow all;
    access_log off;
    log_not_found off;
    # Return error 444 for these files
    location ~* ^.+\.(bzr|git|log)$ {
    access_log off;
    log_not_found off;
    return 444;
    # Deny public access to ~ (bak) files
    location ~* ~$ {
    access_log off;
    log_not_found off;
    return 444;
    # Friendica #
    location / {
    try_files $uri $uri/ @friendicacleanurl;
    location @friendicacleanurl {
    rewrite ^/(.*) /index.php?q=$uri last;
    break;
    # Security: Friendica #
    # block public access to .htaccess and .htconfig.php
    location ~* /\.ht {
    access_log off;
    log_not_found off;
    return 444;
    # block public access to .tpl files located in /view/ folder
    location ~* /view/(.*)\.tpl$ {
    access_log off;
    log_not_found off;
    return 444;
    # block public access to /util/ folder
    location ^~ /util/ {
    access_log off;
    log_not_found off;
    return 444;
    # Deliver static files directly #
    # images (Friendica)
    location ~* /(addon|images|library|spec|util|view)/(.*)\.(bmp|cur|gif|ico|j2k|jp2|jpe|jpeg|jpf|jpg|jpm|jpx|mj2|mng|png|svg|svgz|thm|tif|tiff|webp)$ {
    add_header Pragma "public";
    add_header Cache-Control "public";
    access_log off;
    log_not_found off;
    expires 28d;
    # redirect 50x error pages #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /usr/share/nginx/html;
    internal;
    # enable PHP #
    location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    fastcgi_pass 127.0.0.1:9000; # Comment if you want to use sock instead of tcp
    #fastcgi_pass unix:/var/run/php-fpm.sock; # Uncomment to use sock instead of tcp
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
    but then nothing works anymore! When I try to restart nginx I get:
    sudo systemctl status nginx.service
    nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
    Active: active (running) (Result: exit-code) since Sa 2013-12-28 18:05:13 CET; 1 day 22h ago
    Process: 15591 ExecReload=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on; -s reload (code=exited, status=1/FAILURE)
    Process: 318 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 314 ExecStartPre=/usr/bin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Main PID: 320 (nginx)
    CGroup: /system.slice/nginx.service
    ├─ 320 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on;
    └─10295 nginx: worker process
    Dez 30 14:59:10 thinker nginx[10294]: 2013/12/30 14:59:10 [notice] 10294#0: signal process started
    Dez 30 14:59:10 thinker systemd[1]: Reloaded A high performance web server and a reverse proxy server.
    Dez 30 16:12:58 thinker systemd[1]: Reloading A high performance web server and a reverse proxy server.
    Dez 30 16:12:58 thinker nginx[15396]: 2013/12/30 16:12:58 [emerg] 15396#0: "server" directive is not allowed here in /etc/nginx/nginx.conf:1
    Dez 30 16:12:58 thinker systemd[1]: nginx.service: control process exited, code=exited status=1
    Dez 30 16:12:58 thinker systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
    Dez 30 16:15:33 thinker systemd[1]: Reloading A high performance web server and a reverse proxy server.
    Dez 30 16:15:33 thinker nginx[15591]: 2013/12/30 16:15:33 [emerg] 15591#0: no "events" section in configuration
    Dez 30 16:15:33 thinker systemd[1]: nginx.service: control process exited, code=exited status=1
    Dez 30 16:15:33 thinker systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
    What's wrong?

  • Trying to get MySQL to work with Oracle Tutorial

    Hi,
    I was attempting to work through the following tutorial Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces
    http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
    But with a twist that I want to attempt with MySQL. Whilst MySQL is working fine in the IDE when I test the javaServiceFacade it fails as the construct/syntax of the sql command is incorrect :-
    SELECT rowid, contractno, fax, advert, status, remark, tel, kva, lastuser, createddate, type, postcode, contact, country, modified, refno, address, email, custname FROM "enquiries" WHERE (refno LIKE ?)")
    You note the "enquires" which for mysql should not have the quotes and is causing error.
    I have looked at persistance.xml and it looks ok. Even tried setting database to MySQL4
    Any suggestions to what controls the SQL syntax?
    James
    excerpt from persistance.xml
    +<properties>+
    +<property name="eclipselink.target-server" value="WebLogic_10"/>+
    +<property name="javax.persistence.jtaDataSource"+
    +value="java:/app/jdbc/jdbc/main_MySQLDS"/>+
    +<property name="eclipselink.target-database" value="MySQL5"/>+
    +<property name="eclipselink.jdbc.native-sql" value="true"/>+
    +</properties>+
    +</persistence-unit>+
    +<persistence-unit name="genesys" transaction-type="RESOURCE_LOCAL">+
    +<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>+
    +<class>genesys.Enquiries</class>+
    +<properties>+
    +<property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>+
    +<property name="eclipselink.jdbc.url"+
    +value="jdbc:mysql://127.0.0.1:3306/main"/>+
    +<property name="eclipselink.jdbc.user" value="root"/>+
    +<property name="eclipselink.jdbc.password"+
    +value="B0855467D54C688144F5AA7621CE386D"/>+
    +<property name="eclipselink.logging.level" value="FINER"/>+
    +<property name="eclipselink.target-server" value="WebLogic_10"/>+
    +<property name="eclipselink.target-database" value="MySQL5"/>+
    +<property name="eclipselink.jdbc.native-sql" value="true"/>+
    +</properties>+

    I am trying to do the same thing, but in my case I am using my onkyo receiver to do the decoding. I have a minijack converter to coax in the mic jack of the card. I switched the options to digital i/o out. This does work, but I can only get stereo sound. When I play my 5. dvd, it still plays it in stereo sound. I have all the settings correct, as I can get 5. sound out of my onboard coax but not the creative extreme music. It also greys out the option for passthru(external source decoder).
    My roommate has the platinum creative sound card with the front panel with coax/optical out right on it, he has WAY more dobly/dts options in his menu settings and is able to send 5. out easily. auto detects it and with minor tweaks, gets 5. out thru either optical or coax.
    I thought this card supported 5. coax out thru the digital port. I just dont think it does, the options are missing from the menu all together, and yes I have the most recently updated webupdate. I can get stereo sound thats it. Funny how my realtek onboard does a way better job then this "higher end" sound card.
    Am I missing something maybe? Please help, I would like to get this going, or at least get a solid answer if this is even possible so I can stop wasting my time with it.
    Thanks,
    Joe

Maybe you are looking for