Re: [PHP] plus sign has changed to space after POST
That's a terrible idea. Not only does this avoid fixing the real issue (tries to fix the symptom instead of the problem), you're telling him to change all spaces to + signs. Imagine a form asking for your name. You enter "Hugh Danaher" only to see it translated into "Hugh+Danaher" on the server. Chris --- Hugh Danaher <[EMAIL PROTECTED]> wrote: > Just do ereg_replace(" ","+",$var) on the receiving end and be done > with it. > > From: <[EMAIL PROTECTED]> > > > > > After upgrade to 4.2.3, plus "+" sign has changed to space > > > after POST. I have checked the mailing list but can't find any > > > help to turn this off forever! is this a bug in PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: REPLY NEEDED
MY GOODNESS! Thing of what 126M would do for the open source movement! We could run php.net on gold plated servers! Not to mention a 64 way sun box with all the bells and whistles, and spruced up with urb3r cool lighting kits! or thing of all the cd's you could send to AOL for 126M! any other ideas? -js OrangeHairedBoy wrote: > I think I'd rather go with the 126M USD being offered by Desmond West (see > email entitled "STRICTLY CONFIDENCIAL") instead of this measly 31.5M USD. > > If anyone wants to contact the people who own ecplaza.net (for fun), here's > the info from whois: > > Registrant: > EC Plaza Network Inc. >1F, Shinho Villart, 452-3 Sungnae2dong, Kangdong ku >Seoul, Korea > >Domain Name: ECPLAZA.NET >Registrar: HANGANG Systems,Inc. dba doregi.com > >Administrative, Technical, Billing Contact: > Kim jieum [EMAIL PROTECTED] > 82-2-476-1144 > 82-2-482-0339 > > > "Michael Oshodi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > > ASSISTANCE > > WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND > PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION > (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED > WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, > WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF > THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED > STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY > MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT. > > BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE > YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING > THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN > AGREED THAT THE OWNER OF THE ACCOUNT WILL BE > COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE > KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE > TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE > INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM > YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. > THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY > IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL > ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, > AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH > DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE > IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN > WE FINALLY MEET. > > ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY > WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN > SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS > TRANSACTION IS 100% RISK FREE. > > MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO > ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; > YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, > ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS > NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. > THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL > DOCUMENTS OVER HERE IN PREPARING THE NECESSARY > APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS > WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR > OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) > INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, > IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS > PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, > WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY > EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL > FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY > OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY > ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED > FOR THE GOVERNMENT OF MY COUNTRY. > > FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, > THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 > HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY > FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU. > > PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT > WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY > IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION > WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US > YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON > BEFORE WE CAN HAVE OUR OWN SHARE. > > YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, > ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY > FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. > WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY > WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD > LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS > WE WILL USE YOUR NAME TO REGISTER AND > INCORPORATE AN OIL COMPANY IN MY COUNTRY. > > BESIDES, ON THE COMPLETION OF THIS TRANSFER, > ALL DOCUMENTS USED FOR THE PURPOSE WILL BE > WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED > BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, > THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM > ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. > IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY > BY EMAIL FOR MORE INFORMATION. > > PLEASE, TREAT AS URGENT AND VERY IMPORTANT. > > YOURS FAITHFULLY, > > CHIEF MICHAEL OSHODI > > > > > >
Re: [PHP] plus sign has changed to space after POST
Just do ereg_replace(" ","+",$var) on the receiving end and be done with it. - Original Message - From: "Bob Eldred" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 11:24 PM Subject: Re: [PHP] plus sign has changed to space after POST > I don't believe it has anything to do with PHP, to be honest. I've got > scripts that are several versions of PHP old that do that. However, it > makes no difference in execution of the script. > > case "show roster": > { > ... > } > > catches submit=show+roster quite nicely. > > Bob > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 19, 2002 3:42 PM > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > > -- > 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
Re: [PHP] REPLY NEEDED
Good lord they're at it again! - Original Message - From: "MICHAEL OSHODI" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 10:51 PM Subject: [PHP] REPLY NEEDED ASSISTANCE WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT. BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET. ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE. MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY. FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU. PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE. YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY. BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION. PLEASE, TREAT AS URGENT AND VERY IMPORTANT. YOURS FAITHFULLY, CHIEF MICHAEL OSHODI -- 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
[PHP] Re: REPLY NEEDED
I think I'd rather go with the 126M USD being offered by Desmond West (see email entitled "STRICTLY CONFIDENCIAL") instead of this measly 31.5M USD. If anyone wants to contact the people who own ecplaza.net (for fun), here's the info from whois: Registrant: EC Plaza Network Inc. 1F, Shinho Villart, 452-3 Sungnae2dong, Kangdong ku Seoul, Korea Domain Name: ECPLAZA.NET Registrar: HANGANG Systems,Inc. dba doregi.com Administrative, Technical, Billing Contact: Kim jieum [EMAIL PROTECTED] 82-2-476-1144 82-2-482-0339 "Michael Oshodi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... ASSISTANCE WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT. BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET. ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE. MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY. FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU. PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE. YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY. BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION. PLEASE, TREAT AS URGENT AND VERY IMPORTANT. YOURS FAITHFULLY, CHIEF MICHAEL OSHODI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] REPLY NEEDED
ASSISTANCE WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES THE SUM OF THIRTHY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT. BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE NECESSARY TAXES.WE INTEND TO USE PART OF OUR OWN SHARE TO IMPORT FROM YOUR COUNTRY AGRICULTURAL AND CONSTRUCTION MACHINERY. THIS IS BECAUSE THE PRESENT GOVERNMENT OF MY COUNTRY IS EMPHASISING ON PROVIDING FOOD AND HOUSING FOR ALL ITS CITIZENS BEFORE THE NEXT ELECTION. HENCE, AGRICULTURAL AND CONSTRUCTION EQUIPMENT ARE IN HIGH DEMAND OVER HERE. WE SHALL ALSO NEED YOUR ASSISTANCE IN THIS REGARD ON A COMMISSION TO BE AGREED UPON WHEN WE FINALLY MEET. ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS TRANSACTION IS 100% RISK FREE. MOREOVER, WE SHALL NEED THE FOLLOWING FROM YOU TO ENABLE US BEGIN THE TRANSACTION FORMALLY. THEY ARE; YOUR FULL NAME AND ADDRESS OR YOUR COMPANY NAME, ADDRESS AND TELEPHONE/FAX NUMBERS, YOUR BANKERS NAME AND ADDRESS, YOUR ACCOUNT NUMBER AND NAME. THIS INFORMATION WILL BE USED ALONGSIDE OTHER VITAL DOCUMENTS OVER HERE IN PREPARING THE NECESSARY APPLICATION FOR PAYMENT TO THE CONCERNED QUARTERS WHERE PAYMENT APPROVALS WOULD BE SECURED IN FAVOUR OF YOUR COMPANY FOR THE PAYMENT OF OUR FUND(US$31.5M) INTO YOUR NOMINATED ACCOUNT FOR US ALL. BY OUR APPLICATION, IT WILL BE ASSUMED THAT THIS SUM IS BEING REQUESTED AS PAYMENT, WHICH IS LONG-OUTSTANDING, FOR A CONTRACT, WE SHALL CLAIM WITH OUR POSITION, YOU OR YOUR COMPANY EXECUTED FOR (NNPC) SOMETIME IN 1997. HENCE, WE SHALL FOLLOW ALL THE LEGAL OFFICIAL PROTOCOLS USUALLY OBSERVED BY FOREIGN CONTRACTORS WHENEVER THEY ARE DEMANDING PAYMENT FOR CONTRACTS EXECUTED FOR THE GOVERNMENT OF MY COUNTRY. FURTHERMORE, IMMEDIATELY THE FINAL APPROVAL IS GRANTED, THE FUND WILL BE TRANSFERRED INTO YOUR ACCOUNT WITHIN 72 HOURS, BY WHICH TIME MY PARTNERS AND I WILL BE IN YOUR COUNTRY FOR THE FINAL DISBURSEMENT IN THE RATIO ALREADY SPELT OUT TO YOU. PLEASE, YOU SHOULD ENDEAVOUR TO GIVE US AN ACCOUNT WHICH YOU HAVE ABSOLUTE CONTROL OVER. THIS IS VERY IMPORTANT BECAUSE WE WOULD NOT WANT A SITUATION WHEN THE MONEY IS IN THE ACCOUNT, YOU NOW TELL US YOU WOULD NEED TO BE AUTHORISED BY ANOTHER PERSON BEFORE WE CAN HAVE OUR OWN SHARE. YOU WILL NOT BE REQUIRED TO TRAVEL OUT OF YOUR COUNTRY, ME AND MY PARTNERS, WE TRAVEL DOWN TO YOUR COUNTRY FOR THE DISBURSEMENT OF THE FUND, AFTER THE FINAL TRANSACTION. WE WILL ALSO DISCUSS ABOUT OIL BUSINEES IN MY COUNTRY WHEN WE COME DOWN OVER THERE. BECAUSE WE WOULD LIKE TO ESTABLISH A JOINT BUSINESS WITH YOU. THAT IS WE WILL USE YOUR NAME TO REGISTER AND INCORPORATE AN OIL COMPANY IN MY COUNTRY. BESIDES, ON THE COMPLETION OF THIS TRANSFER, ALL DOCUMENTS USED FOR THE PURPOSE WILL BE WITHDRAWN FROM THE QUARTERS THEY ARE SUBMITTED BY OUR CONTACTS IN THESE OFFICES AND DESTROYED, THEREAFTER. SO, THERE WILL NOT BE ANY PROBLEM ARISING FROM THIS TRANSACTION NOW OR IN THE FUTURE. IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION. PLEASE, TREAT AS URGENT AND VERY IMPORTANT. YOURS FAITHFULLY, CHIEF MICHAEL OSHODI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] plus sign has changed to space after POST
I don't believe it has anything to do with PHP, to be honest. I've got scripts that are several versions of PHP old that do that. However, it makes no difference in execution of the script. case "show roster": { ... } catches submit=show+roster quite nicely. Bob - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 3:42 PM Subject: [PHP] plus sign has changed to space after POST > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] plus sign has changed to space after POST
--- [EMAIL PROTECTED] wrote: > After upgrade to 4.2.3, plus "+" sign has changed to space after > POST. I have checked the mailing list but can't find any help to > turn this off forever! is this a bug in PHP? It is possible. When you post a form with your browser, the browser will URL encode all of the data and include it in the content section of the HTTP request. When the Web server receives this request and hands it off to PHP, the data is of course URL decoded. If I am understanding your comment correctly, it sounds like either: 1. The browser is failing to URL encode the + sign. 2. The form data is being URL decoded twice. Both of these scenarios seem unlikely. Try this sample code: "> This should basically appear to do nothing when you click the submit button. No matter what you enter in the text field, its value should not appear to change. If you can reproduce the errant behavior with this script, I would be interested in trying it out for myself an examining the output of the phpinfo() function. As an alternative, it would be helpful if you could show us the HTTP request and HTTP response from a sample transaction involving the sample code I just gave (leave out the phpinfo() call if you take this approach). See if that uncovers anything. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header Location not working
On Wednesday 20 November 2002 06:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > Instead of the redirection, the same page is requested again! Do you have exit() after using header()? You should. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* U X e dUdX, e dX, cosine, secant, tangent, sine, 3.14159... */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with functions()
echo testfunction($var1, $var2, $var3, $var4); Or if you need to do something else with the value before echo()ing it: $meat = testfunction($var1, $var2, $var3, $var4); //Do something with $meat Beauford 2002 wrote: Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values. echo $meat; function testfunction($a, $b, $c, $d) { The $meat of the function goes here; Now I need to return the result of $meat; return $meat; } This does not work. I'm new to funtions and obviously missing something, but I haven't been able to find a good tutorial on this. The PHP manual isn't much help. Any help is appreciated. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exploding strings
Hi to all, I have a problem regarding exploding string. I want to explode string sepated by "+" sign, but i want it also the first variable in the array be distinc in terms of collor or whatever when viewed in the page. ex. $no=("1+2+3"); $number=explode("+", $no); how could i echo $no with the first no. "1" be in colored. Any idea. thanx in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with functions()
Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values. echo $meat; function testfunction($a, $b, $c, $d) { The $meat of the function goes here; Now I need to return the result of $meat; return $meat; } This does not work. I'm new to funtions and obviously missing something, but I haven't been able to find a good tutorial on this. The PHP manual isn't much help. Any help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
Show your code. If I pass a + sign in a form, it comes out as a plus sign in my data... I don't see your problem unless I do something like this: $data = "abc+def$ghi"; echo "Click Here"; Which is solved by using urlencode() before you place it in the link. ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 10:53 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] plus sign has changed to space after POST > > This is the problem that I describe earlier in the thread. I can't save > %24 in the database but "$". > > ie > a user send a string "abc+def$ghi", I need to get the exact string back > but not "abc+def%24ghi". > > so is this a bug in PHP?? > > > > > > > > "John W. Holmes" <[EMAIL PROTECTED]> > 11/19/2002 04:46 PM > Please respond to holmes072000 > > To: <[EMAIL PROTECTED]> > cc: <[EMAIL PROTECTED]> > Subject:RE: [PHP] plus sign has changed to space after > POST > > > > might be my php code has problem the following code fragment will keep > "+" > > to "+" but "$" to "%24" > > That's what urlencode() is supposed to do. > > ---John Holmes... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
This is the problem that I describe earlier in the thread. I can't save %24 in the database but "$". ie a user send a string "abc+def$ghi", I need to get the exact string back but not "abc+def%24ghi". so is this a bug in PHP?? "John W. Holmes" <[EMAIL PROTECTED]> 11/19/2002 04:46 PM Please respond to holmes072000 To: <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTED]> Subject:RE: [PHP] plus sign has changed to space after POST > might be my php code has problem the following code fragment will keep "+" > to "+" but "$" to "%24" That's what urlencode() is supposed to do. ---John Holmes...
Re: [PHP] how to pass multiple $_GET variables
WOW - talk about a quick response. this solved my problem... thanks, Jeff "Ray Hunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > HREF="action.html?action=deactivate&confirm=yes" > > Should work... > > > > On Tue, 2002-11-19 at 20:44, Jeff Bluemel wrote: > > I'm using the following syntax, but evidently it's not correct. > > > > HREF="action.html?action=deactivate?confirm=yes" > > > > thanks, > > > > Jeff > -- > > Ray Hunter > email: [EMAIL PROTECTED] > www: http://venticon.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to pass multiple $_GET variables
HREF="action.html?action=deactivate&confirm=yes" Should work... On Tue, 2002-11-19 at 20:44, Jeff Bluemel wrote: > I'm using the following syntax, but evidently it's not correct. > > HREF="action.html?action=deactivate?confirm=yes" > > thanks, > > Jeff -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mailing by SMTP
I used this link for sendmail on linux, and it works great... you'll have a very hard time beating it. Jeff "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > On 11/20/2002 08:18 AM, Siamak wrote: > > hi > > how can i send a mail by a smtp server from a php page? > > If you are using Windows that is is the default method. > > If not, you may want to try these classes: > > http://www.phpclasses.org/smtpclass > http://www.phpclasses.org/mimemessage > > -- > > Regards, > Manuel Lemos > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to pass multiple $_GET variables
I don't mind helping, but can you please read the archives next time? This has been asked a lot. Anyway, the correct syntax is: HREF="action.html?action=deactivate&confirm=yes" Jeff Bluemel wrote: I'm using the following syntax, but evidently it's not correct. HREF="action.html?action=deactivate?confirm=yes" thanks, Jeff -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to pass multiple $_GET variables
I'm using the following syntax, but evidently it's not correct. HREF="action.html?action=deactivate?confirm=yes" thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
Ahhh - that works a treat! First time I've seen the floor command in action. Thanks Jonathon. Still more lines of code than I'd like, but obviously its not that easy to do! Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Jonathan Sharp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "'Matt'" <[EMAIL PROTECTED]>; "'Bob Irwin'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 12:41 PM Subject: Re: [PHP] Seconds to minutes > i'll just throw my code in here while we're at it... > > $seconds = 3600*5 + (60 * 10) + 45; > > $hours = floor( $seconds / 3600 ); > $mins = floor( ($seconds % 3600) / 60 ); > $seconds = floor( ($seconds % 60) ); > > echo "Hours: $hours\nMins: $mins\nSeconds: $seconds\n"; > > -js > > > John W. Holmes wrote: > >>You can do something like this: > >> >> $seconds = 265; > >> $time = date('i s',$seconds); > >> $minSecs = explode(' ',$time); > >> echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > >>?> > > > > > > That doesn't work for anything over 3599 seconds, though... > > > > ---John Holmes... > > > > > > > > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Listing a table
CHeck out ADODB, it makes this a pretty easy task. http://php.weblogs.com/adodb "Marco Bleeker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, how would I go about listing a portion of a MySQL table, without an > overall selection criterium? I have a unique index field, but it's a string > and not autoincremented (but manually and with gaps). I just want to go to > one particular row (query on that index field) and then list, say, 20 rows > before that point and 20 rows after it. So I can create an output of 41 > rows in a HTML table. Is there something like the dBase SKIP and GOTO > command? Should I do a query for each individual row (and get 41 result > sets) or can I somehow walk through 1 result set ? > > Thanks, Marco > -- > Marco Bleeker, Amsterdam, NL. > Please do not distribute my email address to a third party > Refer to www.ecocam.com for an email form (and more) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cURL with PHP Help?
Have you tried this: http://curl.haxx.se/libcurl/php/examples/ Would help if you posted some code, or errors or something. I've used curl in several PHP applications successfully. Snoopy is actually a really awesome implementation of curl in php: http://sourceforge.net/projects/snoopy/ I replaced several of my functions with snoopy classes. HTH --Brian "Steve Keller" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, I'm going to break down and ask for help. > > I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't > returning any errors when I run through PHP, and the file isn't getting there. > > Can someone point me in the direction of a site with some *good* help on > how to do file posting with cURL under PHP? And when I say "good," I mean > to say that I've already been to PHP.net and the list of CURLOPT's without > explanation of how to use them is not helpful to someone at my skill level. > Neither is the example on Sourceforge. > -- > S. Keller > UI Engineer > The Health TV Channel, Inc. > (a non - profit organization) > 3820 Lake Otis Pkwy. > Anchorage, AK 99508 > 907.770.6200 ext.220 > 907.336.6205 (fax) > Email: [EMAIL PROTECTED] > Web: www.healthtvchannel.org > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How can database be exported to Microsoft Access?
Thats a toughy.. Your best bet is going to be dump the database to text, then find an importer into MS Access.. Yes, I know you said you don't have access, but I don't think you'll be able to create the access database without it. Mabey you have a friend or something with it. There are a bunch of contributed programs here: http://www.mysql.com/doc/en/Contrib.html that might help you convert the mysql dump into something you can import into access, then you'll have your file. Otherwise an odbc conduit into access would most likely be best. sorry bro, I don't know of much else. "Scott Teresi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm looking for a PHP library that would allow me to write in the native > file format of Microsoft Access (".mdb"). This would allow me to "hand" a > copy of a MySQL database to my client. I'm hosted on unix, and I'm not > familiar with ODBC, nor do I have access to MS Access running on a server. > > Does something like this exist? I haven't found anything helpful at > HotScripts.com or php.net. > > Another possibility might be for me to use PHP's built-in support for .dbf > files. However, my hosting company doesn't use the "--enable-dbase" flag on > their PHP installation. Also, I've heard that string fields longer than 255 > characters can't be exported into a dBase file. > > Besides ODBC, is my only option to write a quick tab-delimited export > routine for my data? > > Thanks for any helpful advice! > > Scott Teresi > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
i'll just throw my code in here while we're at it... $seconds = 3600*5 + (60 * 10) + 45; $hours = floor( $seconds / 3600 ); $mins = floor( ($seconds % 3600) / 60 ); $seconds = floor( ($seconds % 60) ); echo "Hours: $hours\nMins: $mins\nSeconds: $seconds\n"; -js John W. Holmes wrote: >>You can do something like this: >>> $seconds = 265; >> $time = date('i s',$seconds); >> $minSecs = explode(' ',$time); >> echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; >>?> > > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Listing a table
- Original Message - From: "Marco Bleeker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 8:34 PM Subject: [PHP] Listing a table > Hello, how would I go about listing a portion of a MySQL table, without an > overall selection criterium? I have a unique index field, but it's a string > and not autoincremented (but manually and with gaps). I just want to go to > one particular row (query on that index field) and then list, say, 20 rows > before that point and 20 rows after it. So I can create an output of 41 > rows in a HTML table. Is there something like the dBase SKIP and GOTO > command? Should I do a query for each individual row (and get 41 result > sets) or can I somehow walk through 1 result set ? Use limit. To get first 20 rows: "Select * from mytable order by index_field limit 0,20" Next 20 rows: "Select * from mytable order by index_field limit 20,20" etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
On Wed, 20 Nov 2002, Bob Irwin wrote: > Its seems far more reliable than what I am using (dividing by 60 for > minutes, 3600 for hours and doing rounding, exploding if its not a round > number etc). > > Its only for measuring short times, so Matt's suggestion should work ok. > Ideally though, because it will crop up from time to time, it'd be the go to > do it right the first time. > > Anyone else know of a better way? How about something like this, given $seconds containing the number of seconds? $secs = $seconds; $hours = $secs / 3600; $secs %= 3600; $mins = $secs / 60; $mins %= 60; $out = sprintf ("%d hour%s, %d minute%s, %d second%s", $hours, ($hours == 1 ? '' : 's'), $mins, ($mins == 1 ? '' : 's'), $secs, ($secs == 1 ? '' : 's')); -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Listing a table
Hello, how would I go about listing a portion of a MySQL table, without an overall selection criterium? I have a unique index field, but it's a string and not autoincremented (but manually and with gaps). I just want to go to one particular row (query on that index field) and then list, say, 20 rows before that point and 20 rows after it. So I can create an output of 41 rows in a HTML table. Is there something like the dBase SKIP and GOTO command? Should I do a query for each individual row (and get 41 result sets) or can I somehow walk through 1 result set ? Thanks, Marco -- Marco Bleeker, Amsterdam, NL. Please do not distribute my email address to a third party Refer to www.ecocam.com for an email form (and more) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
Bob, Instead of dividing, use modulus to get the exact number of remaining seconds, and then determine the minutes from that. Here is some code that I've quickly adapted from another language I use, to take the total minutes, and convert it to "hours:minutes" display. $totalmins = 193; $showmins = $totalmins%60; $showhrs = ($totalmins-$showmins)/60; echo $showhrs.":".$showmins; I haven't tested this, but it might give you a start. The same concept would apply to converting seconds to minutes... Peter At 12:16 PM 11/20/2002 +1100, Bob Irwin wrote: Its seems far more reliable than what I am using (dividing by 60 for minutes, 3600 for hours and doing rounding, exploding if its not a round number etc). Its only for measuring short times, so Matt's suggestion should work ok. Ideally though, because it will crop up from time to time, it'd be the go to do it right the first time. Anyone else know of a better way? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Matt'" <[EMAIL PROTECTED]>; "'Bob Irwin'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 12:09 PM Subject: RE: [PHP] Seconds to minutes > > You can do something like this: > > > $seconds = 265; > > $time = date('i s',$seconds); > > $minSecs = explode(' ',$time); > > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > > ?> > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions [EMAIL PROTECTED] http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
Its seems far more reliable than what I am using (dividing by 60 for minutes, 3600 for hours and doing rounding, exploding if its not a round number etc). Its only for measuring short times, so Matt's suggestion should work ok. Ideally though, because it will crop up from time to time, it'd be the go to do it right the first time. Anyone else know of a better way? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Matt'" <[EMAIL PROTECTED]>; "'Bob Irwin'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 12:09 PM Subject: RE: [PHP] Seconds to minutes > > You can do something like this: > > > $seconds = 265; > > $time = date('i s',$seconds); > > $minSecs = explode(' ',$time); > > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > > ?> > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Seconds to minutes
> You can do something like this: > $seconds = 265; > $time = date('i s',$seconds); > $minSecs = explode(' ',$time); > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > ?> That doesn't work for anything over 3599 seconds, though... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
> might be my php code has problem the following code fragment will keep "+" > to "+" but "$" to "%24" That's what urlencode() is supposed to do. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
>From: "Bob Irwin" <[EMAIL PROTECTED]> > Sent: Tuesday, November 19, 2002 7:27 PM >Subject: [PHP] Seconds to minutes > At the moment, I'm using quite a few lines of code to convert seconds to > minutes and hours. I'm thinking, surely I'm missing something really > simple! Is there a PHP function that converts seconds to minutes? Or is it > a 4 or 5 (and not always that accurate) lines of code? You can do something like this: \n"; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cURL with PHP Help?
Ok, I'm going to break down and ask for help. I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't returning any errors when I run through PHP, and the file isn't getting there. Can someone point me in the direction of a site with some *good* help on how to do file posting with cURL under PHP? And when I say "good," I mean to say that I've already been to PHP.net and the list of CURLOPT's without explanation of how to use them is not helpful to someone at my skill level. Neither is the example on Sourceforge. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
might be my php code has problem the following code fragment will keep "+" to "+" but "$" to "%24" "John W. Holmes" <[EMAIL PROTECTED]> 11/19/2002 04:12 PM Please respond to holmes072000 To: <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTED]> Subject:RE: [PHP] plus sign has changed to space after POST You have to encode it on one end, and decode it on the other. Use $url_safe = urlencode($string); and pass $url_safe in the URL. Then on the receiving end, use $back_to_normal = urldecode($url_safe_string); ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 7:06 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] plus sign has changed to space after POST > > I have tried this but the problem is it change the other special character > as well. For example, $ to %24, etc. > > If people pass a string like "abc+def$ghi", I want to save the exact > string to the database rather than "abc+def%24ghi". I can't do a > translation of %24 to $ before saving the string to the database because > user might input a string like "abc+%3423324hello%23ddd" > > > > > > > "John W. Holmes" <[EMAIL PROTECTED]> > 11/19/2002 03:52 PM > Please respond to holmes072000 > > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > cc: > Subject:RE: [PHP] plus sign has changed to space after > POST > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 19, 2002 6:43 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. > I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > Spaces are encoded as plus signed or %20 in the URL, depending on the > method you use. PHP will automatically urldecode() the values passed in > the URL apparently. If you are trying to pass an actual + sign, you need > to encode it with urlencode() or rawurlencode(). > > ---John Holmes... > > > > -- > 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
[PHP] Seconds to minutes
Hey Guys, At the moment, I'm using quite a few lines of code to convert seconds to minutes and hours. I'm thinking, surely I'm missing something really simple! Is there a PHP function that converts seconds to minutes? Or is it a 4 or 5 (and not always that accurate) lines of code? Any ideas or input would be appreciated. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP SAPI modules
Hello, Every not EXPERIMENTAL modules are supposed to be stable. There still might have some bugs and bug-fixes too.. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Chris Edwards" <[EMAIL PROTECTED]> a écrit dans le message de news: 04dd01c28ff1$cc116ea0$[EMAIL PROTECTED] > Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > [EMAIL PROTECTED] > http://www.OuterBanksInternet.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
You have to encode it on one end, and decode it on the other. Use $url_safe = urlencode($string); and pass $url_safe in the URL. Then on the receiving end, use $back_to_normal = urldecode($url_safe_string); ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 7:06 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] plus sign has changed to space after POST > > I have tried this but the problem is it change the other special character > as well. For example, $ to %24, etc. > > If people pass a string like "abc+def$ghi", I want to save the exact > string to the database rather than "abc+def%24ghi". I can't do a > translation of %24 to $ before saving the string to the database because > user might input a string like "abc+%3423324hello%23ddd" > > > > > > > "John W. Holmes" <[EMAIL PROTECTED]> > 11/19/2002 03:52 PM > Please respond to holmes072000 > > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > cc: > Subject:RE: [PHP] plus sign has changed to space after > POST > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 19, 2002 6:43 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] plus sign has changed to space after POST > > > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. > I > > have checked the mailing list but can't find any help to turn this off > > forever! is this a bug in PHP? > > > > thanks > > Spaces are encoded as plus signed or %20 in the URL, depending on the > method you use. PHP will automatically urldecode() the values passed in > the URL apparently. If you are trying to pass an actual + sign, you need > to encode it with urlencode() or rawurlencode(). > > ---John Holmes... > > > > -- > 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
RE: [PHP] plus sign has changed to space after POST
I have tried this but the problem is it change the other special character as well. For example, $ to %24, etc. If people pass a string like "abc+def$ghi", I want to save the exact string to the database rather than "abc+def%24ghi". I can't do a translation of %24 to $ before saving the string to the database because user might input a string like "abc+%3423324hello%23ddd" "John W. Holmes" <[EMAIL PROTECTED]> 11/19/2002 03:52 PM Please respond to holmes072000 To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject:RE: [PHP] plus sign has changed to space after POST > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 6:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] plus sign has changed to space after POST > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks Spaces are encoded as plus signed or %20 in the URL, depending on the method you use. PHP will automatically urldecode() the values passed in the URL apparently. If you are trying to pass an actual + sign, you need to encode it with urlencode() or rawurlencode(). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] plus sign has changed to space after POST
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 6:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] plus sign has changed to space after POST > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks Spaces are encoded as plus signed or %20 in the URL, depending on the method you use. PHP will automatically urldecode() the values passed in the URL apparently. If you are trying to pass an actual + sign, you need to encode it with urlencode() or rawurlencode(). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] this oop-script still doesn't work
seems to me that you're trying to have an object's member behave as if it had global scope. you never say "$foo = new bar()". instead you say "$this->foo = new foo()" where $this is an instance of Overall. you can't instantiate a Foo as a member of an Overall instance, and then expect to talk to that Foo without going thru the instance itself (which Jonathan suggested). so, either use $overall->foo to talk to the Foo instance, or you could do this in Overall::load(): function load($class) { global $$class; $$class = new $class(); $this->$class =& $$class; } which i think will create the Foo instance in global scope, and give the Overall instance a member that is a reference to that same object. "Tularis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ok, I have gotten great help here already, but it still doesn't work, > it returns a object not found error (on the $foo->bar() line). I want to > change $overall->foo->bar() to $foo->bar... any tips? or help?? > > thanx! > - Tularis > > > class overall { > var $loaded; > > function load($class){ > eval("global \$$class;"); // This didn't work either > //$this->loaded[] = $class; // see the comments with the foreach() > eval("\$this->$class = new $class;"); > return true; > } > } > > class foo { > var $bar; > > // Constructor > function bar(){ > if(!isset($this->bar)){ > $this->bar = 1; > }else{ > $this->bar++; > } > echo $this->bar.""; > } > } > > // Start actual loading > $overall = new overall; > $overall->load('foo'); > > /* > foreach($overall->loaded as $key=>$val){ // didn't work.. I commented > this out, because I thought it MIGHT interfere with the other way > $val =& $overall->$val; // both don't work though :( > } > */ > > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > > // it doesn't understand this > $foo->bar(); > ?> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] plus sign has changed to space after POST
After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I have checked the mailing list but can't find any help to turn this off forever! is this a bug in PHP? thanks
[PHP] Re: mailing by SMTP
Hello, On 11/20/2002 08:18 AM, Siamak wrote: hi how can i send a mail by a smtp server from a php page? If you are using Windows that is is the default method. If not, you may want to try these classes: http://www.phpclasses.org/smtpclass http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] this oop-script still doesn't work
$overall->foo->bar() works for me. also there's no need for the eval('global...') line Apache 1.3.27, PHP 4.2.2 -js Tularis wrote: > ok, I have gotten great help here already, but it still doesn't work, > it returns a object not found error (on the $foo->bar() line). I want to > change $overall->foo->bar() to $foo->bar... any tips? or help?? > > thanx! > - Tularis > > > class overall { > var $loaded; > > function load($class){ > eval("global \$$class;"); // This didn't work either > //$this->loaded[] = $class; // see the comments with the foreach() > eval("\$this->$class = new $class;"); > return true; > } > } > > class foo { > var $bar; > > // Constructor > function bar(){ > if(!isset($this->bar)){ > $this->bar = 1; > }else{ > $this->bar++; > } > echo $this->bar.""; > } > } > > // Start actual loading > $overall = new overall; > $overall->load('foo'); > > /* > foreach($overall->loaded as $key=>$val){// didn't work.. I commented > this out, because I thought it MIGHT interfere with the other way > $val =& $overall->$val;// both don't work though :( > } > */ > > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > $overall->foo->bar(); > > // it doesn't understand this > $foo->bar(); > ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mailing by SMTP
At 11:18 20.11.2002, Siamak said: [snip] >hi >how can i send a mail by a smtp server from a php page? >thanks [snip] http://www.php.net/manual/en/function.mail.php -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can database be exported to Microsoft Access?
I'm looking for a PHP library that would allow me to write in the native file format of Microsoft Access (".mdb"). This would allow me to "hand" a copy of a MySQL database to my client. I'm hosted on unix, and I'm not familiar with ODBC, nor do I have access to MS Access running on a server. Does something like this exist? I haven't found anything helpful at HotScripts.com or php.net. Another possibility might be for me to use PHP's built-in support for .dbf files. However, my hosting company doesn't use the "--enable-dbase" flag on their PHP installation. Also, I've heard that string fields longer than 255 characters can't be exported into a dBase file. Besides ODBC, is my only option to write a quick tab-delimited export routine for my data? Thanks for any helpful advice! Scott Teresi [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header Location not working
--- Baumann Reto <[EMAIL PROTECTED]> wrote: > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? Try this code: http://www.google.com/";); ?> If this does not work, let us know. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header Location not working
At 23:36 19.11.2002, Baumann Reto said: [snip] >Hi all > >Does somebody know if there is a potential problem with >Header("Location: "); >not working properly? > >I have a redirection, but it seems that on some browser, this doesn't work. >Instead of the redirection, the same page is requested again! > >I'm also using sessions and html-post request to get to this page (probably >they are messing things up). >On most browser, the setup is working very well... [snip] Are you on IIS? I remember that there are problems with header('Location: url'), as far as I can remember I once resorted to explicitly transmit header("HTTP/1.0 302 Moved\nLocation: newurl"); which would result in 2 adjacent headers... but I don't remember exactly, it's already some time ago -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mailing by SMTP
phpmailer.sourceforget.net -js Siamak wrote: > hi > how can i send a mail by a smtp server from a php page? > thanks > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header Location not working
Are you using an exact path or a relative url (such as somepage.php)? It should be absolute (such as http://someserver/somepage.php). Baumann Reto wrote: Hi all Does somebody know if there is a potential problem with Header("Location: "); not working properly? I have a redirection, but it seems that on some browser, this doesn't work. Instead of the redirection, the same page is requested again! I'm also using sessions and html-post request to get to this page (probably they are messing things up). On most browser, the setup is working very well... Thanks for the help reto -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] catching a robot or spider - asking too
At 23:08 19.11.2002, Vincent Vandemeulebrouck said: [snip] >> does anybody know a way to make a distinction >> between robots and users? >> should I use the user agent? Or is this not a safe method. >> If the visitor is a spider/robot I want to include some script >> containing extra URL's for the robot. > >I am very interested too in this, as I received visits from a site with a >rather strange user agent (well, at least, that I did not expect) on a web >site of mine. The user agent was something like > >"SurveyBot/2.2 http://www.whois.sc\'>Whois Source" > >I really don't know how I should generate my pages in this case, what kind >of stylesheet I should include to make the page correct (if I even have to). > >Anyway, the real question behind is : > >Is there a good way to handle the user agent info? [snip] Any well behaved (!!) robot nowadays identifies itself in the UserAgent line. Googling for "user agent" I found on page 1, pos.6: http://www.icehousedesigns.com/useragents/spiderlist.php Might be worth a look... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header Location not working
What browsers are having the problems? On Tue, 2002-11-19 at 15:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > Instead of the redirection, the same page is requested again! > > I'm also using sessions and html-post request to get to this page (probably > they are messing things up). > On most browser, the setup is working very well... > > Thanks for the help > reto -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Header Location not working
Hi all Does somebody know if there is a potential problem with Header("Location: "); not working properly? I have a redirection, but it seems that on some browser, this doesn't work. Instead of the redirection, the same page is requested again! I'm also using sessions and html-post request to get to this page (probably they are messing things up). On most browser, the setup is working very well... Thanks for the help reto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mailing by SMTP
hi how can i send a mail by a smtp server from a php page? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] catching a robot or spider - asking too
>From what I think I heard on another group was that it dosent matter what stylesheet you use, it will just read the file, getting words and following links. Cant remember where I read this, think it was a forum, and they were argueing about robots and whether they follow links specified in JavaScript. One person said he was going to do a link to a page which only robots will follow, say do it on a 1*1 pixel so no chance of a user to follow it. And on that page do list of keywords as most robots ignore to many keywords in meta tags. This would mean doing the limit robot meta tags to only the home page and the robot page. So you could do a page with your links on, that is linked from the home page but hard to click on! And do the meta tags on other pages to stop robots. Could work?! Love, Steve XX > > does anybody know a way to make a distinction > > between robots and users? > > should I use the user agent? Or is this not a safe method. > > If the visitor is a spider/robot I want to include some script > > containing extra URL's for the robot. > > I am very interested too in this, as I received visits from a site with a > rather strange user agent (well, at least, that I did not expect) on a web > site of mine. The user agent was something like > > "SurveyBot/2.2 http://www.whois.sc\'>Whois Source" > > I really don't know how I should generate my pages in this case, what kind > of stylesheet I should include to make the page correct (if I even have to). > > Anyway, the real question behind is : > > Is there a good way to handle the user agent info? > > > Vincent Vandemeulebrouck > http://www.leguerriersorde.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
[PHP] this oop-script still doesn't work
ok, I have gotten great help here already, but it still doesn't work, it returns a object not found error (on the $foo->bar() line). I want to change $overall->foo->bar() to $foo->bar... any tips? or help?? thanx! - Tularis class overall { var $loaded; function load($class){ eval("global \$$class;"); // This didn't work either //$this->loaded[] = $class; // see the comments with the foreach() eval("\$this->$class = new $class;"); return true; } } class foo { var $bar; // Constructor function bar(){ if(!isset($this->bar)){ $this->bar = 1; }else{ $this->bar++; } echo $this->bar.""; } } // Start actual loading $overall = new overall; $overall->load('foo'); /* foreach($overall->loaded as $key=>$val){ // didn't work.. I commented this out, because I thought it MIGHT interfere with the other way $val =& $overall->$val; // both don't work though :( } */ $overall->foo->bar(); $overall->foo->bar(); $overall->foo->bar(); $overall->foo->bar(); // it doesn't understand this $foo->bar(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] catching a robot or spider - asking too
> does anybody know a way to make a distinction > between robots and users? > should I use the user agent? Or is this not a safe method. > If the visitor is a spider/robot I want to include some script > containing extra URL's for the robot. I am very interested too in this, as I received visits from a site with a rather strange user agent (well, at least, that I did not expect) on a web site of mine. The user agent was something like "SurveyBot/2.2 http://www.whois.sc\'>Whois Source" I really don't know how I should generate my pages in this case, what kind of stylesheet I should include to make the page correct (if I even have to). Anyway, the real question behind is : Is there a good way to handle the user agent info? Vincent Vandemeulebrouck http://www.leguerriersorde.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to read text file one line at a time
even further, instead of using fgets() to get each line and then exploding it, you can use fgetcsv() which reads the line and breaks it into chunks by any delimiter, returning the chunks in an array. $fp = fopen($filename, "r"); while (!feof($fp)) { $line = fgetcsv($fp, 9, "|"); ... } fclose($fp); "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $array = file($filename); > > Each line of the array will have a line of your file. > > Or, if you want to do it line by line: > > $fp = fopen($filename,'r'); > while(!feof($fp)) { > $line = fgets($fp); > } > fclose($fp); > > -Rasmus > > On Tue, 19 Nov 2002, Kelly Meeks wrote: > > > here's an example of a text file I need to read... > > > > abcd|test1|morevalues|otherstuff > > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;al f > > > > I believe each line is seperated by a carriage return. > > > > How can I read this in one line at a time in to a variable? > > > > I'm assuming that I could then explode that variable using the pipe as the seperator text? > > > > Kelly > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP SAPI modules
Some are more stable than others. Which particular SAPI module are you asking about? On Tue, 19 Nov 2002, Chris Edwards wrote: > Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > [EMAIL PROTECTED] > http://www.OuterBanksInternet.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
RE: [PHP] how to read text file one line at a time
This works too. $fp = fopen($filename,'r'); while($line=fgets($fp)) { //do what you need to do with $line } fclose($fp); Robbert van Andel -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 11:44 AM To: Kelly Meeks Cc: [EMAIL PROTECTED] Subject: Re: [PHP] how to read text file one line at a time $array = file($filename); Each line of the array will have a line of your file. Or, if you want to do it line by line: $fp = fopen($filename,'r'); while(!feof($fp)) { $line = fgets($fp); } fclose($fp); -Rasmus On Tue, 19 Nov 2002, Kelly Meeks wrote: > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;al f > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the seperator text? > > Kelly > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."
Re: [PHP] how to read text file one line at a time
On Wednesday 20 November 2002 03:45, Kelly Meeks wrote: > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;a >lf > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the > seperator text? file() will read the whole file into an array, then use foreach() to loop through each line. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Don't vote -- it only encourages them! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to read text file one line at a time
There are a couple of ways: - If the file is small enough, I suppose you could use the http://ca.php.net/manual/en/function.file.php file function, which loads the file in array (one element per line). - If the file is bigger, you can use the normal fopen() functionality and then use http://ca.php.net/manual/en/function.fgets.php fgets(). Hope this helps! -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- Begin Message --- here's an example of a text file I need to read... abcd|test1|morevalues|otherstuff efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf I believe each line is seperated by a carriage return. How can I read this in one line at a time in to a variable? I'm assuming that I could then explode that variable using the pipe as the seperator text? Kelly --- End Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to read text file one line at a time
$array = file($filename); Each line of the array will have a line of your file. Or, if you want to do it line by line: $fp = fopen($filename,'r'); while(!feof($fp)) { $line = fgets($fp); } fclose($fp); -Rasmus On Tue, 19 Nov 2002, Kelly Meeks wrote: > here's an example of a text file I need to read... > > abcd|test1|morevalues|otherstuff > efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf > > I believe each line is seperated by a carriage return. > > How can I read this in one line at a time in to a variable? > > I'm assuming that I could then explode that variable using the pipe as the seperator >text? > > Kelly > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to read text file one line at a time
here's an example of a text file I need to read... abcd|test1|morevalues|otherstuff efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf I believe each line is seperated by a carriage return. How can I read this in one line at a time in to a variable? I'm assuming that I could then explode that variable using the pipe as the seperator text? Kelly
Re: [PHP] Capturing multiple select with Javascript - nearly ther
Many thanks for your reply, I will add the bugs site to my list of things to search before posting here! As I am putting the code onto a number of servers where I can't control the PHP settings, I will need to devise a work around. Good to know it's not my poor coding. Phoebe. Mike Ford wrote: -Original Message- From: Phoebe Bright [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 14:20 My remaining problem is that the array that PHP sees only has the final few characters of the values it should have. This is the result of print_r after selecting two items (analysis1 and analysis3): Array ( [0] => ysis1 [1] => ysis3 ) expecting: Array ( [0] => analysis1 [1] => analysis3 ) Known bug. A quick search of http://bugs.php.net/ for "character cut off form array" reveals half a dozen reports for this, of which this is probably the most informative: http://bugs.php.net/bug.php?id=19518. Basically, you need to configure PHP without --enable-mbstr-enc-trans (or install 4.3.0RC1, if that's acceptable for you). Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] new php version
I think there is a PHP release mailing list, that should keep you in the loop, or check php.net. The news is usually fresh there. -Brad > When will there be a new release of php? > > With kind regards, > > Richard Pijnenburg > Klik-on Internet Solutions > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] isapi mod on iis
At 19:37 19.11.2002, Chris Edwards said: [snip] >is anyone running the isapi mod on iis? why does it ask for authenitcation >when I run a script? [snip] From the docs (http://www.php.net/manual/en/features.http-auth.php): [...] Also note that this does not work using Microsoft's IIS server and the CGI version of PHP due to a limitation of IIS. [...] So said, HTTP authentication cannot be done on IIS. You need to write your own login form. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] new php version
> -Original Message- > From: Richard Pijnenburg [mailto:[EMAIL PROTECTED]] > Sent: 19 November 2002 18:48 > > When will there be a new release of php? Well, http://www.php.net/ says: [14-Nov-2002] PHP 4.3.0RC1 has been released. This is the first release candidate and So, er, soon...? Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] templates
At 19:10 19.11.2002, Adam said: [snip] >Thanks, but not sure if this is what i'm looking for > >I just want to setup the PHP script so that the variable $filename can be >changed via a link such as 'index.php?filename="file.xml"', >causing the script to parse the appropriate file. [snip] When you execute the URL index.php?filename=file.xml (note - no quotes) your PHP script will have this value readily accessible as $filename (if register_globals is on, as outlined in many threads the last days). With the latest PHP versions, register_globals defaults to off, so you don't have "$filename" but rather $_GET['filename'] available. If your PHP host has register_globals off, but you need parameters as globals, you can put this little script at the beginning of your PHP file: foreach ($_REQUEST as $varname => $value) { $var = '$'.$varname; global $$var; $$var = $value; } You will then be able to access parameters as if register_globals would be on. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problems compiling imap-support with kerberos
OS: RedHat 7.3 PHP: 4.3.0RC1 (sources) IMAP: imap-2001a-10, imap-devel-2001a-10 (rpms) Krb: pam_krb5-1.55-1, krbafs-devel-1.1.1-1, krbafs-1.1.1-1, krb5-libs-1.2.4-3, krb5-devel-1.2.4-3 (rpms) I get the following error-messages: configure:34127: checking for crypt in -lcrypt configure:34521: checking whether SSL libraries are needed for c-client configure:34682: checking whether IMAP works configure:34715: gcc -o conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DMOD_SSL=208112 -DUSE_HSRE GEX -DEAPI -DEAPI_MM -DUSE_EXPAT -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/us r/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/web/opens sl/current/lib -L/web/openssl/current/lib conftest.c -lcrypto -lssl -lc-client -lcrypt -lt1 -lfre etype -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lgssapi_krb5 -l krb5 -lk5crypto -lcom_err 1>&5 /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyi nit': /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:286: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `checkpw': /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined reference to `pam_start' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined reference to `pam_authen ticate' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined reference to `pam_acct_m gmt' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined reference to `pam_setcre d' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:130: undefined reference to `pam_setcre d' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:131: undefined reference to `pam_end' /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:156: undefined reference to `pam_end' collect2: ld returned 1 exit status What can I do? Install IMAP from sources? -- Jochen Kaechelin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] new php version
When will there be a new release of php? With kind regards, Richard Pijnenburg Klik-on Internet Solutions
[PHP] Re: PHP SAPI modules
> Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? Better than..? Where you/are you having problems with them currently? I know many production win32 php environments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] isapi mod on iis
is anyone running the isapi mod on iis? why does it ask for authenitcation when I run a script? -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Returning an array in a function
> How would I return an array of data with a function? return $array; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] about processing time of function INCLUDE
> Is it will increase the processing time when too many "include" process in > a > program? Well, each include() takes up time, so yes. It depends on what you're including, though, as to how big of an impact it has on your program. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] templates
Thanks, but not sure if this is what i'm looking for I just want to setup the PHP script so that the variable $filename can be changed via a link such as 'index.php?filename="file.xml"', causing the script to parse the appropriate file. Adam. - Original Message - From: Ernest E Vogelsinger To: Adam Cc: Jonathan Sharp ; [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 5:17 PM Subject: Re: [PHP] templates At 18:04 19.11.2002, Adam spoke out and said: [snip] >Cheers for replying. > >I have the menu in place already, it is the PHP end i'm not sure about. >Currently I have many php files which only differ in one line: >$filename="file.xml"; > >I want to be able to pass this value to the script through a link. [snip] How about $files = array('file1.xml' => 'Go to file 1', 'file2.xml' => 'Go to file 2', 'file3.xml' => 'Go to file 3', 'file4.xml' => 'Go to file 4'); foreach ($files as $filename => $text) { // you should put your actual menu code here echo '', htmlentities($text), ''; } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
[PHP] PHP SAPI modules
Does anyone know if the PHP SAPI modules are better in the newer releases? Are they currently stable enough for production websites? -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Returning an array in a function
At 18:23 19.11.2002, Van Andel, Robert spoke out and said: [snip] >How would I return an array of data with a function? [snip] // returns a copy of the array function return_an_array() { $a = array('oranges','apples','bananas'); return $a; } // returns a reference to the array function &return_an_arrayref() { $a = array('oranges','apples','bananas'); return $a; } // get the copied array $ar = return_an_array(); // get the referenced array $ar =& get_an_arrayref(); // get a copy even if a reference is returned $ar = get_an_arrayref(); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
[PHP] Returning an array in a function
How would I return an array of data with a function? Robbert van Andel "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."
Re: [PHP] templates
At 18:04 19.11.2002, Adam spoke out and said: [snip] >Cheers for replying. > >I have the menu in place already, it is the PHP end i'm not sure about. >Currently I have many php files which only differ in one line: >$filename="file.xml"; > >I want to be able to pass this value to the script through a link. [snip] How about $files = array('file1.xml' => 'Go to file 1', 'file2.xml' => 'Go to file 2', 'file3.xml' => 'Go to file 3', 'file4.xml' => 'Go to file 4'); foreach ($files as $filename => $text) { // you should put your actual menu code here echo '', htmlentities($text), ''; } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
Re: [PHP] making php and perl talk to each other...
If you are running them as commandline apps you can just pipe "|" the output to another program i.e. phpapp.php | perlapp.pl That should work as long as you deal with the arguments properly... On Tue, 2002-11-19 at 09:50, Kelly Meeks wrote: > Is there any way to get a php script to grap the output from a perl script? > > Can you reverse that and have a perl script grab the output from a php script? > > Kelly -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] making php and perl talk to each other...
If they are on the same machine and executable from the command line, then you can use exec(), system(), backtics, etc to get the output. If they are on another machine (or not executable) and only available through a HTTP interface, then just use fopen to open the address and read the output from it. $fp = fopen("http://www.domain.com/file.php","r";); Then use fread or fget to gather the output. Plenty of examples at www.php.net/fopen ---John Holmes... - Original Message - From: "Kelly Meeks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 11:50 AM Subject: [PHP] making php and perl talk to each other... Is there any way to get a php script to grap the output from a perl script? Can you reverse that and have a perl script grab the output from a php script? Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ACT Based Contact Management System
mibbie give us a url to look at ACT? Or atleast a quick out-line of what it does? "Craig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of any sites that offer a web based contact management > system that works in a similar way to ACT? > > I want to implement such a system that connects to a mysql database > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] making php and perl talk to each other...
Is there any way to get a php script to grap the output from a perl script? Can you reverse that and have a perl script grab the output from a php script? Kelly
[PHP] Threads/Processes under Windows
Hello all, I wish to use threads or processes under Windows. Is there a known .DLL that I can load and use to do the work in Windows? Any URI for details and information is highly appreciated. I know of PHP's internal Process Control functions, but they don't work outside UNIX. Thanks in advance. Noor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ACT Based Contact Management System
Does anyone know of any sites that offer a web based contact management system that works in a similar way to ACT? I want to implement such a system that connects to a mysql database -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Download File
If the word document you are trying to download is already on the server, you could probably just make a link to the file http://host.com/document.doc";> When the user clicks on it, they either view the document if they have the MS Word plugin, or they are asked to download it. I'm not sure that using php is warranted. Robbert van Andel -Original Message- From: Michelle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 7:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Download File I would like to download a word-document from another site and save it to my harddrive. How would I go about doing this? I tried: http://host.com/document.doc; $fd = fopen ($filename, "rb"); $string = fread ($fd, filesize ($filename));ERROR: Warning: stat failed for http://host.com/document.doc (errno=2 - No such file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8 I believe this has something to do with the access rights to the folders or something... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."
Re: [PHP] templates
Cheers for replying. I have the menu in place already, it is the PHP end i'm not sure about. Currently I have many php files which only differ in one line: $filename="file.xml"; I want to be able to pass this value to the script through a link. A. - Original Message - From: "Jonathan Sharp" <[EMAIL PROTECTED]> To: "Adam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 4:33 PM Subject: Re: [PHP] templates > I'm assuming you're trying to have a select list. > > Try this: > > onChange="window.location='?action=load&file=' + this.value"> > File XML1 > File foo > > > Just make sure you test the value you get for file, so that someone > doesn't pass you /etc/passwd (just an example). > > -js > > > Adam wrote: > > I am developing a site, using XML and PHP for formatting. I want to have one HTML template and call up the different XML files from a Javascript menu. > > Ideally i want to be able to call files from a link, such as: > > 'index.php?action=load&file="file.xml"' > > > > Not sure if this is the right format, but hopefully you get the idea. > > > > Cheers, > > Adam. > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Free MySQL Hosting :)
AWSOME !!! Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia - Soluciones web para internet e intranet - Asesoría y Soporte Técnico - Licenciamiento de Software -Mensaje original- De: PHP Mailing List [mailto:[EMAIL PROTECTED]] Enviado el: martes, 19 de noviembre de 2002 8:34 Para: [EMAIL PROTECTED] Asunto: [PHP] Free MySQL Hosting :) As a project I'm working on that will later manifest into something more, I'm offering free MySQL hosting on one of my servers. Just enter the desired username and password, and 3 databases will be created for you to use from your PHP scripts. The info you'll need to connect to the MySQL server will be provided. Don't expect some grand website when you click the URL, it's just a simple page I put up that does nothing but create the databases. :) http://64.53.137.236:82/ -- 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
Re: [PHP] templates
I'm assuming you're trying to have a select list. Try this: File XML1 File foo Just make sure you test the value you get for file, so that someone doesn't pass you /etc/passwd (just an example). -js Adam wrote: > I am developing a site, using XML and PHP for formatting. I want to have one HTML >template and call up the different XML files from a Javascript menu. > Ideally i want to be able to call files from a link, such as: > 'index.php?action=load&file="file.xml"' > > Not sure if this is the right format, but hopefully you get the idea. > > Cheers, > Adam. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New commercial software needs beta testers
"Jeremy Wilson" <[EMAIL PROTECTED]> wrote: > Well fine... by reading a bunch of your other posts when you talk to > people, it looks like you are just a rude SOB... so I am really not > offended. Who is offending who? You attacked a ml with a spam (yes, it's spam) and now you're attacking people? And do you expect people here to test your software? I think I'm missing something here... Or, maybe I'm in the wrong ml? Is this the php (general) ml? I better get some rest... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] templates
I am developing a site, using XML and PHP for formatting. I want to have one HTML template and call up the different XML files from a Javascript menu. Ideally i want to be able to call files from a link, such as: 'index.php?action=load&file="file.xml"' Not sure if this is the right format, but hopefully you get the idea. Cheers, Adam.
Re: [PHP] Getting info from users comp?
Hello, "John Yamokoski" <[EMAIL PROTECTED]> wrote: > I am new to PHP but wanted to know if its possible to do the following with > PHP. > > I want to grab the size of the users RAM and the speed of the users CPU. Is > this even possible with PHP since its a server side language?? > > And if its not possible with PHP, what language then? I don't think this is possible with a server-side language. But of course, this in NOT impossible with a client-side language (i.e. programs created with C, Delphi, etc. and run on the users' pc.). - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] test
At 01:34 19.11.2002, shi ziye spoke out and said: [snip] >not sure how to post, sorry! [snip] Just the way you did :) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
Re: [PHP] Looking for compiled Windows PHP installation with multistring fts support
Hello, "Simon Dedeyne" <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anybody know where to find a pre-compiled Windows (XP) version of > PHP that includes multistring functions? I checked phpdev on firegpages > and other sites that usually hold these installations but their versions > don't support those multistrings yet. Any help/links are appreciated! What do you exactly mean by "multistrings"? - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Download File
At 16:56 19.11.2002, Michelle spoke out and said: [snip] >I would like to download a word-document from another site and save it to my >harddrive. >How would I go about doing this? > >I tried: >$filename = "http://host.com/document.doc; > >$fd = fopen ($filename, "rb"); >$string = fread ($fd, filesize ($filename));fclose ($fd); [snip] From the docs (http://www.php.net/manual/en/function.filesize.php): This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. You can bypass this by reading until EOF: http://host.com/document.doc'; $fd = fopen($filename, 'rb'); $string = null; while ($chunk = fread($fd, 64*128))// read blocks at 64 k $string .= $chunk; fclose($fd); ?> Untested but it should work as expected. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
Re: [PHP] What is the best site for PHP news, articles, resources etc....
Hello, "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote: > Let's say you had one site and one site only to get the latest PHP/MySQL > news, articles, reviews, resources, tutorials, advanced stuff etc. > > What would it be?!? http://www.phpbuilder.com/ ? Give me another choice :) http://www.zend.com/ - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Download File
PHP is true and blue in relation to error messages (in this case anyway): Warning: stat failed for http://host.com/document.doc (errno=2 - No such > file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8 The file either doesn't exist on "host.com" under the root directory as "document.doc" or the webserver (on the host.com side) doesn't have sufficient permission to serve "document.doc". Can you go to it in a web browser? On Tue, 2002-11-19 at 10:56, Michelle wrote: > I would like to download a word-document from another site and save it to my > harddrive. > How would I go about doing this? > > I tried: > $filename = "http://host.com/document.doc; > > $fd = fopen ($filename, "rb"); > $string = fread ($fd, filesize ($filename));fclose ($fd); > > $fname = "my_saved_doc.doc"; > $fp = fopen ($fname, "wb"); > > ?> > > ERROR: > Warning: stat failed for http://host.com/document.doc (errno=2 - No such > file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8 > > I believe this has something to do with the access rights to the folders or > something... > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part
[PHP] Re: Misbehaved Script...
Hello, (B (B"Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B> Hi folks: (B> (B> Have any of you guys encountered the following error: (B> (B> CGI Error (B> The specified CGI application misbehaved by not returning a complete set (Bof (B> HTTP headers. The headers it did return are: (B> (B> My Scripts that require user interaction and (B> self modification often encounter this. I have no clue as to (B> what's going on. I have to reboot the server when (B> this happens and it seems to fix the problem... (B> I don't think this has anything to do with my scripts... (B> Could someone please suggest whats wrong... (B> (B> My Server has Microsoft IIS 4.0 on Win NT 4 and (B> is running PHP 4.2.1. (B> (B (BThis topic regularly comes up--perhaps you can check the archives first... (B (B- E (B (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Download File
I would like to download a word-document from another site and save it to my harddrive. How would I go about doing this? I tried: http://host.com/document.doc; $fd = fopen ($filename, "rb"); $string = fread ($fd, filesize ($filename));ERROR: Warning: stat failed for http://host.com/document.doc (errno=2 - No such file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8 I believe this has something to do with the access rights to the folders or something... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Are objects considered global or do they need registered in a session?
At 16:10 19.11.2002, Phil Schwarzmann spoke out and said: [snip] >When declaring a new object ( $obj=new Something; ), do they need to be >then registered in a session ( session_register("obj"); ) if you want to >use them for a different script? [snip] Phil, you use an object just as any other variable. You can pass the object (preferrably by reference) as function parameter, make the object reference global (e.g. by putting it into the $_GLOBALS array), store it to $_SESSION, hand it to print_r(), whatever you want to do with it. Regarding a session: you may always store an object reference as a session variable. However, before restoring the object instance in start_session() the necessary implementation classes need to be defined. Example: // this will work class A { function A() { } } session_start(); if (!is_object($ref_a)) { $ref_a = new A(); $_SESSION['ref_a'] =& $ref_a; } // this will NOT work when reloading the session! session_start(); class A { function A() { } } if (!is_object($ref_a)) { $ref_a = new A(); $_SESSION['ref_a'] =& $ref_a; } Hope this helps, -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/