php-general Digest 20 Feb 2002 14:55:11 -0000 Issue 1183
Topics (messages 85485 through 85533): Re: Difference between two dates 85485 by: Rasmus Lerdorf 85487 by: Steven Walker 85502 by: Uma Shankari T. 85533 by: Steve Werby Re: Weather Scripts 85486 by: Shannon Doyle 85493 by: Gary 85494 by: Gary 85505 by: Rasmus Lerdorf Re: HTTP REFERER 85488 by: Bharath Bhushan lohray gzdoc 85489 by: Steven Walker Re: problem with mail()/html/outlook 85490 by: Bharath Bhushan lohray 85491 by: Jason Murray Re: really hopelessly stuck on this problem! 85492 by: hugh danaher search results - details 85495 by: mm fernandez 85496 by: Martin Towell test 85497 by: Jack What is the different between Apache and IIS? 85498 by: Jack 85499 by: NDPTAL85 85507 by: Nick Wilson 85511 by: Ben Turner 85512 by: Ben Turner Need to-do list for my web site 85500 by: Michael Zornek PHP Developers in Melbourne, Australia 85501 by: Jason Murray argh! 85503 by: Richard Baskett 85504 by: Weston Houghton 85508 by: CC Zona exec()/PGP: long file names, hanging. 85506 by: Analysis and Solutions Re: PHP 4.1.1, c-client-2001a and cyrus-imapd 85509 by: 2147483647 Don't Know how to Set the include Path 85510 by: Jack 85530 by: Rick Emery Re: Timing Sessions Out 85513 by: Phillip S. Baker How to Config PHP to run snmp in php script? 85514 by: Raymond Mak 85525 by: Hunter, Ray [ANN] session_pgsql 0.2 (alpha) released 85515 by: Yasuo Ohgaki mass mail 85516 by: Kancha . 85517 by: Norbert Eder 85520 by: Rambo Amadeus novice question -- array_push($real[$i][$j],$s[$j]);???????? 85518 by: brendan conroy Re: Crashing a webserver 85519 by: Ruben Vermeersch xbithack causes parsing of html-files by PHP instead SSI 85521 by: Tobias Wiersch gmp installation win32 85522 by: Murray Chamberlain [EMAIL PROTECTED] 85523 by: wkelleher.aaservicesltd.com how the "ticks" works? 85524 by: bob Get an application/octet-stream from a java applet 85526 by: Nicolas Boutet Re: [PHP-DEV] Get an application/octet-stream from a java applet 85527 by: Andrey Hristov Re: register_shutdown_function vs require (with pseudocode example) 85528 by: Arpad Tamas HT access 85529 by: Sven Jacobs doskey and Mysql with Win9x? 85531 by: Simon De Deyne Timed Jobs. 85532 by: webmaster mbtradingco 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 ---This will give you the difference between the two dates in seconds: $diff = strtotime(str_replace('-','/',$str1)) - strtotime(str_replace('-','/',$str)); -Rasmus On Wed, 20 Feb 2002, Uma Shankari T. wrote: > > > > Hello, > > How can i find out the difference between two dates. > > I am having the date like this > > $str="10-01-2001"; > $str1="01-02-2002"; > > I need to find out the difference between the date,month and year. > > If anyone know the solution for this problem plz tell me > > > -Uma > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---You can convert the time into seconds using mktime(), subtract one from the other, and then reformat it using gmstrftime: //int mktime ( int hour, int minute, int second, int month, int day, int year [, int is_dst]) //string gmstrftime ( string format [, int timestamp]) <? $time1 = mktime (0,0,0,12,32,1997); $time2 = mktime (0,0,0,12,31,1995); $dif = $time1 - $time2; $new_time = gmstrftime("%b %d %Y", $dif); echo "$time1<br>"; echo "$time2<br>"; echo "$dif<br>"; echo "$new_time<br>"; ?> The output looks like this: 883641600 820396800 63244800 Jan 03 1972 Of course you will have to get the date out of the current format you have it, but that shouldn't be too hard using explode() and implode(); Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Tuesday, February 19, 2002, at 06:51 PM, Uma Shankari T. wrote: > > > > Hello, > > How can i find out the difference between two dates. > > I am having the date like this > > $str="10-01-2001"; > $str1="01-02-2002"; > > I need to find out the difference between the date,month and year. > > If anyone know the solution for this problem plz tell me > > > -Uma > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ---If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it is displaying the wrong result Plz tell me how can i rectify this problem... -Uma On Tue, 19 Feb 2002, Rasmus Lerdorf wrote: RL>This will give you the difference between the two dates in seconds: RL> RL>$diff = strtotime(str_replace('-','/',$str1)) - strtotime(str_replace('-','/',$str)); RL> RL>-Rasmus RL> RL>On Wed, 20 Feb 2002, Uma Shankari T. wrote: RL> RL>> RL>> RL>> RL>> Hello, RL>> RL>> How can i find out the difference between two dates. RL>> RL>> I am having the date like this RL>> RL>> $str="10-01-2001"; RL>> $str1="01-02-2002"; RL>> RL>> I need to find out the difference between the date,month and year. RL>> RL>> If anyone know the solution for this problem plz tell me RL>> RL>> RL>> -Uma RL>> RL>> RL>> RL>> -- RL>> PHP General Mailing List (http://www.php.net/) RL>> To unsubscribe, visit: http://www.php.net/unsub.php RL>> RL> -- Love and you shall be loved by others--- End Message ---
--- Begin Message ---"Uma Shankari T." <[EMAIL PROTECTED]> wrote: > If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it > is displaying the wrong result > > Plz tell me how can i rectify this problem... Uma, I wrote a function last year that calculates the time between 2 dates in whatever unit is preferred (everything from seconds to years). My function expects the date in a slightly different format, but it would be trivial to switch the order of the date parts in one line and hard-code something for the hours, minutes and seconds it expects in the date format. It wouldn't matter what you hardcode them as since it would use the same time of day for both dates. http://www.befriend.com/code_gallery/php/get_elapsed_time/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/--- End Message ---
--- Begin Message ---Hi, Sorry, I forgot to mention that I would be willing to get the information off either METAR or any other source that provides the raw data for the forecasts. I am in australia and the Bureau of Meteorology provides annoymous ftp access to a raw data text file for this information as well. Regards, Shannon ___________________________ Shannon Doyle BIGBLUE Internet Pty Ltd 149 Hutt Street Adelaide, SA 5000 Ph +61 8 8232 1444 Fax +61 8 8232 8577 http://www.bigblue.net.au -----Original Message----- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 20 February 2002 11:52 AM To: Shannon Doyle Cc: [EMAIL PROTECTED] Subject: [PHP] Re: Weather Scripts you could take a look around here... http://weather.noaa.gov/pub/data/forecasts/city/ http://weather.noaa.gov/pub/data/forecasts/state/ Somewhere on the site they say it's free, but they ask you not to bang on their servers too hard... -p On Wed, 20 Feb 2002, Shannon Doyle wrote: > > Hi People, > > I have been looking around the web lately and have noted a number of > sites are running what appears to be php scripts that parse their local > weather information and display it on their wesite. > > Well, I want to do the same, however I have been searching and found > nothing that does what I want it to do. The only ones that I can find > are either the output style of weather.com (ie all or nothing) or use > their own graphics etc to display the data. > > All I want to be able to do is give the current conditions (ie partly > cloudy) and the current temperature. I haven't decided if I then want to > use this info to create an image or if I will display it as straight > text. > > I was wondering if anyone on this list has ever used such a script and > if their outputs were similar to what I want, and of course possibly if > I could source that script for my own use? > > Any help would be appreciated. > > Regards, > > Shannon > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---Shannon Doyle wrote: > Hi, > > Sorry, I forgot to mention that I would be willing to get the > information off either METAR or any other source that provides the raw > data for the forecasts. I am in australia and the Bureau of Meteorology > provides annoymous ftp access to a raw data text file for this > information as well. > > Regards, > > Shannon This is probably what you have been looking for. Look at the home page for the METAR links if you need them. http://sourceforge.net/projects/phpweather/ HTH Gary--- End Message ---
--- Begin Message ---Shannon Doyle wrote: > Hi, > > Sorry, I forgot to mention that I would be willing to get the > information off either METAR or any other source that provides the raw > data for the forecasts. I am in australia and the Bureau of Meteorology > provides annoymous ftp access to a raw data text file for this > information as well. > > Regards, > > Shannon This is probably what you have been looking for. Look at the home page for the METAR links if you need them. http://sourceforge.net/projects/phpweather/ HTH Gary--- End Message ---
--- Begin Message ---> Sorry, I forgot to mention that I would be willing to get the > information off either METAR or any other source that provides the raw > data for the forecasts. I am in australia and the Bureau of Meteorology > provides annoymous ftp access to a raw data text file for this > information as well. Then it should be a relatively simple procedure to set up a cron job that ftp's this raw data every now and then and either munges it directly into a database or perhaps write a PHP script that reads the raw file and displays it nicely. It's just a little bit of text manipulation. Probably an hour or two for any local UNIX hack to come up with exactly what you need. -Rasmus--- End Message ---
--- Begin Message ---$HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers will set this. -from the php documentation--- End Message ---
--- Begin Message ---Does anybody have experience using gzdoc? I can't find much information about it, and was just wondering if it is even worth the effort. For anyone interested, here is the url I found it at: http://php.weblogs.com/http_compression Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---A program I had written to send notification to recievers when a greeting card was sent to them...... ========================= <?php $msg="<html><head><title>Ind-e-glow Greetings.</title></head><body><h3>Dear Friend!</h3>\n<br>You have an e greeting waiting for you at <a href=\"http://www.bh-loh-inc.f2s.com.com/\">http://www.ind-e-glow.com/</a> sent by $sender. To view you need to <br>1) logon at http://www.ind-e-glow.com/<br>2)Click on the <b>view Card</b>.<br>3) Enter the below mentioned Card ID and the email address in the page that is displayed next<br><br><b>Card ID :: $Card_ID<br>\n This email ID ::$receiver</b>\n<br><br><a href=\"http://www.bh-loh-inc.f2s.com/template/disp.php?id=$Card_ID&es=$recei ver\">Or you may view it directly by clicking here.</a>\n<br><br>Count on our best compliments.<br><br><br><font size=\"1\">This is a mechine generated message. You may Contact us at <a href=\"mailto:[EMAIL PROTECTED]\">[EMAIL PROTECTED]</a></font> </body></html>"; mail("$receiver","Greetings from Ind-e-glow.com",$msg,"From: Ind-e-Glow Greetings <[EMAIL PROTECTED]>\nX-Sender: <[EMAIL PROTECTED]>\nX-Priority: 1\nReply-To: \"$sender\" <$sender>\nContent-Type: text/html; charset=iso-8859-1\n"); ?> ==================== This had worked without problems...... <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to send an html email via a php script, but I'm running into a > rather bizarre problem. I can get it to send the email just fine, but when it > is read on windows Outlook (macintosh outlook express are unaffected) clients, > it strips two characters after any '=' signs, so it plays havoc on the html it > tries to send: > > <div align="center"> > <table width="570" border="0" cellspacing="0" cellpadding="0"> > > becomes: > <div align=enter"> > <table width=70" border=" cellspacing=" cellpadding="> > > Now, I'm sending all the right headers, I think: > > $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; > > I've read up on this as much as I can and it works for every other client other > than MS Outlook under Windows. Unfortuantely, that's a rather large percentage > of people that are going to get a foo'd message of mine. I know that there are > certain mime characters like '=2D' that mean certain things, could it be that > i'm not sending the right header and Outlook is interpreting a differnt mime > type, therefore munching lines as it parses them? > > Any help would be appreciated, > Ryan C. Creasey > Network Engineer > p11creative--- End Message ---
--- Begin Message ---> This had worked without problems...... It sounds like the text encoding could be wrong. Using some encoding types, =<char><char> means something else. Maybe the charset you're using needs to be looked at? Jason--- End Message ---
--- Begin Message ---When submitting data to the site that provides details from addresses and postcodes what is the last page you see, and what does its header look like. If it's the redirect page, where does it say it's going. Perhaps, you could send an amended header directly to that page, skip all the pages in between, and figure out how to display the results data from your own site (perhaps--gasp!--in a frame) . ----- Original Message ----- From: "annazaraah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 19, 2002 6:17 PM Subject: Re: [PHP] really hopelessly stuck on this problem! > hi.. > > sorry i haven't explained myself well.. > > this is what i am trying to do > > i need to send house numbers and postcodes to script on another > machine(third party). the script then sends back complete address details > for the house number and postcode. > > i have no control on how the third party script works. after i send the > script the postcode and house number, it shows a page saying "redirecting to > another page", it then redirects to this page and then the address results > are displayed. > > the redirection page is necessary - as this is where some extra infomation > is added, before the data gets forwarded to the last page (so i cannot > connect to the last page directly) > > what i want to do is set something up so that a user entering his postcode > and house number will not see the redirection page. > > i tried to use fopen to open the redirection url, parse the contents, > extract the forwarding url and then fopen again with that url... but this is > really quite slow. > > the whole thing takes about 17 secs instead of 2. > > i wanted to know how i could just display the last page without showing the > user the redirection page .. > > do you have any ideas... i'm all idea-ed out! > > > > > ----- Original Message ----- > From: Justin French <[EMAIL PROTECTED]> > To: DigitalKoala <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, February 20, 2002 2:02 AM > Subject: Re: [PHP] really hopelessly stuck on this problem! > > > > Not entirely sure what your trying to do, but... > > > > Unless you need to collect information off the user's machine (cookies, > > form input, etc), then user never needs to render that page in order to > > perform a redirect. You can have a straight php file which has no HTML, > > and prints nothing to the screen. Since you aren't sending anything, > > you can do a redirect header, and there will be information send to the > > browser (ie, no need to render a page). > > > > <? > > file://middlepage.php > > > > // do stuff > > > > // redirect > > header("Location: http://www.php.net/"); > > exit; > > ?> > > > > > > > (as some extra information is collected) > > > > You need to be a bit clearer here... If you do need to collect > > information (like a cookie), then you have to render the page I believe. > > > > > > Justin French > > --- > > http://indent.com.au > > http://soundpimps.com > > > > > > > > > > DigitalKoala wrote: > > > > > > you still see the redirection "middle page" then .. > > > > > > (as some extra information is collected) > > > > > > Martin Towell <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > what about just include'ing it? > > > > > > > > -----Original Message----- > > > > From: DigitalKoala [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, February 20, 2002 11:53 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] really hopelessly stuck on this problem! > > > > > > > > > > > > hi folks, > > > > > > > > i've been tearing my hair out over a redirection problem ... but i > can't > > > > seem to find a satisfactory solution. > > > > > > > > i'm sending some variables to a script on an external webpage, the > webpage > > > > sends me the data i need back.. except that this page goes through a > > > > redirect page... > > > > > > > > i want to keep this redirect page hidden from the end user. > > > > > > > > i cannot link directly to the redirect target, as the redirection is > > > > actually retrieving essential data from elsewhere before arriving at > its > > > > destination. > > > > > > > > also i tried using fopen to read the complete html from this fetch, > parse > > > it > > > > and retrieve the data that i want.. but this is so slow. > > > > > > > > is there a way i can just get the results from the final html page and > > > > display that to the user directly? > > > > > > > > i hope i've explained this clearly enough :) > > > > > > > > thanks for your help!! > > > > > > > > dk > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---hi, I'm working on a search results page. actually i have my search form and search results page working fine already. but i want to add something on the "results page". my search "results page" shows the following fields: lastname, firstname, middlename, yeargrad. what i want is that the lastname results should be linked to a "more details" page. so for example, if i have a search result with 'garcia' as the lastname..i click on that and i should be transferred to a page showing me more details of that garcia..showing me more than just his/her firstname,middlename, and yeargrad. What should i use as my sql statement for the "more details" page? And how do i tell the detail page to show which records to retrieve and display? By the way, here's part of the code that i have for the results page: // <?php // // include_once ("connect.php"); // // $sql = "Select * from alumni where yeargrad = ('$search') OR lastname like ('%$search%') OR country like ('%$search%') order by lastname"; // $rs = mysql_query($sql,$db); // // if (!$r = mysql_fetch_object($rs)) { // echo "No record found. Please try again."; // exit; // } // // $rs = mysql_query($sql,$db); // while ($r = mysql_fetch_object($rs)){ // echo "<br>$r->lastname"; // } // ?> if anyone can please help me. thanks. // MM Fernandez _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com--- End Message ---
--- Begin Message ---I'm assuming you have an id in that table, so all you need to do is pass the details page the id and the details page can then display whatever you want it to display -----Original Message----- From: mm fernandez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] search results - details hi, I'm working on a search results page. actually i have my search form and search results page working fine already. but i want to add something on the "results page". my search "results page" shows the following fields: lastname, firstname, middlename, yeargrad. what i want is that the lastname results should be linked to a "more details" page. so for example, if i have a search result with 'garcia' as the lastname..i click on that and i should be transferred to a page showing me more details of that garcia..showing me more than just his/her firstname,middlename, and yeargrad. What should i use as my sql statement for the "more details" page? And how do i tell the detail page to show which records to retrieve and display? By the way, here's part of the code that i have for the results page: // <?php // // include_once ("connect.php"); // // $sql = "Select * from alumni where yeargrad = ('$search') OR lastname like ('%$search%') OR country like ('%$search%') order by lastname"; // $rs = mysql_query($sql,$db); // // if (!$r = mysql_fetch_object($rs)) { // echo "No record found. Please try again."; // exit; // } // // $rs = mysql_query($sql,$db); // while ($r = mysql_fetch_object($rs)){ // echo "<br>$r->lastname"; // } // ?> if anyone can please help me. thanks. // MM Fernandez _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---Dear All I had Setup a Website in a IIS Server 4.0, but i just want to know what is the different between the Apache Server and IIS server? Thx jack [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---Dear All I had Setup a Website in a IIS Server 4.0, but i just want to know what is the different between the Apache Server and IIS server? Thx jack [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---On Tuesday, February 19, 2002, at 07:52 AM, Jack wrote: > Dear All > I had Setup a Website in a IIS Server 4.0, but i just want to know what > is > the different between the Apache Server and IIS server? > > Thx > jack > [EMAIL PROTECTED] Day and night. Both are webservers. IIS is made by Microsoft and only runs on Windows. Apache is made by the Apache organization and will run on Windows, but is most commonly used on Unix based OS's such as Solaris, BSD, Linux, AIX, HP-UX, IRIX....etc. There's also security/stability issues to take into account. Both webservers have exploits, but IIS tends to have more and more serious ones. IIS is also not as scalable as Apache. On the other hand IIS is easier to configure and setup for beginners. In the end either one can and will work just fine if the administrator (you) knows what they are doing. ----------------------------------------------- I think, therefore, I am... not related to you. -------------------------------------------------- End Message ---
--- Begin Message --------BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * and then Jack declared.... > Dear All > I had Setup a Website in a IIS Server 4.0, but i just want to know what is > the different between the Apache Server and IIS server? IIS sucks and Apache doesn't in a nutshell. Tons of exploits possible in IIS not so many in Apache, better support for Apache and better docs regarding PHP and Apache. LAMP: Linux, Apache, MySQL and PHP - -- - ----------------------------------------------------------- www.explodingnet.com | Projects, Forums and + Articles for website owners - -- Nick Wilson -- | and designers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8c0+hHpvrrTa6L5oRAumoAJsHaXpZxDG96jggEmDpUfeBuLZ4yACfcZ9Y z0RZghLTGBwdOC/DQ4apK6I= =e+Vt -----END PGP SIGNATURE-------- End Message ---
--- Begin Message ---Well im relativly new to the apache environment but I have gotten a huge grasp on it through my use of ASP and IIS. Sure there are some stark differences but I can tell you that I can already duplicate my rather advanced sometimes ASP applications into php. In the short time I have had it running on my corporate web serversand implemented in most of the same roles that I had IIS and MSSQL, I have been able to realize huge SLA gains over MS. I would suggest going with it if you are looking for a mission ciritcal server combo that will not require much of the same attentativness (if its a word) that the recent virus and exploit outbreaks in MS have required. My 2 cents.... Ben ----- Original Message ----- From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 12:26 AM Subject: Re: [PHP] What is the different between Apache and IIS? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * and then Jack declared.... > > Dear All > > I had Setup a Website in a IIS Server 4.0, but i just want to know what is > > the different between the Apache Server and IIS server? > > IIS sucks and Apache doesn't in a nutshell. Tons of exploits possible in > IIS not so many in Apache, better support for Apache and better docs > regarding PHP and Apache. LAMP: Linux, Apache, MySQL and PHP > - -- > - ----------------------------------------------------------- > www.explodingnet.com | Projects, Forums and > + Articles for website owners > - -- Nick Wilson -- | and designers. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8c0+hHpvrrTa6L5oRAumoAJsHaXpZxDG96jggEmDpUfeBuLZ4yACfcZ9Y > z0RZghLTGBwdOC/DQ4apK6I= > =e+Vt > -----END PGP SIGNATURE----- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ---Not mention budget friendly-ness.... ----- Original Message ----- From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 12:26 AM Subject: Re: [PHP] What is the different between Apache and IIS? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * and then Jack declared.... > > Dear All > > I had Setup a Website in a IIS Server 4.0, but i just want to know what is > > the different between the Apache Server and IIS server? > > IIS sucks and Apache doesn't in a nutshell. Tons of exploits possible in > IIS not so many in Apache, better support for Apache and better docs > regarding PHP and Apache. LAMP: Linux, Apache, MySQL and PHP > - -- > - ----------------------------------------------------------- > www.explodingnet.com | Projects, Forums and > + Articles for website owners > - -- Nick Wilson -- | and designers. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8c0+hHpvrrTa6L5oRAumoAJsHaXpZxDG96jggEmDpUfeBuLZ4yACfcZ9Y > z0RZghLTGBwdOC/DQ4apK6I= > =e+Vt > -----END PGP SIGNATURE----- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ---I'm looking to put up a dynamic to-do list for me and my web dev team. Nothing to fancy but something to keep us organized. I'd write one myself but don't want to reinvent the wheel and would hate to put "create to-do list app" on the top of my to-do list for the shear redundancy of it all. ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com--- End Message ---
--- Begin Message ---Hi everyone, If you're located in Melbourne, Australia and are available for contract or temporary work for 3 to 6 months starting early March, I'd like to hear from you. Pre-requisites: - Working knowledge of a unix / linux environment - Firm grasp of PHP concepts and programming (OO unneccessary) - Firm grasp of SQL and MySQL use - Reasonable grasp of HTTP and networks Please email me directly - [EMAIL PROTECTED] Thanks Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!"--- End Message ---
--- Begin Message ---Ok this is getting frustrating! I am serializing a variable and passing it through the url, in the url and when I echo it on the next page it shows s:608:, and when I unserialize it and echo it, it doesnt show anything! How can I pull that data out in the next page? Rick "It is the mark of an educated mind to be able to entertain a thought without accepting it." - Aristotle--- End Message ---
--- Begin Message ---Is it an array, or a single variable? Wes > Ok this is getting frustrating! I am serializing a variable and passing it > through the url, in the url and when I echo it on the next page it shows > s:608:, and when I unserialize it and echo it, it doesnt show anything! How > can I pull that data out in the next page? > > Rick > > "It is the mark of an educated mind to be able to entertain a thought > without accepting it." - Aristotle >--- End Message ---
--- Begin Message ---In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard Baskett) wrote: > Ok this is getting frustrating! I am serializing a variable and passing it > through the url, in the url and when I echo it on the next page it shows > s:608:, and when I unserialize it and echo it, it doesnt show anything! How > can I pull that data out in the next page? That looks like the full serialization didn't make it through. After you serialize, you also have to urlencode() the serialized value before passing it through the url. -- CC--- End Message ---
--- Begin Message ---Hi Folks: Upgraded today from 4.0.7-dev to 4.1.1 on my Windows NT / Apache system in hopes of eliminating a problem I'm having. But, doing so brought up another problem... First, I found that in my 4.1.1 implementation, I had to use short file names when running PGP in an exec() statement. In 4.0.7-dev, long file names were fine. Wondering if anyone knew what changed. Second, the problem I was trying to quash is still there. The script loops through an array, putting the contents into a file and then PGP signing that file. It works fine the first 17 times. But, after the 18th file is run through PGP, PHP hangs. I added some debugging after PGP is exec()'ed. That statement doesn't get executed the 18th time. If I then kill PGP via the Process list in the Task Manager, the PHP loop contiunues on, creating the file showing the results from the 18th exec() of PGP and then going into the 19th loop and then hangs after the PGP exec(). Killing PGP again, the 19th debug file is created and the process goes onto the 20th file... Is there some process or file limit I'm running into in PHP? Or is it a PGP problem? I don't think it is. I've added sleep() statements to slow things down, in the event that was the problem. It wasn't. Still gets cought at the 18th round. The size of the stuff being saved in the file doesn't matter. Things hang after 18 tries. Looking through the PGP documentation, various PHP and PGP related newsgroups and general web queries found nothing relevant. Here's a code sample... <?php # OKAY in 4.0.7-dev. BAD in 4.1.1. $PGP = 'l:/program files/network associates/pgpnt/pgp.exe'; # OKAY either way. $PGP = 'l:/PROGRA~1/NETWOR~1/pgpnt/pgp.exe'; putenv("PGPPATH=L:/PROGRA~1/NETWOR~1/PGPNT/PGPKEY~1"); $PGPFile = './zoo'; $PGPUser = 'xyz <[EMAIL PROTECTED]>'; set_time_limit(0); $Count = 25; for ($i = 1; $i < $Count; $i++) { $fp = fopen("$PGPFile$i", 'w+'); fputs($fp, "stuff"); fclose($fp); # In the 18th itteration, the process hangs AFTER executing # this statement... exec("$PGP -sta $PGPFile$i -o $PGPFile$i -u \"$PGPUser\"", $x); # Let's log PGP activity to see what happens... $fp = fopen("$PGPFile$i.txt", 'w+'); fputs($fp, implode("\r\n", $x) ); fclose($fp); unset($x); $fp = fopen("$PGPFile$i.asc", 'r'); $Out = fread($fp, filesize("$PGPFile$i.asc")); fclose($fp); # unlink("$PGPFile$i"); # unlink("$PGPFile$i.asc"); echo "<pre>$i++++++++++++++++++++++\n$Out</pre>\n\n"; } ?> Thanks for your thoughts, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409--- End Message ---
--- Begin Message ---After numerous tests I found out that c-client-2001a works good bu onli with PHP4.0.4pl1. Newer versions of PHP try to use CRAM-MD5 authentication. So can anyone tell me why it is? Thanks in advance, Pavel. "2147483647" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > we're using PHP4.1.1 as apache module compiled with c-client-2001a. > So when I try to open imap mailbox server (cyrus-imapd v 2.0.16) says: > Feb 19 19:00:18 hermes imapd[10412]: badlogin: test.test.net[x.x.x.x] > CRAM-MD5 authentication failure [no secret in database] > > We have to plaintext authentication. > Is there a way to say php/c-client to use plaintext authentication??? > > At the same time when I use php4.0.4pl1 with cclient-2001a it works fine. > Is it problem of PHP4.1.1? > Should we downgrade to PHP4.0 and c-client-2000a? > > Thanks in advance, > Pavel. > > > > > > >--- End Message ---
--- Begin Message ---Dear all I had create a file called "contant.inc". What i want to do is to use the require function() to point to this file, but when i test it, it says: "Warning: Failed opening 'constant.inc' for inclusion (include_path='') in C:\InetPub\wwwroot\php study\General News\news.php on line 17" Then, i go to PHP.ini from C:\winnt and find the row which got the "include_path=". What i did is i had type in the path like this format below : include_path = "c:\inetpub\wwwroot\php study" ; UNIX: "/path1:/path2" Windows: "\path2" actually i just type the "c:\inetpub\wwwroot\php study" but not the ;UNIX: '/path1:/path2" Windows:: "\path2", that is there by default. Then i test again from my web, it remains the same error!! So could someone pls tell me how i should set the include_path, would be great if you could provide EXAMPLES! Thx a lot Jack [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---Do you need to use an include path? Why not just use the include() function? Also, what are the contents of constant.inc? Perhaps the problem lies there. -----Original Message----- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Don't Know how to Set the include Path Dear all I had create a file called "contant.inc". What i want to do is to use the require function() to point to this file, but when i test it, it says: "Warning: Failed opening 'constant.inc' for inclusion (include_path='') in C:\InetPub\wwwroot\php study\General News\news.php on line 17" Then, i go to PHP.ini from C:\winnt and find the row which got the "include_path=". What i did is i had type in the path like this format below : include_path = "c:\inetpub\wwwroot\php study" ; UNIX: "/path1:/path2" Windows: "\path2" actually i just type the "c:\inetpub\wwwroot\php study" but not the ;UNIX: '/path1:/path2" Windows:: "\path2", that is there by default. Then i test again from my web, it remains the same error!! So could someone pls tell me how i should set the include_path, would be great if you could provide EXAMPLES! Thx a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---At 03:21 PM 2/19/2002 Tuesday, Johnson, Kirk wrote: >See session.gc_maxlifetime in php.ini. > >Kirk I assume that the value given is in seconds. Correct?? Thank you for the response. Phillip > > -----Original Message----- > > From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 19, 2002 4:10 PM > > To: PHP Email List > > Subject: [PHP] Timing Sessions Out > > > > > > Hey Gents and Ladies, > > > > I read that sessions can be set to timeout after a certain > > period of time. > > However I have not come across anything that tells me how to do that. > > > > So how do I specify when sessions are to timeout? > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---Dear All, I am using RedHat Linux 7.2, PHP4.1 and its buitd-in apache, I had tested that the php run correctly with apache. According to the documentation of www.php.net, As shown below: ############################################# XCIII. SNMP functions In order to use the SNMP functions on Unix you need to install the UCD SNMP package. On Windows these functions are only available on NT and not on Win95/98. Important: In order to use the UCD SNMP package, you need to define NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like this afterwards: #define NO_ZEROLENGTH_COMMUNITY 1 If you see strange segmentation faults in combination with SNMP commands, you did not follow the above instructions. If you do not want to recompile UCD SNMP, you can compile PHP with the --enable-ucd-snmp-hack switch which will work around the misfeature. #################################################### I had successfully complie PHP with the --enable-ucd-snmp-hack switch but I can not find the file called "config.h" to edit. Finally, My question is WHERE is the file?? and IS THERE any points/steps need to look at in order to configure PHP to run snmp in PHP script?? Thx All.--- End Message ---
--- Begin Message ---Raymond, Here is the break down: 1. Download ucd-snmp tar.gz file. 2. Download openssl tar.gz file. You will need openssl for snmp v3 for the security stuff. Uninstall ucd-snmp if it is installed on your system. Uninstall openssl on your system. 3. Untar the files... 4. In the ucd-snmp directory find the file config.h and locate the NO_ZEROLENGTH_COMMUNITY and uncomment the line if commented and set to 1. 5. Configure, make, make install the ucd-snmp 6. Configure, make, make install the openssl ***NOTE: Do a "make clean" in the php directory. Then remove the config.cache file from the php directory.*** 7. Configure php with snmp Example: ./configure --prefix=/usr/local/php --with-snmp=/usr/local/snmp --with-openssl=/usr/local/openssl --with-apxs=/usr/bin/apxs make make install This should work for you. ***NOTE: THINGS I HAVE TRIED*** 1. I have tried to compile php with the openssl and snmp rpms. However, php chokes on the openssl rpm. 2. If you want to try it with your already installed rpms, here is the configuration that I have tried. ./configure --prefix=/usr/local/php --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --oldincludedir=/usr/include --with-config-file-path=/etc --with-apxs=/usr/sbin/apxs --with-pear --enable-sigchild --enable-magic-qoutes --enable-libgcc --enable-bcmath --enable-calendar --enable-ctype --enable-dbx --enable-ftp --enable-gd-native-ttf --enable-trans-sid --enable-shmop --enable-ucd-snmp-hack --enable-sockets --enable-wddx --enable-yp --enable-inline-optimization --with-xml --disable-debug --enable-pic --enable-shared --with-regex=system --with-gettext --with-gd --with-jpeg-dir=/usr --with-zlib --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-debugger --with-gdbm --with-db2 --with-db3 --with-png --with-openssl=/usr/include/openssl The problem that I faced here is that php chokes on finding the evp.h header file in the openssl direcory. I look in the directory and it is there. Let me know if I can help you further. Ray Hunter Firmware Engineer ENTERASYS NETWORKS -----Original Message----- From: Raymond Mak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 3:24 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Config PHP to run snmp in php script? Dear All, I am using RedHat Linux 7.2, PHP4.1 and its buitd-in apache, I had tested that the php run correctly with apache. According to the documentation of www.php.net, As shown below: ############################################# XCIII. SNMP functions In order to use the SNMP functions on Unix you need to install the UCD SNMP package. On Windows these functions are only available on NT and not on Win95/98. Important: In order to use the UCD SNMP package, you need to define NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like this afterwards: #define NO_ZEROLENGTH_COMMUNITY 1 If you see strange segmentation faults in combination with SNMP commands, you did not follow the above instructions. If you do not want to recompile UCD SNMP, you can compile PHP with the --enable-ucd-snmp-hack switch which will work around the misfeature. #################################################### I had successfully complie PHP with the --enable-ucd-snmp-hack switch but I can not find the file called "config.h" to edit. Finally, My question is WHERE is the file?? and IS THERE any points/steps need to look at in order to configure PHP to run snmp in PHP script?? Thx All.--- End Message ---
--- Begin Message ---Hi all, session_pgsql version 0.2 (beta) is released. New: - Auto global variable $_APP is added. It's a application scope variable. You can share values in the same application. It uses session name for application name. Feature: - More than 2 times faster than 'user' save handler and PostgreSQL. - Automatic session and applicaton variable table creation. - Time based GC. - Don't read expired session data. - Since it uses PostgreSQL, you can query session and application data whatever you want. - Multiple web servers shares session. Manual: http://pear.php.net/manual/en/pecl.session-pgsql.php (a little old...) Download: http://sf.net/projects/phpform-ext/ Read README file for details. Enjoy! -- Yasuo Ohgaki--- End Message ---
--- Begin Message ---I've users in a database classified by differnet catagories. Now based on category I need to send mail to all the users in a category. Calling mail() function in a loop would be a kill for the server as there are more than 1000 users in each category. Is there any way of doing this ?? Creating a mailing list is not possible. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com--- End Message ---
--- Begin Message ---hi. maybe you put the first user into the "to"-field and all others into field blindcopy... you will need one mail and send it to all. but i don't know if there is a limit ... greetz > -----Ursprungliche Nachricht----- > Von: Kancha . [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 20. Februar 2002 13:01 > An: [EMAIL PROTECTED] > Betreff: [PHP] mass mail > > > I've users in a database classified by differnet > catagories. Now based on category I need to send mail > to all the users in a category. > > Calling mail() function in a loop would be a kill for > the server as there are more than 1000 users in each > category. > > Is there any way of doing this ?? Creating a mailing > list is not possible. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---yas, but that way they all end up in junk filters. Dont use bcc to send you mailing list ----- Original Message ----- From: Norbert Eder <[EMAIL PROTECTED]> To: Kancha . <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: 20. veljača 2002 13:10 Subject: AW: [PHP] mass mail > hi. > > maybe you put the first user into the "to"-field and all > others into field blindcopy... > > you will need one mail and send it to all. but i don't know > if there is a limit ... > > greetz > > > -----Ursprungliche Nachricht----- > > Von: Kancha . [mailto:[EMAIL PROTECTED]] > > Gesendet: Mittwoch, 20. Februar 2002 13:01 > > An: [EMAIL PROTECTED] > > Betreff: [PHP] mass mail > > > > > > I've users in a database classified by differnet > > catagories. Now based on category I need to send mail > > to all the users in a category. > > > > Calling mail() function in a loop would be a kill for > > the server as there are more than 1000 users in each > > category. > > > > Is there any way of doing this ?? Creating a mailing > > list is not possible. > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Sports - Coverage of the 2002 Olympic Games > > http://sports.yahoo.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---Hi, thanks for reading this, Iam trying to push elements into a two dimentional array, but I cant find the proper syntax, I'd be grateful if someone could email me the proper method. Iam using the normal method, which worked fine for a one dimentional array, but when I use it for a two dimentional array, it doesnt seem to recognise that is an array, even though I initialized the array with $real[0][0] = 0;. Thanks a million for your time, Bren _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.--- End Message ---
--- Begin Message ---Thank you all, let's see how good the machine will do...--- End Message ---
--- Begin Message ---Hi! Problem: see subject I posted the problem to php's bug-db but <[EMAIL PROTECTED]> answered: "The bug system is not the appropriate forum for asking support questions. For a list of a range of more [...] With xbit hack, you are supposed to parse by PHP." BUT: On our old server-install (PHP 4.0.4pl1, Apache 1.3.19 xbithack on), all .html-files with xbit were SSI-parsed. Now, on our new server install (PHP 4.1.1, Apache 1.3.20 xbithack on), all .html-files with xbit are PHP-parsed! In Apache's documentation one can read that xbithack should enable SSI (and not PHP). If I follow <[EMAIL PROTECTED]>'s answer, it should be normal that the files are PHP-parsed. First question: If this behaviour is normal, why didn't I found anything about it in the PHP-docs? Have I overread that part? Second question: If this behaviour is normal, why were the files on our old server SSI-parsed and now PHP-parsed? How can I change this behaviour (to enable SSI-parsing)? Thanks for your help. Tobias Wiersch from germany--- End Message ---
--- Begin Message ---Has anybody installed the gmp library or know of any well documented ways of doing so I really need some help with this one. I am using win32 and I need to get it running asap. I have already installed the gmp library using cygwin but I can't get php to configure with gmp and make it gives a warning about a missing separator. Cheers Muz--- End Message ---
--- Begin Message ---[EMAIL PROTECTED] > -----Original Message----- > From: Tobias Wiersch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 8:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] xbithack causes parsing of html-files by PHP > instead SSI > > > Hi! > > Problem: see subject > I posted the problem to php's bug-db but <[EMAIL PROTECTED]> answered: > > "The bug system is not the appropriate forum for asking support > questions. For a list of a range of more [...] > With xbit hack, you are supposed to parse by PHP." > > BUT: On our old server-install (PHP 4.0.4pl1, Apache 1.3.19 xbithack > on), all .html-files with xbit were SSI-parsed. > Now, on our new server install (PHP 4.1.1, Apache 1.3.20 > xbithack on), > all .html-files with xbit are PHP-parsed! > > In Apache's documentation one can read that xbithack should > enable SSI > (and not PHP). If I follow <[EMAIL PROTECTED]>'s answer, it should be > normal that the files are PHP-parsed. > > First question: If this behaviour is normal, why didn't I > found anything > about it in the PHP-docs? Have I overread that part? > Second question: If this behaviour is normal, why were the > files on our > old server SSI-parsed and now PHP-parsed? How can I change this > behaviour (to enable SSI-parsing)? > > Thanks for your help. > > Tobias Wiersch from germany > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---I don't understand how the 'ticks' works: please help me. <pre> <?php // A function that records the time when it is called function profile ($dump = FALSE) { static $profile; // Return the times stored in profile, then erase it if ($dump) { $temp = $profile; unset ($profile); return ($temp); } $profile[] = microtime (); } // Set up a tick handler register_tick_function("profile"); // Initialize the function before the declare block profile (); // Run a block of code, throw a tick every 2nd statement declare (ticks=2) { for ($x = 1; $x < 50; ++$x) { echo similar_text (md5($x), md5($x*$x)), "<br>"; } } // Display the data stored in the profiler print_r (profile (TRUE)); ?> </pre>--- End Message ---
--- Begin Message ---Hi all, I'm trying to make a script to get "application/octet-stream" datas from a java applet. The method used by the applet is POST and I tried to use $HTTP_RAW_POST_DATA like this <?.... if (isset($HTTP_RAW_POST_DATA)) { $contentlength = strlen($HTTP_RAW_POST_DATA); $buffer = $HTTP_RAW_POST_DATA; } ...?> but $HTTP_RAW_POST_DATA is not set and $buffer stills empty. The size of the data sent by the applet is 860bytes and the applet works fine if I use a C++ CGI instead of PHP. Does someone have an idea ? Thanks a lot ;-)--- End Message ---
--- Begin Message ---AFAIK 4.0.6 is weird in the process of HTTP_RAW_POST_DATA generation. I used this var successfully on 4.0.0, when tried to upgrade to 4.0.6 there was a problem. After an investigation I found that if the submited POST has known by Apache Content header then the var is empty. I think it is fixed in 4.1.0 at least in a CVS 4.1.0-pre version. Try with 4.1.x Best regards, Andrey Hristov ----- Original Message ----- From: "Nicolas BOUTET" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 3:57 PM Subject: RE: [PHP-DEV] Get an application/octet-stream from a java applet > I'm using php4.06. Thanks. > I ask it on php-general. > > > -----Message d'origine----- > > De : Andrey Hristov [mailto:[EMAIL PROTECTED]] > > Envoye : mercredi 20 fevrier 2002 14:33 > > A : Nicolas Boutet; [EMAIL PROTECTED] > > Objet : Re: [PHP-DEV] Get an application/octet-stream from a java applet > > > > > > Which version of PHP? > > > > Ask this on php-general. php-dev is for coders of core functionality. > > > > Best regards, > > Andrey Hristov > > > > > > ----- Original Message ----- > > From: "Nicolas Boutet" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, February 20, 2002 3:24 PM > > Subject: [PHP-DEV] Get an application/octet-stream from a java applet > > > > > > > Hi all, > > > I'm trying to make a script to get "application/octet-stream" > > datas from a > > > java applet. The method used by the applet is POST and I tried to use > > > $HTTP_RAW_POST_DATA like this > > > > > > <?.... > > > if (isset($HTTP_RAW_POST_DATA)) { > > > $contentlength = strlen($HTTP_RAW_POST_DATA); > > > $buffer = $HTTP_RAW_POST_DATA; > > > } > > > ...?> > > > > > > but $HTTP_RAW_POST_DATA is not set and $buffer stills empty. > > The size of the > > > data sent by the applet is 860bytes and the applet works fine > > if I use a C++ > > > CGI instead of PHP. > > > Does someone have an idea ? > > > Thanks a lot ;-) > > > > > > > > > > > > -- > > > PHP Development Mailing List <http://www.php.net/> > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > >--- End Message ---
--- Begin Message ---Hi, No one has any idea on this topic? Or the question wasn't clear? Thanks, Arpi > Hi again, > I read my email back and found a little hard to understand :)), so > I thought a code exmplae might help. > It's just pseudo code for explaining how my cache works: > > //simplified "main" code > if page is in cache { > deliver the old one > register_shutdown_function("regenerate") > } else { > regenerate() > deliver > } > > //registered shutdown function > function regenerate() { > if it's locked by another process { > return > } else { > lock > require_once(...); > require_once(...); > require_once(...); > require_once(...); > require_once(...); > creation of many classes > calling of many methods (the code is approx 1,6Megs) > store > unlock > } > } > The main code delivers the page and reigsters the regenerate() > function, and that's all what it should do. It takes about 0.04s, > but this time unfortunately depends on what the regenerate() > function does. If the page is locked then it finishes quickly (the > overall time is 0.04s again), but when it can be regenerated it > takes 0.25s. By the way the whole page regeneration takes 1.1s, > that's why I really don't understand the 0.25s. > I hope it was clearer with the two mails :)), and someone has an > idea of whats happening here. > > Thanks for your help, > Arpi--- End Message ---
--- Begin Message ---Yow I've a question, :-) I'm using ht access to protect a Directory with CGI in that I need use on my website. The htaccess uses the password file of my Linux to authenticate one. Now I want to keep the ht access but when I login via another login script a want my ht access to be filled in automatic so that I don't have to type my login and pwd again. Does anybody have an Idea ???? Thanks--- End Message ---
--- Begin Message ---How come doskey doesnt seem to work under Mysql running in Win9x? Is there an alternative instead of endless repetitve typing and quickly disintegrating wrists? Simon--- End Message ---
--- Begin Message ------ End Message ---
Hi:
I was wondering if it is posible to make in PHP a cron job, that will trigger an event (i.e. send an e-mail) long after the process of the data has taken place, like programming an e-mail to go out, on an specified date.
My question is, since the script is run and triggered by the user, how can u trigger the later sending of the mail?
Thanks.