Re: [PHP] What type of PHP5 shall I install to learn PHP5 together with Apache, Please specify the Apache type too Since There are Two Apache types also
On Fri, 8 Jul 2011, Varuna Seneviratna wrote: I am Using Ubuntu 11.04 Desktop as my OS.Below are the two types of PHP5 available for installation php5 - server-side, HTML-embedded scripting language (metapackage) php5-cgi - server-side, HTML-embedded scripting language (CGI binary) I got the above by running the command apt-cache search PHP5 1 What is the difference between the two. One is part of the other. I'm running Debian (which Ubuntu is based on), and by looking at the php5 package you can see that it depends on php5-cgi and a few other packages. 2 What shall I install to learn PHP with apache(Please specify the apache version too since there are two types available for Ubuntu) Can't really help you much there without more information, though again assuming the Debian packages are the same or similar, installing the apache2 package should pull in everything you need. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What type of PHP5 shall I install to learn PHP5 together with Apache, Please specify the Apache type too Since There are Two Apache types also
See https://help.ubuntu.com/community/ApacheMySQLPHP Also you can try the command bellow sudo apt-get install lamp-server^ Note, ^ is a part of the package name. Sent from a handheld device -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Constants in strings
On 06/07/11 17:33, Robert Williams wrote: Where I've made most use of heredocs is when I want to do nothing but define a bunch of long strings in one file. I find the most useful thing about heredocs is that they don't care about quotation marks, so I often use them for SQL statements where I might have a mixture of ' and eg. $sql =EoSQL SELECT foo AS Foo FROM Bar WHERE baz='quux' EoSQL; -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd. www.justcroft.com Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom Registered in England and Wales: 2297906 Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PEAR Mail $obj-send()
A client has: PHP 5.3 on Win7x64 running a local web app that needs to send mail. (This app was once hosted on a linux-based hosted space.) Apache 2.2 is installed but apparently not being used. I think the IIS service is actually the web server that is engaged. During troubleshooting a wide range of problems, I discovered that the PEAR Mail module needed to be installed. So I installed PEAR (the PEAR Installer) and the Mail module with all dependencies. The PEAR_ENV was added. The system was rebooted. A test php script instantiates the Mail class and the script proceeds fine until the send() method is called. I get a browser with Waiting for localhost for more than 60 seconds. (I used die(); to trace the script. Instead of 'auth'= true, I used 'auth' = PLAIN as suggested by a user comment on the Mail documentation page.) I believe all the parameters are correct. The actual web app works - except emailing. I added a firewall rule allowing outbound port 465 just for kicks. I can double-check for the PHP timeout setting but would PHP timeout in this case (waiting for a socket??)? Any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PEAR Mail $obj-send()
On 7/8/2011 9:50 AM, Brian Smither wrote: A client has: PHP 5.3 on Win7x64 running a local web app that needs to send mail. (This app was once hosted on a linux-based hosted space.) Apache 2.2 is installed but apparently not being used. I think the IIS service is actually the web server that is engaged. During troubleshooting a wide range of problems, I discovered that the PEAR Mail module needed to be installed. So I installed PEAR (the PEAR Installer) and the Mail module with all dependencies. The PEAR_ENV was added. The system was rebooted. A test php script instantiates the Mail class and the script proceeds fine until the send() method is called. I get a browser with Waiting for localhost for more than 60 seconds. (I used die(); to trace the script. Instead of 'auth'= true, I used 'auth' = PLAIN as suggested by a user comment on the Mail documentation page.) Do you have a mail server running on localhost? If the previous system was linux, then it was probably handing it off to sendmail. If you do not have a local MTA then you need to change the params so it uses a remote mail server. I believe all the parameters are correct. The actual web app works - except emailing. I added a firewall rule allowing outbound port 465 just for kicks. I can double-check for the PHP timeout setting but would PHP timeout in this case (waiting for a socket??)? Any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PEAR Mail $obj-send()
Instead of 'auth'= true, I used 'auth' = PLAIN as suggested by a user comment on the Mail documentation page.) $obj = Mail::factory('smtp', array ('host' = $host, 'port' = $port, 'auth' = true, 'username' = $username, 'password' = $password)); (Variables are set. $host = smtp.gmail.com, $port = 465) Do you have a mail server running on localhost? No. If you do not have a local MTA then you need to change the params so it uses a remote mail server. It does. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php