Jump to content

PHP_TRY_HARD

Members
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

PHP_TRY_HARD's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am looking for a solution for a project that I am working on. I need to make a datagrid (crud form) but it needs to the results displayed vertically because there are over 100 fields and I want to eliminate side scroll. So the field names would all appear on the left hand side in the first column and then the results each in there own column. I hope what I am saying makes sense? Thank you. Joe
  2. Thanks "Replication" is just what I needed.
  3. I am using an Apache server. I don't need to update every day, just whenever the database changes. The only thing I want is when I update the database I want it to be updated on all servers. Is it safe or even possible to access a database that isn't local host? Database Drive.... I will look into it. Is this something that should be loaded into my cpanel on an Apache server? Thank you all for your suggestions, I need some good advice before I get stuck into this project.
  4. PHP_TRY_HARD

    CSV

    I am fairly new to PHP and I want to get data off another database sitting on a different server. Is the best way to go about this Spit out a CSV every day (automated) Grab that CSV and insert it into the other database (automated) Is this the best way to sync the data? I want to use PHP and mySQL.
  5. I fixed it, I think it is cheating a little but it has given me the result I wanted. I just added the XML code to the headers. $client->setHeaders("<AuthHeader xmlns=\"http://localhost/test/\"><UserName>User123</UserName><Password>Password123</Password><errorMessage></errorMessage></AuthHeader>");
  6. I have the body working now but still struglling with the headers. Any advice?? $SOAPAction = 'http://localhost/test'; //Namespace of the WS. // $AuthHeader = array('TestUser' => $UserName, 'TestPassword' => $Password, '' => $errorMessage); $client = new nusoap_client("https://testWS.asmx?WSDL", true); $headers = new SoapHeader('http://localhost/test', 'AuthHeader', true); I am using nuSOAP
  7. I am making my own SOAP client that needs to call from a preexisting web service. I can access the WSDL that they supplied, so I need to build the SOAPclient backwards. I don't really know what I am doing so would appreciate any help. Thank you in advance. THE WSDL XML POST *****/PriceCalculationWS.asmx HTTP/1.1 Host: ***.***.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://localhost/DriveAwayPriceCalculation/PriceCalculation" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeader xmlns="http://localhost/DriveAwayPriceCalculation/"> <UserName>string</UserName> <Password>string</Password> <errorMessage>string</errorMessage> </AuthHeader> </soap:Header> <soap:Body> <PriceCalculation xmlns="http://localhost/DriveAwayPriceCalculation/"> <requestObject> <UserName>string</UserName> <Password>string</Password> <CompanyCode>int</CompanyCode> <MLP>double</MLP> <OptionsPrice>double</OptionsPrice> <DealerDeliveryCharge>double</DealerDeliveryCharge> <DriveAwayCalculationFlag>N or Y</DriveAwayCalculationFlag> <HybridVehicle>N or Y</HybridVehicle> <PrivateOrBusinessUse>P or B</PrivateOrBusinessUse> <VehicleTareWeight>double</VehicleTareWeight> <EngineCapacity>int</EngineCapacity> <NumberOfCylinders>int</NumberOfCylinders> <Postcode>string</Postcode> <CombinedCyclefuelConsumption>double</CombinedCyclefuelConsumption> <InsurerCode>string</InsurerCode> <ElectricVehicle>N or Y</ElectricVehicle> <GVR>char</GVR> </requestObject> </PriceCalculation> </soap:Body> </soap:Envelope> Annd My PHP SOAPclient attempt <?php require_once('nusoap.php'); $client = new nusoap_client('https://****.asmx',true); $auth_array = array( 'user_auth' => array( 'UserName' => 'Username', 'password' => 'Password', 'errorMessage' => 'error processing data', ) ); //Here is where we actually send the data. We are calling the 'login' SOAP method $login_results = $client->call('login',$auth_array); // The following lines will use the set_entry SOAP call to add // a Lead from a mixture of POST variables and hard coded // values, then assign to the authenticated user... $set_entry_params = array( 'module_name' => 'PriceCalculation', 'name_value_list'=>array( array('name'=>'UserName', UserName '), array('name'=>'Password',' Password '), array('name'=>'CompanyCode', '00'), array('name'=>'MLP', 'double'), array('name'=>'OptionsPrice', 'double'), array('name'=>'DealerDeliveryCharge','double'), array('name'=>'DriveAwayCalculationFlag','Y'), array('name'=>'PrivateOrBusinessUse','P'), array('name'=>'VehicleTareWeight','2000'), array('name'=>'EngineCapacity','2600'), array('name'=>'NumberOfCylinders','4'), array('name'=>'Postcode','2600'), array('name'=>'Postcode','value'=>$_POST['Postcode']), array('name'=>'CombinedCyclefuelConsumption','double'), array('name'=>'InsurerCode','767'), array('name'=>'ElectricVehicle','N'))); $result = $soapclient->call('set_entry',$set_entry_params); echo "The Drive Away price for the car is $VehicleDriveAwayPrice"; ?>
  8. So how about dynamic content? If my body contains dynamic content will that content help my rankings even if it is dynamicly loaded from a remote location?
  9. I have been looking over some websites and have noticed they are echoing the keywords from an external php and I am just wondering if this is good for SEO or not? I would think that having the metadata on the individual page would be better? Can you direct the webbots to the keywords.php?
  10. Good point with the email address and I.P. So would I have to delete the multiple entries off the database or is there some code that will check the database for the email address and bounce back an error code saying that they have already applied. I realise that if the email is like you said "awesome@example.com, awesome1@example.com, awesome2@example.com" that I would need to delete the entries.
  11. Thanks I will give it a go. I kind of gave up because I lost all my hair pulling it out but it's time I gave it another go.
  12. I am making a web site that is going to have a competition on it. We want people to only enter once. All of the data will go into a mySQL database. Also to stop people using fake names it might be best to read the computers I.P. so they can only enter once. I have no idea how to go about it, any ideas? Thank you.
  13. No what is "htmlspecialchars() " how do I use them? And I appreciate the help, thank you
  14. Its working now because I forgot a ";" but now it is showing up in my email with all the tags. a snippets is below html><body><p><font face="arial" size="2"><strong>Dear TESTER</strong>,</p><font face="arial" size="2"><p>Thank you for contacting client, we appreciate your comments. An client representative will be in contact with you within the Any one know what Im doing wrong?
  15. I am a web designer and am wondering what is the best program to code PHP in. I am using Dreamweaver at the moment. What program is going to be the most helpful?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.