php-general Digest 23 Jan 2011 00:52:43 -0000 Issue 7147
Topics (messages 310972 through 310975):
Difference between CURLOPT_URL and wget
310972 by: Ashim Kapoor
310974 by: Tommy Pham
Re: JunkBox - File Download Analytics
310973 by: Tommy Pham
Re: No SMTP server? Can't get mail()
310975 by: Paul S
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Dear All,
I am a beginner at PHP. I was studying the curl library and I came across
CURLOPT_URL.I think this can be used similar to wget ? What would be the
major differences in these 2 ?
Thank you,
Ashim
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Ashim Kapoor [mailto:[email protected]]
> Sent: Saturday, January 22, 2011 5:09 AM
> To: [email protected]
> Subject: [PHP] Difference between CURLOPT_URL and wget
>
> Dear All,
>
> I am a beginner at PHP. I was studying the curl library and I came across
> CURLOPT_URL.I think this can be used similar to wget ? What would be the
> major differences in these 2 ?
>
> Thank you,
> Ashim
See the official info at #1 search result [1] from search [2].
Regards,
Tommy
[1] http://daniel.haxx.se/docs/curl-vs-wget.html
[2]
http://www.google.com/search?q=CURL_OPT+vs+wget&ie=utf-8&oe=utf-8&aq=t&clien
t=firefox-a&rlz=1R1GGLL_en___US395
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Lukasz Cepowski [mailto:[email protected]]
> Sent: Saturday, January 22, 2011 3:17 AM
> To: [email protected]
> Subject: [PHP] JunkBox - File Download Analytics
>
> Hello,
>
> recently I had a trouble with tracking how many downloads of files I get,
> that is why I have decided to write my own simple solution and now I would
> like to share with product that can be usefull for many of You!
>
> JunkBox :: File Download Analytics
>
> http://junkbox.ognisco.com
>
> JunkBox is a lightweight web application that can track your files and
record
> every single click. You can get the total number of hits and statistics on
who
> downloaded your files and how and when. Moreover it is completely
> transparent so every link looks like an ordinary link to an ordinary file.
>
> For example this looks like an ordinary link to an ordinary file:
>
> http://files.ognisco.com/junkbox/junkbox-0.2-r93-20110120.zip
>
> but, just add '?stats' at the end:
>
> http://files.ognisco.com/junkbox/junkbox-0.2-r93-20110120.zip?stats
>
> and here you can get statistics of how many hits per day this particular
file
> has.
>
> What's more you can go and list files in the directory where you can see
hits
> counter for every file inside.
>
> http://files.ognisco.com/junkbox/
>
> And at the end you can get the list of the most popular files:
>
> http://files.ognisco.com/?top
>
> Also you can create your own custom theme.
>
> JunkBox is distributed under terms of GNU GPL license.
>
> Home page: http://junkbox.ognisco.com
> Online demo: http://junkbox.ognisco.com/demo
>
> Feel free to download, test and use JunkBox.
> Any feedback highly appreciated.
>
> Thanks,
>
> Lukasz (cepa) Cepowski
> Krakow, Poland
> +48 502 670 711
> www.ognisco.com
>
>
Hi Lukasz,
This tool looks great. Since I couldn't find the info on the site or in
your e-mail. Does keep track of aborted/cancel downloads in progress also?
Thanks,
Tommy
--- End Message ---
--- Begin Message ---
On Fri, 21 Jan 2011 13:41:21 +0700, Peter Lind <[email protected]>
wrote:
Probably not the solution you were looking for, but I've always found
mail()
very unstable and I tend to use a mail library instead. Like phpmailer or
swiftmailer. Easier to configure and figure out problems with.
Regards
Peter
Peter, that is warranted advice here.
I'm a little new to PHP. I'm set up to develop Apache/PHP/MySQL on my PC
uploading results to a unix server. My situation here is that I am trying
to get a PHP Mailing List program running for a friend's business web site
(on unix). That program has 2 options for mailing: 1) mail()/SMTP and
2) phpmailer options. Mail()/SMTP works, at least, on my PC. But I can't
get either of
the two emailing options to work on the UNIX server. (Whatever those mail
problems are, it is mangled with odd PHP/MySQL problems on unix).
I'm just 'back here' starting debugging with the mail()/SMTP option on
unix and my conclusion based on feedback above (thank you) is that email
IS reaching the unix SMTP server but is not being forwarded (and that's
unresolved now).
My mentioned "SMTP server echo problem" is irrelevant. Maybe they fixed it
last night, or maybe I was smoking something yesterday. It IS echoing
correctly.
I finally figured out that part of my problem was misunderstanding a
warning
message caused by my not single quoting SMTP (yikes!).
Or maybe I was just
enraged over my lack of success all day yesterday to confirm Apache server
information on the unix server (which would help me guarantee that I have
the same Apache/PHP/MySQL configurations between the PC and unix servers).
But today the SMTP server info IS echo'd on the unix server. From the Unix
server ...
-------------------------------------------------------------------------------
<?php
function apacheversion() {
$ver = split("[/ ]",$_SERVER['SERVER_SOFTWARE']);
$apver = "$ver[1] $ver[2]";
return $apver;
}
echo "<br>";
print ('Apache Version: ' . apacheversion());
echo "<br>";
print ($_SERVER["SERVER_SIGNATURE"]);
print ($_SERVER["SERVER_SOFTWARE"]);
echo "<br>";
?>
<?php
echo "<br>";
echo PHP_OS;
$os = php_uname();
echo 'OS' . "$os";
echo "<br><br>";
?>
<?php
error_reporting(E_ALL);
echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo 'register_globals = ' . ini_get('register_globals') . "\n";
echo "<br><br>";
echo "SMTP host: " . ini_get("SMTP");
echo "<br>";
echo "smtp_port: " . ini_get("smtp_port");
echo "<br>";
echo "sendmail_from: " . ini_get("sendmail_from");
echo "<br><br>";
?>
<?php
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();
echo "<br><br>";
// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('mysqli');
echo "<br><br>";
?>
<?php
$link = mysql_connect('localhost', 'xxxxxx', 'xxxxxx');
if (!$link) {
die('Could not connect: ' .
mysql_error());
}
printf("MySQL server version: %s\n", mysql_get_server_info());
echo "<br><br>";
?>
<?php
phpinfo();
?>
--------------------------------------------------------------------
gets:
Apache Version:
Apache
LinuxOSLinux clientx.xxxxxx.com 2.4.33.2 #4 SMP Wed Aug 23 10:41:21 EDT
2006 i686
display_errors = 1 register_globals = 1
SMTP host: localhost
smtp_port: 25
sendmail_from:
Current PHP version: 4.4.4
MySQL server version: 5.0.67-community
Warning: phpinfo() has been disabled for security reasons in
/home/xxxxxxxxxxxxxxxxxxxxxxx/php/unameunix.php on line 57
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--- End Message ---