php-windows Digest 17 Jan 2001 23:08:39 -0000 Issue 402 Topics (messages 5065 through 5080): Re: Sessions/security 5065 by: Thomas Kryger 5070 by: Jan Walter 5073 by: Boget, Chris store current page name in variable? 5066 by: g_braakman.hetnet.nl 5069 by: Tom Re: DOM 5067 by: James Duncan 5068 by: Tom windows username extraction 5071 by: Remco Meeder REQUEST_URI for IIS 5 5072 by: OoCobra97.aol.com Standalone server for NT and MySql 5074 by: Stig Kronback 5076 by: Leonard Harris 5077 by: Gregory_Griffiths.cargill.com 5078 by: Michael Stearne 5079 by: Romulo Roberto Pereira Press R: Letting you know about Emma 5075 by: Justice For Emma Re: Basic Clarification on Sessions(PHP4) 5080 by: Alistair Moffatt Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Try looking at register_shutdown_function at http://www.php.net/manual/en/function.register-shutdown-function.php I am using this in my logon script: function close() { if (connection_aborted() > 0) { @session_destroy(); } } register_shutdown_function("close"); Best regards, Thomas D. Kryger FICS Danmark -----Original Message----- From: Jan Walter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:06 AM To: Ignatius Teo; PHP Mailing list Subject: Re: [PHP-WIN] Sessions/security Ignatius Teo wrote: > Have a look at http://phplib.netuse.de I am afraid it does not work as I described, because if I visit another site, go back and refresh, everything seems ok. -- ____________________________________________________________________________ ______________ ============================================================================ ============== Jan Walter, called John LERACH, s.r.o. phone nr. work: +420-2-782 28 02, home: +420-2-35 35 27 61 on emergency call: +420-602-385 760 work e-mail mailto:[EMAIL PROTECTED] private e-mail mailto:[EMAIL PROTECTED] ICQ#: 28353428 ____________________________________________________________________________ ______________ ============================================================================ ============== -- 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]
Thomas Kryger wrote: > I am using this in my logon script: > function close() > { > if (connection_aborted() > 0) > { > @session_destroy(); > } > } > > register_shutdown_function("close"); ...sounds good, thakx a lot. -- __________________________________________________________________________________________ ========================================================================================== Jan Walter, called John LERACH, s.r.o. phone nr. work: +420-2-782 28 02, home: +420-2-35 35 27 61 on emergency call: +420-602-385 760 work e-mail mailto:[EMAIL PROTECTED] private e-mail mailto:[EMAIL PROTECTED] ICQ#: 28353428 __________________________________________________________________________________________ ==========================================================================================
> Try looking at register_shutdown_function at > http://www.php.net/manual/en/function.register-shutdown-function.php >From the documentation: "int register_shutdown_function (string func) Registers the function named by func to be executed when script processing is complete." What qualifies as "complete"? After each page is parsed and served to the client? After a certain amount of time when the requesting browser hasn't made another request? Chris
Hi all, I'm working on a little code snippet that invites a person to mail the url of the current page to a friend. I once read a javascript article that explained how to store the pare url in a variable. I can't find the article. How do you store the current URL in a variable using PHP? Does that system variable point to the page or can it also point to a frame within a page? Thanks, Gert
$variable_name=$PATH_INFO Depending on how you handle it next, you may want to stripslashes() or URL_encode() it Tom "[EMAIL PROTECTED]" wrote: > Hi all, > > I'm working on a little code snippet that invites a person to mail the url > of the current page to a friend. I once read a javascript article that > explained how to store the pare url in a variable. I can't find the article. > How do you store the current URL in a variable using PHP? Does that system > variable point to the page or can it also point to a frame within a page? > > Thanks, > > Gert > > -- > 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]
That sounds the way to go. Yes the sites I have looked at so far put their data into tables. Is there a PHP command that performs a replace all with "" until first occurrence of <table> kind of thing? I agree with the DOM statement too. I worked out the DOM access via Javascript on IE quite quickly but I've had a very brief look at the PHP DOM access libraries and they look like much harder work (especially as I'm new to programming). Thanks James -----Original Message----- From: Tom [mailto:[EMAIL PROTECTED]] Sent: 16 January 2001 10:27 Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] DOM James My guess is that whatever the site, the dat will be in a table. It is fairly trivial to strip off everything before the beginning of the table (replace everything up to and including <TABLE> with "") Then replace (say) <tr> with </td> and </tr> with "" Finally strip out the end of the file (</table> and onwards) You will then just have the table data, all seperated by </td><td>, which should be easy to handle (presumably you want to make a distinction between EPIC and price - do this by using the datatype, and there'll probably be a pile of formatting to sort out as well, but that should really be pretty trivial!) Alternatively, you could spend a considerable amount of time trying to get a generic XML parser to work and rebuild a DOM which would no doubt improve your XML skills immeasurably, but you would probably die trying! Tom James Duncan wrote: > Thanks Tom. Yes you have it exactly right. That is the approach I'm > currently aiming for! However, as you say this approach is hard-coded to > each source website. These websites have a nasty habit of changing their > format slightly on a fairly regular basis. I'm also attempting to pull share > price information from many different websites at the same time because none > provide the full set of data I require plus some shares (off market > particularly) are only provided on dedicated web sites. > > The reason I'm attempting to access the HTML textual data via the DOM is > because I can run a looped search on all the #text fields until I find a > match on a company name or EPIC code and then all data on the nested #text > elements will be referring to that company. This allows easy data capture > and transfer to my database. Another major benefit of this approach is that > the same PHP code can be used to search ANY HTML file and recover the > required data without source code changes. That's the idea but whether it's > actually possible in reality is another matter ;) > > Thanks > > James > > -----Original Message----- > From: Tom [mailto:[EMAIL PROTECTED]] > Sent: 15 January 2001 10:31 > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] DOM > > James > > If I'm reading your many posts right, then what you are trying to do is pull > the > share prices from the same site at (say) half hourly intervals, so that you > can > use them yourself / analyse them or whatever. > In this case, I suspect that the format of the page you pull down will > ALWAYS BE > IDENTICAL, so you actually only have to work out a suitable parser to > extract > the data once. > If I remember rightly from a couple of weeks back, you are using MySQL as > the > database? In this case, pull the html file down, save it on your server and > examine how the html is constructed (it will almost certainly be an ASP / > PHP > while construct to build a table, all of whose rows will thus be identical > apart > from the data). > Then you can use a command line (run from a PHP script if you like) MySQL > LOAD DATA INFILE 'blah.html' INTO TABLE Share_Prices FIELDS TERMINATED BY > '</td><td>'; > type of construct. > Note that you will want to strip out the beginning and end of the file first > as > well. This may sound like a bit of work, but you only have to do it once, as > the > file format will always be the same (barring the addition of new stocks). > > Tom > > James Duncan wrote: > > > I don't think this will work in my case because I don't control the layout > > of the HTML page and hence can't add the hidden fields. I'm downloading > the > > HTML pages from a website. It would require as much work to insert the > > hidden fields as trying to strip the HTML tags in an attempt to read the > > data directly from the HTML page itself. There must be a way to access the > > DOM directly from PHP? I notice in the manual there is a section regarding > > XML DOM but not the DOM itself. > > > > Are the DOM values only available on the client? If that's the case then > PHP > > can't be used to read them because it's limited to the server side? > > > > Thanks > > > > James > > > > -----Original Message----- > > From: Michael Stearne [mailto:[EMAIL PROTECTED]] > > Sent: 13 January 2001 17:06 > > To: James Duncan > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] DOM > > > > Could you do something like: > > > > > myForm.myField.value=tablejames.firstChild.childNodes[1].childNodes[4].first > > Child.firstChild.node Value; > > > > Set up a form of hidden fields. Extract the values from the DOM and then > > have the user hit a Submit button to get to the next page. At that point > > the values that were collected and put into the hidden form fields will be > > submitted and you next page (the PHP page) could INSERT the values into > the > > database, > > > > Michael > > > > On Friday, January 12, 2001, at 07:30 PM, James Duncan wrote: > > > > > Hi folks, > > > > > > I'm still new to HTML, Javascript and PHP but learning (fast hopefully). > > > I've just started accessing DOM elements. I have worked out how to > update > > > the contents of table cells directly using this method, etc. In > Javascript > > I > > > would use code like: > > > > > > alert("Value is: " + > > > > > > tablejames.firstChild.childNodes[1].childNodes[4].firstChild.firstChild.node > > > Name); > > > alert("Value is: " + > > > > > > tablejames.firstChild.childNodes[1].childNodes[5].firstChild.firstChild.node > > > Value); > > > > > > This Javascript shows the name and value of the child element. > > > > > > Now I want to use PHP to extract data (values) from HTML pages like I do > > > with the above Javascript. Is this possible? Obviously with the > Javascript > > > the HTML page has already been rendered in the browser (i.e. all tree > > > elements have been created). This makes extracting data a simple case of > > > finding the "#text" elements and reading in the values. Can I do the > same > > > thing with PHP and an HTML file I've downloaded from the Internet? > > Obviously > > > this file is sitting on my server and hasn't been rendered in a > browser... > > > > > > The whole point of this exercise is so that I can extract values from an > > > HTML table and populate them into a database. Maybe it's easier to > process > > > the HTML file line by line and strip the unwanted HTML tags? However, > with > > > this approach I've got to hardcode each webpage... > > > > > > If this is a silly question then sorry but you only learn if you ask ;) > > > > > > Thanks > > > > > > James > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
At this point I would say RTFM, but I'm all too aware that the PHP funciton description runs to about 900 pages, so that may not be too helpful. Seriously though, if you haven't already, its well worth downloading the BigManual.html from the php site as this is a complete command reference! The functions that will be useful to do this are strstr() (or stristr() for case insensitive) which will find the first occurance of a string strtr() which is technically called 'string translate' but allows you to translate a set of characters from one thing to another - use with a wildcard and you can translate %<table> to "" substr() which returns only part of a string - find where the first occurence is with strstr() and then use this as the parameter to chop the string. You may also be interested in strip_tags() which (fairly obviously) strips all HTML and PHP tags from a string (which could be the whole file if you felt like it) Tom [EMAIL PROTECTED] wrote: > That sounds the way to go. Yes the sites I have looked at so far put their > data into tables. Is there a PHP command that performs a replace all with "" > until first occurrence of <table> kind of thing?I agree with the DOM statement > too. I worked out the DOM access viaJavascript on IE quite quickly but I've > had a very brief look at the PHP DOM access libraries and they look like much > harder work (especially as I'm new to programming). > Thanks > > James > > -----Original Message----- > From: Tom [mailto:[EMAIL PROTECTED]] > Sent: 16 January 2001 10:27 > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] DOM > > James > > My guess is that whatever the site, the dat will be in a table. > It is fairly trivial to strip off everything before the beginning of the > table > (replace everything up to and including <TABLE> with "") > Then replace (say) <tr> with </td> and </tr> with "" > Finally strip out the end of the file (</table> and onwards) > > You will then just have the table data, all seperated by </td><td>, which > should > be easy to handle (presumably you want to make a distinction between EPIC > and > price - do this by using the datatype, and there'll probably be a pile of > formatting to sort out as well, but that should really be pretty trivial!) > > Alternatively, you could spend a considerable amount of time trying to get a > generic XML parser to work and rebuild a DOM which would no doubt improve > your > XML skills immeasurably, but you would probably die trying! > > Tom > > James Duncan wrote: > > > Thanks Tom. Yes you have it exactly right. That is the approach I'm > > currently aiming for! However, as you say this approach is hard-coded to > > each source website. These websites have a nasty habit of changing their > > format slightly on a fairly regular basis. I'm also attempting to pull > share > > price information from many different websites at the same time because > none > > provide the full set of data I require plus some shares (off market > > particularly) are only provided on dedicated web sites. > > > > The reason I'm attempting to access the HTML textual data via the DOM is > > because I can run a looped search on all the #text fields until I find a > > match on a company name or EPIC code and then all data on the nested #text > > elements will be referring to that company. This allows easy data capture > > and transfer to my database. Another major benefit of this approach is > that > > the same PHP code can be used to search ANY HTML file and recover the > > required data without source code changes. That's the idea but whether > it's > > actually possible in reality is another matter ;) > > > > Thanks > > > > James > > > > -----Original Message----- > > From: Tom [mailto:[EMAIL PROTECTED]] > > Sent: 15 January 2001 10:31 > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] DOM > > > > James > > > > If I'm reading your many posts right, then what you are trying to do is > pull > > the > > share prices from the same site at (say) half hourly intervals, so that > you > > can > > use them yourself / analyse them or whatever. > > In this case, I suspect that the format of the page you pull down will > > ALWAYS BE > > IDENTICAL, so you actually only have to work out a suitable parser to > > extract > > the data once. > > If I remember rightly from a couple of weeks back, you are using MySQL as > > the > > database? In this case, pull the html file down, save it on your server > and > > examine how the html is constructed (it will almost certainly be an ASP / > > PHP > > while construct to build a table, all of whose rows will thus be identical > > apart > > from the data). > > Then you can use a command line (run from a PHP script if you like) MySQL > > LOAD DATA INFILE 'blah.html' INTO TABLE Share_Prices FIELDS TERMINATED BY > > '</td><td>'; > > type of construct. > > Note that you will want to strip out the beginning and end of the file > first > > as > > well. This may sound like a bit of work, but you only have to do it once, > as > > the > > file format will always be the same (barring the addition of new stocks). > > > > Tom > > > > James Duncan wrote: > > > > > I don't think this will work in my case because I don't control the > layout > > > of the HTML page and hence can't add the hidden fields. I'm downloading > > the > > > HTML pages from a website. It would require as much work to insert the > > > hidden fields as trying to strip the HTML tags in an attempt to read the > > > data directly from the HTML page itself. There must be a way to access > the > > > DOM directly from PHP? I notice in the manual there is a section > regarding > > > XML DOM but not the DOM itself. > > > > > > Are the DOM values only available on the client? If that's the case then > > PHP > > > can't be used to read them because it's limited to the server side? > > > > > > Thanks > > > > > > James > > > > > > -----Original Message----- > > > From: Michael Stearne [mailto:[EMAIL PROTECTED]] > > > Sent: 13 January 2001 17:06 > > > To: James Duncan > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: [PHP-WIN] DOM > > > > > > Could you do something like: > > > > > > > > > myForm.myField.value=tablejames.firstChild.childNodes[1].childNodes[4].first > > > Child.firstChild.node Value; > > > > > > Set up a form of hidden fields. Extract the values from the DOM and > then > > > have the user hit a Submit button to get to the next page. At that > point > > > the values that were collected and put into the hidden form fields will > be > > > submitted and you next page (the PHP page) could INSERT the values into > > the > > > database, > > > > > > Michael > > > > > > On Friday, January 12, 2001, at 07:30 PM, James Duncan wrote: > > > > > > > Hi folks, > > > > > > > > I'm still new to HTML, Javascript and PHP but learning (fast > hopefully). > > > > I've just started accessing DOM elements. I have worked out how to > > update > > > > the contents of table cells directly using this method, etc. In > > Javascript > > > I > > > > would use code like: > > > > > > > > alert("Value is: " + > > > > > > > > > > tablejames.firstChild.childNodes[1].childNodes[4].firstChild.firstChild.node > > > > Name); > > > > alert("Value is: " + > > > > > > > > > > tablejames.firstChild.childNodes[1].childNodes[5].firstChild.firstChild.node > > > > Value); > > > > > > > > This Javascript shows the name and value of the child element. > > > > > > > > Now I want to use PHP to extract data (values) from HTML pages like I > do > > > > with the above Javascript. Is this possible? Obviously with the > > Javascript > > > > the HTML page has already been rendered in the browser (i.e. all tree > > > > elements have been created). This makes extracting data a simple case > of > > > > finding the "#text" elements and reading in the values. Can I do the > > same > > > > thing with PHP and an HTML file I've downloaded from the Internet? > > > Obviously > > > > this file is sitting on my server and hasn't been rendered in a > > browser... > > > > > > > > The whole point of this exercise is so that I can extract values from > an > > > > HTML table and populate them into a database. Maybe it's easier to > > process > > > > the HTML file line by line and strip the unwanted HTML tags? However, > > with > > > > this approach I've got to hardcode each webpage... > > > > > > > > If this is a silly question then sorry but you only learn if you ask > ;) > > > > > > > > Thanks > > > > > > > > James > > > > > > > > > > > > > > > > -- > > > > PHP Windows Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi, For a school project I am making a database driven system. In de intranet page they have to enter their login name to the winNT/Novell system. I have seen something before which automatically could extract that info from the system so that the user doesn't have to enter it manually. Is it possible with PHP to do so? for example. When I log in to the system my username is: 8299022 this is entered into a novell client. Can I with some PHP commands (or posibly with something else) get that username from the system? thanks, Remco Meeder -- Remco Meeder <[EMAIL PROTECTED]> http://www.remcomeeder.com Linux 2.4.0 #1 Fri Jan 5 09:40:47 CET 2001 i686, cpu temp: +25 C 3:00pm up 31 min, 3 users, load average: 0.46, 0.34, 0.19
Hello, im running windows2k, and php4...ive been trying to use and environment varible "REQUEST_URI" to get the url the user is trying to reach...but its not working on my server, is there another way around this? thanks for any help! ~Jeff
I am currently working on a NT machine with a standalone MySql Database installed. For development purposes I need a webserver for my workstation, that will access the MySql database. I would like to use my local browser to access the database through the standalone webserver using PHP scripting. What I am developing is not that complicated, but I'm sure you can tell that I'm a newbie so a simple program would be nice. suggestions anyone? ===== Stig Kronback Andersen Drejervej 13, st 2400 Koebenhavn NV Denmark Phone: +45 35310382 E-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Xitami (www.xitami.com) is an excellent, small (and easy to set-up) web server. Lenny Harris ----- Original Message ----- From: "Stig Kronback" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:15 AM Subject: [PHP-WIN] Standalone server for NT and MySql > I am currently working on a NT machine with a > standalone MySql Database installed. > For development purposes I need a webserver for my > workstation, that will access the MySql database. > > I would like to use my local browser to access the > database through the standalone webserver using PHP > scripting. What I am developing is not that > complicated, but I'm sure you can tell that I'm a > newbie so a simple program would be nice. > > suggestions anyone? > > ===== > Stig Kronback Andersen > Drejervej 13, st > 2400 Koebenhavn NV > Denmark > Phone: +45 35310382 > E-mail: [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.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] >
I would recommend either IIS or PWS as they come with NT and are relatively simple to configure and support and have documented installation instructions for PHP. Apache, is a little more complex to configure, but is also a good tool. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 17 January 2001 15:16 > To: [EMAIL PROTECTED] > Subject: FW: [PHP-WIN] Standalone server for NT and MySql > > > I am currently working on a NT machine with a > standalone MySql Database installed. > For development purposes I need a webserver for my > workstation, that will access the MySql database. > > I would like to use my local browser to access the > database through the standalone webserver using PHP > scripting. What I am developing is not that > complicated, but I'm sure you can tell that I'm a > newbie so a simple program would be nice. > > suggestions anyone? > > ===== > Stig Kronback Andersen > Drejervej 13, st > 2400 Koebenhavn NV > Denmark > Phone: +45 35310382 > E-mail: [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.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] > >
Download PHP for Win32. The package contains the necessary dll for you to be able to use the mySQL functions in PHP to access your mySQL database. For PHP you can use either the included IIS as the web server (make sure you get the latest version) or you can simply download Apache for Win32 at http://httpd.apache.org/ and use that as the web server. After that go to the PHP manual and read about installing PHP on Win32. Michael On Wednesday, January 17, 2001, at 10:15 AM, Stig Kronback wrote: > I am currently working on a NT machine with a > standalone MySql Database installed. > For development purposes I need a webserver for my > workstation, that will access the MySql database. > > I would like to use my local browser to access the > database through the standalone webserver using PHP > scripting. What I am developing is not that > complicated, but I'm sure you can tell that I'm a > newbie so a simple program would be nice. > > suggestions anyone? > > ===== > Stig Kronback Andersen > Drejervej 13, st > 2400 Koebenhavn NV > Denmark > Phone: +45 35310382 > E-mail: [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.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] > > >
My suggestion would be to download this and install in your computer - has everything that you need and is only one confiuration... http://www.firepages.com.au/phpdev.htm have fun, Rom ----- Original Message ----- From: Michael Stearne <[EMAIL PROTECTED]> To: Stig Kronback <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:44 AM Subject: Re: [PHP-WIN] Standalone server for NT and MySql Download PHP for Win32. The package contains the necessary dll for you to be able to use the mySQL functions in PHP to access your mySQL database. For PHP you can use either the included IIS as the web server (make sure you get the latest version) or you can simply download Apache for Win32 at http://httpd.apache.org/ and use that as the web server. After that go to the PHP manual and read about installing PHP on Win32. Michael On Wednesday, January 17, 2001, at 10:15 AM, Stig Kronback wrote: > I am currently working on a NT machine with a > standalone MySql Database installed. > For development purposes I need a webserver for my > workstation, that will access the MySql database. > > I would like to use my local browser to access the > database through the standalone webserver using PHP > scripting. What I am developing is not that > complicated, but I'm sure you can tell that I'm a > newbie so a simple program would be nice. > > suggestions anyone? > > ===== > Stig Kronback Andersen > Drejervej 13, st > 2400 Koebenhavn NV > Denmark > Phone: +45 35310382 > E-mail: [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.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 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]
Emma may not have received quite as much publicity as Elian Gonzalez did, b= ut=20 her story is similar. International Child Abduction: US and Canadian privat= e=20 social services abducts Emma and protects its secrecy...the first of its ki= nd=20 in history! Why do they want to keep Emma's name secret? Emma needs your Attention: http://members.tripod.com/justiceforemma/index.htm
Mujahid The sample implementation is correct and works here in a Linux/Apache environment. However, I cannot get the sample to work in a Windows 2000/IIS environment. Please let us know what environment you are currently running in. Alistair -----Original Message----- From: Mujahid Wazir [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 05:36 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Basic Clarification on Sessions(PHP4) Hi, I want to know if the sample implementation below of session variables is correct. I am going through the PHP4 Manual, but any clarification would be great INDEX.PHP <? session_start(); $example = 1; session_register("example") ; ?> SOME OTHER PAGE <? session_start(); if (!isset($example)) { Header("Location: Index.php") ; } ?> I tried using session_is_registered() instead of isset but I am getting errors, probably because of incorrect syntax. All I want is to redirect the user back to the main page if the session is not set. Can anyone please show me the right way. Thanks -Mujahid -- 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]