Jump to content

guarriman

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

guarriman's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi. Working with PHP 5.2 and Sendmail 8.13, I want to implement DomainKeys to send messages with this standard. Does anybody how to do it? Thank you very much.
  2. Hi. I created this script to send emails: $mailFromEmail = "[email protected]"; $mailFromName = "MYDOMAIN"; $mailTo = "[email protected]"; $mailHeaders = "From: $mailFromName <$mailFromEmail>\n" . "Content-Type: text/plain; " . "charset=UTF-8; format=flowed\n" . "MIME-Version: 1.0\n" . "Content-Transfer-Encoding: 8bit\n"; $mailSubject = "Hi! " . date('h:i:s A'); $mailMessage = "Hi,\n\nHow are you?\n" . date('l dS \of F Y h:i:s A') . "\n"; mail($mailTo, $mailSubject, $mailMessage, $mailHeaders); In addition, I've set an SPF policy on my DNS server, and I added this line to my 'php.ini' file: sendmail_path = /usr/sbin/sendmail -t -i -f [email protected] (I've got 'safe_mode=on' on my server) So Gmail users receive the messages correctly: Delivered-To: [email protected] Received: by 10.100.121.18 with SMTP id t18cs105671anc; Fri, 4 Apr 2008 06:58:23 -0700 (PDT) Received: by 10.114.56.1 with SMTP id e1mr1995521waa.52.1207317502773; Fri, 04 Apr 2008 06:58:22 -0700 (PDT) Return-Path: <[email protected]> Received: from v2v-3.net ([52.147.120.136]) by mx.google.com with ESMTP id q18si8099195pog.7.2008.04.04.06.58.22; Fri, 04 Apr 2008 06:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates 52.147.120.136 as permitted sender) client-ip=52.147.120.136; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 52.147.120.136 as permitted sender) [email protected] Received: (qmail 21817 invoked by uid 48); 4 Apr 2008 06:58:22 -0700 Note the "Return-Path" line and the "Received-SPF" line. If I change '[email protected]' with '[email protected]', they don't receive my emails. What am I doing wrong?
  3. Hi. I'm using APC 3.0.17 with PHP 5.2.5 on Linux. I'm suffering some "white page of death" APC errors, and I'm trying to investigate the reasons. But: 1) I don't find any APC support forum. 2) I don't find any APC error log. I'm browsing Apache error log (with PHP 'E_ALL' activate) and don't see any line about it. Any suggestion is welcome. Thank you very much.
  4. Thank you very much for your answer. Yep, I posted it on the Smarty forum, but I was told it doesn't look like a Smarty issue. You mean the webbrowser cache, don't you? It could be, since the homepage includes a SWF file we include a lot of Ajax. It's within an Intranet, sorry
  5. Hi. Using Apache/2.2 + PHP/5.2, my web application runs very slow when users access the very first webpage. The first webpage takes 5-10 to load and users see the messages: "Connecting" > "Read" > "Waiting for foo.com" > "Transferring from foo.com" > "Connecting" > "Read" > ... I inserted some PHP code to log the script speed with 'microtime' function, and I get (in the very bottom of the webpage): <!-- 0.13374590873718 sec. (Page Ends) --> The second time I access this page, I get: <!-- 0.55434894561768 sec. (Page Ends) --> It takes more time to be executed, but it loads faster! Any similar experience? I use Smarty template engine.
  6. Yep. In "php.ini": short_open_tag = On Thank you very much. I heard about it but I didn't remember the keywords to google it
  7. Hi. Just installed PHP5 on my server, and found out that some of my PHP scripts start with "<?" instead of "<?php", so my application is showing the PHP code. Is there any php.ini configuration to ignore this? I want to survive with this until I modify the code during this week. Thank you very much, -- Thomas
  8. Hi. Using: - APC Version 3.0.16 - PHP Version 5.2.5 - Apache/2.2.3 (CentOS) I'm suffering the White Page of Death problem when I activate APC on my php.ini. Most of times I access a webpage, it's blank. I tried setting 'auto_globals_jit=off' in php.ini, but it doesn't work. The same code works perfectly on this environment: - APC Version 3.0.16 - PHP Version 4.4.4 - Apache/2.0.59 (Fedora) Any suggestion? Thank you very much.
  9. Hi. Using PHP5, I get this error code in my webpages: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/share/pear/plugins/compiler.t.php) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp) in /var/www/vhosts/mydomain.com/httpdocs/lib/smarty/core/core.get_include_path.php on line 34 I don't know where '/var/www/vhosts/mydomain.com/httpdocs:/tmp' comes from, because with my "phpinfo" page I get these values of "open_basedir", in Local and in Master: /var/www/vhosts/mydomain.com/httpdocs:/usr/share/pear/plugins:/usr/share/php/plugins/ Any suggestion?
  10. Hi. I've got this SOAP request structure I must comply in my petition: <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:Body> <isValidUser xmlns="http://lab.domain.com/"> <userId>int</userId> <lastName>string</lastName> </isValidUser> </soap:Body> </soap:Envelope> and I wrote in my PHP code $params = array('userId' => '5555', 'lastName' => 'Smith'); $response = $client->__soapCall("isValidUser", $params); but I generate this request message: <SOAP-ENV:Body> <ns1:isValidUser/> <param1>Smith</param1> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Which code must I write in PHP to reproduce this XML request? Thank you very much.
  11. Hi. Using PHP5 + SOAP, I'd like to obtain my SOAP call request in XML format. For instance: POST /UsersData.asmx HTTP/1.1 Host: lab.webservice.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://lab.webservice.com/isValidUser" <?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:Body> <isValidUser xmlns="http://lab.webservice.com/"> <UserId>int</UserId> <lastName>string</lastName> </isValidUser> </soap:Body> </soap:Envelope> I use this piece of PHP code: $client = new SoapClient($wsdl, array('trace'=>true, 'exceptions'=>true)); $response = $client->__call('isValidUser', $options); What might I include in my PHP code to get this request? Thank you very much.
  12. I tried with: $wsdl = 'https://lab.domain.com/UserService.asmx'; $local_cert = 'key-cert.pem'; $passphrase = 'foofoo'; $client = new SoapClient($wsdl, array('trace'=>true, 'exceptions'=>true, 'local_cert' => $local_cert, 'passphrase' => $passphrase)); but I get this error message: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://lab.domain.com/UserService.asmx' in /home/code/soap4.php on line 7
  13. Hi. I'd like to "translate" this cURL call (which works ok) to PHP SOAP: curl \ --data @file.xml \ --header "Content-Type: text/xml; charset=utf-8" \ --header "SOAPAction: http://lab.webservice.com/IsValidUser" \ -v \ -G \ --key key.pem \ --cert verisign.crt \ https://lab.webservice.com/UsersService.asmx Contents of "file.xml": <?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:Body> <IsValidUser xmlns="http://lab.webservice.com/"> <userId>555</userId> <lastName>Smith</lastName> </IsValidUser> </soap:Body> </soap:Envelope> I don't know how to implement it with: $wsdl = 'https://lab.webservice.com/UsersService.asmx'; $client = new SOAPClient($wsdl); $params = array( 'userId' => '555', 'lastName' => 'Smith' ); $response = $client->__call(.... Any suggestion?
  14. Yep. It's possible... For each class, I harvest all the fields of the record I query Thank you very much for the answer.
  15. Hi thorpe. Thank you very much for your answer. My app has tons of PHP code (20 classes, 100 Smarty templates, 100 PHP webpages). I thought that Smarty was useful to save time, not to waste it
×
×
  • 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.