[PHP-WIN] Problem with Forms and PHP exporting to text file
I am having a problem figuring out how to have a form post all of the data entered into a regular text file. This is how I would like the text file to look after the data is submitted to the file: --- FirstName: blah MiddleName: LastName:blash Email: [EMAIL PROTECTED] Street: 85 blah City:blah State: ca Zip: 5 Country: USA -- first I would like the PHP file to read the existing file and then place the new data on top of the old info. I am new to PHP coding, but I did get it to post to a text file but couldn't get it to lay into the format above. it just was comma delimited on one really really long line. If you can help me figure out how to write a text file in this format I would really appreciate it. oh yeah... I am running a Microsoft Advance server with the IIS webserver running. Thanks for your help in advance. craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] .php opening as text document
Hi I'm trying to set up hlstats which users hlstats.php but every time I try run the file in IE the .php file opens as a text file and displays all the code. I'm using Win 98 Internet Explorer 5.5 -- 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] PHP ide
Dan Zarrella wrote: > > I'm curious to see everyone's opion on php-ide's/editors, which one is the > best, most complete, easiest, and why, personally i have huge demands i > place on my editor (html-kit) and i'm looking for one (free) that can meet > my demands for a more php-centric and complete Development Environment. -dan PHPEdit? I use it on a daily basis for projects (30+ PHP scripts all loaded at the same time). It offers syntax highlighting, brace/bracket/quote completion, function auto-completion and a debugger. It is early in the development cycle, but it more than suits my needs. http://www.phpedit.com/ YMMV.. -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Unable to load dynamic library
Make sure the \php\dlls directory is in your PATH. barry wrote: > > Hi, > > I am new to php and I am trying to get it work on my w2k. After I've > enabled 2 extensions, php_gettext.dll and php_imap.dll, in the php.ini, I > always get the error PHP Warning: Unable to load dynamic library > 'c:/php/php_gettext.dll' I am using the exe version of php. I have the > following queries, > > - Should I use c:\ or c:/ in php.ini? > - Is isapi version of php work on w2k? I can't get it work! > - How do I solve the library problem? > > Thank you very much. > Barry > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Unable to load dynamic library
barry wrote: > > be loaded sucessufully. The error only seems to happend for php_gettext.dll > only. > PHP Warning: Unable to load dynamic library > 'c:/php/extensions/gnu_gettext.dll' - §ä¤£¨ì«ü©wªº¼Ò²Õ¡C in Unknown on line > 0 It is entirely possible that this extension was written for a version of PHP prior to 4.1.0 and the net results of that is... It won't work, unless you can find a newer version of the DLL that was written for PHP 4.1.0 or greater. -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: confirm box
On your submit button put the following: Hope that helps, Craig "Davy Obdam" <[EMAIL PROTECTED]> wrote in message 001a01c26f9e$a1c78a80$960a@davy">news:001a01c26f9e$a1c78a80$960a@davy... > Hi people, > > Maybe a bit off-topic, but i thought lets ask anyway. I have a guestbook > admin page were i can delete multiple items from the database using > checkboxes. So when i click on the Submit button i would like a > javascript confirm box coming up. I have done that, but it deletes the > item(s) anyway, also if i click on cancel. > > This is my javascript code in the head of the document: > > > <!-- > function ConfirmDelete() > { > input_box=confirm("Are you sure that you want to delete the > selected items?"); > if (input_box!=true) > { > return false; > } > else > { > return true; > } > } > //--> > > > This is what i use in my PHP code: > > //Guestbook admin page > echo " > "; > //The rest of my form > echo " > > "; > ?> > > //Delete items from guestbook > if(isSet($submit)) > { > //Delete items > } > ?> > > Any help is appreciated, thanks for your time, > > Best regards, > > Davy Obdam, > mailto:[EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP IIS Iclude
I have PHP4 running on IIS 4/NT 4.0, for the most part everythign seems ok, until i try to use an include statment. This is a form that is suppose to call up missing.inc when a required field is blank. Right now it doesn't display the include file it just refreshes the index.php file. snipit of code from index.php Oops!The $missing field was not filled out.\n"); echo("Please go back to the form and fill out the $missing field. Thank you.\n"); ?> I am a total newb...this was not writen by me but i am the one responsible for getting php working properly on this nt server...any help would be greatly appreciated.
[PHP-WIN] PHP IIS 5.0 Include files and baldness
I'm ripping my hair out, mainly because my customer is really getting antsy for this to work. He has a credit app online running on our NT server under IIS 5.0 It calls and include file (missing.inc) when it finds an empty field once the form is submitted. The missing.inc is suppose to say sorry but you left $missing blank. Instead of doing that, it just reloads the credit app. Any help at all would be much appreciated. This is the include file (missing.inc) in it's entirety Oops!The $missing field was not filled out.\n"); echo("Please go back to the form and fill out the $missing field. Thank you.\n"); ?> I did set the include_path in my php.ini I've set it to .\inc;c:\php\includes It deffinatly seems to be accesing the missing.inc file. If i change the permisions on missing.inc i can get it to ask me for a password everytime i submit the form, that's how i know it's tryign to read the file, it just doesn't seem to do anythign with it.
Re: [PHP-WIN] STMP
Nice and simple.. [mail function] SMTP= mail.smtp.server;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only Manesh wrote: > > Can somoen tell me EXACTLY how to set up a STMP server? i am IIS5 on win2k > > and i need to now exactly what i put it my PHP.ini > > -- > 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] -- Craig Morrison http://www.2cah.com/ EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Mirrors: http://www.ezmts.org/mirrors.php Anonymous FTP at ftp://2cah.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]
[PHP-WIN] PHP4.05/IBMHTTP/W2K/dlls problem
Hello, I've installed IBM HTTP Server 1.3.12.2 and it was working fine. I have now installed php 4.05 moved php.ini to the windows dir, the php4tsdll to the system32 dir. When I attempt to start the server is get the following error. The procedure entry point add_assoc_string_ex could not be located in the dynamic link library php4ts.dll Any ideas what this is all about? Cheers, Craig -- 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] Hey Admin! (was: [PHP-WIN] Spell checking w. PHP in Windows)
Is there an admin on this list? While a little latitude in off-topic postings is tolerable, this has gone too far. Wake up, please.. John Catron wrote: > > Gee sunker, do you think that I am stupid enough to > download an attachment with a virus? > --- sunker <[EMAIL PROTECTED]> wrote: > > 'John Catron' wrote: > > > > - My apologies to all offended. > > - > > - --- "Jesse S. Williams" <[EMAIL PROTECTED]> wrote: > > - > Slow down there Tex! > > - > > > - > People are messing with it so they can LEARN. Everyo ...' > > > > > > > Take a look to the attachment. > > > > > > > > > ATTACHMENT part 2 application/octet-stream name=s3msong.MP3.pif -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] Paths, Windows and PHP
To solve the questions about where to copy your PHP dll directory files I have put together a simple set of instructions that will help get things so that Windows can find them *without* you having to copy them anywhere. Please note, you still have to tell PHP in php.ini where the extension directory is. This document only covers those files located in the "dll" directory. The following instructions assume the path: C:\PHP\dll As the path to PHP's dll directory, please substitute your path below. Okie, let's get on with it: NT/2000 PATH Environment Start->Settings->Control Panel->System->Advanced ->Environment Variables There will be a list that contains all the environment variables for the current user. Scroll the list until you find the "path" entry. Click on it to highlite it. At this point do the following: 1) Click "Edit..." 2) Click on the Variable Value edit control. 3) Make sure you move the flashing cursor to the end of the current setting. 4) Enter the path to your PHP "DLL" directory. E.G: "C:\PHP\dll" with a semi-colon ";" at the end. 5) Click "Ok" 6) Click "Ok" again 7) Click "Ok" one more time. The changes take affect immediately. You will have to close and reopen any command prompts though. Windows 9x/ME PATH Environment You are going to have to edit your AUTOEXEC.BAT, it will be located in the root directory of your boot drive. In a default installation it will be: C:\AUTOEXEC.BAT Hang on, here we go: Start->Run... 1) Type: notepad c:\autoexec.bat 2) Click "Ok" If notepad asks to create the file, click "Yes". 3) Add the following line to the *end* of the file: PATH=%PATH%;C:\PHP\dll; 4) Click File->Save 5) Click File->Exit 6) Restart your system. -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] Paths, Windows and PHP
Ideally yes. But changing the PATH envinroment variable is a much cleaner solution than copying files all over the place. Phil Driscoll wrote: > > Surely the ideal solution to this problem is to have php.exe php4ts.dll and > all the other dlls in the same directory (e.g. c:\php) then there's no > messing around with paths? > > Cheers > -- > Phil Driscoll -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] Paths, Windows and PHP
The obvious solution to the problem is to have the installer take care of this in the first place. I would be _more_ than happy to help in this regard. I've spent a little time doing this sort of thing and would be more than happy to help out. What we need to remember is the point of view of the developer and the end-user. The developer wants to keep the projects seperate so he/she can have an easier time debugging. Round up the troops, figure out the best method for both sides. I'd be more than happy to write an installer that keeps us all in business. Deal? Angie Tollerson wrote: > > hehe...I think that was my original advice in the whole long email discussion that >stemmed this. (check Image Functions thread). The most straight forward and simple >solution for everyone is to just put all those files together in one place. But if >others want to go the more advanced route(which keeps dll's neatly in their own >folder), I think Craig was just offering how to for anyone wondering. > > >>> Phil Driscoll <[EMAIL PROTECTED]> 08/21/01 05:05AM >>> > Surely the ideal solution to this problem is to have php.exe php4ts.dll and > all the other dlls in the same directory (e.g. c:\php) then there's no > messing around with paths? -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] IP Address
My apologies if this is a faq.. Will PHP allow me to get the remote IP of a connection? -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] [Fwd: IIS Installation]
Bill and I have been having numerous problems getting IIS and PHP to cooperate with each other. NT4 server, PHP 4.0.6, IIS 4. 'install.txt' has been followed to the letter. Xitami 2.4d7 is installed on the servers also for testing purposes, PHP works without a hitch. Suggestions? Original Message Date: Mon, 24 Sep 2001 17:51:24 -0400 From: "William Warner, Jr." <[EMAIL PROTECTED]> To: "Craig Morrison" <[EMAIL PROTECTED]> Btw, I am almost positively 100% certain the nocc with IIS issue has to do with NT security on files/folders.. I installed php & nocc on 's server following your instructions to the T, only changing the settings for their domain & drives. Guess what? It works! Well, kinda.. Get this.. I open the webmail/index.php file and get the login screen (which is more than I ever could do on my server) and even login and see my inbox as long as I don't have any messages! php.exe locks up.. I close my browser after awhile & check & there's a bunch of php.exe in there using 0%.. I end-task them & there are a bunch of 0k session files in the temp folder.. I even have full rights to c:\temp c:\php & the webmail folder for everyone & their web user.. Too weird! Now, get this. I rename the php folder & I get 'error 404 file not found' which is what is supposed to happen. I rename the folder back & remove rights for everyone & the web user on the php folder. Now, when I connect to the webmail folder I get a pop-up prompting me for a username & password! (Which makes sense since the web user can't read the files as it doesn't have rights) so I put in an admin user name & pass & guess what? The webmail works!! Even when there are messages! So it's GOTTA be an NT security setting on some folder or file as when I'm 'logged in' as admin it works but it doesn't when the web user is used, even if I set rights to 'Full control' for all I listed above.. Real weird.. I gotta be missing something.. Cya, Bill-E -- 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] [Fwd: IIS Installation]
It's answers like this that persuade people to find another solution (read--product) to their problems. If you don't have anything useful to say, please keep your mouth shut. Corporations and businesses make decisions that admins can not over-ride. This is a case where IIS is being thrust upon us. Now does anyone have anything useful to add to the discussion? Mark wrote: > > >Suggestions? > > I suggest you use Apache. how many worms later will it be before you > make the switch? -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org -- 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] Adding *another* person to an e-mail *to:* address
See: http://www.php.net/manual/en/function.mail.php Pay particular attention to example #4. Ross Fleming wrote: > > I think you can send it as an extra header... > > $mailheaders.="To: $otheremail\n"; > > I can't comment by saying used PHP to do this, but if you understand the > SMTP protocol then you'll know it should work. > > Ross > > -Original Message- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: 19 November 2001 22:42 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:* > address > > Ross, > As much I would like to say it works...no dice. > > I tried: > $to.=";[EMAIL PROTECTED]"; (semicolon) > > $to.=",[EMAIL PROTECTED]"; (comma) > > $to.="[EMAIL PROTECTED]".","; > ended the first e-mail string with quotes then added a dot then put a comma > in between quotes. Then ended it with a semicolon. > > Any other suggestions? -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Adding *another* person to an e-mail *to:* address
Ross Fleming wrote: > > Actually yes. I was just looking there myself... > /* recipients */ > $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma The concatenation operator "." is in use here. Is there a previous $recipient that this can be added to? > $recipient .= "Kelly <[EMAIL PROTECTED]>" . ", "; > $recipient .= "[EMAIL PROTECTED]"; -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Modifying Windows INI profiles
I've spent some time searching through www.php.net and the PHP Knowledge base for some information regarding modifying (server-side) Windows INI profiles. Evidently I am using the wrong search terms because I can't find any information relating to this. What I want to do is write a set of PHP scripts to administrate my email server remotely via the web. My email server relies heavily on INI profiles. Are there any extensions available to do this? -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Re: Modifying Windows INI profiles
LaserJetter wrote: > > There may be extensions available which come with your email server but I Nope, not that relate to PHP, I wrote the email server.. > would just use fopen and file() to modify .ini settings I was hoping for a more elegant solution than this. There are per user settings that I want to make available to my email users, reading/writing/modifying an entire INI file on a per user basis is not an elegant solution. Surely someone out there has written an extension DLL for Windows that provides wrappers around WritePrivateProfileString, et al. If not, I'll probably end up writing the extension myself. I just didn't want to have to re-invent the wheel if someone else had already done it. -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Re: Modifying Windows INI profiles
"Svensson, B.A.T. (HKG)" wrote: > > >I just didn't want to have to re-invent the > >wheel if someone else had already done it. > > That was an unusually stand point. Are you really a programmer?! :) Uh, yes, I am. I have been writing code for over 15 years now using various development platforms (MASM, TASM, BCC and MSVC++). :-) -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Re: Modifying Windows INI profiles
Craig Morrison wrote: > > Surely someone out there has written an extension DLL for Windows that > provides wrappers around WritePrivateProfileString, et al. If not, I'll > probably end up writing the extension myself. With a little help from Markus and the fine people on PHP-DEV, I did write the extension. :-) It works with PHP 4.1.0+ and is restricted to Windows 9x/ME/NT/2000/XP (naturally). A binary distribution is available at: http://www.2cah.com/phpwini.zip The source code: http://www.2cah.com/phpwinisrc.zip See the readme in the binary distribution for usage information. -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] Problem...
It looks like Zack has a module loaded that hasn't been compiled to work with PHP 4.1.0.. There was a structure change made between 4.0.6 and 4.1.0 that will make extension modules incompatible between the two versions.. > > > > Warning: Unknown persistent list entry type in module shutdown (11) in > > Unknown on line 0 -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. -- 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] creating a php extension
Petr Krebs wrote: > > maybe it's a stupid question, but can anybody tell me where to get some > information about writing win32 php extension DLL? i've been searching > through the official web pages but i haven't manage to get anything. First thing you need to do is go here: http://www.php.net/manual/en/install.windows.php Read the page very carefully, it tells you everything you need to get a build environment running with MSVC and CygWin. After you get that done and can successfully build PHP, contact me off the list and I'll send you a simple extension that should serve as a good example. -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- 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 JavaScript
Say I do this in JavaScript: var name = prompt("Please enter your name:", "Name"); How do I access 'name' in PHP or can I? -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- 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] PHP and JavaScript
I figured out how to do what I wanted to do. document.write the var to a hidden field in a form.. Thanks to everyone who sent messages off the list! :-) Craig Morrison wrote: > > Say I do this in JavaScript: > > var name = prompt("Please enter your name:", "Name"); > > How do I access 'name' in PHP or can I? -- Craig Morrison http://www.mtsprofessional.com/ A Win32 Email server that works for you. -- 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] mail() function not working
I have a new PHP install on Win2k. Everything has worked except the mail() function. Nothing shows up in my event log. I have a mail server installed on the same machine. I have the SMTP=localhost set in my php.ini file. The mail server works fine, has been for many months. I have logging turned on in php.ini, but when I run phpinfo() it says it's turned off. The path to the php.ini file returned from phpinfo() is the same one I'm editing. After any change to the .ini file I always restart IIS. Can someone point me in the right direction PLEASE. ==== Rad Craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] mail() function not working
I have relaying turned on, also SMTP Authentication. When I'm testing I turn the Authentication off. I have no way in the ArgoSoft mail server of specifying accepted ip's for relaying. Email still does not work. I have tried what you said about the logging. I can comment out the error_log=syslog line, uncomment the line to write it to a file, restart IIS, says logging is turned off, no file is created. It's like IIS is caching this php.ini file, changes I make don't show up when I do phpinfo(). Rad... > -Original Message- > From: Stephen Edmonds [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 12:22 PM > To: [EMAIL PROTECTED] > Cc: PHP Windows Helplist > Subject: Re: [PHP-WIN] mail() function not working > > > To fix your mail server: > > You need to enable mail relaying on your mail server. HOWEVER, it is VERY > VERY important that ONLY the IP address of 127.0.0.1 is allowed to relay > mail. If any IP can use the mail relay service, then anyone can use your > mail server to send out spam annomously. Once that is done, you should be > able to send email without any problems. If you continue to have > a problem, > check your mail server logs as that will show the connection from php > attempting to send the email. > > As for your logging problem, have you set a file path for logging to? Look > for > '; Log errors to specified file. > ; error_log = ' > and put in a valid file name/directory where you want your logs > made. (e.g.: > C:\Webserver\PHP\errors.txt - the full path is needed! ). Then, make sure > you have made the errors.txt file in the directory where the setting is > pointing. Remember also to remove the ; from infront of error_log =, > otherwise the line won't be processed! > > Stephen > > - Original Message - > From: "Rad Craig" <[EMAIL PROTECTED]> > To: "PHP Windows" <[EMAIL PROTECTED]> > Sent: Monday, January 06, 2003 5:38 PM > Subject: [PHP-WIN] mail() function not working > > > > I have a new PHP install on Win2k. Everything has worked except the > mail() > > function. Nothing shows up in my event log. > > > > I have a mail server installed on the same machine. I have the > > SMTP=localhost set in my php.ini file. The mail server works fine, has > been > > for many months. > > > > I have logging turned on in php.ini, but when I run phpinfo() > it says it's > > turned off. The path to the php.ini file returned from phpinfo() is the > > same one I'm editing. > > > > After any change to the .ini file I always restart IIS. > > > > Can someone point me in the right direction PLEASE. > > > > Rad Craig > > > > > > > > -- > > 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 Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] php.ini cached?
Does php.ini get cached by Win2k or IIS 5? I make changes to it, restart IIS, run phpinfo() and none of the stuff I changed is different. Rad Craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] php.ini cached?
PHP: 4.3.0 I click Stop, then Click Start. php.ini is in the C:\WINNT directory (C:\WIN_NT actually since this is where my windows runs from). > -Original Message- > From: Miha Nedok [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 3:35 PM > To: Rad Craig > Cc: PHP Windows > Subject: Re: [PHP-WIN] php.ini cached? > > > > How do you restart it ? Just click on stop/start or you actually click > restart server ? And which version of PHP are you using and tell the > location of your php.ini . > > > -Mike > > > On Mon, 6 Jan 2003, Rad Craig wrote: > > > Date: Mon, 6 Jan 2003 15:31:43 -0600 > > From: Rad Craig <[EMAIL PROTECTED]> > > To: PHP Windows <[EMAIL PROTECTED]> > > Subject: [PHP-WIN] php.ini cached? > > > > Does php.ini get cached by Win2k or IIS 5? I make changes to > it, restart > > IIS, run phpinfo() and none of the stuff I changed is different. > > > > > > > > Rad Craig > > > > > > > > -- > > 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] test_smtp.php
I'm trying to implement this smtp_email stuff. I downloaded everything on these pages: DNS Resolver: http://www.phpclasses.org/browse.html/file/1910.html MIME: http://www.phpclasses.org/browse.html/package/9.html SMTP: http://www.phpclasses.org/browse.html/package/14 I'm sorry, but I'm a newb, so I have no idea what I'm doing with PHP. I created a \includes directory under my main PHP directory and my include path in the .ini file points there. I copied all of these files there except for the test_*.* files. I host my own mail server on the same machine. I then loaded up the file test_smtp.php in an editor and started filling in some blanks, like: $to - changed this to my email address $smtp->user - changed this to my email username $smtp->realm - changed this to my domain name $smtp->password - changed this to my email password I left everything else alone except changing $smtp->debug=1 after it didn't work the first time. I dont' receive any email, nor any output in the browser when I run that test page. Looks like it should give me SOME sort of feedback whether it succeeds or fails at the bottom, apparently it's never getting that far. I have php.ini configured to write it's error_log to a file, but it's always empty. I'm guessing I need to put in my DNS server names and ip's, but I have no idea where or how to do this. I have two that I could put in if I knew where. I haven't done anything to any of the other files, so if there is something else I need to configure, please tell me what and in which file. Sorry to be such a PITA, but I REALLY need to get this thing working. Thanks in advance. ==== Rad Craig Rad Craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Found a problem/fix with php.ini?
I got all the smtp_email stuff, trying to get my mail() function working. Well I got a test file, somone told me how to test it from a DOS box (thanks!), ran it and it reported a parsing error in php.ini on line 65. Now, I used the php.ini.recommended file when I setup/installed my PHP 4.3.0. In that file on line 65 is this line: error_reporting = E_ALL[Code Cleanliness, Security(?)] It's at the top, kind of a bunch of comments explaining stuff. When I looked at it the only thing I saw different between it and the others was the (?) in the little comment. I don't know squat about PHP, but I think that was causing all of my problems, PHP would read down to that point and then stop. I changed it to: error_reporting = E_ALL ;[Code Cleanliness, Security(?)] Wrapped the comment to the next line and commented the comment out. Wa-la, now my email works...without even using the SMTP stuff...it works also however. My error_log gets written to disk now...all my problems caused from this. Just glad it's fixed and hope it helps someone else solve their problems. ==== Rad Craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Configuration of Apache Server
Problem: When trying to open a test.php file containing a simple test php script, windows prompts for program to open file with. Apache is running from the console as opposed to a service. *PHP Installation* PHP version 4.3.0 installed from php-4.3.0-installer.exe. Also downloaded the zip file php-4.3.0-Win32.zip Install directory d:\program files\php Followed details in install.txt file from php install routine. Running from php.exe as opposed to dll. This included copying bundled dll files from zip file to windows\system directory. *MDAC Installation* Installed Microsoft Data Access Components version 2.6 as downloade form Microsoft Website. *Apache Server Installation* Apache Server version 1.3.23 installed. Install directory d:\Program Files\Apache Configured httpd.conf as per details in install.txt . This took account of where php install location. Suspect that the test.php file needs to be in a particular location to be picked up by php. Is where is this defined. Regard Craig Smith -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Configuration of Apache Server - Thanks for advice
Thanks for advice. It turned out to be something simple as you would expect. Browsed using the the path http://localhost/test.php and it worked. Regards Craig Smith "Scott Carr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You need to put the file under \Program Files\Apache > Group\Apache\htdocs > > That is the normal path for default apache. > -- > Scott Carr > Documentation Maintainer > http://documentation.openoffice.org > OpenOffice.org > > > Quoting Chris Kranz <[EMAIL PROTECTED]>: > > > Make sure your browsing to the file thru your webserver... > > > > http://localhost/test.php > > > > and not locally... > > > > file://c:/www/test.php > > > > for instance... other than this, I've had this problem, but it was > > configuration errors in httpd.conf. double check everything in here... > > > > chris kranz > > fatcuban.com > > > > > > -Original Message- > > From: Craig Smith [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, January 18, 2003 5:17 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Configuration of Apache Server > > > > Problem: > > > > When trying to open a test.php file containing a simple test php script, > > windows prompts for program to open file with. Apache is running from > > the > > console as opposed to a service. > > > > *PHP Installation* > > > > PHP version 4.3.0 installed from php-4.3.0-installer.exe. Also > > downloaded > > the zip file php-4.3.0-Win32.zip > > > > Install directory d:\program files\php > > > > Followed details in install.txt file from php install routine. Running > > from > > php.exe as opposed to dll. > > > > This included copying bundled dll files from zip file to windows\system > > directory. > > > > *MDAC Installation* > > > > Installed Microsoft Data Access Components version 2.6 as downloade form > > Microsoft Website. > > > > *Apache Server Installation* > > > > Apache Server version 1.3.23 installed. > > > > Install directory d:\Program Files\Apache > > > > Configured httpd.conf as per details in install.txt . This took account > > of > > where php install location. > > > > Suspect that the test.php file needs to be in a particular location to > > be > > picked up by php. Is where is this defined. > > > > Regard > > > > Craig Smith > > > > > > > > -- > > 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 > > > > > > > - > This mail sent through IMP: http://horde.org/imp/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] LDAP Group Membership - Primary Group not appearing
Hey, I'm trying to find out what groups a user is a member of. I have written the following code, which returns the DN of some of the groups: $ldap = ldap_connect("curric-srv"); ldap_bind($ldap, "willik@domain", "(password)"); $sr = ldap_search($ldap, "DC=domain", "cn=98ROBERC"); $data = ldap_get_entries($ldap, $sr); foreach($data[0]["memberof"] as $group) { echo("$group "); } This produces the following: 2 CN=Students,CN=Users,DC=domain CN=98,CN=Users,DC=domain This identifies two of the three groups this user belongs to. It's missing the primary group, and I can't see any why to find out what that group is. If I change the primary group using the AD Users and Computers Applet, then the group that disapears changes to the group I set as primary, and the group that was primary is then included in the array. I know there is also returned from the search a value of $data[0]["primarygroupid"][0], which contains a number. However when I select data on the group I know to be the user's primary, there is no mention of this number. How will I find out the user's primary group - is it possible? Set up: Apache 1.3.27, PHP 4.3.0, Windows 2000 Server The script is connecting to the PDC, which is also running Windows 2000 server... Thanks for your time, Craig Roberts MSN/E-mail: [EMAIL PROTECTED] URL: http://cjrobs.net -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] LDAP Question
Hey, I'm trying to find out what groups a user is a member of. I have written the following code, which returns the DN of some of the groups: $ldap = ldap_connect("curric-srv"); ldap_bind($ldap, "willik@domain", "(password)"); $sr = ldap_search($ldap, "DC=domain", "cn=98ROBERC"); $data = ldap_get_entries($ldap, $sr); foreach($data[0]["memberof"] as $group) { echo("$group "); } This produces the following: 2 CN=Students,CN=Users,DC=domain CN=98,CN=Users,DC=domain This identifies two of the three groups this user belongs to. It's missing the primary group, and I can't see any why to find out what that group is. If I change the primary group using the AD Users and Computers Applet, then the group that disapears changes to the group I set as primary, and the group that was primary is then included in the array. I know there is also returned from the search a value of $data[0]["primarygroupid"][0], which contains a number. However when I select data on the group I know to be the user's primary, there is no mention of this number. How will I find out the user's primary group - is it possible? Set up: Apache 1.3.27, PHP 4.3.0, Windows 2000 Server The script is connecting to the PDC, which is also running Windows 2000 server... Thanks for your time, Craig Roberts MSN/E-mail: [EMAIL PROTECTED] URL: http://cjrobs.net -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP - "No input file specified."
When trying to use php script to access records from mysql table getting following error "No input file specified." I am using example php scripts and datatables as defined in the PHP & MySQL for Dummies Book. The installation is on a standalone PC and comprises the following Windows98 Apache 1.3.23 PHP 4.3.0 MySQL 3.23 I know PHP is working through apache as I have used a sample test page which shows the configuration of PHP as installed. I also believe MySQL is working as I have been able to apply the same selection SQL via MySQLadmin as contained in the PHP script I am using to extract records. Below is the php script I am using: * Pet Catalog Horses"; echo ""; echo ""; for ($i=0;$i<$nrows;$i++) { $n = $i + 1;//add 1 so that numbers don't start with 0 $row = mysql_fetch_array($result); extract($row); $f_price = number_format($price,2); echo "\n $n.\n $petID\n $petDescription\n \$$f_price\n \n"; echo "\n"; } echo "\n"; ?> I think that perhaps the connections are not being made as a simple test I have deliberately changed the host, database and password to force an error and this does not happen. Any help would be appreciated. Regards Craig -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PHP - "No input file specified."
Got this working. Not sure as all I did was simplify the selection to pull out all records which worked. Then added back the original parts to for selecting "horses". It works though I have not spotted the syntax error yet. "Craig Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When trying to use php script to access records from mysql table getting > following error > > "No input file specified." > > I am using example php scripts and datatables as defined in the PHP & MySQL > for Dummies Book. > > The installation is on a standalone PC and comprises the following > > Windows98 > Apache 1.3.23 > PHP 4.3.0 > MySQL 3.23 > > I know PHP is working through apache as I have used a sample test page which > shows the configuration of PHP as installed. I also believe MySQL is > working as I have been able to apply the same selection SQL via MySQLadmin > as contained in the PHP script I am using to extract records. Below is the > php script I am using: > > * > > > Pet Catalog > >$user="root"; > $host="localhost"; > $password="password"; > $database = "PetCatalog"; > $connection = mysql_connect($host,$user,$password) >or die ("couldn't connect to server"); > $db = mysql_select_db($database,$connection) >or die ("Couldn't select database"); > $pettype = "horse"; //horse was previously typed in a form by user > $query = "SELECT * FROM Pet WHERE petType='$pettype'"; > $result = mysql_query($query) >or die ("Couldn't execute query."); > $nrows = mysql_num_rows($result); > > /* Display results in a table */ > echo "Horses"; > echo ""; > echo ""; > for ($i=0;$i<$nrows;$i++) > { > $n = $i + 1;//add 1 so that numbers don't start with 0 > $row = mysql_fetch_array($result); > extract($row); > $f_price = number_format($price,2); > echo "\n >$n.\n >$petID\n >$petDescription\n >\$$f_price\n > \n"; > echo "\n"; > } > echo "\n"; > ?> > > > > > > I think that perhaps the connections are not being made as a simple test I > have deliberately changed the host, database and password to force an error > and this does not happen. > > Any help would be appreciated. > > Regards > > Craig > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PHP - "No input file specified."
Think I have figured this out. It is the size of the filename. Originally the file name was "petDescripFor.php". When I save the file as "ztest03.php" it worked. Weird but true. "Craig Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Got this working. Not sure as all I did was simplify the selection to pull > out all records which worked. Then added back the original parts to for > selecting "horses". It works though I have not spotted the syntax error yet. > > > > > "Craig Smith" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > When trying to use php script to access records from mysql table getting > > following error > > > > "No input file specified." > > > > I am using example php scripts and datatables as defined in the PHP & > MySQL > > for Dummies Book. > > > > The installation is on a standalone PC and comprises the following > > > > Windows98 > > Apache 1.3.23 > > PHP 4.3.0 > > MySQL 3.23 > > > > I know PHP is working through apache as I have used a sample test page > which > > shows the configuration of PHP as installed. I also believe MySQL is > > working as I have been able to apply the same selection SQL via MySQLadmin > > as contained in the PHP script I am using to extract records. Below is > the > > php script I am using: > > > > * > > > > > > Pet Catalog > > > > > $user="root"; > > $host="localhost"; > > $password="password"; > > $database = "PetCatalog"; > > $connection = mysql_connect($host,$user,$password) > >or die ("couldn't connect to server"); > > $db = mysql_select_db($database,$connection) > >or die ("Couldn't select database"); > > $pettype = "horse"; //horse was previously typed in a form by user > > $query = "SELECT * FROM Pet WHERE petType='$pettype'"; > > $result = mysql_query($query) > >or die ("Couldn't execute query."); > > $nrows = mysql_num_rows($result); > > > > /* Display results in a table */ > > echo "Horses"; > > echo ""; > > echo ""; > > for ($i=0;$i<$nrows;$i++) > > { > > $n = $i + 1;//add 1 so that numbers don't start with 0 > > $row = mysql_fetch_array($result); > > extract($row); > > $f_price = number_format($price,2); > > echo "\n > >$n.\n > >$petID\n > >$petDescription\n > >\$$f_price\n > >\n"; > > echo "\n"; > > } > > echo "\n"; > > ?> > > > > > > > > > > > > I think that perhaps the connections are not being made as a simple test I > > have deliberately changed the host, database and password to force an > error > > and this does not happen. > > > > Any help would be appreciated. > > > > Regards > > > > Craig > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PHP - "No input file specified."
If anybody reads this then they will think I am mad. I was mis typing the filename. What a numpty "Craig Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Got this working. Not sure as all I did was simplify the selection to pull > out all records which worked. Then added back the original parts to for > selecting "horses". It works though I have not spotted the syntax error yet. > > > > > "Craig Smith" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > When trying to use php script to access records from mysql table getting > > following error > > > > "No input file specified." > > > > I am using example php scripts and datatables as defined in the PHP & > MySQL > > for Dummies Book. > > > > The installation is on a standalone PC and comprises the following > > > > Windows98 > > Apache 1.3.23 > > PHP 4.3.0 > > MySQL 3.23 > > > > I know PHP is working through apache as I have used a sample test page > which > > shows the configuration of PHP as installed. I also believe MySQL is > > working as I have been able to apply the same selection SQL via MySQLadmin > > as contained in the PHP script I am using to extract records. Below is > the > > php script I am using: > > > > * > > > > > > Pet Catalog > > > > > $user="root"; > > $host="localhost"; > > $password="password"; > > $database = "PetCatalog"; > > $connection = mysql_connect($host,$user,$password) > >or die ("couldn't connect to server"); > > $db = mysql_select_db($database,$connection) > >or die ("Couldn't select database"); > > $pettype = "horse"; //horse was previously typed in a form by user > > $query = "SELECT * FROM Pet WHERE petType='$pettype'"; > > $result = mysql_query($query) > >or die ("Couldn't execute query."); > > $nrows = mysql_num_rows($result); > > > > /* Display results in a table */ > > echo "Horses"; > > echo ""; > > echo ""; > > for ($i=0;$i<$nrows;$i++) > > { > > $n = $i + 1;//add 1 so that numbers don't start with 0 > > $row = mysql_fetch_array($result); > > extract($row); > > $f_price = number_format($price,2); > > echo "\n > >$n.\n > >$petID\n > >$petDescription\n > >\$$f_price\n > >\n"; > > echo "\n"; > > } > > echo "\n"; > > ?> > > > > > > > > > > > > I think that perhaps the connections are not being made as a simple test I > > have deliberately changed the host, database and password to force an > error > > and this does not happen. > > > > Any help would be appreciated. > > > > Regards > > > > Craig > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Apache or IIS
I've never used PHP with IIS... but run it on 2 Windows 2000 Apache (1.3.27) servers in production, plus on 2 test workstations. I've had few problems. There's plenty of tutorials on the net for configuring Apache to do all sorts of things. Craig Roberts "The.Rock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I wouldn't call myself a guru with IIS, but I happen to know a lot about it. > In my experience with IIS and PHP, the bigger the script the more IIS seems > to sag. Apache runs better and is more stable I think than IIS. The thing > about editing a conf file for the configuration is no big deal. If your > setting this up, its not so much different that you couldn't learn it in a > short amount of time. Plus there are a few GUI front ends for editing the > conf file in windows. > > The other thing is, I seem to have less problems on Apache than IIS. The > isapi dll for php in IIS isn't very stable and often time craps out for no > reasons. Apache may have some issues, but they will be far less than what > you'll experience in IIS. > > I'm a windows person, but recently started learning Redhat. You'll find a > big performance difference if you can run php on a Linux OS. I've got > several scripts that I have a time function that measures how fast the page > is created. Its pretty much a night and day difference as far as performance > is concerned. > > Just my 2 cents... > > > "William Harrison" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > We are planning to use PHP on windows 2000 but which is the better web > > server to use under this these circumstances IIS or Apache? > > > > Thanks > > > > Will > > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: CLI File Open Problem
Try using fopen('myfile.txt', 'W+'); ? "Gareth Thomas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I am trying to write data to a text file on my Windows 2000 server using PHP at the command line. I am running PHP 4.3.2, and the script uses the 'touch' function to create the file (which works fine) but when I try and open the file to write to it and errors. Anyone any idea? I have checked the security and also IIS access.. I would assume however that if touch works then so would fopen... I am stumped. Any help would be much appreciated. G. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Connecting to another server
You could install a webserver on your other server and then just hit the script from your other program... you may need to add some authentication in there though "Derrick Hermanson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Was wondering if there was a way to call a php program from a different > server. Have a program and I want it to call a program on one of our other > servers. Not sure of how to get it done, if it can be done. > > Thanks in advance for any help. > > Derrick Hermanson > Programmer Analyst I > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: how to install imap with php on windows 2000 server under IIS
Hey, I don't think you need to compile it on Windows. Go into your php/extentions directory, and copy the file php_imap.dll into C:\winnt\system32 - then uncomment the line extention = php_imap.dll in php.ini. You may need to restart IIS but i dont think so... With any luck it should work Craig Roberts "Ha Duy Thien" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear everyone, > > Hi i would want to install Imap extension. > i saw the right packet on this page : > http://www.php.net/manual/fr/ref.imap.php > > but i don't know how to install it on windows 2000!!! > > My Php version is : Php 4.3.3 > Server : Windows 2000 Server > Web Server : IIS 5.0 > > it seems i must compil the packet, but i don't have a compiler > > It seems very difficult to me, so if anypne have any experience, please tell > me step by step how to solve this problem > > Thanks you very much > > Thien > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: unable to delete php created files in php
Check that you have closed the file properly - XP Wont let you delete files it thinks are still open... and it usually dosn't understand when you close them. Craig Roberts "John Yu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It seems that when I try to unlink a file in php which has been created by > php on a winxp machine I always get a unable to delete file, permission > denied error... > > This seems to me to be very strange since the file was created by php and > yet php doesn't have the rights to delete it. > > Anyone else ran into this and any suggestions at all? > > thanks in advance. > > John > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: SMTP - AOL problem
The AOL monkey's right :( - AOL have no SMTP server to connect to You can use Yahoo!'s SMTP server, but need to configure the username and password for a Yahoo! account in php.ini first. Hope this helps, Craig Roberts <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Right then, i've just finished having a heated debate with an AOL technician > and he says I am unable to send emails with PHP via the SMTP of my ISP (which > is AOL). I dont think the technician fully understands what I am trying to do, > but i'm also a little confused over the subject. > > If AOL is my ISP then I must use the SMTP referring to AOL, true or false? If > so, then how do I go about finding out what it is? > > Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Visual Studio.NET
I have fallen in love with the new Visual Studio.NET from Microsoft. I've used the Visual Perl and Visual Python additions to the editor, and have been very impressed. Has anyone begun developing PHP syntax highlighting and tools for Visual Studio? If not, I'd love to have a couple of people that could give me a hand. Craig Davis -- 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] Unable to load php_ldap.dll
I have been having some trouble getting php_ldap.dll extension to load. I thought it might be my extension_dir variable, but another extension ldap_mysql.dll loads just fine. I'm trying to do ldap authentication in my Mantis install running under Apache. extension_dir = "./extensions" Contents of c:\php\extensions php_ldap.dll php_mysql.dll Error: [Wed Apr 12 11:38:32 2006] [error] [client 10.0.0.17] PHP Warning: PHP Startup: Unable to load dynamic library '.\\extensions\\php_ldap.dll' - The specified module could not be found.\r Anyone have a solution for this? Thanks, Mike -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Unable to load php_ldap.dll
I found the problem, there are some libraries required. These are documented on www.php.net. -Original Message- From: Mike Craig [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 11:47 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Unable to load php_ldap.dll I have been having some trouble getting php_ldap.dll extension to load. I thought it might be my extension_dir variable, but another extension ldap_mysql.dll loads just fine. I'm trying to do ldap authentication in my Mantis install running under Apache. extension_dir = "./extensions" Contents of c:\php\extensions php_ldap.dll php_mysql.dll Error: [Wed Apr 12 11:38:32 2006] [error] [client 10.0.0.17] PHP Warning: PHP Startup: Unable to load dynamic library '.\\extensions\\php_ldap.dll' - The specified module could not be found.\r Anyone have a solution for this? Thanks, Mike -- 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
RE: [PHP-WIN] PHP Startup: Unable to initialize module
Have you checked your PATH? If you've installed a previous (i.e. 5.2.x) version of PHP using the MSI installer earlier, then it's possible that the install directory was never removed from your system PATH (the MSI installer doesn't do this automatically as far as I know). It has been my experience that this can lead to problems loading extensions from the correct location, even if you specify the absolute path in php.ini. I would recommend you remove any and all PHP installs from your global system PATH, then add the path to your current 5.3.6 install. If that doesn't work, I would suggest you run Process Monitor to get a closer look at what exactly is happening when this error occurs (it's a free download from Microsoft; just do a Google search for it if you don't already have it). Add an "include" filter by process name for "php.exe", then clear the display (if necessary) and make sure it's capturing events. Then try reproducing your error again. This should tell you what's happening. If you're not sure how to interpret the data, export it to CSV format and upload to a webserver somewhere and post a link here, and I'd be happy to take a look. =) --Kris -Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Wednesday, March 30, 2011 11:33 AM To: Sascha Meyer Cc: Curtis Tammany; php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP Startup: Unable to initialize module On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer wrote: > Could you check which php.ini is loaded via phpinfo()? I assume you have a > php.ini somewhere in your Windows directory pointing to the wrong directory. For what I see in the error, it is the other way 'round. 5.2 is loaded and trying to load 5.3 extensions. -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP Startup: Unable to initialize module
Oh and if you're running Apache as a service, then you will have to reboot your computer after modifying the system PATH. Simply restarting the service won't be enough. This is because all Windows services load system variables (including PATH) when Windows first starts, and as far as I know there's no way to force a reload except for a reboot. Just FYI. --Kris On Wed, Mar 30, 2011 at 11:28 PM, Kris Craig wrote: > Have you checked your PATH? If you've installed a previous (i.e. 5.2.x) > version of PHP using the MSI installer earlier, then it's possible that the > install directory was never removed from your system PATH (the MSI installer > doesn't do this automatically as far as I know). It has been my experience > that this can lead to problems loading extensions from the correct location, > even if you specify the absolute path in php.ini. > > > I would recommend you remove any and all PHP installs from your global > system PATH, then add the path to your current 5.3.6 install. > > > If that doesn't work, I would suggest you run Process Monitor to get a > closer look at what exactly is happening when this error occurs (it's a free > download from Microsoft; just do a Google search for it if you don't already > have it). Add an "include" filter by process name for "php.exe", then clear > the display (if necessary) and make sure it's capturing events. Then try > reproducing your error again. This should tell you what's happening. If > you're not sure how to interpret the data, export it to CSV format and > upload to a webserver somewhere and post a link here, and I'd be happy to > take a look. =) > > > > --Kris > > > > > -Original Message- > From: Pierre Joye [mailto:pierre@gmail.com] > Sent: Wednesday, March 30, 2011 11:33 AM > To: Sascha Meyer > Cc: Curtis Tammany; php-windows@lists.php.net > Subject: Re: [PHP-WIN] PHP Startup: Unable to initialize module > > > > On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer wrote: > > > Could you check which php.ini is loaded via phpinfo()? I assume you have > a > > > php.ini somewhere in your Windows directory pointing to the wrong > directory. > > > > For what I see in the error, it is the other way 'round. 5.2 is loaded > > and trying to load 5.3 extensions. > > > > -- > > Pierre > > > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >
RE: [PHP-WIN] PHP Wiki Windows StepByStepBuild
None that I'm aware of. Having some mirrors would be ideal, but since it's a wiki keeping them synchronized would probably be a nightmare. Do we have an ETA on getting the wiki back up yet? --Kris -Original Message- From: Jeff McKenna [mailto:jmcke...@gatewaygeomatics.com] Sent: Friday, April 01, 2011 11:54 AM To: php-windows@lists.php.net Subject: [PHP-WIN] PHP Wiki Windows StepByStepBuild Hello everyone, I see that the PHP Wiki has been down, and I want to access the wonderful StepByStepBuild instructions there (http://wiki.php.net/internals/windows/stepbystepbuild). (I even contributed to that page) But I need to follow the steps again now and I did not record them locally. Is there another host of those exact same wiki instructions somewhere? Thanks everyone, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] error message appears "cannot find php_oci8.dll"
Have you tried running PHP as a FastCGI module instead of ISAPI? I'm not sure if it's still performing better or not, but at very least it is a lot easier to setup. --Kris