php-windows Digest 25 Jul 2003 04:07:18 -0000 Issue 1839 Topics (messages 20892 through 20898):
Re: php-cli >>redirect 20892 by: Mikey recompiling php under windows 20893 by: John Yu 20897 by: Stephen March Not a PHP problem 20894 by: Voldermort date calculations 20895 by: Emilio Re: Web pages not being displayed 20896 by: Luis Ferro how to connect to a php sever through a net work 20898 by: Derick Zhao 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 ---Have you tried using the 'at' command? It is a bit like cron on *nix and may support redirection, unlike the Task Scheduler HTH, Mikey > -----Original Message----- > From: Comex [mailto:[EMAIL PROTECTED] > Sent: 24 July 2003 12:32 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: php-cli >>redirect > > > <[EMAIL PROTECTED]> > Voldermort -: > > Using php-cli 4.2.2 on Windows XP Pro. > > php-cli script.php >>file.log works as expected from the command > > console; the script's output is > > sent to file.log. However, when run from the Task Scheduler, the > > output scrolls through the console > > window and file.log is untouched. The task is running with the > > necessary permissions, and nothing is > > recorded in the event logs. The script is definitely running though. > > Any ideas? I'm flummoxed. > > > > _________________________________________________________________ > > Tired of 56k? Get a FREE BT Broadband connection > > http://www.msn.co.uk/specials/btbroadband > > I think that command > file is a MS-DOS command, that doesn't work in > Windows. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
--- End Message ---
--- Begin Message ---Hi I need to recompile php 4.3.2 under windows so that fsockopen can support SSL connections. I have downloaded the source from openssl.org and placed everything in the right place... The compile process seems to go well until the linking part where it totally freaks out... here's what I get Linking... Creating library ..\Release_TS/php4ts.lib and object ..\Release_TS/php4ts.exp network.obj : error LNK2001: unresolved external symbol _X509_free network.obj : error LNK2001: unresolved external symbol _php_openssl_apply_verification_policy network.obj : error LNK2001: unresolved external symbol _SSL_get_peer_certificate network.obj : error LNK2001: unresolved external symbol _SSL_shutdown ftp.obj : error LNK2001: unresolved external symbol _SSL_shutdown network.obj : error LNK2001: unresolved external symbol _SSL_connect ftp.obj : error LNK2001: unresolved external symbol _SSL_connect network.obj : error LNK2001: unresolved external symbol _SSL_copy_session_id ftp.obj : error LNK2001: unresolved external symbol _SSL_copy_session_id network.obj : error LNK2001: unresolved external symbol _SSL_set_fd ftp.obj : error LNK2001: unresolved external symbol _SSL_set_fd network.obj : error LNK2001: unresolved external symbol _SSL_set_connect_state network.obj : error LNK2001: unresolved external symbol _SSL_CTX_free ftp.obj : error LNK2001: unresolved external symbol _SSL_CTX_free network.obj : error LNK2001: unresolved external symbol _php_SSL_new_from_context network.obj : error LNK2001: unresolved external symbol _SSL_CTX_new ftp.obj : error LNK2001: unresolved external symbol _SSL_CTX_new network.obj : error LNK2001: unresolved external symbol _ERR_get_error network.obj : error LNK2001: unresolved external symbol _ERR_peek_error network.obj : error LNK2001: unresolved external symbol _SSL_get_error network.obj : error LNK2001: unresolved external symbol _ERR_error_string_n network.obj : error LNK2001: unresolved external symbol _SSL_write ftp.obj : error LNK2001: unresolved external symbol _SSL_write network.obj : error LNK2001: unresolved external symbol _SSL_read ftp.obj : error LNK2001: unresolved external symbol _SSL_read network.obj : error LNK2001: unresolved external symbol _SSL_pending network.obj : error LNK2001: unresolved external symbol _SSL_free network.obj : error LNK2001: unresolved external symbol _SSL_peek ftp.obj : error LNK2001: unresolved external symbol _SSL_new ftp.obj : error LNK2001: unresolved external symbol _SSLv23_client_method fsock.obj : error LNK2001: unresolved external symbol _SSLv23_client_method ftp_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_client_method http_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_client_method fsock.obj : error LNK2001: unresolved external symbol _TLSv1_client_method ftp_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_method ..\Release_TS\php4ts.dll : fatal error LNK1120: 24 unresolved externals and of course the compile fails... Anyone know what I need to do to get SSL support compiled into PHP? Oh by the way, fsockopen wouldn't support SSL connections if the openssl extension is just loaded in php.ini, the support has to be compiled in for it to work. thanks in advance! John
--- End Message ---
--- Begin Message --- I'm not 100% sure on the problems you are incuring, however I just thought I'd make mention of http://www.opensa.org,
which is an open SSL (mod ssl & open ssl 0.97b) enabled version of apache (2.0.44) w/php 4.3.0 (on Windows). I find it useful to contribute to such a project, rather than compile my own (depending on your needs) :)
Food for thought, ~Steve
John Yu wrote:
Hi
I need to recompile php 4.3.2 under windows so that fsockopen can support SSL connections. I have downloaded the source from openssl.org and placed everything in the right place... The compile process seems to go well until the linking part where it totally freaks out...
here's what I get
Linking... Creating library ..\Release_TS/php4ts.lib and object ..\Release_TS/php4ts.exp network.obj : error LNK2001: unresolved external symbol _X509_free network.obj : error LNK2001: unresolved external symbol _php_openssl_apply_verification_policy network.obj : error LNK2001: unresolved external symbol _SSL_get_peer_certificate network.obj : error LNK2001: unresolved external symbol _SSL_shutdown ftp.obj : error LNK2001: unresolved external symbol _SSL_shutdown network.obj : error LNK2001: unresolved external symbol _SSL_connect ftp.obj : error LNK2001: unresolved external symbol _SSL_connect network.obj : error LNK2001: unresolved external symbol _SSL_copy_session_id ftp.obj : error LNK2001: unresolved external symbol _SSL_copy_session_id network.obj : error LNK2001: unresolved external symbol _SSL_set_fd ftp.obj : error LNK2001: unresolved external symbol _SSL_set_fd network.obj : error LNK2001: unresolved external symbol _SSL_set_connect_state network.obj : error LNK2001: unresolved external symbol _SSL_CTX_free ftp.obj : error LNK2001: unresolved external symbol _SSL_CTX_free network.obj : error LNK2001: unresolved external symbol _php_SSL_new_from_context network.obj : error LNK2001: unresolved external symbol _SSL_CTX_new ftp.obj : error LNK2001: unresolved external symbol _SSL_CTX_new network.obj : error LNK2001: unresolved external symbol _ERR_get_error network.obj : error LNK2001: unresolved external symbol _ERR_peek_error network.obj : error LNK2001: unresolved external symbol _SSL_get_error network.obj : error LNK2001: unresolved external symbol _ERR_error_string_n network.obj : error LNK2001: unresolved external symbol _SSL_write ftp.obj : error LNK2001: unresolved external symbol _SSL_write network.obj : error LNK2001: unresolved external symbol _SSL_read ftp.obj : error LNK2001: unresolved external symbol _SSL_read network.obj : error LNK2001: unresolved external symbol _SSL_pending network.obj : error LNK2001: unresolved external symbol _SSL_free network.obj : error LNK2001: unresolved external symbol _SSL_peek ftp.obj : error LNK2001: unresolved external symbol _SSL_new ftp.obj : error LNK2001: unresolved external symbol _SSLv23_client_method fsock.obj : error LNK2001: unresolved external symbol _SSLv23_client_method ftp_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_client_method http_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_client_method fsock.obj : error LNK2001: unresolved external symbol _TLSv1_client_method ftp_fopen_wrapper.obj : error LNK2001: unresolved external symbol _SSLv23_method ..\Release_TS\php4ts.dll : fatal error LNK1120: 24 unresolved externals
and of course the compile fails... Anyone know what I need to do to get SSL support compiled into PHP? Oh by the way, fsockopen wouldn't support SSL connections if the openssl extension is just loaded in php.ini, the support has to be compiled in for it to work.
thanks in advance!
John
--- End Message ---
--- Begin Message ---Update: I compiled a Hello World program, scheduled it with a redirect, and the same thing happened (although batch files redirect their output OK). Must be a problem with background tasks (same thing happens with AT).
--- End Message ---
--- Begin Message ---
Dear Sirs,I wrote a class for date calculations. You can read it below as well as an example. Attached also.I recall someone asked a few days ago about 20 day forward date. This class provides a solution for it.I submitted it also to phpclasses.com script library.Please, feel free to use it and change it as well.Best Regards,------------------------------------------------------------------------------<?php
/*-------------------------------------------*
| script: cdate.php |
| code of class CDate for |
| date manipulation |
| entry data: year, month and day |
| (in absence: current date is default) |
| exit through method ReadDate() who |
| returns date in format date("Y-m-d") |
| |
| Author: Emilio Antonio Rodríguez Padrón |
| e-mail: [EMAIL PROTECTED] |
| |
| date: July 22, 2003 |
*--------------------------------------------*/class CDate
{
var $mDate; // in actual OOP it should be privatefunction CDate($y=0,$m=0,$d=0)
{
If ($y==0) // these three "if" are necessary because default parameters must be constants.
{ $y=Date("Y"); }
If ($m==0)
{ $m=Date("m"); }
if ($d==0)
{ $d=Date("d"); }
$this -> mDate = Date("Y-m-d",mktime(0,0,0,$m,$d,$y));
} // end of constructor
function AddTime($y=0,$m=0,$d=0) // this method adds y years, m months and d days to date
{
$array_date = explode("-",$this->mDate);
$this->mDate=Date("Y-m-d",mktime(0,0,0,$array_date[1]+$m,$array_date[2]+$d,$array_date[0]+$y));
} // end of AddTime
// If you are a rigorous man, the following method should be your way to access date
function ReadDate()
{
return $this->mDate; // you get the date in same format as Date("Y-m-d")
} // ends of ReadDate} // end of declaration class CDate
?>--------------------------------------------------------------------------------------------------------------------------------------------------<?php
// script example.php
// uses class CDate
// for date of tomorrow calculationinclude("cdate.php");
$tomorrow = new CDate();
$tomorrow -> AddTime(0,0,1);
echo "Date of tomorrow is: ".$tomorrow->ReadDate();echo "<br /><br />";$ CDate(2003,7,4);
$OneMonthAfterJuly4 -> AddTime(0,1,0);
echo "Date of one month after July 4, 2003 is: ".$OneMonthAfterJuly4 -> ReadDate();?>
--- End Message ---
--- Begin Message --- Browsers caches are known to be a can of wurms... They just assume too much. I normally set all my browsers to ALWAYS check the pages and avoid the use of cache as someone would run away from the plague...
Cache is nice for useres... for development... try not to use it at all...
(and wouldn't be nice if the browsers manufactors would just program a cache that works as it should - knowing what to cache and not and when to ask a refresh or not)...
Cheers, Luis Ferro
Mikael Jansson wrote:
If you look at the source code in your browser do you see all of the code that you sent or is it "cut of" in the end?
Have you checked in your browser settings if the page ar cached or loaded everytime?
This is just wild guesses to ensure that the browser is not the problem
br
/ Mikael
"Greg Whitehead" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi Allbut
I could use some help. I have a problem with which I am not sure if its PHP4.3.2, MySQL4.0.13 or Apache2.0.46 all running on windows XP. The problem is I have a web page that shows a list of data (20 items) from MySQL database using PHP script and I get varying results when I view this page:
page displays normally (very seldom). page displays header only. page displays nothing (most commonly). page displays a few entries then stops. page displays the page with some weird code being displayed beside the header (uppercase P and square box with a ? following).
MySQL logs don't show any problem accessing the data.
I have tried using the both Internet Explorer and Netscape, both browsers
give similar problems. Netscape seems to more tolerant than Explorer.
Continued refreshing will get the page to eventually display in Netscape
this does not happen with Explorer.
Anyone have any ideas what might be my problem ?
Thanks in Advance
Greg Whitehead
--- End Message ---
--- Begin Message ---I have locally tested my server, which is on the local windows network. It works well. But when I am typing the IP address in the browser window in a remote computer, it shows it cannot locate the server. I guess this because my server don't have a separate IP address since it is connected to the internet through another host computer, which has internet access with a IP address. What should I do if I want to access the sever through a network from a remote computer on the internet? Regards, Derick ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
--- End Message ---