PHP, XML, AS2 - Login

I'm trying to login, I got my database mysql, set up and everything. I'm doing the php file and the XML file for the moment.

I don't KNOW IF THIS IS ALL GOOD - I'm NEW to PHP and XML.

I want it so that when you enter your username and password on flash, it checks it on the database. So I did:


$user = $_POST ['username'];

$pass = $_POST ["password"];


$query = "SELECT * from users WHERE username = '$user' and password = '$pass" ";

So I then did one thing so if there is 1 row, then it varies from a true or false Boolean value.

$result = mysql_query ($query) or die ("has no application");

$checklog = false;

$num = mysql_num_rows ($resultat);


If ($num == 1) {}

$checklog = true;

} else {}

$checklog = false;

}

Now, I'm doing the XML code. I want so if the $checklog is true, then he said 'yes '. Otherwise, it is said 'no '.

If ($checklog == true) {}

echo 'ago ';

} else {}

echo 'no ';

}

That's all I am at the moment, is there something wrong with that?

that seems ok.  You can use:

$user = $_POST ['username'];

$pass = $_POST ["password"];

$query = "SELECT * from users WHERE username = '$user' and password = '$pass" ";

$result = mysql_query ($query) or die ("has no application");

$checklog = false;

$num = mysql_num_rows ($resultat);

If ($num == 1) {}

$checklog = true;

} else {}

$checklog = false;

}

If {($checklog)

echo 'ago ';

} else {}

echo 'no ';

}

Tags: Adobe Animate

