[PHP-WIN] socket_set_timeout() is not supported
Hi! Please help me. "Warning: socket_set_timeout() is not supported in this PHP build in ." Can I use function socket_set_timeout() on win32? Or may it be something in php.ini...and if not is there another way to get around it? Thanks, -- 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-WIN] Socket timeout - not supported?
Hi! Please help me. "Warning: socket_set_timeout() is not supported in this PHP build in ." Can I use function socket_set_timeout() on win32? Or may it be something in php.ini...and if not is there another way to get around it? Thanks, Greg -- 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-WIN] PHP Scripts can't write to files
I'm using windows 2000 professional as my webserver, i have apache 2 and the lastest version of php running now, when i access my webpage my phpscripts are supposed to write to a couple files and create files when needed, but they don't. Are there any type of permissions i have to setup in windows?? -Greg pLANned Chaos
Re: [PHP-WIN] PHP Scripts can't write to files
All of the files/folders had read/write permissions for Everyone, every user on the system... The scripts just won't write... "Kyle Williamson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You need the files (or dirs) to have write/modify permissions for the > webserver user. > > > == > > Kind Regards, > > Kyle Williamson > Solent Educational Limited > > Tel: (023) 80 843189 Fax: (023) 80 848715 > http://www.solented.co.uk/ > > -Original Message- > From: Greg [mailto:[EMAIL PROTECTED]] > Sent: 16 February 2003 08:18 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP Scripts can't write to files > > > I'm using windows 2000 professional as my webserver, i have apache 2 and the > lastest version of php running now, when i access my webpage my > phpscripts are supposed to write to a couple files and create files when > needed, but they don't. Are there any type of permissions i have to setup > in windows?? > > -Greg > > pLANned Chaos > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP Scripts can't write to files
I'm using the fwrite function... "Paul Dymecki" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How are you writing to the filesystem? > Paul > > > >From: "Greg" <[EMAIL PROTECTED]> > >Reply-To: "Greg" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: [PHP-WIN] PHP Scripts can't write to files > >Date: Sun, 16 Feb 2003 10:58:33 -0600 > > > >All of the files/folders had read/write permissions for Everyone, every > >user > >on the system... The scripts just won't write... > > > > > >"Kyle Williamson" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > You need the files (or dirs) to have write/modify permissions for the > > > webserver user. > > > > > > > > > == > > > > > > Kind Regards, > > > > > > Kyle Williamson > > > Solent Educational Limited > > > > > > Tel: (023) 80 843189 Fax: (023) 80 848715 > > > http://www.solented.co.uk/ > > > > > > -Original Message- > > > From: Greg [mailto:[EMAIL PROTECTED]] > > > Sent: 16 February 2003 08:18 > > > To: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] PHP Scripts can't write to files > > > > > > > > > I'm using windows 2000 professional as my webserver, i have apache 2 and > >the > > > lastest version of php running now, when i access my webpage my > > > phpscripts are supposed to write to a couple files and create files when > > > needed, but they don't. Are there any type of permissions i have to > >setup > > > in windows?? > > > > > > -Greg > > > > > > pLANned Chaos > > > > > > > > > > >-- > >PHP Windows Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > _ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Disable FTP in Win32 Binary ?
Hi! Can someone provide guidance on how to disable FTP in the Win32 Binary version? (The IT Security team at my workplace does not permit FTP. We may not be able to use PHP unless FTP is disabled, but haven't figured out how to do it on the Win32 binary version.) Any assistance would be greatly appreciated. Thanks, Greg -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] First Timer
Can someone give me a short rundown of what I need to do to get started running php on my windows server? I'm a CF'er by trade, but I have a working set of code that I need to set up on a development server for migration to CF.
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
Well, as much as I like PHP, the article is accurate as far as running it on Windows is concerned. It's not really a problem to get it running as an ISAPI module (though the Windows install program wisely sets it up in CGI mode only). I've continually tried to get the ISAPI version to handle some moderately sophisticated & popular scripts (such as phpMyAdmin), and it has consistently failed (with "Access Violation" errors - at least as of ver 4.04 - I haven't tested 4.05 in ISAPI mode yet). It would be hard to consider at least the ISAPI module ready for prime time until these issues are resolved. As far as his database abstraction layer complaint - I would agree that there are a number of choices out there, and PHP's choice of using the native or abstraction layers should be considered a plus. Since I use HomeSite for PHP, CFM, & ASP coding, I'd also have to ignore his complaint about the Zend development environment. I've never used the debug facilities in ASP (Visual Studio) anyway, thought when I have used them, they've been nice. Finally, one language issue that is a real pet peeve of mine is case sensitive variable definitions. This is not a problem in either CFM or ASP. While it can be somewhat worked around by setting the PHP error level reporting to flag uninitialized variables, it is a deficiency that is long overdue to be corrected. -- Greg Brunet "Robert Klinkenberg" <[EMAIL PROTECTED]> wrote in message 41995094E2FED31197F6005004B2739F02655E@RED">news:41995094E2FED31197F6005004B2739F02655E@RED... > Nice to know that some well known pc magazine wants to test PHP. > Not so nice to know that people testing software for a major computer > magazine don't know how to read the manual. > > Installing as an ISAPI module is not THAT difficult (Or am I a genius?). At > least I don't know anyone having problems with that. And besides the > majority of people on the PHPWIN mailing list seem to be capable of > performing the steps in the readme file. -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
Tim: AAARRRGGH! They got it half-right with case insensitive functions and now they're going to mess up the part that's done right!?! It is quite annoying that they aren't consistent, but I was thankful that at least the functions were working "right". -- Greg "Tim Uckun" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > From what I hear it's about to get worse. Instead of making variable names > case insensitive they are going to make the function names case sensitive > too. Seems like they want to make the language more C like. > As for other stuff my pet peeve is the lack of consistency in the > functions. -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
Hi Theo: It's interesting - I look at it like: is there any reason why you'd want a StrPos(), Strpos(), etc. functions that do different things? Actually I certainly always try to type things the same way, but if I accidentally type Strpos instead of StrPos, I don't want to have that generate an error. I follow a variable/function naming (and case) convention in both PHP & other languages (all constants are UPPER_CASE for example). I agree that this can help people understand the code, but this convention works just as well in a case-insensitive language. Actually, one thing that I REALLY like about the newer VB development environment is that it will automatically correct/adjust the case of your variables/functions to match their definition. This allows me to define them according to my naming convention, but not have to worry about keeping them straight in the code - the tool handles it for me & that's as it should be. Since I use HomeSite for editing my PHP code (& ASP too), I don't get that benefit. -- Greg ""Brinkman, Theodore"" <[EMAIL PROTECTED]> wrote in message FE8510398BFE854F9653B5C32DBB652FD4F397@oh_daytn_xch01">news:FE8510398BFE854F9653B5C32DBB652FD4F397@oh_daytn_xch01... > > > Hey! Some of us out here LIKE case-sensitive languages. Is there really > any reason why you need to use STRPOS() in one place, StrPos() in another, > Strpos() in another, and strpos() in another? If you use any sort of naming > convention, the case-sensitivity actually HELPS people understand your code. > > Get used to it, even html is going to end up being case sensitive when xhtml > becomes the day-to-day standard. > > > > - Theo -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
I suppose you could look at it that way, but actually, since VB isn't case-sensitive, it wouldn't matter how I typed it as long as I spell it right. So it's not like a spell checker correcting my spelling. Rather, it's like a word processor applying the paragraph style for me instead of me having to set my indents & tab stops manually each time. Actually it does turn out to be both a productivity aid & verification tool. It's faster because I don't have to shift case as I type & it verifies, because if I see that it doesn't apply the proper case, I get immediate feedback that I've mistyped the variable/function name. It would catch it anyway when it compiles the code (just as C would catch an undefined variable), but I don't have to wait till the compile step to correct it - I can do it right there! There are a number of things that MS does wrong, but this part at least they've got very right. -- Greg "Bradley Miller" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok -- this too is not a flame, but just an opinion. I personally don't > exactly like that much hand holding. It's like the "auto-correct" features > in MS products. Yea, it's great for productivity and that . . . but what > reinforces the thought that you boo-boo'ed and didn't have to correct it? > If I spell receive as "recieve" every time I type something . . . it's > still not right in my mind . . . otherwise I wouldn't type it. When you > don't have the crutch of the computer handy -- are you going to look like a > complete moron with all the "learned" typos that MS corrected for you? > Tools should not instill bad practices and mask them for you. They are > tools -- just that . . . they should enable you to work easier, but they > shouldn't fix your work for you -- at least not automatically to where the > conditioned response is "typos are good as long as the computer figures it > out". > > -- Bradley Miller -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
Tom: You've got a lot of good points through the whole message, so I won't quote the whole thing. First, I know that my "complaints" are probably going to be taken as an ungrateful "us vs. them" attitude. Let me state up front that I think that what all of the PHP developers/contributors have done is pretty awesome & I'm thankful for their efforts. I want to make it clear that I am appreciative of what they've done. That said, I would still respectfully point out that the issues that have been raised can't just be given a pass & should be given consideration. Actually, I think that the installer works just fine & given that the ISAPI module is not, in my opinion, ready for prime time, it is appropriate that it installs the CGI module. Now one plus of PHP is that it's cross platform. There is obviously a perceived advantage to developing API specific versions such as the ISAPI module, and it's not unreasonable for PCMag to test it - especially since one would expect better performance from it than running in CGI mode. While I realize that PHP's heritage is not Windows & the ISAPI module is unlikely to take priority, it's still perfectly fair for PCMag's to ding them/us for ISAPI not running properly. The problem of case sensitivity is not one of naming conventions and not necessarily one of programming discipline. It is one of whether the tool (PHP) helps the developer write clean code. I seriously doubt if there are many (any?) developers out there who change the case of their variables/functions from one instance to the next. If it does appear differently, it would almost always be a typo. Without any warning that the variable is undefined (the default way that PHP is installed), this can be a key source of difficult to track errors. The two obvious ways to help eliminate this kind of bug are a warning/error for undefined variables (which is available within PHP - set error_reporting to 15 for those who don't know about this yet), and switching to case insensitive variables/functions. To take advantage of case sensitivity to hack around something the language is missing seems like a poor reason to implement it. If there is a significant enough need to have multiple constructors, then that aspect of the language should be addressed. Case sensitivity is not a nicety for professional developers - it's just something that makes the compiler/interpreter language parsing code easier to write. Making it case-insensitive would help eliminate errors which I would think that all developers, both professional & hobby, would welcome. -- Greg "Tom Mathews" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Seeing as how we're having a full fledged 'discussion' about this, I'm going to > throw my boot in from a programmers perspective. > I know that historically php was Personal Home Page, implying that it was > designed for use on personal web sites, not very sophisticated, no security > necesary ... just something that was free and easy to use for anyone wanting to > make their site a wee bit flasher. > That was ten years ago (or therabouts) and like all things it has evolved > massively away from the original concept. This evolution is thanks entirely to > the efforts of the unpaid developers that see something missing and write a new > module, or read lists like this and see what everyone else is having problems - > and write a new module to address this. > The US and THEM attitude that is becoming prevalent in sectors of this list is > not really helpful for anyone - remember that PHP is Open Source - if you want > something changing, raise the issue on php.net, or better still do it yourself. > If you want a better installer for Windows 9x (if you must use that as a > development environment) then write one. > Of course there will be niggles, generally caused by different people wanting > different things. I guess that that is why the boys at Zend are starting to > produce more commercially oriented versions of it, and part of this is to provide > what the industry expect as well as home users. Things like case sensitivity in > variable names and function names have been prevalent since the early days of all > the UNIX variants for workstation or PC. If you have a problem with this sort of > thing, then you should probably take a wee step back from coding for a few hours > and start a naming convention that you are happy with, and while you're at it (by > the way Tim, this is not intended as a dig at you, so please don't take it > personally!) just spend a little more time thinking about your programming > discipline in general, keep everything consistent - if there's a team of you > working on the same app, then ma
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
""Greg Brunet"" <[EMAIL PROTECTED]> wrote in message 9deuq7$j9k$[EMAIL PROTECTED]">news:9deuq7$j9k$[EMAIL PROTECTED]... > Tom: > > You've got a lot of good points through the whole message, so I won't quote > the whole thing. Oops - I did anyway - sorry 'bout that. -- Greg -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
Hi Cynic: "Cynic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm ++1 on making PHP 100% case-sensitive. I just hate to see MySQL_Connect(), > MYSQL_Connect(), mySQL_DB_Query(), etc., in other people's source. It makes it > hard to read. It also makes the namespace much much smaller. Actually, if they keep it case-insensitive, a tool to clean up the function calls to match the function declaration might be useful. Of course something like this couldn't be done if it's made case-sensitive. I would agree that it cuts the namespace in half (much, much smaller sounds like orders of magnitude). Still, the namespace is awfully big. Are you really going to want to have variables x and X - or MySQL_Connect and MySQL_connect? Can you honestly tell me that it will NOT be the cause of errors down the road - maybe not by you, but by someone else who has to maintain the code? > Failing to set your development environment for development isn't failure of > the language. It's a failure of the programmer. The facilities are there. > Of course, error_reporting E_ALL is a poor excuse for a debugger, but keep > in mind that you didn't have to pay a nickel for PHP. And the you have full > access to it's internals, so you can always write (or hire someone to do so) > an IDE that will catch your typos for you. > > BTW, if you set error_reporting to 15 in PHP 4, you won't get almost any > error messages - numeric value of E_ALL is 2047. Thanks for pointing out the E_ALL constant - that is the right way to go. Still, flagging undefined variables is only half the problem. > >To take advantage of case sensitivity to hack around something the language > >is missing seems like a poor reason to implement it. If there is a > >significant enough need to have multiple constructors, then that aspect of > >the language should be addressed. Case sensitivity is not a nicety for > >professional developers - it's just something that makes the > >compiler/interpreter language parsing code easier to write. > > Plus easier to read, and, believe or not, for some, it's easier to write. I think that there is a disconnect between the case-sensitive (CS) and case-insensitive (CI)proponents. I, and I expect most other case-insensitive advocates are not expecting or desiring to refer to the same variable/function with different case usages. We just want it to be treated the same in case it does get typed with a different case. I expect that my naming conventions are similar to yours - there already exists in the computer field some generally accepted practices that it makes sense to follow. I also adhere to the case of pre-defined functions, constants, & variables. Thus, I expect my code will look just like yours, so it will be just as easy (or hard) to read or write it as yours. The only difference is that I won't be able to have x & X refer to two different variables/functions which is confusing & leads to bugs. > >Making it > >case-insensitive would help eliminate errors which I would think that all > >developers, both professional & hobby, would welcome. > > No. Certainly not. I guess there's a lot of people used to VB in php-windows@, > and I'm not subscribed to php-general@ anymore, so I don't know about that, > but everyone who raised their voice on this topic on php-dev@ or php-qa@ has > been for making function names case-sensitive. I'm comparing it to VB only because many people are familiar with it. I've used quite a few languages over the years, and have read & used different coding styles & standards. The argument is not one based on VB familiarity, but rather cross-language best practices (for the using programmers). I'd like to hear why the folks on the other lists they want case-sensitive functions & if the arguments are from a user perspective or a tool developer one. BTW: I checked the other lists you mentioned & saw your message from this board. Thanks for letting the folks there know about some of our concerns. -- Greg -- 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-WIN] PHP and Sockets
Hello, Does any one have a php.exe for win32 that has the following The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure. I would like to us the socket features of php but I am not in a position to re-compile php.exe regards Greg O -- 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-WIN] ODBC to Access with Autonumber Field
Hi, Does anyone have an example of Inserting a record to a table in an Access database where one of the fields is an Autonumber field, and most importantly, retrieving the value of the newly inserted Autonumber field? I'm looking for the equivilant of mysql_insert_id() for ODBC. Thanks. Greg Sohl Cedar Rapids, IA -- 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-WIN] Web pages not being displayed
Hi All I could use some help. I have a problem with which I am not sure if its PHP4.3.2, MySQL4.0.13 or Apache2.0.46 all running on windows XP. The problem is I have a web page that shows a list of data (20 items) from MySQL database using PHP script and I get varying results when I view this page: page displays normally (very seldom). page displays header only. page displays nothing (most commonly). page displays a few entries then stops. page displays the page with some weird code being displayed beside the header (uppercase P and square box with a ? following). MySQL logs don't show any problem accessing the data. I have tried using the both Internet Explorer and Netscape, both browsers give similar problems. Netscape seems to more tolerant than Explorer. Continued refreshing will get the page to eventually display in Netscape but this does not happen with Explorer. Anyone have any ideas what might be my problem ? Thanks in Advance Greg Whitehead -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Web pages not being displayed
Hi All though i would share my knowledge with you i found after pulling the whole system apart and testing each module that the apache server 2.0.13 was causing my grief and by installing the apache 1.13 was able to solve the problem. thanks for the responses i got Greg Whitehead "Greg Whitehead" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All > > I could use some help. I have a problem with which I am not sure if its > PHP4.3.2, MySQL4.0.13 or Apache2.0.46 all running on windows XP. > The problem is I have a web page that shows a list of data (20 items) from > MySQL database using PHP script and I get varying results when I view this > page: > > page displays normally (very seldom). > page displays header only. > page displays nothing (most commonly). > page displays a few entries then stops. > page displays the page with some weird code being displayed beside the > header (uppercase P and square box with a ? following). > > MySQL logs don't show any problem accessing the data. > > I have tried using the both Internet Explorer and Netscape, both browsers > give similar problems. Netscape seems to more tolerant than Explorer. > Continued refreshing will get the page to eventually display in Netscape but > this does not happen with Explorer. > > Anyone have any ideas what might be my problem ? > > Thanks in Advance > > Greg Whitehead > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] RE Serverside includes
Hi all Could use some help in trying to get serverside includes under PHP going. Examples of some code would be great :) currently running apache1.3.27 and php4 on windows XP Thanks in advance Greg Whitehead
[PHP-WIN] Award Notice
STRITLY CONFIDENTIAL FROM:DR .GREG ossAI, DEAR SIR, I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH THE FEDERAL MINISTRY OF TRANSPORT LAGOS- NIGERIA. WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF NIGERIA,AND THE MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME OF THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE THIRTY-FIVE MILLION US DOLLARS IS AN ACCUMULATION OF OVER-INVOICED CONTRACTS WHICH HAS ALREADY BEEN EXECUTED AND COMMISSIONED. THIS AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE ACCOUNT WITH THE CENTRAL BANK OF NIGERIA(CBN). AS CIVIL SERVANTS WE CANNOT OPERATE A FOREIGN ACCOUNT BECAUSE THE CODE OF CONDUCT ACT IN NIGERIA MAKES IT AN OFFENCE FOR ANY PUBLIC OFFICER TO OPERATE FOREIGN ACCOUNT. IT IS AS A RESULT OF THIS THAT WE SOLICIT YOUR ASSISTANCE TO MAKE USE OF YOUR PRIVATE/ COMPANYS ACCOUNT TO TRANSFER THE SAID SUM. PLEASE NOTE THAT ALL MODALITIES HAS BEEN WORKED OUT FOR A SMOOTH AND HITCH-FREE TRANSFER OF THE US$35MILLION INTO YOUR ACCOUNT, WITHIN TEN WORKING DAYS OF GETTING YOUR POSITIVE RESPONSE AND CONSENT. YOU WOULD BE ENTITLED TO 20% OF THE $35,000,000:00 FOR PROVIDING US AN ACCOUNT, 75% WOULD COME TO US IN NIGERIA, AND THE REMAINING 5% WOULD BE USED TO OFFSET ALL LOCAL/FOREIGN EXPENDITURE ON THE FOLLOWING GROUNDS. (A) THAT WE ARE SATISFIED ON ALL GROUNDS THAT OUR SHARE OF THE FUND WOULD BE GIVEN TO US AFTER TRANSFERENCE. (B) THAT THIS TRANSACTION IS TREATED WITH UTMOST CONFIDENCE,SECRECY AND ABSOLUTE SINCERITY, WHICH IT DEMANDS. IF YOU ARE INTERESTED IN THE PROPOSAL, YOU CAN CONTACT ME THROUGH MY EMAIL ADDRESS:[EMAIL PROTECTED] TO ENABLE US DISCUSS FURTHER DETAILS ON THE TRANSACTION. YOU ARE ALSO REQUIRED TO PROVIDE A SECURED TELEPHONE AND FAX FOR THE PURPOSE OF THIS TRANSACTION. EXPECTING TO HEAR FROM YOU SOONEST YOURS FAITHFULLY, DR. Greg Ossai. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Undefinded Index on Mysql Result
I am using PHP4 + MySQL + PWS + Windows 98. We are trying to port over a web site to a laptop for remote use. However, when we execute a SQL query on a DB in which a filed of the record contains a NULL value, we get an error. The code is as follows: $GetQuery = mysql_query ("SELECT * FROM ApplicantsTbl WHERE App_ID = $qq"); $AppResult = mysql_fetch_array ($GetQuery); $AppDOB = $AppResult[AppDOB]; The query executes just fine, and PARTS of the $AppResult array get returned. However... We are experiencing TWO problems: First, unless we put quote marks around the index so it reads $AppResult['AppDOB'], we get an undefined constant. This doesn't happen on our Linux/Apache web server. Second, if the field AppDOB contains a NULL value, PHP barks that there is an undefined index. It appears that it won't even create the index. I would appreciate any help you could be. Greg -- 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-WIN] running local PHP files in a browser without installing a web server
Hello I'm wondering if it's possible to simply run PHP pages and make SQL queries on my computer using local files and creating a local database without having to install and run a web server. Basically, I'd like to be able to create the PHP pages and test them locally in a browser window on my computer before I upload them to a server, and not have to install and run a web server. Right now, when I run the files locally, the PHP code is written to the browser page rather than executed. Is there a way to install a minimum of PHP software components for local file testing? Thanks. Greg - Do you Yahoo!? vote.yahoo.com - Register online to vote today!
[PHP-WIN] php-startup unable to find library php_pdf.dll
Everytime I start apach I get this error Any suggestions -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: php-startup unable to find library php_pdf.dll
here is the error from the apache error log. PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_pdf.dll' - The specified module could not be found. in Unknown on line 0 "Greg Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Everytime I start apach I get this error > > Any suggestions -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] 4.3.10 upgrade problem: The specified procedure could not be found.
I'm upgrading my 4.3.3 installations to 4.3.10 (due to bugs per SANS recommendation). In the past, the upgrade process has been smooth - I simply copied the new files over the top of the old ones, updated php.ini. restarted IIS and I was done. When I performed the same procedure this time I get the following error message when I run my "helloworld.php" test script (and my phpBB site stopped working): "The specified procedure could not be found." Anybody have a clue as to what the problem is? When I reinstalled the 4.3.3 files into my install folder, php worked again. - greg e. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] cannot use $mysqli->set_charset (undefined method)
Hi Julien You will probably find that if you use the procedural coding rather than the object-oriented programming you code will work. So instead of using: $mysqli->set_charset("utf8"); use: mysqli_set_charset("utf8"); Hope this helps Greg Julien Ricard - Condenet wrote: Hello, here are the versions I'm using : Apache/2.0.54 (Win32) PHP/5.1.0RC2-dev The mysqli client api version is : 5.0.13-rc (as written on my phpinfo output) I can instantiate mysqli with $mysqli = new mysqli("localhost", "root", "---", "mysql"); But I get an error when I try to set the charset with : $mysqli->set_charset("utf8"); The error I get is : Fatal error: Call to undefined method mysqli::set_charset() in I don't know what to do. I tried to reinstall php with the latest builds, did the same thing with mysql... Any idea ? Thank you Julien -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Using the Mail function without an SMTP?
In theory, if you went to the trouble of finding the recipiants mx record/smtp server, you could use their server to send mail to them, just as a normal smtp server does. Even though you'd have to find the recip's info (their smtp server) on your own, almost any smtp class should be able to handle the actual mail sending. In short, the way SMTP works, with relay checks, is that the smtp servers have an open connection. This connection is for both sending mail to other smtp servers and receiving mail from its users and other smtp servers. As long as your email passes the relay checks (using a valid recip email), the remote smtp server should not be able to tell the difference between your script and any other basic smtp server trying to send mail to its user. Some servers may add other checks as well, like aol requires a reverse ip lookup to resolve to a name, but for the most part it should work fine. I have a working model of this in which I use to test clients smtp servers for open relay, in which I specify the smtp, etc. You would just have to figure out the smtp server for each recip on your own before processing the email. Of course, this wouldn't be using the actual mail() function, as you'd have written/borrowed your own. ""Daniel Anderson"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way I can use the Mail(); function without having to have an > SMTP server? > > PHPBB doesn't use it, I tried browsing the source code to see how they did > it... but they compressed their PHP files, so it is extremely difficult to > read. > > Does anyone know know how I may do the same please? > > Many thanks! > > Warmest Regards, >Dan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP 5.1.2 ISAPI and Mysql
ok folks, heres one for ya. IIS 6 (Win 2003 Ent) New installation (no possible reminants of an old php version, not that I haven't reverified) PHP 5.1.2 Mysql 5.0.18 PHP dir (c:\php) added to path. php.ini (from php.ini-dist) modified to for IIS (cgi.force_redirect = 0), php/ext dir (extension_dir=c:/php/ext) and mysql extension uncommented.(extension=php_mysql.dll) When I load the use the isapi for php and attempt to connect to the database, I get the message "cannot find mysql_connect." as if the extension wasn't loaded. I have verified that it is loaded via phpinfo. In addition, I've changed the ext directory to point to where it is not located to verify that it is using the php.ini, and of course I receive an error, as expected (cannot find php_mysql.dll). All other aspects of php seem to work fine based on limited tests, as you would expect. The most confusing part is that if I use the php-cgi in IIS instead of the isapi, everything works perfect. (no other changes made). I could understand that if this was my first php 5 setup or I was just being stupid, but I dont see any reason for this to be happening and need a fresh outlook if anyone has any suggestions. Now normally when setting up php on IIS, I just use the cgi and call it good, as in the past there were possible stability issues, but as I've moved the site to a new server, I was hoping the isapi would preform a little better. comments? tips? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Changing/checking php.ini, and yet still the 'wrong' include_path
Hello, I am doing some tidying, and so getting rid of the PHP that comes with MapServer MS4W package - and replacing with a clean install of PHP5, moving my root to the 'default' directory, etc, etc... On a Windows XP 'test server' running IIS 5.1 (getting a 'proof of concept' up for a client, 2003 + IIS 6 when they give me some $$ for a server! :-) (and IIS as that is the company 'standard'... :-) )) I got everything running OK with PHP installed as C:\php\ using the MSI installed and IIS CGI... All the PHP code seems to work just nicely that I have started using... except when I tried to get PEAR up and going... Ran the go-pear.bat as am using some of these packages in the web/PHP pages already written and in use... runs fine at the command line (list, install, upgrade, etc) BUT... When I go to a web page that worked fine previously, I get: Fatal error: require_once() [function.require <https://192.168.0.15/function.require> ]: Failed opening required 'numbers/Roman.php' (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\standard_format_items\bottom_navigation_bar.php on line 21 As you can see the include path is wrong... Looking at phpinfo.php, it and the extensions directory also show C:\php5\ instead of C:\php\ - C:\php\php.ini has the right include path - I checked that the Windows PATH was C:\php\ - I had a look in the registry as per the manual install notes at php.net and no sign of \php5\ (although the keys they mention are NOT there...) - did a couple of restarts, in case it needed to 'take' - checked C:\windows\pear.ini Where the heck is this erroneous C:\php5\ and .;C:\php5\pear values kept? And how do I change them? Thanks in advance... (and I would rather not change the directory name to C:\php5\, with all that entails! :-) ) -- Regards, GREG COCKS GIS Analyst V [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]> S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com http://www.stoller.com> 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell
[PHP-WIN] RE: [SUM] (sic) Changing/checking php.ini, and yet still the 'wrong' include_path
[RTFM! From the ‘install.txt’…] 15. How do I make the php.ini file available to PHP on windows? There are several ways of doing this. If you are using Apache, read their installation specific instructions (Apache 1, Apache 2), otherwise you must set the PHPRC environment variable: On Windows NT, 2000, XP and 2003: * Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003) * Go to the Advanced tab * Click on the 'Environment Variables' button * Look into the 'System variables' pane * Click on 'New' and enter 'PHPRC' as the variable name and the directory where php.ini is located as the variable value (e.g. C:\php) * Press OK and restart your computer Cheers: GREG COCKS gcocks |at| stoller.com ---- From: Greg Cocks Sent: Tuesday, January 08, 2008 12:34 PM To: 'php-windows@lists.php.net' Subject: Changing/checking php.ini, and yet still the 'wrong' include_path Hello, I am doing some tidying, and so getting rid of the PHP that comes with MapServer MS4W package – and replacing with a clean install of PHP5, moving my root to the ‘default’ directory, etc, etc… On a Windows XP ‘test server’ running IIS 5.1 (getting a ‘proof of concept’ up for a client, 2003 + IIS 6 when they give me some $$ for a server! ☺ (and IIS as that is the company ‘standard’… ☺ )) I got everything running OK with PHP installed as C:\php\ using the MSI installed and IIS CGI… All the PHP code seems to work just nicely that I have started using… except when I tried to get PEAR up and going… Ran the go-pear.bat as am using some of these packages in the web/PHP pages already written and in use… runs fine at the command line (list, install, upgrade, etc) BUT… When I go to a web page that worked fine previously, I get: Fatal error: require_once() [function.require]: Failed opening required 'numbers/Roman.php' (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\standard_format_items\bottom_navigation_bar.php on line 21 As you can see the include path is wrong… Looking at phpinfo.php, it and the extensions directory also show C:\php5\ instead of C:\php\ - C:\php\php.ini has the right include path - I checked that the Windows PATH was C:\php\ - I had a look in the registry as per the manual install notes at php.net and no sign of \php5\ (although the keys they mention are NOT there…) - did a couple of restarts, in case it needed to ‘take’ - checked C:\windows\pear.ini Where the heck is this erroneous C:\php5\ and .;C:\php5\pear values kept? And how do I change them? Thanks in advance… (and I would rather not change the directory name to C:\php5\, with all that entails! ☺ ) -- Regards, GREG COCKS GIS Analyst V gcocks |at| stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell
[PHP-WIN] Is there a hack or similar to get $_SERVER['PHP_SELF'] working under IIS?
Hello, *Is there a hack (?), a workaround or some alternative to get $_SERVER['PHP_SELF'] working under IIS?* I am new(ish) to PHP, IIS and web pages as a whole (!) I was hoping to get the 'breadcrumbs' feature working... And for a variety of reasons I am using IIS (currently v5.1 on some test hardware running XP Pro, soon to be 6.x (?) on Server '03 when the client gets me the dosh...) Using PHP 5.2.5, if that matters... Note that I am still using this stuff in a 'black box'-ish way, so feel free to talk down to me! GRIN For instance, I tried to use the approach at http://tinyurl.com/2zb4ck before I gained enough knowledge to realise this solves a different (but similar) - it seems - problem... Thanks in advance... -- Regards, GREG COCKS GIS Analyst V gcocks |at| stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] RE: [IGNORE] Is there a hack or similar to get $_SERVER['PHP_SELF'] working under IIS?
TOO QUICK ON THE EMAIL - PLEASE IGNORE - APOLOGIES (cheers Zeph) Cheers: GREG COCKS Gcocks |at| stoller.com -Original Message- From: Greg Cocks Sent: Thursday, January 10, 2008 11:04 PM To: 'php-windows@lists.php.net' Subject: Is there a hack or similar to get $_SERVER['PHP_SELF'] working under IIS? Hello, *Is there a hack (?), a workaround or some alternative to get $_SERVER['PHP_SELF'] working under IIS?* I am new(ish) to PHP, IIS and web pages as a whole (!) I was hoping to get the 'breadcrumbs' feature working... And for a variety of reasons I am using IIS (currently v5.1 on some test hardware running XP Pro, soon to be 6.x (?) on Server '03 when the client gets me the dosh...) Using PHP 5.2.5, if that matters... Note that I am still using this stuff in a 'black box'-ish way, so feel free to talk down to me! GRIN For instance, I tried to use the approach at http://tinyurl.com/2zb4ck before I gained enough knowledge to realise this solves a different (but similar) - it seems - problem... Thanks in advance... -- Regards, GREG COCKS GIS Analyst V gcocks |at| stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site
Hello, I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site. IT set up the site via SSL and using active directory's users (i.e., IIS and Windoze...) for the logon. Every staff member can logon with their own Windoze network credentials, which is pretty slick as I let the network admin take care of permissions, passwords, etc through Windows Server. Web users with limited permissions have and can be added by IT as well, with my input on permission levels. Anyway... the user has the ability to write some stuff back to a PostgreSQL database and I would like to keep track of who is logged on that session so I can append their username into the "change log" of the database - *but how do I get the username?*" (Note that I could potentially see myself integrating (sic) Windows User Permissions for each user to differentiate their 'allowable' web page functionality - but that is in the medium to far future I think...) I have been exploring LDAP - but it seems like a hammer-and-walnut approach, at least to my untrained eye. I started looking at $_SESSION as well... that is enough to do your head in if you are not used to it, like I am not! Any suggestions gratefully received! Cheers -- Regards, GREG COCKS GIS Analyst V Gcocks|at|stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site
Gustav, *Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!* If you or anyone feels so inclined: $logged = $_SERVER["AUTH_USER"]; print $logged.""; list($logged_on_userdomain,$logged_on_username) = split("\\",$logged); print $logged_on_username.""; It prints the $logged just fine as "domain\user", no speech marks of course. However the spilt won't work, I guess because of the double back slash - gives the error: Warning: split() [function.split]: REG_EESCAPE in ... Told you I was a newbie! :-) Regards, GREG COCKS gcocks|at|stoller.com -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 12:20 AM To: Greg Cocks; 'php-windows@lists.php.net' Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site Hi! It depends on version of PHP, but try with... $username = $_SERVER["AUTH_USER"] $username = $_SERVER["PHP_AUTH_USER"] Se more in the server-varriables: http://se2.php.net/reserved.variables Best regards /Gustav Wiberg -Original Message- From: Greg Cocks [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 5:50 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site Hello, I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) to get the name of the user logged on to 'my' https:// site. IT set up the site via SSL and using active directory's users (i.e., IIS and Windoze...) for the logon. Every staff member can logon with their own Windoze network credentials, which is pretty slick as I let the network admin take care of permissions, passwords, etc through Windows Server. Web users with limited permissions have and can be added by IT as well, with my input on permission levels. Anyway... the user has the ability to write some stuff back to a PostgreSQL database and I would like to keep track of who is logged on that session so I can append their username into the "change log" of the database - *but how do I get the username?*" (Note that I could potentially see myself integrating (sic) Windows User Permissions for each user to differentiate their 'allowable' web page functionality - but that is in the medium to far future I think...) I have been exploring LDAP - but it seems like a hammer-and-walnut approach, at least to my untrained eye. I started looking at $_SESSION as well... that is enough to do your head in if you are not used to it, like I am not! Any suggestions gratefully received! Cheers -- Regards, GREG COCKS GIS Analyst V Gcocks|at|stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] How do IF to redirect to a new page on my site?
Hello, I have a page where some users set some parameters from pulldowns on a page (in a form.) Based on the user selection, the code builds some SQL (i.e., building the WHERE part of the SQL string), and grabs some data out of a PostgreSQL, and returns it to an array, $ary_query_result Then: if(isset($ary_query_result)){ ... serialize array to text file few other tasks ['jump' to results page] ... } else { ... tell user to adjust parameters [stay on page] ... } I have built a results page that unserializes the results array above, displays some of them in a table, and allows the user to chart, save all the data columns & rows, etc - all works fine. HERE IS THE PROBLEM: how do I ['jump' to results page] This would seem such a simple thing to do... i.e., IF (condition) go to new url ELSE stay at this URL - I tried: (i) print "
[PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.
Hello, I am seeking a function, class or other means to save the current PHP page as an HTML file on the server. The user, via a button, could then 'download' this page much like if they had gone to their "File... Save Page As.." menu to save it locally. This is for a (dynamic) page that I have written in PHP that formats and presents some query results - and the results presented vary based on the user's selection of parameters on an earlier page. Any suggestions? This 'one click' menu is for users "resistant" to learning how to do the "File... Save Page As..." method... Thanks in advance! -- Regards, GREG COCKS GIS Analyst V gcocks | at | stoller.com mailto:[EMAIL PROTECTED]> S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com http://www.stoller.com/> 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell
RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.
Thanks so much to all for the replies... Michael's method works work for a static page... but as the (*.php) page gets data from a PostgreSQL database to display it "breaks", not unreasonably, when it is saved using this method as a *.html. Fun to learn new stuff... I am off to try and learn how I can make this work, with the leads provided...:-) In the *meantime*, under the "Save As HTML" icon I have put some text letting the user know about File... Save Page As... (or ... Save As...) I am going to look at maybe using this method with a PDF generation method to 'make' the page as a PDF for them to download... Thanks again... what a resource... Regards, GREG COCKS gcocks | at | stoller.com <mailto:[EMAIL PROTECTED]> From: Michael Southworth [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 6:40 PM To: Greg Cocks Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server. As a quick answer, I think the easiest way is to have a link reload the page, with a flag to set the content disposition header. See: http://us3.php.net/header Example #1 It should be fairly straightforward from there. If I do recall, there may be some quirks with IE, a quick google should bring up any workarounds. If you cannot allow a refresh, the solution may be far more complicated, using the document object model in javascript, or php output control. In that case, I would ask your users to just use the Save-as function instead. HTH, -Michael On Thu, Mar 6, 2008 at 5:21 PM, Greg Cocks <[EMAIL PROTECTED]> wrote: Hello, I am seeking a function, class or other means to save the current PHP page as an HTML file on the server. The user, via a button, could then 'download' this page much like if they had gone to their "File... Save Page As.." menu to save it locally. This is for a (dynamic) page that I have written in PHP that formats and presents some query results - and the results presented vary based on the user's selection of parameters on an earlier page. Any suggestions? This 'one click' menu is for users "resistant" to learning how to do the "File... Save Page As..." method... Thanks in advance! -- Regards, GREG COCKS GIS Analyst V gcocks | at | stoller.com mailto:[EMAIL PROTECTED]> S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com http://www.stoller.com/> 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell
RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.
Cheers TG, The query page is a form that gather the user selections, queries a PostgreSQL database using them, and returns some analytical data as an array which I serialise into a text file. The results page, the one I want to let the user save as an HTML 'file' is a PHP page that unserialises the data out of the array from the text file, and displays it in some formatted tables, one sub-table per data row (1 row to many hundreds) - as well as some SESSION variables, etc of the SQL string used to get the data (as a user reference) and the logged on user name & date, a list of some reference data (what the qualifers, etc mean) pulled directly out of the database, etc, etc. Using the File... Save Page As... method in the browser works well enough to save the HTML as a file/directory pair (although if you open separately, it looses track of the CSS file of course...) The 'breakage' is that because the results page file needs to be a PHP to unserialise the array, get the reference data from the database, etc, etc if you save it as an HTML page using the header / disposition method it displays all the pure HTML just fine of course - but gags on the PHP, thinking it is HTML... I know I have explained this simplistic and have a lot to learn about all this... the newbie toe-dipping phenomena! :-) Regards, GREG COCKS Gcocks | at | stoller.com -Original Message- From: TG [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 9:59 PM To: Greg Cocks; php-windows@lists.php.net Subject: RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server. If by 'breaks' you mean that it's not saving as a .HTML file, you should be able to set the filename in the header when you force the download. If that's not it, if you care to elaborate, maybe we can give a better suggestion. -TG - Original Message - From: "Greg Cocks" <[EMAIL PROTECTED]> To: Date: Thu, 6 Mar 2008 20:40:36 -0700 Subject: RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server. > Thanks so much to all for the replies... > > > Michael's method works work for a static page... but as the (*.php) page > gets data from a PostgreSQL database to display it "breaks", not > unreasonably, when it is saved using this method as a *.html. > > > Fun to learn new stuff... I am off to try and learn how I can make this > work, with the leads provided...:-) > > > In the *meantime*, under the "Save As HTML" icon I have put some text > letting the user know about File... Save Page As... (or ... Save As...) > > > I am going to look at maybe using this method with a PDF generation > method to 'make' the page as a PDF for them to download... > > > Thanks again... what a resource... > > Regards, > > GREG COCKS > > gcocks | at | stoller.com <mailto:[EMAIL PROTECTED]> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php