php-general Digest 13 Mar 2001 13:54:29 -0000 Issue 564 Topics (messages 43594 through 43659): Linux Journal ? 43594 by: Luis Re: Have you ever seen this? 43595 by: Tiki wordwrap() in php4.03pl1 does not work(?) 43596 by: Nicole Lallande 43598 by: Nicole Lallande Re: fscanf 43597 by: Yasuo Ohgaki includes 43599 by: Rick St Jean 43602 by: David Robley 43604 by: Rick St Jean 43605 by: Chris Cocuzzo 43613 by: David Robley 43616 by: Chris Cocuzzo 43617 by: Rick St Jean Re: Back Button Problem 43600 by: Yasuo Ohgaki Develop e-mail like using PHP 43601 by: Szeto 43610 by: Ashwin Kutty Problem with apostrophes!! 43603 by: Kenneth R Zink II 43606 by: Reuben D Budiardja 43607 by: Gfunk 43611 by: Kenneth R Zink II 43614 by: David Robley copying mysql db files 43608 by: Peter Houchin 43612 by: David Robley Re: HTTP_POST_VARS 43609 by: Yasuo Ohgaki reset in mysql? 43615 by: McShen 43620 by: Cal Evans Re: Cache Database-driven site 43618 by: Aaron Tuller script output doesn't show up 43619 by: John Meyer 43621 by: Jack Dempsey MAIL And PHP Question 43622 by: James Lamb 43623 by: Chris Cocuzzo 43625 by: Chris Adams php & java problem 43624 by: vvsalon 43629 by: David Robley php4 cgi in WinNT/apache requires a #! to execute 43626 by: LUK ShunTim 43627 by: Chris Fry [Q] session variables wouldn't keep contents. 43628 by: Chung Ha-Nyung 43630 by: Yasuo Ohgaki Compile probs with php-4.0.4pl1 43631 by: Wolfgang Ebneter Oracle error messages 43632 by: Rudolf Visagie 43656 by: Hardy Merrill How to str-replace 43633 by: Martin Thoma 43637 by: Martin Thoma Re: Grab and print user IP address 43634 by: Dream Re: Site 43635 by: Darrell Harder Empty Message-Body 43636 by: Thomas Weber Replace everything except of... 43638 by: Martin Thoma 43648 by: Robin Vickery Problem with PHP_POST_VARS 43639 by: Jean Beney Re: Escape slashes? 43640 by: Christian Reiniger Re: Get next record 43641 by: Christian Reiniger Re: Mailing List 43642 by: Peter Sabaini TXT files 43643 by: Bruno Freire 43644 by: Dominick Vansevenant 43645 by: Rudolf Visagie Two Way Encryption 43646 by: Joe Njeru 43647 by: Mukul Sabharwal WOW!!! THIS WORKS $$$ 43649 by: John Riggins (Your friend) Detect if user has changed form data 43650 by: Ide, Jim Re: Best way to pass SQL TEXT field via a link 43651 by: Jason Stechschulte Re: upload file problems 43652 by: Jason Stechschulte Re: OpenLink Press Release 43653 by: Andrew Hill Variable variables 43654 by: John Meyer 43655 by: Jason Stechschulte 43657 by: John Meyer Dynamic pages 43658 by: Jason Mockler Re: Good Free PHP Editor? 43659 by: Jens Nedal Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Does anyone out there read Linux Journal ? Just wondering because i have a question about a issue
There is not too much science involved. The trick is to know what language encoding your browser support. Most of the browsers supports multi-languanges. If you look at the header of the HTML for the site, you will find the following: <HTML dir="rtl" lang="ar"> This will instruct to display the correct language encodings. Mind you, there are some tricky issues surrounding this especially if your particular language is not well supported on your OS. If you are thinking of database driven sites, you will have to be more careful as it depends on the database support for multi-languages, especially unicode instead of just pure ascii/ansi character sets. Cheers Kee Yong "Dhaval Desai" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > I know this is in no way related to Php but I am > writing this mail coz I didn't know where to ask this > question and I am sure there are a lot of Web > Developers and Programmers who can help me out. > > Well There are some versions of some sites in two > languages and both of them work equally well even If > your system doesn't have fonts. > It uses some kindaa server font management I gues.. > > Has anyone of you all out there worked on some site > like that or have any idea on how it works. > > I can give you the URL: > > http://www.arabia.com > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi All, Am trying to use this function which in the manual is defined as working in versions of php > 4.02 -- well, I qualify - but the feature does not work. Anyone know what is going on? TIA, Nicole -- ######################## Nicole Lallande [EMAIL PROTECTED] 760.753.6766 ########################
Sheesh - I forgot - the function is wordwrap() Nicole Lallande wrote: > > Hi All, > > Am trying to use this function which in the manual is defined as working > in versions of php > 4.02 -- well, I qualify - but the feature does not > work. Anyone know what is going on? > > TIA, > > Nicole > -- > ######################## > Nicole Lallande > [EMAIL PROTECTED] > 760.753.6766 > ######################## > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ######################## Nicole Lallande [EMAIL PROTECTED] 760.753.6766 ########################
----- Original Message ----- From: "Kubol" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 12:48 AM Subject: Re: [PHP] fscanf > 01-03-13 05:00:01, "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: > > >I think fscanf() is line oriented in C, isn't it? (I haven't used fscanf() for a > >long time, I'm not 100% sure w/o reference.) > no, i'm sure in c fscanf reads the next string available, not first string in next line > >Your $buffer should only have "lenin". > i agree. in first iteration buffer should contain "lenin", but in second the content should be "lives", not "forever", > but is "forever" and i dont > know why and i'm angry about it :-) > >while (fscanf($file,"%s %s",$buf1,buf2)) > >You should get "lives" in $buf2. > i agree again, but i dont know how many stings do i have in one line. therefore i cant use > fscanf($file,"n*%s",n*some_variables); > besides it looks terrible... :-) Now I understand why you are wondering. In C, you can get "words" in file with your code, but not in PHP. fscanf() between C and PHP is not identical when I made a simple test codes for both. It seems PHP's fscanf() advances file pointer to end of line while C's fscanf() must be done by programmers like fscanf(fp,"%*[^\n]"). In most cases, programmers want to move file pointer to the end of line. Maybe that's why PHP's fscanf() does this. We cannot expect PHP functions works just like C/C++/Java since it is different languange even is name of the function is the same. I guess what you want to do is getting all words from a file using fscanf(), but it seems it is not possible with PHP's fscanf(). (Or is it a bug? Anyone?) Functions that have the same name in C better to be behaive just like C in PHP for C programmers. (but may not be good for non-C programmers.) I'm relatively new to PHP, so I don't know historical reason why some functions does not behaive like C. I see a lot of differences PHP and C, I think this is the way it is. How about a start new thread if you still curious about fscanf() behaviour? Someone may be able to give better explaination. Regards, -- Yasuo Ohgaki > regards, > jakub zytka > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
I am looking for a simple way to include a file and not have it parsed. But I also do no want to strip out the html and php. Is there a way to do a nice and simple include and set parsing to false? Right now I use a fopen and fgets to read from the file. include() will parse it and execute it. All I want to do is include it raw... any ideas? Rick ########################################################## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################
On Tue, 13 Mar 2001 13:45, Rick St Jean wrote: > I am looking for a simple way to include a file and not have it parsed. > But I also do no want to strip out the html and php. Is there a way > to do a nice and simple include and set parsing to false? > > Right now I use a fopen and fgets to read from the file. > > include() will parse it and execute it. > > All I want to do is include it raw... any ideas? > > Rick Readfile() might do what you want. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
How embarassing... I read about that and forgot about it. It is a matter a getting aquainted with new syntax. Thanks. Rick At 01:52 PM 3/13/01 +1030, David Robley wrote: >On Tue, 13 Mar 2001 13:45, Rick St Jean wrote: > > I am looking for a simple way to include a file and not have it parsed. > > But I also do no want to strip out the html and php. Is there a way > > to do a nice and simple include and set parsing to false? > > > > Right now I use a fopen and fgets to read from the file. > > > > include() will parse it and execute it. > > > > All I want to do is include it raw... any ideas? > > > > Rick > >Readfile() might do what you want. > >-- >David Robley | WEBMASTER & Mail List Admin >RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ >AusEinet | http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] ########################################################## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################
I'm slightly confused as to why you would not want it parsed and executed...or I should say...what would be the differences in using the include function vs. reading it in like a file?? Chris -----Original Message----- From: Rick St Jean [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:15 PM To: [EMAIL PROTECTED] Subject: [PHP] includes I am looking for a simple way to include a file and not have it parsed. But I also do no want to strip out the html and php. Is there a way to do a nice and simple include and set parsing to false? Right now I use a fopen and fgets to read from the file. include() will parse it and execute it. All I want to do is include it raw... any ideas? Rick ########################################################## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ########################################################## -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Tue, 13 Mar 2001 13:54, Chris Cocuzzo wrote: > I'm slightly confused as to why you would not want it parsed and > executed...or I should say...what would be the differences in using the > include function vs. reading it in like a file?? > > Chris > > -----Original Message----- > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 10:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] includes > > > I am looking for a simple way to include a file and not have it parsed. > But I also do no want to strip out the html and php. Is there a way > to do a nice and simple include and set parsing to false? > > Right now I use a fopen and fgets to read from the file. > > include() will parse it and execute it. > > All I want to do is include it raw... any ideas? Well, if one wanted to show the actual content of the file, for whatever reason. Say one were building a routine to do a showsource, for instance. That's not what you are doing, is it Rick? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
I realize you certainly could have the intention of showing the contents of the file without actually using it. However the impression I got was that Rick wants to use the contents of the file in execution for other parts of the script, yet without including it the normal way...correct me if I'm wrong. I definitely agree thought that it could be used to show the file. Rick, what did you intend to use the "raw" included file for? Chris -----Original Message----- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 11:10 PM To: PHP General List (E-mail) Subject: Re: [PHP] includes On Tue, 13 Mar 2001 13:54, Chris Cocuzzo wrote: > I'm slightly confused as to why you would not want it parsed and > executed...or I should say...what would be the differences in using the > include function vs. reading it in like a file?? > > Chris > > -----Original Message----- > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 10:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] includes > > > I am looking for a simple way to include a file and not have it parsed. > But I also do no want to strip out the html and php. Is there a way > to do a nice and simple include and set parsing to false? > > Right now I use a fopen and fgets to read from the file. > > include() will parse it and execute it. > > All I want to do is include it raw... any ideas? Well, if one wanted to show the actual content of the file, for whatever reason. Say one were building a routine to do a showsource, for instance. That's not what you are doing, is it Rick? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
actually what I am doing is creating an area where users can manipulate data on a page without having harmful code executed. It is faster to use a flat text file than a database. I will have these files named something else that will not be able to be executed either. I don't want it executed ever... but I do want html to work normally.. When they want to change the contents of the file they use another page to write it. It frees up more time for me to work on other projects rather than small edits. Rick At 02:39 PM 3/13/01 +1030, David Robley wrote: >On Tue, 13 Mar 2001 13:54, Chris Cocuzzo wrote: > > I'm slightly confused as to why you would not want it parsed and > > executed...or I should say...what would be the differences in using the > > include function vs. reading it in like a file?? > > > > Chris > > > > -----Original Message----- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 12, 2001 10:15 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] includes > > > > > > I am looking for a simple way to include a file and not have it parsed. > > But I also do no want to strip out the html and php. Is there a way > > to do a nice and simple include and set parsing to false? > > > > Right now I use a fopen and fgets to read from the file. > > > > include() will parse it and execute it. > > > > All I want to do is include it raw... any ideas? > > >Well, if one wanted to show the actual content of the file, for whatever >reason. Say one were building a routine to do a showsource, for instance. >That's not what you are doing, is it Rick? > >-- >David Robley | WEBMASTER & Mail List Admin >RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ >AusEinet | http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] ########################################################## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################
"Corey Mosher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I have a site that performs insertions into a database, then > uses header to redirect the user to a certain page. If the > user hits the back button, then the submit button again, the > information will be inserted twice. How can I prevent this? > > Thanks > > Corey Mosher There are many ways to prevent this, these are what I do. Use PHP4 session and my form class to prevent this. I form inputs to something like $HTTP_SESSION_VARS['FORM_VAR']. 1) When form is displayed at first time, I set session var "form_is_not_submitted = true" and "unset($HTTP_SESSION_VARS['FORM_VARS'])" 2) When user submits form, display confirm screen. If there is validation error, displays error. 3) If user submit (decide to store data), check "form_is_not_submitted", get data form session, store to database, and unset form data. Note: With this, user must start over to send data to server again at least. Works both session cookie and URL. OR Use MD5 to check is data is changed or not. 1) On browser, compute md5 sum using JavaScript when submit form. 2) On server, get record (stores md5 sum computed on server) compare the md5 sum sent form client. If it is differ, save data into database. Note: This method is more reliable than next on,.but requires JavaScript. OR Use cookie to see if user is submitted. 1) When form is displayed, send cookie like [form_is_not_submitted = true] 2) When form is submitted, set the cookie to false. 3) Check cookie value before inserting data into database. Note: This is not reliable method, unless you detect cookie is enabled or not, though. And requires cookie of course. I don't do this but if you do not want to use Cookie and JavaScript, how about compare fields data for one by one? (or you can use URL session with the 1st method) I think there are many other ways to do the same thing. Anyone? -- Yasuo Ohgaki > > ----------------------------- > Hub.Org Networking Services > 251 Main St. > Wolfville, NS > Canada > B0P 1X0 > Email: [EMAIL PROTECTED] > Phone: (902) 542-3657 > ----------------------------- > PostgreSQL, Inc. > 251 Main St. > Wolfville, NS > Canada > B0P 1X0 > Email: [EMAIL PROTECTED] > Phone: (902) 542-0713 > ----------------------------- > Fax: (902) 542-5386 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello, My company currently undergo a project to develop Internet e-mail system using PHP and Unix OS. I wondering what do i needed to understand before working on this project or any sample that i can download thank you -- -------------------------------------------------------------- Any suggestions would be appreciated. Thank You Khai Mun, Ng
There is one already made called, IMP at http://www.horde.org/imp/ On Tue, 13 Mar 2001, Szeto wrote: > Hello, > My company currently undergo a project to develop Internet e-mail system > using PHP and Unix OS. > I wondering what do i needed to understand before working on this project > or any sample that i can download > > > > thank you > > -- > -------------------------------------------------------------- > Any suggestions would be appreciated. > Thank You > > Khai Mun, Ng > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > --- Ashwin kutty.. Systems Administrator Dalhousie University Libraries (902) 494-2694
My MySQL insert statements is returning errors when a field has an apostrophe in it. (I.E. Ken's) is there a way to get around that without using the \ in front of the apostrophes?? I've never had this problem before, in the past (on different servers) when a variable is inserted, it just accepted it. Help!! I need to know A.S.A.P. Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! http://www.s-series.org/htm/firestorm/firestorm.htm '84 Oldsmobile Delta 88 Delta 88 Royal Brougham. Racing by the grace of God!!!
Maybe you can use this function. I don't use MySQL, I use Oracle, and I build this function for Oracle, but I think the basic problem (and solution is the same). I think basically you need to escape ' by adding another '. Thus "Ken's" should become "Ken''s". function format_mysql_string($string) { $string = StripSlashes($string); $string = ereg_replace("'", "''", $string); return $string; } Reuben D. Budiardja At 09:19 PM 3/12/01 -0600, Kenneth R Zink II wrote: >My MySQL insert statements is returning errors when a field has an >apostrophe in it. (I.E. Ken's) is there a way to get around that without >using the \ in front of the apostrophes?? > >I've never had this problem before, in the past (on different servers) when >a variable is inserted, it just accepted it. > >Help!! I need to know A.S.A.P. > >Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 >'87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! >http://www.s-series.org/htm/windstorm/project-windstorm.htm >'85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! >http://www.s-series.org/htm/firestorm/firestorm.htm >'84 Oldsmobile Delta 88 Delta 88 Royal Brougham. >Racing by the grace of God!!! > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED]
In mysql you can either enclose the string in double quotes, ie: "ken's \"trucks\" aren't as good as bob's" or you use the backslash: 'ken\'s "trucks" aren\'t as good as bob\'s' either way, you'll be using the backslash for one or the other quote. pretty sure mysql doesn't support the standard SQL '' inside single quoted strings like oracle/sybase/mssql/whatever Gfunk ----- Original Message ----- From: "Reuben D Budiardja" <[EMAIL PROTECTED]> To: "Kenneth R Zink II" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 2:32 PM Subject: Re: [PHP] Problem with apostrophes!! > > Maybe you can use this function. I don't use MySQL, I use Oracle, and I > build this function for Oracle, but I think the basic problem (and solution > is the same). I think basically you need to escape ' by adding another '. > Thus "Ken's" should become "Ken''s". > > function format_mysql_string($string) > { > $string = StripSlashes($string); > $string = ereg_replace("'", "''", $string); > return $string; > } > > Reuben D. Budiardja > > At 09:19 PM 3/12/01 -0600, Kenneth R Zink II wrote: > >My MySQL insert statements is returning errors when a field has an > >apostrophe in it. (I.E. Ken's) is there a way to get around that without > >using the \ in front of the apostrophes?? > > > >I've never had this problem before, in the past (on different servers) when > >a variable is inserted, it just accepted it. > > > >Help!! I need to know A.S.A.P. > > > >Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 > >'87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! > >http://www.s-series.org/htm/windstorm/project-windstorm.htm > >'85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! > >http://www.s-series.org/htm/firestorm/firestorm.htm > >'84 Oldsmobile Delta 88 Delta 88 Royal Brougham. > >Racing by the grace of God!!! > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Ok, I'm pretty sure I need to use the "addslashes" function, but I'm not sure how to implement it. The 2 variables that I would need to addslashes are $sire and $dam. can someone please help me, this is new to me. Thanks. Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! http://www.s-series.org/htm/firestorm/firestorm.htm '84 Oldsmobile Delta 88 Delta 88 Royal Brougham. Racing by the grace of God!!! > My MySQL insert statements is returning errors when a field has an > apostrophe in it. (I.E. Ken's) is there a way to get around that without > using the \ in front of the apostrophes?? > > I've never had this problem before, in the past (on different servers) when > a variable is inserted, it just accepted it. > > Help!! I need to know A.S.A.P. > > Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 > '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! > http://www.s-series.org/htm/windstorm/project-windstorm.htm > '85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! > http://www.s-series.org/htm/firestorm/firestorm.htm > '84 Oldsmobile Delta 88 Delta 88 Royal Brougham. > Racing by the grace of God!!!
On Tue, 13 Mar 2001 14:17, Kenneth R Zink II wrote: > Ok, I'm pretty sure I need to use the "addslashes" function, but I'm > not sure how to implement it. > > The 2 variables that I would need to addslashes are $sire and $dam. > > can someone please help me, this is new to me. > > Thanks. It's like any other PHP function - you assign the result of the function to a variable. So: $variable = addslashes($variable_to_add_slashes_to) and those variables can be the same; so $sire = addslashes($sire); $dam = addslashes($dam); would work in your case. Note that you are going to have to strip the slashes when displaying data from the DB - the command is not surprisingly called stripslashes. What has possibly happened is that you have different settings in the ini file on your current server for one of the magic-quotes settings. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
hiya, I'm tranfering mysql data base onto a unix machine, can i just copy the database directories across from my WinNT machine to the /usr/local/mysql-data directory? Peter
On Wed, 14 Mar 2001 02:12, Peter Houchin wrote: > hiya, > > I'm tranfering mysql data base onto a unix machine, can i just copy the > database directories across from my WinNT machine to the > /usr/local/mysql-data directory? > > Peter To be on the safe side, take an extra moment or two and use mysqldump just in case the data files aren't exactly the same. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
No. Check box and radio buttons are not set, though. Regards, -- Yasuo Ohgaki ""stas"" <[EMAIL PROTECTED]> wrote in message 026001c07cc4$aeaa6250$9701a8c0@snewdel">news:026001c07cc4$aeaa6250$9701a8c0@snewdel... Hello, Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I am trying to do server side form validations, and this represents a bit of difficulty in terms of notifying a user about which fields are missing values.
hi I have a database which tracks how many hits a website has sent me. I wanna write a script to reset this particular field so that it will be zero at 12:00 in the morning. How do i do it? Any suggestion would be appreciated. my database is kinda like this(mysql -------------------------------------------------------- url | hits --------------------------------------- http://www.yahoo.com | 100 -------------------------------------- Thank You!
run it in a CRON job. Cal http://www.calevans.com -----Original Message----- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP] reset in mysql? hi I have a database which tracks how many hits a website has sent me. I wanna write a script to reset this particular field so that it will be zero at 12:00 in the morning. How do i do it? Any suggestion would be appreciated. my database is kinda like this(mysql -------------------------------------------------------- url | hits --------------------------------------- http://www.yahoo.com | 100 -------------------------------------- Thank You! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
all you need to do is wrap your pages in: ob_start(); // your code $page = ob_get_contents(); // write $page to a file or whatever you want to do and then depending on if this script is being called by cron or just when people load the page you can either do an ob_end_flush() or ob_end_clean() it's easy. At first I didn't beleive output buffering was that cool, now I thnk it's one of the best things PHP has to offer. You can use it for a lot of things, check it out. -aaron At 12:40 AM +0100 3/13/01, Joe Maier wrote: >Aaron, >i would love to believe what you say. >But i couldn't find any buffering functions in the online docs. > >Could you please gimme a pointer on where i can find these functions >and what's their name. Are they available in php3? > >Thanks a lot, >Joe > >-----Ursprungliche Nachricht----- >Von: Aaron Tuller [mailto:[EMAIL PROTECTED]] >Gesendet: Montag, 12. Marz 2001 23:26 >An: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Betreff: Re: [PHP] Cache Database-driven site > > >At 11:19 PM +0100 3/12/01, Joachim Maier wrote: >>To create the HTML-cache page i need to build the whole HTML-page content >in >>memory, instead of echoing it back to the user's browser, and finally write >>it to disk. That means, i have to write all HTML in php-code. I can't just >>embed php-parts in html tags. > >that's not true. see the output buffering functions. > >-aaron > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED]
Here is the code <?php $connectionid = odbc_connect("usctoday","",""); $resultid = odbc_do($connectionid,"SELECT S_FNAME, S_LNAME, S_BIO FROM STAFF;"); $numrows = odbc_num_rows($resultid); for ($i = 1; $i<=$numrows;$i++) { odbc_fetch_row($resultid); $fname = odbc_result($resultid,"S_FNAME"); $lname = odbc_result($resultid,"S_LNAME"); ?> <h2><?php echo("$fname"); ?> <?php echo("$lname"); ?></h2> <?php } odbc_close($connectionid); ?> Problem is that the script output doesn't show up. Any idears?
i don't know how similar the odbc functions are to the mysql functions, but in your sql statement you have: FROM STAFF; whenever i create an SQL statement when using a MySQL database i don't have to put that semi-colon in there...is that needed for odbc? also, just to save yourself some space, you could condense your last few lines into this: $lname = odbc_result($resultid,"S_LNAME"); echo "<H2>$fname $lname</h2>"; hope this helps, jack John Meyer wrote: > > Here is the code > > <?php > $connectionid = odbc_connect("usctoday","",""); > $resultid = odbc_do($connectionid,"SELECT S_FNAME, S_LNAME, S_BIO FROM > STAFF;"); > $numrows = odbc_num_rows($resultid); > for ($i = 1; $i<=$numrows;$i++) { > odbc_fetch_row($resultid); > $fname = odbc_result($resultid,"S_FNAME"); > $lname = odbc_result($resultid,"S_LNAME"); > ?> > <h2><?php echo("$fname"); ?> <?php echo("$lname"); ?></h2> > <?php > } > odbc_close($connectionid); > ?> > > Problem is that the script output doesn't show up. Any idears? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello All, Can PHP talk directly to the SMTP server, i know that there is a mail() function but this cannnot specify the reply-to and from addresses easily. How could PHP do this type of function? thanks James Lamb
I can't give you an exact answer, such as an implementation...but I would think it would have to do with opening a POP/SMTP socket connection. I know there is a class that can connect directly to SMTP on this website: http://phpclasses.upperdesign.com/ hope that helps, Chris -----Original Message----- From: James Lamb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 1:01 AM To: [EMAIL PROTECTED] Subject: [PHP] MAIL And PHP Question Hello All, Can PHP talk directly to the SMTP server, i know that there is a mail() function but this cannnot specify the reply-to and from addresses easily. How could PHP do this type of function? thanks James Lamb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
On 12 Mar 2001 21:47:44 -0800, James Lamb <[EMAIL PROTECTED]> wrote: >Can PHP talk directly to the SMTP server, i know that there is a mail() >function but this cannnot specify the reply-to and from addresses easily. Yes, but it's less work to specify reply-to and from using mail(). If you do want to do this, PHP's socket library allows you to directly connect to an SMTP server and send the appropriate commands. There are several PHP classes available which do this - search your favorite PHP code repository - if you don't want to become a lot more familar with RFC 822.
Normally, I am using php4.0.4 at apache 1.3.19 on windows98. It works fine. However, after i added the following lines to the php.ini, none of my original php pages can be shown. The browser just "loading".......... Can anyone help me to solve this problem? The line I have added: java.class.path="c:\php\extensions\php_java.jar;C:\jdk1.3\jre\lib;C:\jdk1.3\jre\bin\" java.home="C:\jdk1.3\bin;C:\jdk1.3\jre\bin\" java.library.path="c:\php\extensions\;C:\jdk1.3\jre\bin\" java.library=C:\jdk1.3\jre\bin\classic\jvm.dll extension=php_java.dll
On Tue, 13 Mar 2001 16:45, vvsalon wrote: > Normally, I am using php4.0.4 at apache 1.3.19 on windows98. > It works fine. > However, after i added the following lines to the php.ini, > none of my original php pages can be shown. > The browser just "loading".......... > Can anyone help me to solve this problem? > > The line I have added: > java.class.path="c:\php\extensions\php_java.jar;C:\jdk1.3\jre\lib;C:\jd >k1.3\jre\bin\" > > java.home="C:\jdk1.3\bin;C:\jdk1.3\jre\bin\" > java.library.path="c:\php\extensions\;C:\jdk1.3\jre\bin\" > java.library=C:\jdk1.3\jre\bin\classic\jvm.dll > extension=php_java.dll Check your log files, especially the error file as there may be clues there. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
Dear all, Please *cc the reply to me* as I'm not a subscriber to the list. I got these errors from apache 1.3.17/WinNT/php4.0.4p11 [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] f:/php/local-cgi/test.php is not executable; ensure interpreted scripts have "#!" first line [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] couldn't spawn child process: f:/php/local-cgi/test.php when trying to test the installation with a simple script which is simply <? phpinfo(); > When I add the sebang line "#!f:/php/php" it executed alright but then I got this line echoed on the resulting page. I had used php3/apache/linux without such problem and I don't seem to find any such report in th mailing list. What have I missed? Best wishes, ST --
Just add -q to the first line of your cgi:- #! f:/php/php -q runs php in quiet mode. Chris LUK ShunTim wrote: > Dear all, > > Please *cc the reply to me* as I'm not a subscriber to the list. > > I got these errors from apache 1.3.17/WinNT/php4.0.4p11 > > [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] f:/php/local-cgi/test.php > is not executable; ensure interpreted scripts have "#!" first line > [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] couldn't spawn child > process: f:/php/local-cgi/test.php > > when trying to test the installation with a simple script which is simply > <? > phpinfo(); > > > > When I add the sebang line "#!f:/php/php" it executed alright but then I got > this line echoed on the resulting page. > > I had used php3/apache/linux without such problem and I don't seem to find any > such report in th mailing list. > > What have I missed? > > Best wishes, > ST > -- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ********************************************************************** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed.
Hi guys, Some php programs doesn't seem to work normally in a certain server. Those wokred correctly in my Debian box. Session is the problem. It seems that the contents of session variables disappears after reloading the php page. Here is the program. ---- test.php ---- <html> <body> <?php session_start(); if(!session_is_registered("name")) { echo "session is not registered<br><br>"; session_register("name"); $HTTP_SESSION_VARS["name"] = "test"; echo "newly registered<br><br>"; } $session_name = $HTTP_SESSION_VARS["name"]; echo session_encode()."<br><br>"; echo "session_name = $session_name"; ?> </body> </html> ---- test.php ---- Can I handle it with only php configuration file? Or Do I have to modify my php programs? In addition to this, I have a few questions about the work of session in php 4.0.4 Q1) Do I have to use session_start() explicitly although session.auto_start is set to 1 in php.ini? Q2) Do I have to use session_register("variable_name")? In my Debian woody box, it seems to run well without it. Regards, -- Chung Ha-Nyung <[EMAIL PROTECTED]>
----- Original Message ----- From: "Chung Ha-Nyung" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 3:19 PM Subject: [PHP] [Q] session variables wouldn't keep contents. > > Hi guys, > > Some php programs doesn't seem to work normally in a certain > server. Those wokred correctly in my Debian box. > Session is the problem. The code seems wrong. Although, it can work. It depends on php.ini. > > It seems that the contents of session variables disappears after > reloading the php page. Here is the program. > > ---- test.php ---- > <html> > <body> > <?php > session_start(); You must start session before output anything to browser, or you must use buffering to do this, or you must use URL mode for session. i.e. This code sends "<html><body>" before starting session and cookie header must be sent before if session is cookie mode. I recommend to write session_start() before programmers do anything. > if(!session_is_registered("name")) { > echo "session is not registered<br><br>"; > session_register("name"); > $HTTP_SESSION_VARS["name"] = "test"; > echo "newly registered<br><br>"; > } > $session_name = $HTTP_SESSION_VARS["name"]; > echo session_encode()."<br><br>"; > echo "session_name = $session_name"; > ?> > </body> > </html> > ---- test.php ---- > > Can I handle it with only php configuration file? Or Do I have to > modify my php programs? I'm not sure what do you want to handle "it". Starting session can handle in php.ini and inside code. > > In addition to this, I have a few questions about the work of session > in php 4.0.4 > > Q1) Do I have to use session_start() explicitly although session.auto_start > is set to 1 in php.ini? No. Session will be started automatically, so programmer does not have to write it. I recommend to write session_start(), though. Also, session will be started implicitly if programmer uses session functions even without setting session.auto_start to true. It should work, if programmer didn't send any output to browser before. i.e. Programmer does not even have to write session_start() even if session.auto_start is false. I don't recommend it, though. > Q2) Do I have to use session_register("variable_name")? > In my Debian woody box, it seems to run well without it. It seems works fine on my box without it when I use $HTTP_SESSION_VARS at least. I think it will not work without $HTTP_SESSION_VARS. (PHP4.0.4pl1/Apache/RedHat Linux7) Regards, -- Yasuo Ohgaki > > Regards, > > -- > Chung Ha-Nyung <[EMAIL PROTECTED]> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Hi guys and girls, i've got some probs compiling php-4.04pl1. I Upgraded my machine ( shouldn't have done in the first place ) to SuSE7.1 Kernel 2.1.18, downloaded apache 1.3.19 and compiled apache with no problems. Then trying to compile php-4.0.4pl1 i've run into the problem that the linker couldn' t find the pam libs. They are in /lib and added /lib to my ld.so.conf and ran ldconfig. But still the same error compiling php. Any hints to solve the problem ? Thanks a lot Wolfgang
Hi All, Does anybody have an idea how to stop the automatic error and warning messages from the Oracle data base being displayed on the screen. I want to do my own error message display but by the time I get the error message using OCIError it was already displayed on the screen anyway. Rudolf Visagie [EMAIL PROTECTED]
Rudolf Visagie [[EMAIL PROTECTED]] wrote: > Hi All, > > Does anybody have an idea how to stop the automatic error and warning > messages from the Oracle data base being displayed on the screen. I want to > do my own error message display but by the time I get the error message > using OCIError it was already displayed on the screen anyway. In your php.ini file, you want to set "display_errors = Off", and "log_errors = On". > > Rudolf Visagie > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com
Hi ! How can I replace a string (like "<TABLE>") case-insensitive (replace also "<table>", "<Table>","<tABle>"...) ? str_replace is case-sensitive. Martin
I found out to use eregi_replace. Martin Thoma schrieb: > Hi ! > > How can I replace a string (like "<TABLE>") case-insensitive (replace > also "<table>", "<Table>","<tABle>"...) ? str_replace is case-sensitive. > > Martin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
thanks! ""Jon Snell"" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > These are normally already stored as variables in PHP for you. > Run the phpinfo(); function and it will display a list of the current > variables and values... > > -----Original Message----- > From: Dream [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 4:00 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Grab and print user IP address > > > Hi! > > I need just a little script so I can get and print in browser the currently > users IP address and if possible, browser type, etc. > > Thanks a lot! > > marc > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
ARRRRRRRHHH!!!!!!!... talk about crap.. what happened to all the content?
Hi. The HTTP-specification says, when form-data is submitted via GET to a script the webserver should send Status 304 Not Modified and no message body after submitting, so the page with the script won't be loaded. I figured out i can send this status via "header("HTTP/1.0 304 Not Modified");" and it seems to work. My own message body isn't sent, but this: ---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> ---- Of course the Page is loaded, but of course empty... How can i tell PHP4 to send the Status 304 without sending any message body??? Thank you, Thomas Weber CYNOBIA Community Online Service AG Kühbachstraße 11 81543 München fon 089-78 06 0(280) fax 089-78 06 01 99 email [EMAIL PROTECTED] net http://www.CYNOBIA.de
Hello ! How can I use eregi_replace to replace every "><BR>" with ">", except when it's "<B><BR>" ?? Martin
>>>>> "MT" == Martin Thoma <[EMAIL PROTECTED]> writes: > Hello ! How can I use eregi_replace to replace every "><BR>" with > ">", except when it's "<B><BR>" ?? You need a lookbehind assertion... $string = preg_replace( '/(?<!<b)><br>/i', '>', $string ); -robin -- Robin Vickery............................................... Planet-Three, 3A West Point, Warple Way, London, W3 0RG, UK Email: [EMAIL PROTECTED] Phone: +44 (0)870 729 5444
hello, I transfered a site from PHP3/Apache/SUNOS to PHP4/Apache/Linux RedHat and the php scripts do not work anymore. The problem appears with post variables. with <input type="submit" name="Enregistrer" value="Enregistrer" > I do if ($Enregistrer=="Enregistrer") that now never says OK but if(strcmp(substr($Enregistrer,2),"Enregistrer")==0) works A trace tells me that every post variables now begins by 2 extra characters RC BS (decimal ascii code 13 & 10). Same thing if I use $HTTP_POST_VARS["Enregistrer"]. What did I do wrong? Did anybody already see that behavior? phpinfo() says among others: PHP Version 4.0.4pl1 System Linux porky.devel.redhat.com 2.2.17-8smp #1 SMP Fri Nov 17 16:12:17 EST 2000 i686 unknown Configure Command './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' Apache Version Apache/1.3.14 Apache Release 10314100 -- Bonjour chez vous, Jean Beney, Dept Informatique / LISI, INSA de Lyon http://lisi.insa-lyon.fr/~jbeney In a world without walls and fences, we do not need windows nor gates. (anonymous, late 20th century)
On Monday 12 March 2001 20:27, you wrote: > Hi! > > I am trying to do some fileuploading.. but I am running into a problem > with escaping spaces. > > Basically, I have this directory that includes spaces and I need to be > able to change the spaces to "\ " so for example.. > > my directory is: Fun Documents > I need to change it to: Fun\ Documents > > That way when I copy.. I wont get errors! Plus, there is always the > potential that the filename might have a space in it. Why would you get an error when copying? copy(), fopen() and all the rest should work fine with filenames-with-spaces. > So how do I escape these spaces? > > I have tried this.. and it doesnt work: > $copyto = strtr($copyto, " ", "\ "); strtr () is for "TRanslating" strings between character sets, i.e. it replaces single characters with single other characters strtr ($SomeString, "abc", "qwe"); will replace all "a" with "q", all "b" with "w" and all "c" with "e" > I am sorta clueless.. any ideas? Well, as I said above you shouldn't need this, and in fact this could become a quite unstable solution. You escape spaces - but what about filenames containing tabs, newlines etc? copy () takes care of that automatically. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so beautiful, so graceful, and so elegant that a million Microsoft developers couldn't have invented it even if they had a hundred years and a thousand crates of Jolt cola. - LAN Times
On Monday 12 March 2001 20:38, you wrote: > How can one get the next record to compare two fields... I want to > check if the date of the first record matches the date of the next > record with the least amount of code... SELECT First.id, Second.id from mytable First, mytable Second WHERE (First.id = $TheRecordYouWant) AND (First.DateField = Second.DateField) ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so beautiful, so graceful, and so elegant that a million Microsoft developers couldn't have invented it even if they had a hundred years and a thousand crates of Jolt cola. - LAN Times
On Tue, Mar 13, 2001 at 11:06:37AM +1030, David Robley wrote: > On Mon, 12 Mar 2001 19:41, Peter Sabaini wrote: > > On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: > > > On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: > > > > Ok, I've tried time and time again to unsubscribe from php.net's > > > > mailing list unisubscribe instructions but it doesn't work. So how > > > > do I get off the list? > > > > > > The following is at the bottom of each message from the list: > > > > > > To contact the list administrators, e-mail: > > > [EMAIL PROTECTED] > > > > which i did. and also emailed [EMAIL PROTECTED] > > > > to no avail i am afraid. > > > > i think you should check your setup... > > > > meanwhile i am just going to set up some procmail rule to redirect > > this to /dev/null i guess. > > > > <shrug /> > > > > peter. > > > > --- snip --- > > Return-Path: <[EMAIL PROTECTED]> > Delivered-To: [EMAIL PROTECTED] > Received: (qmail 14438 invoked from network); 12 Mar 2001 09:13:05 -0000 > Received: from r3antvie.styria.co.at (HELO lemonhead.styria.com) > (195.12.208.21) > by www.nisu.flinders.edu.au with SMTP; 12 Mar 2001 09:13:05 -00 > > That was from your message to me :-) Note the first line. oh ok, thats because i mail via my workstation (outgoing), and this also seems to be the problem, because emailing manually (by telnetting to port 25 of our official mail srv) and setting a correct return-path just got me unsubscribed. i think i should stop screwing around with sendmail. thanks! peter. -- Peter Sabaini [EMAIL PROTECTED] NETCONOMY Onlineberatungs- und -management Gmbh & Co KG www.netconomy.net - Schoenaugasse 64, 8010 Graz Tel. +43-(0)316 875-3081
Hey Everybody! Its me...Bruno From Brazil. Look, How can i read txt files with php???? Thanks!!!! See ya!
Hi Dokter Nick !! D. -----Original Message----- From: Bruno Freire [mailto:[EMAIL PROTECTED]] Sent: dinsdag 13 maart 2001 11:41 To: '[EMAIL PROTECTED]' Subject: [PHP] TXT files Hey Everybody! Its me...Bruno From Brazil. Look, How can i read txt files with php???? Thanks!!!! See ya!
See fread() under filesystem functions in the php manual at http://www.php.net/manual/en/ Rudolf Visagie [EMAIL PROTECTED] -----Original Message----- From: Bruno Freire [mailto:[EMAIL PROTECTED]] Sent: 13 March 2001 12:41 To: '[EMAIL PROTECTED]' Subject: [PHP] TXT files Hey Everybody! Its me...Bruno From Brazil. Look, How can i read txt files with php???? Thanks!!!! See ya!
Hi All, I'm looking for a two way encryption function that I can use to encrypt a cookie value. I have had experience with MD5 but its one way. Is there one I can use with a key in php? Thanks in advance, Joe Njeru, Nairobi Kenya. "Where the women are beautiful"
Hey, http://www.devhome.net/php/tutorials/230101.html that's RC4 implementation in PHP. you don't need mcrypt. --- Joe Njeru <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm looking for a two way encryption function that I > can use to encrypt a > cookie value. I have had experience with MD5 but its > one way. Is there one I > can use with a key in php? > > Thanks in advance, > Joe Njeru, > Nairobi Kenya. > "Where the women are beautiful" > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > ===== To find out more about me : http://www.geocities.com/mimodit My bookmarks are available @ http://mukul.free.fr __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
This really is worth your valuable time, so... PLEASE PRINT THIS NOW FOR READING AT YOUR LEISURE, YOU WILL NOT REGRET IT. ++++++++++++++++++++++++++++++++++++++++++++++++++ Dear Friend, You can earn $50,000 or more in next the 90 days sending E- mail. Seem impossible? Read on for details. Is there a catch? NO!!! There is no catch. Just send your emails; and, You will be on your way to financial freedom. AS SEEN ON NATIONAL TELEVISION: Thank you for your time and Interest. This is the letter you've been reading about in the news Lately. Due to the popularity of this letter on the Internet, a major nightly news program recently devoted an entire show to the investigation of the program described below to see, if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are, absolutely no laws prohibiting the participation in the program. This has helped to show people that this is a simple, harmless, and fun way to make some extra money at home. The results of this show have been truly remarkable. So many people are participating that those involved are doing, much better than ever before. Since everyone makes more as more people try it out, its been very exciting to be a part of lately. You will understand once you experience it. "HERE IT IS BELOW." ================================================ *** Print This Now (IF YOU HAVE NOT already done it) for Future Reference *** The following income opportunity is one you may be interested in taking a look at. It can be started with VERY LITTLE investment and the income return is TREMENDOUS!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ If you would like to make at least $50,000 in less than 90 days! Please read the enclosed Program...THEN READ IT AGAIN!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ THIS IS A LEGITIMATE, LEGAL, MONEYMAKING OPPORTUNITY. It does not require you to come into contact with people, do any hard work, and best of all, you never have to leave the house except to get the mail. If you believe that someday you'll get that big break that you've been waiting for, THIS IS IT! Simply follow the instructions, and your dreams will come true. This Multi-level e-mail order-marketing program work perfectly, 100% of EVERY TIME. E-mail is the sales tool of the future. Take advantage of this non-commercialized method of advertising NOW! The longer you wait, the more savvy people will be taking your business using e-mail. Get what is rightfully yours. Program yourself for success and dare to think BIG. MULTI-LEVEL MARKETING (MLM) has finally gained respectability. It is being taught in the Harvard Business School, and both Stanford Research and the Wall Street Journal have stated that between 50% and 65% of all goods and services will be sold through multi-level methods by the mid to late 1990's. This is a Multi-Billion Dollar industry and of the 500,000 millionaires in the U.S., 20% (100,000) made their fortune in the last several years in MLM. Moreover, statistics have show that 45 people become millionaires everyday through Multi-Level Marketing. You may have heard this story before, but over the summer, Donald Trump made an appearance on the David Letterman show. Dave asked him what he would do if he lost everything and had to start over from scratch. Without hesitating, Trump said he would find a good network marketing company and get to work. The audience started to hoot and boo him. He looked out at the audience and dead-panned his response "That's why I'm sitting up here; and, you are all sitting out there!" With network marketing, you have two sources of income. Direct commissions from sales you make yourself and commissions from sales made by people you introduce to the business. Residual income is the secret of the wealthy. It means investing time or money once and getting paid again and again and again. In network marketing, it also means getting paid for the work of others. The enclosed information is something I almost let slip through my fingers. Fortunately, sometime later I re- read everything and gave some thought and study to it. My name is Jonathan Rourke. Two years ago, the corporation I worked at for the past twelve years down-sized and my position was eliminated. After unproductive job interviews, I decided to open my own business. Over the past year, I incurred many unforeseen financial problems. I owed my family, friends, and creditors over $35,000. The economy was taking a toll on my business and I just couldn't seem to make ends meet. I had to refinance and borrow against my home to support my family and struggling business. AT THAT MOMENT something significant happened in my life and I am writing to share the experience in hopes that this will change your life FOREVER FINANCIALLY!!! In mid December of 1997, I received this program via e-mail. Six months prior to receiving this program, I had been sending away for information on various business opportunities. All of the programs I received, in my opinion, were not cost effective. They were either too difficult for me to comprehend or the initial investment was too much for me to risk to see if they would work or not. One claimed that I would make a million dollars in one year... it didn't tell me I'd have to write a book to make it! But like I was saying, in December of 1997 I received this program. I didn't send for it, or ask for it, they just got my name off a mailing list. THANK GOODNESS FOR THAT !!! After reading it several times, to make sure I was reading it correctly, I couldn't believe my eyes. Here was a MONEY MAKING PHENOMENON. I could invest as much as I wanted to start, without putting me further into debt. After I got a pencil and paper and figured it out, I would at least get my money back. But like most of you I was still a little skeptical and a little worried about the legal aspects of it all. So I checked it out with the U.S. Post Office (1-800- 725-2161 24-hrs) and they confirmed that it is indeed legal! After determining the program was LEGAL and NOT A CHAIN LETTER, I decided "WHY NOT." Initially I sent out 10,000 e-mails. It cost me about $15 for my time on-line. The great thing about e-mail is that I don't need any money for printing to send out the program, and because all of my orders are fulfilled via e-mail, the only expense is my time. I am telling you like it is. I hope it doesn't turn you off, but I promised myself that I would not "rip-off" anyone, no matter how much money it cost me. In less than one week, I was starting to receive orders for REPORT #1. By January 13, I had received 26 orders for REPORT #1. Your goal is to "RECEIVE at least 20 ORDERS FOR REPORT #1 WITHIN 2 WEEKS. IF YOU DON'T, SEND OUT MORE PROGRAMS UNTIL YOU DO!" My first step in making $50,000 in 90 days was done. By January 30, I had received 196 orders for REPORT #2. Your goal is to "RECEIVE AT LEAST 100+ ORDERS FOR REPORT #2 WITHIN 2 WEEKS. IF NOT, SEND OUT MORE PROGRAMS UNTIL YOU DO. ONCE YOU HAVE 100 ORDERS, THE REST IS EASY, RELAX, YOU WILL MAKE YOUR $50,000 GOAL." Well, I had 196 orders for REPORT #2, 96 more than I needed. So I sat back and relaxed. By March 1, of my e-mailing of 10,000, I received $58,000 with more coming in every day. I paid off ALL my debts and bought a much-needed new car. Please take time to read the attached program, IT WILL CHANGE YOUR LIFE FOREVER!!! Remember, it won't work if you don't try it. This program does work, but you must follow it EXACTLY! Especially the rules of not trying to place your name in a different place. It won't work, you'll lose out on a lot of money! In order for this program to work, you must meet your goal of 20+ orders for REPORT #1, and 100+ orders for REPORT #2 and you will make $50,000 or more in 90 days. I AM LIVING PROOF THAT IT WORKS!!! If you choose not to participate in this program, I am sorry. It really is a great opportunity with little cost or risk to you. If you choose to participate, follow the program and you will be on your way to financial security. If you are a fellow business owner and are if financial trouble like I was, or you want to start your own business, consider this a sign. I DID! Sincerely, Jonathan Rourke PS Do you have any idea what 11,700 $5 bills ($58,000) look like piled up on a kitchen table? IT'S AWESOME! ------------------------------------------------------ A PERSONAL NOTE FROM THE ORIGINATOR OF THIS PROGRAM: By the time you have read the enclosed program, you may have concluded that an amateur could not have created such a legal program that works. Let me tell you a little about myself. I had a profitable business for 10 years. Then in 1979 my business began falling off. I was doing the same things that were previously successful for me, but it wasn't working. Finally, I figured it out. It wasn't me, it was the economy. Inflation and recession had replaced the stable economy that had been with us since 1945. I don't have to tell you what happened to the unemployment rates...because many of you know from first hand experience. There were more failures and bankruptcies than ever before. The middle class was vanishing. Those who knew what they were doing invested wisely and moved up. Those who did not, including those who never had anything to save or invest, were moving down into the ranks of the poor. As the saying goes, "THE RICH GET RICHER AND THE POOR GET POORER." The traditional methods of making money will never allow you to "move up" or "get rich", inflation will see to that. You have just received information that can give you financial freedom for the rest of your life, with "NO RISK" and "JUST A LITTLE BIT OF EFFORT." You can make more money in the next few months than you have ever imagined. I should also point out that I would not see a penny of this money, nor anyone else who has provided a testimonial for this program. I have already made over 4 MILLION DOLLARS! I have retired from the program after sending out over 16,000 programs. Now I have several offices that do this program and several other programs here and over seas. Follow the program EXACTLY AS INSTRUCTED. Do not change it in any way. It works exceedingly well as it is now. Remember to e-mail a copy of this exciting report to everyone you can think of. One of the people you send this to may send out 50,000...and your name will be on every one of them! Remember though, the more you send out the more potential customers you will reach. So my friend, I have given you the ideas, information, materials and opportunity to become financially independent, IT IS UP TO YOU NOW! ****************************************************** THINK ABOUT IT: Before you delete this program from your mailbox, as I almost did, take a little time to read it and REALLY THINK ABOUT IT. Get a pencil and figure out what could happen when YOU participate. Figure out the worst possible response and no matter how you calculate it, you will still make a lot of money! You will definitely get back what you invested. Any doubts you have will vanish when your first orders come in. IT WORKS! Jody Jacobs, Richmond, VA ****************************************************** HERE'S HOW THIS AMAZING PROGRAM WILL MAKE YOU THOUSANDS OF DOLLAR$ INSTRUCTIONS: This method of raising capital REALLY WORKS 100% EVERY TIME. I am sure that you could use up to $50,000 or more in the next 90 days. Before you say, "BULL... ", please read this program carefully. This is not a chain letter, but a perfectly legal money making opportunity. Basically, this is what you do: As with all multi-level businesses, we build our business by recruiting new partners and selling our products. Every state in the USA allows you to recruit new multi-level business partners, and we offer a product for EVERY dollar sent. YOUR ORDERS COME BY MAIL AND ARE FILLED BY E-MAIL, so you are not involved in personal selling. You do it privately in your own home, store, or office. This is the GREATEST Multi-Level Mail Order Marketing anywhere: This is what you MUST do: 1. Order all 4 reports shown on the list below (you can't sell them if you don't order them). * For each report, send $5.00 CASH, the NAME & NUMBER OF THE REPORT YOU ARE ORDERING, YOUR E-MAIL ADDRESS, YOUR NAME & RETURN ADDRESS (in case of a problem) to the person whose name appears on the list next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE IN CASE OF ANY MAIL PROBLEMS! * When you place your order, make sure you order each of the four reports. You will need all four reports so that you can save them on your computer and resell them. * Within a few days, you will receive, via e-mail, each of the four reports. Save them on your computer so they will be accessible for you to send to the 1,000's of people who will order them from you. 2. IMPORTANT-- DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than is instructed below in steps "a" through "f" or you will lose out on the majority of your profits. Once you understand the way this works, you'll also see how it doesn't work if you change it. Remember, this method has been tested, and if you alter it, it will not work. a. Look below for the listing of available reports. b. After you've ordered the four reports, take this Advertisement and remove the name and address under REPORT #4. This person has made it through the cycle and is no doubt counting their $50,000! c. Move the name and address under REPORT #3 down to REPORT #4. d. Move the name and address under REPORT #2 down to REPORT #3. e. Move the name and address under REPORT #1 down to REPORT #2. f. Insert your name/address in the REPORT #1 position. Please make sure you copy every name and address ACCURATELY! Copy and paste method works well. 3. Take this entire letter, including the modified list of names, and save it to your computer. Make NO changes to the Instruction portion of this letter. Your cost to participate in this is practically nothing (surely you can afford $20). You obviously already have an Internet Connection and e-mail is FREE! To assist you with marketing your business on the Internet, the 4 reports you purchase will provide you with invaluable marketing information which includes how to send bulk e- mails, where to find thousands of free classified ads and much, much more. There are two primary methods of building your downline: METHOD #1: SENDING BULK E-MAIL Let's say that you decide to start small, just to see how it goes, and we'll assume you and all those involved send out only 2,000 programs each. Let's also assume that the mailing receives a 0.5% response. Using a good list, the response could be much better. Also, many people will send out hundreds of thousands of programs instead of 2,000. But continuing with this example, you send out only 2,000 programs. With a 0.5% response, that is only 10 orders for REPORT #1. Those 10 people respond by sending out 2,000 programs each for a total of 20,000. Out of those 0.5%, 100 people respond and order REPORT #2. Those 100 people mail out 2,000 programs each for a total of 200,000. The 0.5% response to that is 1,000 orders for REPORT #3. Those 1,000 send out 2,000 programs each for a 2,000,000 total. The 0.5% response to that is 10,000 orders for REPORT #4. That amounts to 10,000 each of $5 bills for you in CASH MONEY!!! Your total income in this example is $50 + $500 + $5,000+ $50,000 for a total of $55,550!!! REMEMBER FRIEND, THIS IS ASSUMING 1,990 OUT OF THE 2,000 PEOPLE YOU MAIL TO WILL DO ABSOLUTELY NOTHING AND TRASH THIS PROGRAM! DARE TO THINK FOR A MOMENT WHAT WOULD HAPPEN IF EVERYONE, OR HALF-SENT OUT 100,000 PROGRAMS INSTEAD OF 2,000. Believe me, many people will do just that, and more! By the way, your cost to participate in this is practically nothing. You obviously already have an Internet connection and e- mail is FREE !!! REPORT #2 will show you the best methods for bulk e-mailing, tell you where to obtain free bulk e-mail software and where to obtain e-mail lists. METHOD #2 - PLACING FREE ADS ON THE INTERNET 1. Advertising on the 'Net is very, very inexpensive, and there are HUNDREDS of FREE places to advertise. Let's say you decide to start small just to see how well it works. Assume your goal is to get ONLY 10 people to participate on your first level. (Placing a lot of FREE ads on the Internet will EASILY get a larger response). Also, assume that everyone else in YOUR ORGANIZATION gets ONLY 10 downline members. Follow this example to achieve the STAGGERING results Below (same as email example): 1st level-your 10 members with $5................$50 2nd level-10 members from those 10 ($5 x 100)....$500 3rd level-10 members from those 100 ($5 x 1,000).$5,000 4th level-10 members from those 1,000 ($5 x 10k).$50,000 THIS TOTALS -------------------------------------$55,550 Remember friends, this assumes that the people who participate only recruits 10 people each. Think for a moment what would happen if they got 20 people to participate! Most people get 100's of participants! THINK ABOUT IT! For every $5.00 you receive, all you must do is e-mail them the report they ordered. THAT'S IT! ALWAYS PROVIDE SAME-DAY SERVICE ON ALL ORDERS! This will guarantee that the e-mail THEY send out, with YOUR name and address on it, will be prompt because they can't advertise until they receive the report! ------------------------------------------ AVAILABLE REPORTS ------------------------------------------ *** Order Each REPORT by NUMBER and NAME *** Notes: - ALWAYS SEND $5 CASH (U.S. CURRENCY) FOR EACH REPORT CHEQUES NOT ACCEPTED - ALWAYS SEND YOUR ORDER VIA FIRST CLASS MAIL - Make sure the cash is concealed by wrapping it in at least two sheets of paper (IF NOT MORE SO THAT THE BILL CAN'T BE SEEN AGAINST LIGHT) - On one of those sheets of paper, include: (a) the number & name of the report you are ordering, (b) your e-mail address, and (c) your name & postal address (as return address in case the post office encounters problems). PLACE YOUR ORDER FOR THESE REPORTS NOW: ______________________________________________________ REPORT #1 "The Insider's Guide to Advertising for Free on the Internet." ORDER REPORT #1 FROM: Sam Shahwan 4211 NE 7th street Renton, WA 98059 USA ______________________________________________________ REPORT #2 "The Insider's Guide to Sending Bulk E-mail on the Internet." ORDER REPORT #2 FROM: Bob Gibson 1163 Ironwood Drive Grayson, Ga. 30017 USA ______________________________________________________ REPORT #3 "The Secrets to Multilevel Marketing on the Internet." ORDER REPORT #3 FROM: Jim Hutslar 1350 South Ocean Blvd Slip 10 Pompano Beach, Fl. 33062 USA _____________________________________________________ REPORT #4 "How to become a Millionaire utilizing the Power of Multilevel Marketing and the Internet." ORDER REPORT #4 FROM: Karol Gentile 3182 S. Wax berry Denver, Co, 80231 USA ______________________________________________________ About 50,000 new people get online every month! ******* TIPS FOR SUCCESS ******* * TREAT THIS AS YOUR BUSINESS! Be prompt, professional, and follow the directions accurately. * Send for the four reports IMMEDIATELY so you will have them when the orders start coming in because: * When you receive a $5 order, you MUST send out the requested product/report. * ALWAYS PROVIDE SAME-DAY SERVICES ON THE ORDERS YOU RECEIVE. * Be patient and persistent with this program. If you follow the instructions exactly, your results WILL BE SUCCESSFUL! * ABOVE ALL, HAVE FAITH IN YOURSELF AND KNOW YOU WILL SUCCEED! ******* YOUR SUCCESS GUIDELINES ******* Follow these guidelines to guarantee your success: If you don't receive 20 orders for REPORT #1 within two weeks, continue advertising or sending e-mails until you do. Then, a couple of weeks later you should receive at least 100 orders for REPORT#2. If you don't, continue advertising or sending e-mails until you do. Once you have received 100 or more orders for REPORT #2, YOU CAN RELAX, because the system is already working for you, and the cash will continue to roll in! THIS IS IMPORTANT TO REMEMBER: Every time your name is moved down on the list, you are placed in front of a DIFFERENT report. You can KEEP TRACK of your PROGRESS by watching which report people are ordering from you. If you want to generate more income, send another batch of e-mails or continue placing ads and start the whole process again! There is no limit to the income you will generate from this business! Before you make your decision as to whether or not you participate in this program. Please answer one question..... DO YOU WANT TO CHANGE YOUR LIFE? If the answer is yes, please look at the following facts about this program: 1. YOU ARE SELLING A PRODUCT WHICH DOES NOT COST ANYTHING TO PRODUCE! 2. YOU ARE SELLING A PRODUCT WHICH DOES NOT COST ANYTHING TO SHIP! 3. YOU ARE SELLING A PRODUCT WHICH DOES NOT COST YOU ANYTHING TO ADVERTISE (except for bulk mailing cost)! 4. YOU ARE UTILIZING THE POWER OF THE INTERNET AND THE POWER OF MULTI-LEVEL MARKETING TO DISTRIBUTE YOUR PRODUCT ALL OVER THE WORLD! 5. YOUR ONLY EXPENSES OTHER THAN YOUR INITIAL $20 AND BULK MAILING COST INVESTMENT IS YOUR TIME! 6. VIRTUALLY ALL OF THE INCOME YOU GENERATE FROM THIS PROGRAM IS PURE PROFIT! 7. THIS PROGRAM WILL CHANGE YOUR LIFE FOREVER. ******* T E S T I M O N I A L S ******* This program does work, but you must follow it EXACTLY! Especially the rule of not trying to place your name in a different position, it won't work and you'll lose a lot of potential income. I'm living proof that it works. It really is a great opportunity to make relatively easy money, with little cost to you. If you do choose to participate, follow the program exactly, and you'll be on your way to financial security. Steven Bardfield, Portland, OR ****************************************************** My name is Mitchell. My wife, Jody, and I live in Chicago, IL. I am a cost accountant with a major U.S. Corporation and I make pretty good money. When I received the program, I grumbled to Jody about receiving "junk mail." I made fun of the whole thing, spouting my knowledge of the population and percentages involved. I "knew" it wouldn't work. Jody totally ignored my supposed intelligence and jumped in with both feet. I made merciless fun of her, and was ready to lay the old "I told you so" on her when the thing didn't work... well, the laugh was on me! Within two weeks, she had received over 50 responses. Within 45 days, she had received over $147,200 in $5 bills! I was shocked! I was sure that I had it all figured and that it wouldn't work. I AM a believer now. I have joined Jody in her "hobby." I did have seven more years until retirement, but I think of the "rat race" and it's not for me. We owe it all to MLM. Mitchell Wolf MD., Chicago, IL ****************************************************** The main reason for this letter is to convince you that this system is honest, lawful, extremely profitable, and is a way to get a large amount of money in a short time. I was approached several times before I checked this out. I joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received $36,470.00 in the first 14 weeks, with money still coming in. Charles Morris, Esq. *************************************************** Not being the gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative that I am, I decided that the initial investment was so little that there was just no way that I wouldn't get enough orders to at least get my money back. Boy, was I surprised when I found my medium-size post office box crammed with orders! For awhile, it got so overloaded that I had to start picking up my mail at the window. I'll make more money this year than any 10 years of my life before. The nice thing about this deal is that it doesn't matter where people live. There simply isn't a better investment with a faster return. Paige Willis, Des Moines, IA ************************************************** I had received this program before. I deleted it, but later I wondered if I shouldn't have given it a try. Of course, I had no idea who to contact to get another copy, so I had to wait until I was e-mailed another program. Eleven months passed then it came...I didn't delete this one!!! I made more than $41,000 on the first try!! Violet Wilson, Johnstown, PA **************************************************** This is my third time to participate in this plan. We have quit our jobs, and will soon buy a home on the beach and live off the interest on our money. The only way on earth that this plan will work for you is if you do it. For your sake, and for your family's sake don't pass up this golden opportunity. Good luck and happy spending! Kerry Ford, Centerport, NY *************************************************** ORDER YOUR REPORTS TODAY AND GET STARTED ON YOUR ROAD TO FINANCIAL FREEDOM! NOW IS THE TIME FOR YOUR TURN DECISIVE ACTION YIELDS POWERFUL RESULTS ______________________________________________________ FOR YOUR INFORMATION: If you need help with starting a business, registering a business name, learning how income tax is handled, etc., contact your local office of the Small Business Administration (a Federal agency) 1- (800)827-5722 for free help and answers to questions. Also, the Internal Revenue Service offers free help via telephone and free seminars about business tax requirements. IT IS TOTALLY UP TO YOU HOW!!! CAN YOU HANDLE SUCCESS AND ALL THAT MONEY??? ___________________________________________________________ Under Bills.1618 Title III passed by the 105th US Congress this letter cannot be considered spam as the sender includes contact information and a method of removal. This is a one time e-mail transmission. No request for removal is necessary.
Is there an easy way to detect if a user has changed the values in the fields of an HTML form? I want to be able to check this during the onUnload event and warn the user that he/she has not clicked the "Save" button to save changes to the form fields. The only way I can see to do this is to use JavaScript to loop thru the variables and compare the current (possibly changed) value to the value in the defaultValue property. I'm hoping that there is a "UserHasChangedFormVariables" property (or something similar) that I don't know about that someone will tell me about :) A pointer to existing code that does this would be appreciated. Many thanks - Jim
> 1) The mySQL text data ($description) won't populate my form. I'm using > <textarea> input, and it just won't accept and display the value of > $description. It's empty, and when the form is re-submitted after editing, > it empties the $description variable. How are you printing the value? With textarea you need to do: <textarea><?php echo $description;?></textarea> instead of: <textarea value="<?php echo $description;?></textarea> > 2) I also have image uploads in my form, and the <type=file> inputs will not > accept values, either. Same problem as above .. the empty input areas cause > the image names to be deleted from my database when the form is edited and > re-submitted. You can't assign a value to a type=file field. If you could, you would be able to upload whatever file you wanted from a user. If you have to pass the value, try a hidden field and then have it reassign if no file was uploaded. -- Jason Stechschulte [EMAIL PROTECTED] -- Let's say the docs present a simplified view of reality... :-) -- Larry Wall in <[EMAIL PROTECTED]>
On Mon, Mar 12, 2001 at 10:08:57AM -0800, Jerry Lake wrote: > copy($userfile, "/www/workbox/htdocs/audio"); > > I keep getting the following error. the directory exists and is chmoded to > 777, what am I doing wrong ? > Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in > /www/workbox/htdocs/upload.php on line 4 I'm no expert, but I would try adding a trailing slash. copy($userfile, "/www/workbox/htdocs/audio/"); -- Jason Stechschulte [EMAIL PROTECTED] -- if (instr(buf,sys_errlist[errno])) /* you don't see this */ -- Larry Wall in eval.c from the perl source code
Hi PHPers, OpenLink is pleased to announce the commercial availability of its new version 4.0 high-performance ODBC Drivers for PHP. Features Summary: ODBC 3.5 Compliance JDBC 2.0 Compliance Multithreaded Drivers for ODBC and JDBC Full Scrollable Cursor Model implementation, including Mixed and Dynamic Cursors ODBC-ODBC Bridge for providing third party drivers with OpenLink ODBC & JDBC enhancements ODBC-JDBC Bridge that enables connectivity between ODBC compliant applications and JDBC Drivers JDBC-ODBC Bridge that enables connectivity between JDBC compliant applications and ODBC Drivers Visit http://www.openlinksw.com/main/softdld.htm to download a free and non expiring evaluation copy Best regards, Andrew -------------------------------------- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com
Okay, I read about this feature in the php manual. What I can't figure out is why in the world would anybody want to use this feature? Not to start a flame war, just would like an explanation of why this feature is useful.
On Tue, Mar 13, 2001 at 06:36:10AM -0700, John Meyer wrote: > Okay, I read about this feature in the php manual. What I can't figure out > is why in the world would anybody want to use this feature? Not to start a > flame war, just would like an explanation of why this feature is useful. I've really only used them once, but they were handy for that situation. I had a column in a mysql table that was a set column of user privileges, and I wanted to register every value in the set as a session variable. <horridcode> for($i = 0; $i < sizeof($privs); $i++) { $$privs[$i] = 1; session_register($privs[$i]); } </horridcode> -- Jason Stechschulte [EMAIL PROTECTED] -- I surely do hope that's a syntax error. -- Larry Wall in <[EMAIL PROTECTED]>
Okay, that makes a little sense, but isn't there some sort of collection that will do the same thing (coming from vb). -----Original Message----- From: Jason Stechschulte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 6:38 AM To: John Meyer Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Variable variables On Tue, Mar 13, 2001 at 06:36:10AM -0700, John Meyer wrote: > Okay, I read about this feature in the php manual. What I can't figure out > is why in the world would anybody want to use this feature? Not to start a > flame war, just would like an explanation of why this feature is useful. I've really only used them once, but they were handy for that situation. I had a column in a mysql table that was a set column of user privileges, and I wanted to register every value in the set as a session variable. <horridcode> for($i = 0; $i < sizeof($privs); $i++) { $$privs[$i] = 1; session_register($privs[$i]); } </horridcode> -- Jason Stechschulte [EMAIL PROTECTED] -- I surely do hope that's a syntax error. -- Larry Wall in <[EMAIL PROTECTED]>
I have some dynamic pages which pull content from a DB using a PHP function. I have just found out that the production server for the project won't allow MySQL/PHP. The editors will need to use the input tool on a test server and then FTP to the production server. What I need to know is how do I save each page as static HTML when the page update has taken place (html is in DB) Code in each page(body text) is: <? require("lib/dbconnect.html"); dbConnect(); require("lib/echocontent.html");; echoContent(1); ?> Thanks in advance, JM
About good editors with FTP inbuilt on the Windows side. Most of the FTP features are crap! Completly. The only Editor i know that works good with its inbilt FTP feature is BBEdit, but that again is another platform. BUT if you want a good combination on Windows side you could use Ultraedit and FTP-Netdrive. That programm maps FTP-Host to your Explorer and does all teh upload etc. So you just open and write and thats it. No messing around. regards, Jens on 12.03.2001 21:48 Uhr, Angerer, Chad at [EMAIL PROTECTED] wrote: > Yes I use it with NT and run into occasional memory management problems as > well. It is a great editor but has small issues that really can annoy a > person. Also the FTP engine blows. It can be most unpredictable. > > Chad > > -----Original Message----- > From: Simon Garner [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 2:43 PM > To: Boget, Chris; [EMAIL PROTECTED] > Subject: Re: [PHP] Good Free PHP Editor? > > > From: "Boget, Chris" <[EMAIL PROTECTED]> > >>> HomeSite is great. www.allaire.com >>> - not totally free I'm afraid, but there is an eval version. >>> - runs under Windows yes >>> - supports syntax highlighting for lots of languages >>> including HTML, PHP, >>> Perl, SQL, ASP (VB/JS). >>> - can edit multiple files yes >>> - shows line numbers in gutter on left hand side >>> - supports regular-expression based search & replace across multiple >>> files/directories >>> - nice interface. >> >> Has the worst memory management of any software I've ever used. >> I have to reboot at lest 10 times a day when I use it. The support >> forum on their site is filled with complaints on this issue. Their > response >> to this issue was not to fix the memory leak (or whatever it is) but to >> issue a warning when resources are getting dangerously low to give >> you the opportunity to save all your work before you reboot. Beyond >> that, their stance is "Well, if you don't like it, return it and we'll > give >> you a refund". >> If this wasn't the only piece of software that handled projects the way >> we needed, we'd have thrown out this piece of garbage software a *long* >> time ago. >> >> Chris >> > > > > Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+ > files, without any problems whatsoever. > > However, I used to run it under Win98 and it would crash 1-2 times per > day... > > > Regards > > Simon Garner >