Similar Questions

  • PHP, xml and Flash [multiple holders]

    Hello

    A few days ago, I posted a discussion related to php, xml and Flash. I want to display my xml in flash. I am using to do so. I now have a problem of obtaining xml data in my table to appear on different licensed video clips.

    It's my code. I tried a different configuration of the code, but without success.

    var urls:Array = [];

    var: index number;
    var index1:Number;

    var xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = parseXML;
    XML. Load ("Content.php");

    parseXML() {} function
    for (var i: Number = 0; i < this.firstChild.childNodes.length; i ++) {}
    URLs.push (this.firstChild.childNodes [i].firstChild.nodeValue);
    }

    index = 0;
    index1 = 1;

    startyourappF();

    }

    function startyourappF() {}

    this.onEnterFrame = preloadA;

    holder.loadMovie (urls [index]);

    This is me trying it to get the second element in the url in an another film clip holder.

    holder1.loadMovie (URLs [index1]);
    }

    function preloadA() {}

    If (Holder.getBytesLoaded () > 50 & & holder.getBytesLoaded () > = holder.getByte sTotal()) {}

    delete this.onEnterFrame;

    Holder._width = 260,0;

    Holder._height = 96.0;
    }

    This should be resizing to the holder of the second.
    If (holder1.getBytesLoaded () > 50 & & holder1.getBytesLoaded () > = holder1.getB ytesTotal()) {}

    delete this.onEnterFrame;

    holder1._width = 260,0;

    holder1._height = 96.0;
    }
    }

    The success of code loads the holder first image but cannot load the second url holder1 and others, that I want to add. I spend the whole night to try different configurations of the code but without success.

    I hope you can help me. All I need is more than an image loaded from the URL variable in several other variables of the licensee.

    Hope you can help.

    soon > >

    You must first set the structure of your directory and you will need to use relative URLS.  There is no sense to work on something else because what works now in your first image, and if you fix the code in your 2nd frame, it will break as soon as you download on your server.

    Thus, to duplicate the configuration of directory, that you plan to use on your server and use relative URLS.

    If your xml, html and swf are in the same directories and you intend to keep them in the same directories when you download on your server, use load ("timol.xml") to load your xml file.  Similarly, remove all path information to load anything else.

  • PHP, xml and Flash

    Hello

    Someone can help me. I try to query an sql database and echo the image in xml format so I can display the image in flash.

    I already know how to query and echo the url of the image of the database.

    This is the code:

    The database is queried at this stage already.

    echo "<? XML version=\"1.01\"? " "> \n";

    echo "< content > \n";

    While ($Nile = mysql_fetch_assoc (Run))

    {

    echo "< point >." $nile ['content']. "" < / item > \n ";

    }

    echo "< / content > \n";

    Flash I creat table to insert a URL and an xml object echoes images. It looks like this.

    This is after you have created the table of object and xml next url the loop for to insert the XML.

    thexml.onLoad = function)

    {

    var photos: Array = thisfirstChild.childNodes;

    for (i = 0; i < photos.length; i ++)

    {

    This pushes the XML in a table of URLs

    URLs.push (photos [i]. Attributes.URL);

    }

    This is supposed to load individual data into the flash movie object.

    movieobject.loadMovie(urls[0]);

    movieobject.loadMovie(urls[1]);

    }

    x.Load (Content.php);

    The echo in the first code xml produces a url link that contains a link to an image in the database. The flash is supposed to display the image on a flash clip call movieobject animation. I have some difficulty in getting the image displayed in flash. If anyone can change or provide the new code, it would be really useful.

    More PHP XML , you can view

  • Help regarding php xml then will be flashing echo

    Hello guys! Im still new in use as2 and as3 so Im begging for your attention on how to solve my problem.

    I made a php that generates a XML file. This is the XML code 'load.xml '.

    <? XML version = "1.0" encoding = "utf-8"? >

    < GALLERY >

    Image1.jpg < IMAGE > < / IMAGE >

    < / GALLERY >

    Here is the version of php that displays the XML "load.php".

    <? PHP

    Header ("Content-type: text/xml");

    $host = "localhost";

    $user = 'root ';

    $pass = "";

    $database = "test";

    $gelo = "image1.jpg";

    / * xml output

    $xml_output = ' <? XML version=\"1.0\? > ';

    $xml_output. = "< GALLERY > ';

    $xml_output. = '< IMAGE > '. $gelo. "< / IMAGE >";

    $xml_output. = "< / GALLERY > ';

    echo $xml_output;

    ? >

    After that, I tried to echo in flash. When I try to use "myLoader.load (new URLRequest ("load.xml"));" "  It works fine, but when I try to change it to 'load.php' I got this error.

    TypeError: Error #1088: the markup in the document following the root element must be well-formed.

    at test_fla::MainTimeline/processXML()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    Here is my Code

    var myXML:XML;

    var myLoader:URLLoader = new URLLoader();

    myLoader.load (new URLRequest ("load.php"));

    myLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(e:Event):void {}

    myXML = new XML (e.target.data);

    trace(myXML.image[0]);

    }

    Have a look here: http://dev.flashlabs.eu/examples/xml/

    All right... You can download the source and use it.

  • Conversion function XML AS2 AS3

    Hi guys, how are you?

    Once again I m here to ask for your help.

    I m trying to convert an AS2 AS3 script, but I m not good in AS3 síntax yet. I Don t know how to create this structure. Please, could someone help me?

    xml:
    
    <resources>
    
             <levelTitle1>Iniciante</levelTitle1>
              <levelTitle5>Aprendiz</levelTitle5>
              <levelTitle10>Aspirante</levelTitle10>
              <levelTitle15>Recruta</levelTitle15>
              <levelTitle20>Experiente</levelTitle20>
              <levelTitle30>Profissional</levelTitle30>
              <levelTitle50>Star</levelTitle50>
              <levelTitle70>Ás</levelTitle70>
              <levelTitle90>Campeão</levelTitle90>
              <levelTitle120>Lenda</levelTitle120>
    
    </resources>
    
    
    AS2 Function:
    
    public static function getLanguage(tag:String):String
    {
               if (languageObject[tag].data){
    
    
                        return slanguageObject.resources[tag].data;
               }
                 return "Error";
     }
    

    I can´t find a way to work in as3 without the parameter 'data '.

    I want to call this as2 function, pass "levelTitle30" to the "tag" parameter and return by the return of the function of the content of "levelTitle30" of the xml tag.

    Kind regards

    is your code xml in an external file?

    If so, (for example, resources.xml), you would use:

    var xml

    var urlLoader:URLLoader = new URLLoader();

    urlLoader.addEventListener (Event.COMPLETE, completeF);

    urlLoader.load (new URLRequest ("resources.xml"));

    function completeF(e:Event):void {}

    XML = e.Target.Data;

    }

    public static function getLanguage(tag:String):String{
    if(xml[tag]){
    return xml[tag];

    } else {
    return "Error";
    }
    }

  • PHP XML graphic drawing tool

    I'm trying to build a tool that creates a graph through data from a MySQL database, however the .swf does not seem to accept the xml created by the PHP sheet. I was wondering if anyone had any ideas on that?

    Thank you very much!

    private void loadXML (file:String = "graph.php"): void
    {
    urlLoader.load (new URLRequest (file));
    urlLoader.addEventListener (Event.COMPLETE, parseXML);
               
    }

  • Loading, php, xml or dynamic text

    Hello dw experts. I ask for a link tutorial, or you have to point me in a direction I could better learn the method to enable a client remotely, edit and update the text in a control in an html page (without having access to my server). I know, in Flash, I wish a document them xml and (re) set in, say, their own server specific directory, which I know the url.

    I would do the same thing with dw, but I really hope it is just a product of third party I can buy just the front end of this idea for my client to use, and the method to place the end of on my page. Above all, I would like a simple php control or the page (like any blog) where the customer would have to change/add text, press the button send, and text then magically appear in the specific page I created and home on my server. Perhaps sequencially, by publication date.

    I thank very you much for any assistance.

    r

    Sorry - this is a bad link. Try http://www.flyspeck.net.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "MEPE" wrote in message
    News:eepqpq$KQQ$1@forums. Macromedia.com...
    > Murray, thanks for the tip. However, the link showed an auth error
    > ( http://www.flyspeck.com ). I would like to see, however. Other means to?

  • Dreamweaver, php - xml bug

    I have a simple php file that generates an xml file. When I save this file and close it, dreamweaver modifies some of the formatting when I open the file it again. Specifically, dreamweaver capitalizes some of the text in the document.

    Example:

    Code:
    $this-> xml_request = '
    < PickupType >
    < code > < code > 01
    < / PickupType > ';

    is converted to

    $this-> xml_request = '
    < PickupType >
    < code > < code > 01
    < / PickupType > ';

    Once the file is saved, closed and then reopened. Note the Code tag has been changed to the code, which breaks the API I work with. This xml file is always php like code above that I used it...

    Does not happen in many areas, the Code and the address so far and it happens to the same fields every time, regardless of the document, or how many times they appear in the document. No other name tag is affected as much as I found. I tried uninstall completely removing all the configuration files and re-installation of Dreamweaver and get the same exact effect each time.

    I really need this bug / bad configuration sets. Any suggestions would be greatly appreciated.

    It comes from CS3 (DW9) running on XP Pro.

    jestep,

    In the preferences > Code Format, make sure that the "case of substitution of".
    "Tags" settings is disabled.

    HTH,
    Randy

    > I have a simple php file that generates an xml file. When I save this file and
    > Shut up, dreamweaver modifies some of the formatting when I open the file it again.
    > Specifically, dreamweaver capitalizes some of the text in the document.
    >
    > Example:
    >
    > The code:
    > $this-> xml_request = '
    >
    >01
    >
    ';
    >
    > is converted to
    >
    > $this-> xml_request = '
    >
    >01
    >
    ';
    >
    > once the file is saved, closed and then reopened. Note the tag Code has been
    > by chance to the code, which breaks the API I work with. This xml file is always
    > in php code as shown above that I used it...
    >
    > Happen in many areas, the Code and the address far and arrives at the
    > same fields every time, regardless of the document, or how many times they appear
    > in the document. No other name tag is affected as much as I found. I have
    > tried completely uninstall, delete all the files of configuration, and
    > reinstall Dreamweaver and get the same exact effect each time.
    >
    > I really need this bug / bad configuration sets. Any suggestion would be
    > appreciated.
    >

  • loading and unloading data xml as2

    I'm working on an AS2 file and load several FLV files in flv player through xml files. But I am experiencing the slot problem.

    I want to load several xml files in the same list (container), linked through buttons.

    Each xml file has a different number of FLV files. Now, when I load an xml with 10 files FLV file and then load 5 FLV files through the other list, I see again 10 FLV files in the list instead of 5 new flvs. The list retains the previous flvs down 5 and replaces the top 5 with the new FLV files. I'm not a developer but know base AS2 and AS3.

    Any help will be appreciated.

    Thank you.

    found a simple solution:
    If you load the 'data' in a movieclip then you can try to join the container/mc whenever you get a new list of xml and then remove and unloading it just before insertng a new set, worked like a charm, remove the extra bits!

    Thanks to my Savior!

  • Flex php XML return connection

    Hello! IM new to flex and I have a question I hope someone can answer. I have a flex application I'm building that needs to display a list of dynamic images, preferably with icons. I built the list of titles, but I do not know how to connect the HTTPService data to the list. the HTTPService returns XML data, it must be easy. but, as I said, Im really new. Please help me!

    "arthurlockman" wrote in message
    News:g7kk4g$177$1@forums. Macromedia.com...
    > Hello! IM new to flex and I have a question which I hope someone can
    > response. I have a flex application I'm building that needs a list
    > of
    > dynamic images, preferably with icons. I built the list, but I have no
    > soaps
    > How to connect the HTTPService data to the list. the HTTPService is
    > return
    > The XML data, so it must be easy. but, as I said, Im really new. Help, please
    > Me!
    >

    Depending on what you are willing to do, you can either use a Repeater with
    a picture or a custom component that contains an Image or you can use a list
    component to display an Image or a custom with a base Image component (or
    SwfLoader, or Loader) inside. It is literally a ton of stuff on it
    in the help. Here are a few places that you can try:

    Help > Flex Start Page > creating a Simple RIA
    Help > Help contents > User Interfaces
    -With the help of data providers and Collections
    -Controls
    -Image
    -SwfLoader
    -With the help of data-driven controls
    -With the help of converters point and section editors
    -Dynamically repeating controls and containers

    Here is an example that might get you quickly * if * you are not the type
    to read the docs:

    http://examples.Adobe.com/flex2/inproduct/SDK/PhotoViewer/PhotoViewer.html

    HTH;

    Amy

  • Writing an XML file on disk using PHP

    Hello.

    I decided it's time to ask for help with the issue I'm having.

    I have a photo gallery that loads images with a legend with the aid of a local XML file. I want the user to click on a photo to change the caption and thus change the XML. Then I need to rewrite the XML in Flex updated in the local XML file. I'm really surprised that I was not able to find examples online. I learned that the security settings are preventing us to write directly on the Flash/Flex, the solution disk, with I came is therefore to use PHP. Currently, Flex passes the XML updated string to the PHP script and PHP replaces the local XML file with the string.

    I have 2 numbers.

    1. I can see in the bin-debug folder that the updated file XML is written correctly, but raise the request meets my TileList with OLD data.  The strange thing is that if I delete the XML file completely from my project (source and bin-debug folders), or if I change the URL in the httpService to an alias file, the application still works very well with old data. The other weird thing is that a few times during my troubleshooting, suddenly has worked well as expected. I tried to clean up the project and many other things that I can't even remember (like changing the path to the PHP/XML files, run the application outside of Flex Builder, change the path to build in the project settings)...

    Am I right in thinking it's weird, or am I missing something really simple? Any ideas? I'm even on this a good way to write the XML through PHP?

    2. the second question, I think is less important, but I will explain because maybe it is related to the first. By clicking on the button to call the PHP script causes the text "localhost... data transfer". "appears at the bottom of my browser indefinitely.

    Thanks in advance.

    Simply attach a timestamp after each call to xml:

    var req:URLRequest = new URLRequest ("http://localhost/gallery.xml?refresh=" + new Date () .getTime ());

    This will make the browser suggests that the link can be potentially a different content due to URL variable evolution and recharge it every time.

  • SendAndLoad XML with PHP

    It seems that nobody bothers the practice:

    XMLOjbect.sendAndLoad ("somescript.php", resonseXML);

    I have a PHP script written back in an XML schema as an answer, but there is no way to get the XML sent swf object in the php script. Since this is a post variable, it must be obtained in something like:

    <? PHP
    $xml = $_POST ['something'];
    ? >

    Could someone tell me how?

    Thank you

    I also found a recommendation for PHP5.2.2;

    If (! isset ($HTTP_RAW_POST_DATA)) {}
    $HTTP_RAW_POST_DATA = file_get_contents() ('php://input');
    }
    $xmldata = $HTTP_RAW_POST_DATA;

  • Invalid accept header with PHP SDK 5.1 against 1.5.1 vCloud Director

    In PHP 5.1 SDK samples do not work against 1.5.1 vCloud Director?  Any code that I am trying to write with PHP 5.1 SDK really will work against my vCD 1.5.1?  Or it will fail as the samples?  Is there something I can do for samples and all this work?

    My question seems very similar to http://communities.vmware.com/message/2142668#2142668.  I've had some success with the SDK 1.5 samples against my 1.5.1 vCloud Director.  But when I've upgraded to the PHP 5.1 SDK, all I could get was "invalid accepts header" messages, like this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 400, error: <? xml version = "1.0" encoding = "UTF-8"? >

    " < error xmlns =" http://www.VMware.com/vCloud/v1.5 "stackTrace =" com.vmware.vcloud.api.rest.handlers.exceptions.BadRequestRestApiException: invalid application accepts the header

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getBadRequestApiException(ErrorHandler.java:71)

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorBadRequest(ErrorHandler.java:44)

    at sun.reflect.GeneratedMethodAccessor11639.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)

    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)

    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)

    to org.ap in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 401 error,:, request data:
    ' in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php:178
    Stack trace:
    #0 home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/Service.php(114): VMware_VCloud_SDK_Service_Abstract-> message ('https://vcloud...) "(, 200) "
    #1 home/bob/lib/vcloudPHP-5.1.0/samples/login.php(78): VMware_VCloud_SDK_Service-> login ('vcloud.mydomain...', Array, Array)
    #2 {hand}
    lifting in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    A standard API call seems to work:

    curl - test id = true u scripty@system h ' Accept: application / * + xml; " version 1.5 =" https://vCloud.mydomain.edu/API/sessions

    Enter password for the user "scripty@system": Home


    HTTP/1.1 200 OK

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    x vcloud-authorization: rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x + IGI =

    Set-Cookie: vcloud-token = rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x IGI plus; Guarantee; Path = /.

    Content-Type: application/vnd.vmware.vcloud.session+xml;version=1.5

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    Content-Length: 1009


    <? XML version = "1.0" encoding = "UTF-8"? >

    " < session xmlns =" http://www.VMware.com/vCloud/v1.5 "user = org"scripty' = 'System' type="application/vnd.vmware.vcloud.session+xml' href =" https://vCloud.mydomain.edu/API/session/ "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: schemaLocation = " http://www.VMware.com/vCloud/v1.5 http://vcloud.the.usg.edu/api/v1.5/schema/master.xsd" > "" "

    "" < link rel = "low" type="application/vnd.vmware.vcloud.orgList+xml" href = " https://vCloud.mydomain.edu/API/org/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vcloud+xml" href = " https://vCloud.mydomain.edu/API/Admin/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vmwExtension+xml" href = " https://vCloud.mydomain.edu/API/admin/extension "/>

    "" < link rel = "low" type="application/vnd.vmware.vcloud.query.queryList+xml" href = " https://vCloud.mydomain.edu/API/query "/>

    "" < link rel = "entityResolver" type="application/vnd.vmware.vcloud.entity+xml" href = " https://vCloud.mydomain.edu/API/entity/ "/>

    < / session >

    Version switching in gross 1.5 to 5.1 API call causes the accept header message invalid, which is not surprising, now that I became familiar with the format and the requirement to accept header.
    For example, can code samples from the SDK 5.1 actually work against 1.5.1 API?
    Thank you!!!

    Hello

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with message "POST https://vcloud.mydomain.edu/api/login failed, return code: 401 error,:, request data:"

    [Rajesh] Seems to me like a problem of password username. As it clearly says 401.

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    [Rajesh] SDK users should not change the code in the library. This is a bug with the SDK for not allowing users to change the version of API through the library (connection method accepts the version as well) rather than change in the library.
    Kind regards
    Rajesh Kamal.
  • the use of afcs.php to implement external authentication

    We tried to follow the examples in the Cocomo Developer Guide and the sample application to start the implementation of an external authentication solution.  Our request for logon or the sample provided in the SDK work for us.  Both fail when you try to connect with the same errors in the server log:

    PHP Fatal error: Eception exception 'AFCSError '...

    We found an example for how the call of our test server command-line and were preparing to get a picture more complete of how it is a failure. The answer: < = result code "unauthorized" > seems to us that the service does not allow our adobe account authenticate:

    PHP afcs.php - debug - host = http://ConnectNow.Acrobat.com OurAdobeAccount <OurUsername> <Ourpassword>

    $Revision: #4 $ - $Date: $2009/09/28

    http_get: http://ConnectNow.Acrobat.com/ OurAdobeAccount? mode = xml & accountonly = true &

    < result code = "unauthorized" >

    " < baseURL href = ' https://na2.connectnow.acrobat.com:443 / "/>

    " < authentication href = ' https://services.Acrobat.com/account/WSAPI/auth/v1 "/ > "

    < / result >

    http_post: https://services.Acrobat.com/account/WSAPI/auth/v1 < application > < user name > OurUsername < / username > < password > Ourpassword < / password > < / request >

    Table

    (

    [Content-Type] = > text/xml

    )

    Error: exception 'AFCSError' in /usr/local/apache2/htdocs/rg/afcs.php:575

    Stack trace:

    #0 usr/local/apache2/htdocs/rg/afcs.php(64): CAA-> http_post (Object (SimpleXMLElement), ' < application > < usern...', Array)

    #1 usr/local/apache2/htdocs/rg/afcs.php(229): AFCSAuthenticator-> login ('OurUsername', 'Ourpassword', Array)

    #2 usr/local/apache2/htdocs/rg/afcs.php(636): AFCSAccount-> login ('OurUsername', 'Ourpassword')

    #3 {hand} >

    We have searched through the forums and it does not look like other users have the same problem.  We tried two different accounts of Adobe and these two not in the same way.
    You can provide any help would be greatly appreciated

    Line 575 in afcs.php is:

    573: $fp is fopen ($url, 'r', false, $context);.

    574: if (! $fp)

    575: throw new AFCSError("connection-failed");

    This means that the POST for the authentication service did not pass. I think you should be able to find more information about the actual error in the PHP error log, but my guess is that you haven't installed SSL module (this is a common mistake, since SSL is disabled by default). Now I can not find how to properly configure PHP to POST https URL right, but if you still need it I can get this information in the future.

    Meanwhile, check your PHP error log and see if it's the actual error.

  • Login page does not work

    Hello

    I developed the admin dashboard a simple for my project.


    http://BHC.edu.in/BHCNET/admin/login.php


    The login page works well in localhost. After the download on my site, the login page does not work.


    It shows that the user name and password is incorrect. Kindly help me.

    username : admin

    password: admin

    Here is my code.

    <? PHP

    session_start();

    ? >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < h1 align = "center" > welcome aboard the Admin! < / h1 >

    < img src = "Images/Admin - icon.png" width = "200" height = "200" style = "float: left;" Display: block; "class ="admin">

    < do action = "login.php" method = "post" name = 'loginform' id 'french' = > "

    < table width = "278" height = '174' border = '0' >

    < b >

    < td width = "102" height = "59" > < label > user name: < / label > < table >

    < td width = "187" > < input type = "text" name = "user name" placeholder = "Enter your name" / > < table >

    < /tr >

    < b >

    < td = "46" height > < label > password: < / label > < table >

    < td > < input type = "password" name = placeholder "password" = "Enter your password" / > < table >

    < /tr >

    < b >

    < td = "37" height > < input type = "submit" name = "login_but" id = "login" value = "Login" / > < table >

    < td > < p >

    < input type = "reset" value = "Reset" name = "reset_but" id = "reset" / >

    < /p > < table >

    < /tr >

    < /table >

    < / make >

    < / body >

    < / html >

    <? PHP

    If (isset($_POST['login_but']))

    {

    $name = mysql_real_escape_string($_POST['username']);

    $pass = mysql_real_escape_string($_POST['password']);

    $encrypt = md5 ($pass);

    include("include/Connection.php");

    $query = "select * from users_login where name = '$name' and password = '$pass'"; "

    $run_query = mysql_query ($query, $conn);

    If (mysql_num_rows ($run_query) > 0)

    {

    $_SESSION ['username'] = $name;

    echo 'window.open ('index.php', '_self') < script > < /script >';

    }

    on the other

    {

    echo "< script > alert ("user name or password is incorrect!") < /script > ';

    }

    }

    ? >

    Kindly help me.

    Thank you in advance.

    There are two things that stand out immediately as incorrect:

    • You call mysql_real_escape_string() before connecting to the database. The connection must come first.
    • You use the original functions of PHP MySQL. They have been deprecated and do not work on several servers. Use MySQLi .

Maybe you are looking for