php-windows Digest 25 Jan 2001 22:59:38 -0000 Issue 415 Topics (messages 5202 through 5217): Re: Is it possible to CONVERT file formats? 5202 by: Simon Willison 5203 by: Piotr Pluciennik Re: Date + Time 5204 by: Simon Willison Genuine Opportunity 5205 by: NEWS!! Less Than x but greater than y 5206 by: Ben Cairns 5207 by: Asendorf, John 5208 by: Ernest E Vogelsinger 5209 by: Jan Walter 5210 by: Ben Cairns Re: Header Expire, PHP, and browsers 5211 by: Svemir Re: ASP to PHP (Secure MS Access connection).. 5212 by: Gonzalo Vera Problem with Session, Form, and Back 5213 by: Dreamvale 5215 by: Gregory_Griffiths.cargill.com How to create an .CAB file ( or something compressed ) with php - IIS - 2000. 5214 by: Gastón Gorosterrazú PHP on Load Balanced Servers 5216 by: Sean.Rector.compass.net Web based Time Sheets for Professionals 5217 by: Web Time Sheets 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] ----------------------------------------------------------------------
I've player around with a few concepts involving this, and come up with 3 possible (although tricky) solutions: 1. Use your own code similar to the UBB syntax used on many message board systems. Here users can use HTML-like codes such as [b]Text in bold[/b], [i]text in italics[/i] etc - it's very easy for them to learn and doesn't scare people as much as HTML. 2. Get users to "save as HTML" from Word documents then upload the HTML files via an upload form. The script then needs to strip off the <head> section and <body> tags - as long as they haven't put any fixed width tables or images in the document this will work fine, so it helps if you have guidelines for the creation of documents (i.e don't put images in there). 3. User Dynamic HTML and some pretty tricky CSS / JavaScript stuff to give users a WYSIWYG interface for editing their documents. This is hard to describe but an example of it in action can be seen here: http://gossamer-threads.com/tmp/editor/ The first option is easy to implement but means users have to learn something new, the second works great but requires users to save stuff as HTML (which may lead to confusion) and the third option whlie impressive only works on MSIE and would be incredibly difficult to set up. Alternatively using PHP's COM functions should allow you to use Word itself to process the files (for example save them as HTML then strip the header sections etc) - which is probably the best solution. -----Original Message----- From: Darvin Andrioli [mailto:[EMAIL PROTECTED]] Sent: 25 January 2001 08:55 To: 'Mike Flynn'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Is it possible to CONVERT file formats? Hi Mike I'm wrinting an intranet site where my colleagues can write notes about their job, so I'm interested to your post. I evaluated many ways to write this notes.Html? No, nobody knows html. Word? Yes it may be a possible solution. As you wrote its usefull get only the text, because I get the control of many visualization aspect ( background color, text disposition ,... ) I'm evaluating other way. Textarea may be another possible solution. I haven't character format like bold, italics, but it is easy to install, you need only the browser, ad it's simple to use. If I insert some button, and ,using javascript code, I put particular tag inside the textarea ( i.e. HTML tag for bold, italic,.. ), I can give to my collegues some format control over the text without any html knowledge about html. In this moment I prefer the "word solution", I think is better for long document, and the last solution ( textarea with javascript ) for small notes. I think that I'll give both the ways. If you get some new could you let me know? Thanks Darvin -----Original Message----- From: Mike Flynn [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Is it possible to CONVERT file formats? Hey all, We are trying to develop a system to allow people to upload meeting minutes from our organization's meetings. We'd like to assume no HTML knowledge on the user's part. The easiest method would be to ask them just to upload plain text, or to upload their MS Word file (as they do now) and hope everyone can read MS Word. Ideally, however, I'd like to be able to allow them the niceities of HTML (bold, italic, underline, big, small) without any specific file format. Are there any systems in place to take a file such as a basic Word file and convert its text (roughly) to HTML? Not a whole HTML page, like as if you exported it to HTML from Word, just the text and its properties. If anyone knows of anything like this, it would be great. Thanks! -Mike Flynn Come the millennium month 12, in the home of the greatest power, the village idiot will come forth to be acclaimed the leader. (Nostradamus, 1555) I do know I'm ready for the job. And, if not, that's just the way it goes. (George W. Bush, 2000) -- PHP Windows 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, if I can suggest using Word, not in native .doc format as usually but in RTF. It's in my opinion easier to parse and you can have all advantages of text attributes (bold, italic and so on) for generating HTML or XML, ease of use for users (in MS Word)... think about such solution and let me know. I'm currently also thinking about similar problem and RTF probably will be my choice. Regards Piotr --- Darvin Andrioli <[EMAIL PROTECTED]> wrote: > Hi Mike > > I'm wrinting an intranet site where my colleagues > can write notes about their job, so I'm interested > to your post. > I evaluated many ways to write this notes.Html? No, > nobody knows html. > Word? Yes it may be a possible solution. As you > wrote its usefull get only the text, because I get > the control of many visualization aspect ( > background color, text disposition ,... ) > I'm evaluating other way. Textarea may be another > possible solution. I haven't character format like > bold, italics, but it is easy to install, you need > only the browser, ad it's simple to use. > If I insert some button, and ,using javascript code, > I put particular tag inside the textarea ( i.e. HTML > tag for bold, italic,.. ), I can give to my > collegues some format control over the text without > any html knowledge about html. > > In this moment I prefer the "word solution", I think > is better for long document, and the last solution ( > textarea with javascript ) for small notes. I think > that I'll give both the ways. > > If you get some new could you let me know? > > Thanks > > Darvin > > > > -----Original Message----- > From: Mike Flynn [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, January 24, 2001 5:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Is it possible to CONVERT file > formats? > > Hey all, > > We are trying to develop a system to allow people to > upload meeting minutes > from our organization's meetings. We'd like to > assume no HTML knowledge on > the user's part. The easiest method would be to ask > them just to upload > plain text, or to upload their MS Word file (as they > do now) and hope > everyone can read MS Word. > > Ideally, however, I'd like to be able to allow them > the niceities of HTML > (bold, italic, underline, big, small) without any > specific file format. > > Are there any systems in place to take a file such > as a basic Word file and > convert its text (roughly) to HTML? Not a whole > HTML page, like as if you > exported it to HTML from Word, just the text and its > properties. > > If anyone knows of anything like this, it would be > great. > > Thanks! > > -Mike Flynn > > > Come the millennium month 12, in the home of the > greatest power, > the village idiot will come forth to be acclaimed > the leader. > (Nostradamus, > 1555) > I do know I'm ready for the job. > And, if not, that's just the way it goes. > (George W. Bush, > 2000) > > > -- > PHP Windows 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 Windows 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] > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
You can use PHP's date function to do this - information here: http://www.php.net/date In your case the function would be... $yourdate = date("d") . (date("w") + 1) . date("mY"); I'm pretty sure that will work - I had to use a messy construct because the "w" element of the date function returns Sunday as 0 rather than 1 Read up on the PHP date function - it's very powerful and very easy to use Cheers, Simon -----Original Message----- From: Ben Cairns [mailto:[EMAIL PROTECTED]] Sent: 25 January 2001 10:22 To: [EMAIL PROTECTED] Subject: Date + Time I need to get the date, day, month,year from the server that PHP is running on. How can I do this. I need this information to be returned like: 255012001 Explained: The Date (Numerical - 2 Digits) Day (Day Number, Weeks starts on Sunday - Sun=1, Mon=2, Tue=3....) Month (Numerical - 2 Digits) Year (Numerical - 4 digits) but this information has to come from the SERVER as the site visitors will be all over the world, and the date's will be wrong Thanks in advance -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
Please see bottom of message for remove instructions. What you are about to read is tried, true, poven and effective. Have you ever tried or consideredmaking money using the medium of the internet? Are you marketing or promoting a business opportunity or product online? There is a LOT of money to be made on the internet and in reality, almost anyone can do it! Why not get your share? Read on if you would like to know exactly how to begin making money online almost right away! FREEDOM - Working on the internet allows you the freedom to work at home or wherever else you keep a computer with an internet connection. FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend more time with your family, supplement your current income or maybe even quit your job to work full time on the internet! Two years ago I began searching the internet for online business opportunities, my aim was to to supplement my fairly average working wage. With no previous experience or knowledge, I didn't know if it was actually possible to make money on line at all. I had heard all kinds of stories of untold riches and instant moneymakers, no doubt you have yourself. It's not hard to find all kinds of business opportunities, a simple engine search on "business opportunity" will bring up thousands. After joining various business opps, bieng scammed and reading LOTS of information I came to a conclusion : There definately IS money to be made on the internet, in fact there are HUGE amounts but lets not get carried away. The secret is to have the right system, you must use the right method for marketing and promoting your business. Stay well away from deals which sound too good to be true, more often than not they are scams. It's not hard to get suckered in by flashy ads promising the earth in return for very little effort. METHOD - You must promote your business to as many people as you can, the more exposure the more money you will generate. Classified sites, FFA sites and search engine submissions are all great to mess around with but are not worth the time you put in. Replies, hits and sales from these advertising methods are dismal to say the least. Opt in lists are much the same, so many people use these methods that the chances of your sales ad bieng noticed are slim. The moment I discovered BULK EMAILING my profits soared literally overnight. Bulk mailing reaches your your target customers and reaches them quickly and efficiently. Within a few weeks I had recieved my first paycheck and I was hooked! To save you the gruelling and lengthy task of learning to make money online, I have outlined the full and detailed system for you. I would gaurantee this information, but I am not charging for it anyway! Its yours FREE! - First you need the right business opportunity or product to sell. You can search around for one yourself, BE AWARE of scams. I will refer you to a great business opp later in this message. - You need to write a killer ad to grab peoples attention, try different ads and gauge the responses. . - To send bulk mail you need a reliable bulk mailing programme, I will refer you to a great one later in this message. Once again, there are many different programmes around and some are better than others. They can range in cost from FREE to $3000. The free programmes tend to be slow and unreliable, they also blatantly expose your dialup ISP causing more problems than they are worth. The best solution is a low cost mailer which masks your dialup ISP and sends about 5000 emails per hour. I will refer you to the best bulk mail programme for your purposes later in this message. - You need loads and loads of fresh (preferrably targeted) email adresses to send your ad to. No doubt you will find offers all over the place selling email lists. DO NOT buy these lists whatever you do. A great one I have seen is 1 000 000 email adresses for $30, most of these adresses are old and full of undeliverables. I will tell you how to get your adresses later in this message. - You need a free webbased email account, there are hundreds just do an engine search or go to: http://www.fepg.net/search.html Try to get a POP3 accessable one, this means that you can access your webmail from your computers mail programme eg, outlook, eudora. The reason for the webbased email is to recieve removal requests and enquiries. You must always supply a valid email adress with any bulk mail you send out.You must always honour removal requests and give people an option to be removed from any possible future mailing. -POP 3 Adress Extractor - The process of collecting adresses from removal requests is very lengthy and tedious work nevertheless must be done after EVERY mailing. Personally, I laboured through this task every day to compile my remove lists. After stumbling across a POP 3 extractor, things instantly became MUCH easier! This simple programme runs from your desktop. It logs into your POP 3 accessable email account and collects all email adresses from all of the messages and then saves them into a file. There is no simpler way to collect your remove adresses! It even deletes the messages as it collects the adresses from them, your inbox is left empty and ready for next time.This programme saves you countless hours and lets you spend more time on other tasks. POP 3 Extractor normally sells for over $50, if you would like it FREE please read on! - You will need a list management programme. These programmes are designed specifically for bulk mail lists. They allow you to manage, organise, clean removes, and save your lists. Your remove's can be easily stored and new lists can be purged of these unwanted adresses! They are worth thier weight in gold! For a FREE email list manager please read on! - You need free webspace. You should never link directly to your business URL from your email ad. Some people like to complain to the webhost of the business that you are spamming and try to have you booted off. To pevent bieng booted off, get yourself some free webspace. Design a simple page linking to your product or business URL, it's very easy to set up a webpage as most hosts offer design wizrds to guide you through. If you get booted off your free website, simply sign up for another!Link to your free webspace in your initial email ad. To find a free website go to http://www.freewebspace.net/ or find your own through an engine search. If you prefer you can ask the reader to reply to your ad with a request for "more info" instead of sending them to a website. You can then direct them to your business site directly as you have proof of thier request ( always keep the request message as proof, you can also follow them up later with a follow up ad) -You need a "throwaway" dialup ISP. There are people out there who will check you email properties to find out who your ISP is. They will then complain to your ISP and they may close your account. ISP's don't like people sending bulk mail as it uses up a lot of server space, remember you will be sending up to 20 000 emails per night. Personally I like to send a maximum of 10 000 per night, it seems to keep the complaints to a reasonable level. This occasionally happens so it is a good idea to have a disposable account to use for your mailing. Then if it is shut down you still have your main, everyday account still. Then you can simply search around for another disposable! There are hundreds around, they vary depending on where you are.It is up to you to search these out. Using the above methods you WILL see results right away. Your degree of success depends on the grab of you ad, your product and your persistance. It took me a couple of years to perfect these methods, it will take you a lot less than after reading this! Even if you are a newby (beginner) you will see results in a short period of time. The best advice I can give now is to take your time. There is no need to rush into it, take your time and set up everything properly. Things run much more smoothly if you plan. If you fail to plan, you plan to fail! As I promised earlier I can supply you with the following: BUSINESS OPPORTUNITY BULK EMAIL PROGRAMME FREE POP 3 EXTRACTOR FRESH EMAIL LISTS FREE LIST MANAGEMENT PROGRAMME I will be happy to send you the BEST available! You won't have to hunt around trying this and that, you will start from scratch with the BEST system.To separate window shopperts from time wasters I am asking a $10 fee for the information. It is a small price to pay for the solid backbone you will recieve for your business. The information you have read so far is worth well over $10 itself! You will recieve your information by email within 12 hours of payment.I will be available to answer any questions and get you up and running, you won't be left on your own. I want you to succeed! To make your secure payment online go to: http://www.geocities.com/starterkit2000au/EXEL.html Join my free newsletter MoneyTree for tips and hints, you can also place a free 100 word ad for joining.To subscribe, send an email to [EMAIL PROTECTED] with "subscribe" as the subject. This message was posted as you have visited my site or requested information from me at some time. To unsubscribe from any possible future mailing, send an email to [EMAIL PROTECTED] with "unsubscribe" as the subject
I am writing a script that adds a collection of variables and then does something depending on the answer.... Basically, I need the syntax for this: <? if ($answer == 0) { ?> 0 <? }; ?> if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? }; ?> But, that doesn't seem to work, Can anyone help me with the syntax? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
It's not so much "but" as "and"... so if ($answer > 0 && $answer <= 20) { } See the manual on logical operators --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 The benefit to the government of replacing all $1 Federal Reserve notes with $1 coins would be $522.2 million per year, according to estimates of the General Accouting Office released on April 7, 2000. > -----Original Message----- > From: Ben Cairns [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 25, 2001 8:47 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Less Than x but greater than y > > > I am writing a script that adds a collection of variables and > then does > something depending on the answer.... > > Basically, I need the syntax for this: > > <? > if ($answer == 0) { ?> 0 <? }; ?> > if ($answer >0 but <=20) { ?> more than 0 but less than or > equal to 20 <? }; > ?> > > But, that doesn't seem to work, Can anyone help me with the syntax? > > -- Ben Cairns - Head Of Technical Operations > intasept.COM > Tel: 01332 365333 > Fax: 01332 346010 > E-Mail: [EMAIL PROTECTED] > Web: http://www.intasept.com > > "MAKING sense of > the INFORMATION > TECHNOLOGY age > @ WORK......" > > > -- > PHP Windows 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] >
At 14:46 25.01.2001, Ben Cairns said: --------------------[snip]-------------------- >if ($answer == 0) { ?> 0 <? }; ?> >if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? }; --------------------[snip]-------------------- this should do: <? if ($answer == 0) print "0"; elseif ($answer > 0 and $answer <= 20) print "more than 0 but less than or equal to 20"; else print "below 0 or above 20"; ?> ...ebird >O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035
Ben Cairns wrote: > <? > if ($answer == 0) { ?> 0 <? }; ?> > if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? }; > ?> You should try: if ($answer > 0 && $answer <= 20) { dosomething; } Look up at Logical Operators reference in the manual. Bye -- __________________________________________________________________________________________ ========================================================================================== Jan Walter, called John LERACH, s.r.o. phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61 on emergency call cell phone: +420-602-385 760 work e-mail mailto:[EMAIL PROTECTED] private e-mail mailto:[EMAIL PROTECTED] ICQ#: 28353428 __________________________________________________________________________________________ ==========================================================================================
Thanks You guys, that was what i was looking 4 -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
Hello again! As I am receiving the digest version of the list, I am not sure if someone has already answered to my question. But thank you anyway. I found the way that works so far. I changed the "Expire" header to: <files *.php> Header set Cache-Control "no-cache" </files> Svemir
I've never handled secured db's, but in windows' control panel, in the ODBC applet where you define DSN, you can also define the system db for each db. When connecting in PHP your string has DSN, user and password, like: $dsn="AnyDSN"; $user="Joe"; $pass="foobar"; $conn = odbc_connect($dsn,$user,$pass); You neither can (as far as I know) nor need to pass any other arguments since the rest of the DSN definition is done on the control panel. That is, the DSN points both to your .mdb and, if necesary, your .mdw, so you don't have to say anything from PHP. Gonzalo. > I'm trying to convert an ASP site to PHP, and my problem is this: > I've set up the the DSN on my machine to utilize the built-in odbc functions > as I would any Access DB. Because this is a "secure" db, i'm supposed to > reference the MDW file as opposed to the MDB... Well I can't seem to get it > to work. > Here is the connection string thats used in ASP: > Application("WCSChamber_ConnectionString") = > "DSN=WCSChamber;DBQ=D:\Clients\WCS\wcsdat.mdb;DriverId=281;FIL=MS > Access;MaxBufferSize=2048;PageTimeout=5;SystemDB=D:\Clients\WCS\wcs.MDW;" > Does anyone have any idea how i can connect to this with PHP? > Any tips would be appreciated.. thanks.
Hi, This is the scenario.. I have a page with form for user to fill in some data.... When submit is clicked.. to the next page, and when the Back button on the browser is hit back to that form, all the data has been wiped out, back to blank. Have checked that when session_start is used, this problem arise. Any help with this? Thanks. Mok Lai Chuan e-Consultant Dreamvale.com Pte Ltd 111 North Bridge Road #21-01 Singapore 179098 Tel : (65) 5842576 Fax : (65) 2342248 Hp : (65) 9 6257643 www.dreamvale.com
either use something like Javascript to clear all the fields on load or have the file set not to be cached ? > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: 25 January 2001 16:28 > > To: [EMAIL PROTECTED] > > Subject: FW: [PHP-WIN] Problem with Session, Form, and Back > > > > > > Hi, > > > > This is the scenario.. > > I have a page with form for user to fill in some data.... > > When submit is clicked.. to the next page, and when the Back > > button on the > > browser is hit back to that form, all the data has been wiped > > out, back to > > blank. > > > > Have checked that when session_start is used, this problem arise. > > > > Any help with this? > > > > Thanks. > > Mok Lai Chuan > > e-Consultant > > Dreamvale.com Pte Ltd > > 111 North Bridge Road > > #21-01 > > Singapore 179098 > > Tel : (65) 5842576 > > Fax : (65) 2342248 > > Hp : (65) 9 6257643 > > www.dreamvale.com > > > > > > > > -- > > PHP Windows 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! Ive tryed exec or `` and shell_exec but nothing happens. $pepe = `makecab something.html someother.html`; Thanks in advance.
I'm investigating the possibility of installing PHP onto a pair of Load Balanced Win NT4 Enterprise Servers, running Windows Load Balance Service. Does anyone have any information on how PHP performs/would perform in this environment? Are there any "gotcha's" that I need to look for? I'll want PHP to run within several websites on the server, all of which have their own IP. Sean Rector - Network Integration Group Voice: 757-226-3398 Pager: 757-552-2127 Cell: 757-288-1025 Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe to assure the survival and the success of liberty. ~ John <http://www.cybernation.com/victory/quotations/authors/quotes_kennedy_johnf. html> F. Kennedy ~
Announcing the eTech Online Time Sheet system for gathering Employee Time over the Internet. Online TimeSheets easily integrate with Payroll, Billing & Project Management. Simplified Time Tracking and Project Management is a click away. http://www.solutioncorp.com/timesheet.shtml Please call us or visit our site. Thank You Gary P. Finley eTech SolutionCorp voice: 817-355-8883 http://www.SolutionCorp.com If you have recieved the message in error, we apologize. Please click below to send a remove request to us: mailto:[EMAIL PROTECTED]?subject=RemoveName_TimeSheet