[PHP-WIN] PHP 4.1.2 problems
I just updated my php instalation to 4.1.2 (the one witht he forced redirect enabled). The problem i have is since i upgraded it on the weekendit will not include files using either include or require, it keeps telling me that it can;t open them and it shows for some strange unknown reason to me that they werent in my "C:\php4\pear" directory which A: I don;t got a directory called php4 and B: before I upgraded my include and require files always loaded. Can anyone PLEASE tell me how I can get it so my includes will include from their directory instead of some phantom directory? Or still have the binary for php 4.1.1 or 4.1.0 that they can send me Thanx -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP 4.1.2 problems solved
Thanx for the help Guys, things are working fine again finally :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP ide
You might want to try PHP Edit Its a good development/editing environment offering highlighting, line numbers and so on :) Warren Vail wrote: > > I am limited to editing as well (no debug) and, after trying several tools, > have settled on ConTEXT (http://www.fixedsys.com/context), which provides > syntax highlighting, which is real handy when I've failed to key the final > quote on a string, etc. This editor will show line numbers as well and > these match error messages that come from PHP. > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > -Original Message- > From: Dan Zarrella [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 15, 2002 12:09 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP ide > > 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 > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > -- > 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] Re: ODBC Connection Problems
I have experimented with ODBC connections and had success so my guess is you may need to check what permissions are on the said .mdb file. Robin Bolton wrote: > > I have an Access database which I made a DSN connection to. > > As long as the .mdb file is on the same machine as my Apache Server I can > connect to it just fine. However, if I try to set the DSN to point to an > .mdb file on our network (mapped to a drive letter), I get the following > error in PHP: > > Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] The Microsoft > Jet database engine cannot open the file '(unknown)'. It is already opened > exclusively by another user, or you need permission to view its data., SQL > state S1000 in SQLConnect in c:\www\test\odbc\odbctest3.php on line 2 > > I know for a fact it's not open on any other machines, so it's not a sharing > issue. Which knocks it down to either permissions or just more PHP network > sillyness. > > I've tried pointing the DSN connection to the .mdb using both the mapped > drive letter and UNC paths, same error either way. > > The username that I log onto my workstation with has administrative > priveledges for both our domain, and the machine itself. > > Server: NT 4.0 Server > Workstation: Win 2000, Apache, PHP 4.1.2 > > Thanks, > > Robin Bolton > IT / Web Developer > Lone Pine Publishing > [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Parse error when using Javascript & php?
Try reading your script backwardsits probably a very simple something you would not spend .02 secs on syntax error (had that exact scenario happen enough times) :) Todd Williamsen wrote: > > Parse error line 117... there is no line 117..hehe!! I am thinking that PHP > doesn't like IFrames, or Javascript, or maybe just me? > > Here is the code: > > > > Untitled Document > > > > > BODY {margin: 0pt; padding: 0pt; border: none} > IFRAME {width: 100%; height: 100%; border: none} > > > // Default format is WYSIWYG HTML > var format="HTML" > > // Set the focus to the editor > function setFocus() { > textEdit.focus() > } > > // Execute a command against the editor > // At minimum one argument is required. Some commands > // require a second optional argument: > // eg., ("formatblock","") to make an H1 > > function execCommand(command) { > textEdit.focus() > if (format=="HTML") { > var edit = textEdit.document.selection.createRange() > if (arguments[1]==null) >edit.execCommand(command) > else >edit.execCommand(command,false, arguments[1]) > edit.select() > textEdit.focus() > } > } > > // Selects all the text in the editor > function selectAllText(){ > > var edit = textEdit.document; > > edit.execCommand('SelectAll'); > textEdit.focus(); > > } > > function newDocument() { > textEdit.document.open() > textEdit.document.write("") > textEdit.document.close() > textEdit.focus() > } > > function loadDoc(htmlString) { > textEdit.document.open() > textEdit.document.write(htmlString) > textEdit.document.close() > } > // Initialize the editor with an empty document > function initEditor() { > var htmlString = parent.document.all.EditorValue.value; > textEdit.document.designMode="On" > textEdit.document.open() > textEdit.document.write(htmlString) > textEdit.document.close() > textEdit.focus() > } > > // Swap between WYSIWYG mode and raw HTML mode > function swapModes() { > if (format=="HTML") { > textEdit.document.body.innerText = textEdit.document.body.innerHTML > textEdit.document.body.style.fontFamily = "monospace" > textEdit.document.body.style.fontSize = "10pt" > format="Text" > } > else { > textEdit.document.body.innerHTML = textEdit.document.body.innerText > textEdit.document.body.style.fontFamily = "" > textEdit.document.body.style.fontSize ="" > format="HTML" > } > // textEdit.focus() > var s = textEdit.document.body.createTextRange() > s.collapse(false) > s.select() > } > > window.onload = initEditor > > > > > > > include "variables.php"; > $connection = @mysql_connect("$dbserver", "$dbuser", "$dbpass") or > die("Couldn't connect to database"); > $db = @mysql_select_db($dbname, $connection) or die("Could not select > datababse"); > $sql = "SELECT id, news FROM $editortable ORDER BY id"; > $result = @mysql_query($sql,$connection) or die("Could not execute query"); > while ($row = mysql_fetch_array($result)) { > $id = $row['id']; > $news = $row['news']; > echo "$news"; > ?> > > > textEdit.focus(); > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Parse error when using Javascript & php?
Try making a seperate page to display inside the Iframe and put your News variable on that page.also make sure you are testing on either Netscape 6 or IE 4, 5, or 6 :) Todd Williamsen wrote: > > DOH!! Thanks ross > > Umm... Now I cannot get the value of $news to display in the IFRAME... I > used value=", that didn't work > > Then I put > > between the tags, that didn't work either > > Any suggestions? > > -Original Message- > From: Ross Fleming [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 1:05 PM > To: Todd WIlliamsen; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Parse error when using Javascript & php? > > while ($row = mysql_fetch_array($result)) { > $id = $row['id']; > $news = $row['news']; > echo "$news"; > ?> > > Spot the missing closing brace } > > -Original Message- > From: Todd WIlliamsen [mailto:[EMAIL PROTECTED]] > Sent: 29 March 2002 18:31 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Parse error when using Javascript & php? > > Parse error line 117... there is no line 117..hehe!! I am thinking that > PHP > doesn't like IFrames, or Javascript, or maybe just me? > > Here is the code: > > > > Untitled Document > > > > > BODY {margin: 0pt; padding: 0pt; border: none} > IFRAME {width: 100%; height: 100%; border: none} > > > // Default format is WYSIWYG HTML > var format="HTML" > > // Set the focus to the editor > function setFocus() { > textEdit.focus() > } > > // Execute a command against the editor > // At minimum one argument is required. Some commands > // require a second optional argument: > // eg., ("formatblock","") to make an H1 > > function execCommand(command) { > textEdit.focus() > if (format=="HTML") { > var edit = textEdit.document.selection.createRange() > if (arguments[1]==null) >edit.execCommand(command) > else >edit.execCommand(command,false, arguments[1]) > edit.select() > textEdit.focus() > } > } > > // Selects all the text in the editor > function selectAllText(){ > > var edit = textEdit.document; > > edit.execCommand('SelectAll'); > textEdit.focus(); > > } > > function newDocument() { > textEdit.document.open() > textEdit.document.write("") > textEdit.document.close() > textEdit.focus() > } > > function loadDoc(htmlString) { > textEdit.document.open() > textEdit.document.write(htmlString) > textEdit.document.close() > } > // Initialize the editor with an empty document > function initEditor() { > var htmlString = parent.document.all.EditorValue.value; > textEdit.document.designMode="On" > textEdit.document.open() > textEdit.document.write(htmlString) > textEdit.document.close() > textEdit.focus() > } > > // Swap between WYSIWYG mode and raw HTML mode > function swapModes() { > if (format=="HTML") { > textEdit.document.body.innerText = textEdit.document.body.innerHTML > textEdit.document.body.style.fontFamily = "monospace" > textEdit.document.body.style.fontSize = "10pt" > format="Text" > } > else { > textEdit.document.body.innerHTML = textEdit.document.body.innerText > textEdit.document.body.style.fontFamily = "" > textEdit.document.body.style.fontSize ="" > format="HTML" > } > // textEdit.focus() > var s = textEdit.document.body.createTextRange() > s.collapse(false) > s.select() > } > > window.onload = initEditor > > > > > > > include "variables.php"; > $connection = @mysql_connect("$dbserver", "$dbuser", "$dbpass") or > die("Couldn't connect to database"); > $db = @mysql_select_db($dbname, $connection) or die("Could not select > datababse"); > $sql = "SELECT id, news FROM $editortable ORDER BY id"; > $result = @mysql_query($sql,$connection) or die("Could not execute > query"); > while ($row = mysql_fetch_array($result)) { > $id = $row['id']; > $news = $row['news']; > echo "$news"; > ?> > > > textEdit.focus(); > > > > > > -- > 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] Re: PHP + IIS Problem
Dian add double quotes after print around the variable $a like so: Dian Nedeltchev wrote: > > Hello, > i have a problem with php and IIS. > I'm not sure where is the real problem, but when I want to pass a parameter > to web page > and after that print the value of this parameter , is not working. > An Example > http://www.xxxyyy.com/test.php?a=20 > and into my web page i have : > > > > not working .. > i don't have idea where is the problem? > Can you help me ? > Dian Nedeltchev -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] query string / variable problem
I've installed windows binary version of PHP version 4.2.0 running under Apache as a SAPI module. I'm having problems when i'm trying to pass variables between scripts and wonder if this is a configuration issue. I've included details below - a link in a file main.php Download passes an id variable pulled from a database. this works correctly because when clicked the address bar then displays the query string variable - /blob/download.php?id=1 however in my download.php script a test for a value in the variable $id_files fails despite this having been set. if ($id_files) { I've had a similar problem with another script which opens a pop-up window to display a full size version of an image - javascript:photo_open('photo_display.php?photo=".trim($photos[$i])."', code in the new window fails to detect any value for the variable photo. Thanks, Steve -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] php & events & DOM
hi, i want an onlick event to call a php function. is this possible in the same way that javascript permits onlclick="someFuntion(arg)" ? how else can i call a php function which adds an item to array via a text link? also does php have variables corresponding to the document object model DOM, particularly i'm interested in changing css positioning properties. thanks, . . . . . . [EMAIL PROTECTED] 0044 (0)7780972034 www.mediadome.net -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Windows and sockets and GTK oh my!
Hello everybody; I've got a PHP-GTK chat application which works 100% under UNIX. However, I've been trying to port it to Windows and I've come across some socket strangeness. Namely, if I open a socket with fsockopen and hten set it non-blocking, I can read from the socket once, then write to it once, but after that the socket appears to no longer function (it will never read again). If I leave the socket blocking, it works fine, however the socket will eventually block on fread() since there is no apparent way to check to see if there is data to be read *before* running fread(). I've come to the conclusion that the only possible way to work around this is to use the new experimental "sockets" library. However, the PHP executable that I have from http://gtk.php.net does not include the "sockets" library. I'm wondering if anyone on this list has a PHP executable with sockets and GTK? And if not, would anyone be interested in building such a thing for me (possibly for money)? I've tried to build it on my own, but have met with nothing but fruseration :-) If anyone can help, please let me know -- thanks so much! :-) Steve Conley -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help, Parse error caused by quotes andapostrophes infunction, How do I fix this?
Try this: exec("convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw \"text 10,10 'my text to add to picture'\" text-overlay.jpg"); That SHOULD work; if it doesn't, put \' isntead of ' as well. " is more friendly about escaping things than ' is :-) ' is for litteral things and doesn't work very well with stuff inside it. Also be sure the problem isn't somewhere further up in your code, too. It's possible you left a dangler somewhere ;-) Steve > > > > I am positive the it is due to all the "s and 's within the command, I have > tried the specialchars for quotes andapostrophes but I am still missing > something: > > > > exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity > southeast -draw "text 10,10 \'my text to add to picture\'" > text-overlay.jpg'); > > > > If anyone has any ides on how to avoid probles with quotes andapostrophes > inside the exec() I am all ears :o) > > > > > > Thanks > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002 > > > > > -- > 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] Status of a stable ISAPI??
Does anyone know what the development status is regarding a stable release of the ISAPI module? Have the problems been pinpointed and is there a plan to fix them? Does the PHP staff lack resources to develop the Win32 environment sufficiently? (I would help if I knew how) Is there a database of current issues, owner of issue and due date? (normal project management stuff) If I remember correctly, it's been almost 2 years since the release of the SAPI modules and I am still hearing of unstable behavior while using the ISAPI module instead of CGI. I am frustrated at the lack of progress in fixing these quirks. I also get frustrated because I don't know if I'll have to put up with these quirks for another 6 months or 6 days. On a better note, I am using PHP 4.0.6/ISAPI in a single host production environment running on IIS4 sp6 without problems. I do encounter problems when we add virtual hosts to the server. I hope I didn't overstep the bounds by asking these questions. I am not skilled enough to aid the actual development of this product but I am a great proponent of PHP and wish to see it progress. Thanks for you reponses! Steve Hall Novell, Inc. -- 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] Re: Status of a stable ISAPI??
Thanks to everyone for responses to my initial post. Thanks goes especially to Rasmus for giving us the "state" of things. It is much more clear now why things are the way they are. Although I am not in a financial position to influence the development of PHP Win32, I am certainly willing to try to extend my excitement about PHP , champion its progress and use PHP whenever practical in production and development environments. As some of the posts have already done, I extend a plea to developers, who may have expertise to add, that we continue to stabilize! and expand PHP on Win32. A plea also goes to those of us who can contribute in other ways, that we will systematically test, give productive feedback and champion the cause. Enough on my soapbox, Thanks again! Steve Hall Novell, Inc. "Steve" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know what the development status is regarding a stable release > of the ISAPI module? > Have the problems been pinpointed and is there a plan to fix them? > Does the PHP staff lack resources to develop the Win32 environment > sufficiently? (I would help if I knew how) > Is there a database of current issues, owner of issue and due date? (normal > project management stuff) > > If I remember correctly, it's been almost 2 years since the release of the > SAPI modules and I am still hearing of unstable behavior while using the > ISAPI module instead of CGI. I am frustrated at the lack of progress in > fixing these quirks. I also get frustrated because I don't know if I'll have > to put up with these quirks for another 6 months or 6 days. > > On a better note, I am using PHP 4.0.6/ISAPI in a single host production > environment running on IIS4 sp6 without problems. I do encounter problems > when we add virtual hosts to the server. > > I hope I didn't overstep the bounds by asking these questions. I am not > skilled enough to aid the actual development of this product but I am a > great proponent of PHP and wish to see it progress. > > Thanks for you reponses! > Steve Hall > Novell, Inc. > > > > -- 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] Apache and PHP problem
Hi All, I'm new at this and am trying to get PHP to work with Apache. I've tried all of the tips I can find but when I view a php file in my browser it has an internal server error (500 I think). If I use the registry to get it to run the scripts it opens all the graphics on the page in my image viewer. I'm sure there is something obviose. Cheers for any help Steve -- 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] Re: Method get for Windows ME and PWS w/PHP-4.1.1
"Frank Tudor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > I am just trying to pass a value from one page to the > next, nothing complicated. In the the addess bar I see > the string pass, but on the page it is blank? I believe the "register_globals" configuration directive must be turned on for the variable to auto-create. Otherwise use $_GET['blah'] or $HTTP_GET_VARS['blah']. http://www.php.net/manual/en/language.variables.external.php - Steve Yates - A fool and his money are soon elected. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: WinXP Error Passing Variables (and creating)
"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > PHP version: 4.1.1 Version 4.1's "php.ini-recommended" file defaults to: register_globals = Off ...an important change from earlier versions as I recall. This will prevent variables from being auto-created. Use $_POST['varname'] or $HTTP_POST_VARS['varname'], or change that value to "On" and restart your server. The given reason for this change was that by simply using $varname you cannot be sure the user didn't append a GET variable to the URL, possibly overriding your POST variable's value, or creating a value for an internally created variable name. - Steve Yates - If only women came with pull-down menus and on-line help... / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: mail() and no internet connection
"Kenneth Brill" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If I issue a mail() command but there is no live internet connection, what > happens? Will the mail be sent when there is a connection? Are you running your own mail server? If so then you can set it to work that way. If you have PHP pointed to your ISP's mail server then it won't connect. If you need a mail server, Mercury is free and not too difficult to set up (www.pmail.com). - Steve Yates - After they make styrofoam, what do they ship it in? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: MySQL auto_increment ??
"Sviss Cobazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Now I want to delete user with ID = 2. > Now I create a new user, he will get ID = 4. > > How can i reuse the ID 2 for creation of new users? I am not familiar with MySQL specifically but in my database experience you cannot reuse an auto-increment number. One approach I have taken in the past is to have my own table with a number field(s) and manually increment it, then use that in the other tables. I suppose you could scan for unused numbers but this seems quite time consuming. You just have to be aware of locking other write requests so no two try to share a number. > Another thing: > If ID is INT(3), what will happen when I insert user no. 1000? Most databases I've seen make an autoincrement field a longint. - Steve Yates - Gone crazy, be back later. Please leave a message. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Release date of PHP 4.1.2 for windows?
Just wonderin' I see the source code up there but no installer for windows. Can anyone give me a release date for the update? Thanxs Steve Griff
[PHP-WIN] GD 2.0 for windows?
Hi there, I want to use some of the features that are available in version 2.0 of the GD graphics editing library. What is the best way of getting a .dll for php with these functions? A nice little FAQ about it + a link to the dll would be most appreciated. Thanxs Steve Griff
[PHP-WIN] Re: EZ upgrade to php 4.1.1
"Afan Pasalic" <[EMAIL PROTECTED]> wrote in message 014501c1c6e9$adcb3560$311f49d1@VAIO">news:014501c1c6e9$adcb3560$311f49d1@VAIO... We are trying to upgrade to PHP 4.1.1 but are encountering that some variables that are not set as global are giving us records, same for constants. Does anyone know an easy way to solve this? In PHP.INI: register_globals = On Perhaps not the most secure, but it's easy. :) - Steve Yates - Where there is a will, there is a won't. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] testing for value in $HTTP_COOKIE_VARS
With PHP 4.1.x defaulting to turning off the automatically registered global variables, I am trying to code in such a way that the code will work on a server running 4.0.x as well. However I'm having trouble testing for the existence of variables. For example, given $HTTP_COOKIE_VARS...if the value $HTTP_COOKIE_VARS['foo'] does not exist PHP spits out a warning about an undefined index. Yet this is what I observe (given the cookie is defined): in_array('mycookie', $HTTP_COOKIE_VARS) == false echo array_values($HTTP_COOKIE_VARS) prints "Array" $HTTP_COOKIE_VARS['mycookie'] == 'myvalue' How can this be? Is there a better way to test for a cookie's existence besides in_array()? I should note that before changing to the array notation, $mycookie == 'myvalue' with PHP making the assignments. For the record, my testbed is PHP 4.1.2 on IIS 4.0 as a CGI app. PS--I'm posting this to the .windows group since the .version4 group doesn't allow posting?? Thanks, - Steve Yates - Why did Shakespeare use so many famous quotations in his work? / Taglines by Taglinator 2.5 - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a better way to test for a cookie's existence > besides in_array()? To perhaps clarify I should say "...test for a variable's existence..." - Steve Yates - To know recursion, you must first know recursion. / Taglines by Taglinator 2.5 - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS
To follow up with the group, I received an answer via e-mail within a few minutes with two methods (thanks AB). (1) $foo = @$HTTP_COOKIE_VARS["foo"]; # Where the @ suppresses the warnings on the call. if ($foo) { } (2) The one I ended up using (modified a bit): if ((isset($HTTP_COOKIE_VARS["foo"]) and ($HTTP_COOKIE_VARS["foo"] == 'value')) { } PHP short circuits the logic so method 2 doesn't throw the error on the value test. Or of course you can put the test for the value inside the if {}. Also for environment variables you can use getenv() rather than the array. - Steve Yates - * <- Tribble.! <- Tribble With A Mohawk. / Taglines by Taglinator 2.5 - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Cookies and IIS5
"John Braden" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have an application that is having some login problems which I believe are > cookie related (No cookie is even being sent!!). My first guesses would be that you are not sending the cookie first (before any other output), or perhaps do not have two dots in the server name (".domain.com"). How about posting your cookie code? (recipie?) - Steve Yates - I hate people who make generalizations. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Security Alert! PHP CGI cannot be accessed directly.
"Faisal Ashraf" <[EMAIL PROTECTED]> wrote in message 000501c1e534$57f88750$648505ca@faisal">news:000501c1e534$57f88750$648505ca@faisal... > one could tell me how to remove this error ? > If > you are running IIS, you may safely set cgi.force_redirect=0 in php.ini. Read just a bit further. :) - Steve Yates - Love is grand. Divorce is around twenty grand. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Creating a "nice" link
Hey Ron, I am using php4, apache and win98 and sessions work ok for me, I am pretty new to php but I have found sessions are the easiest and most practical way to store vars, I was using cookies before...which work really well but can get a little tedious to use when you have alot of variables because you have to parse them all out of the cookie string. So unless there is a known issue with w2k i wouldn't rule out sessions, otherwise use cookies. hope this helps, Steve. -Original Message- From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 9:00 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Creating a "nice" link I am creating a few links on the fly that have to pass variables to the next page: echo 'next page' The problem is that I don't want that information to appear in the address field (more like a method=post instead of a method=get). How can I do that? I was trying to use sessions under W2k, php4, Apache and all my pages hang and never load once I start the session so I can't use sessions :-( Any ideas? Thanks, Ron -- 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 SiteManager
Hello everyone, I am pretty new to php and web development, Right now I am writing my code in VIM which I like but I was checking around and saw a download for PHP SiteManager. I would like to start creating object oriented php applications I have done some java and c++, will this help? Also what really is SiteManger? Thanks alot Steve. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Quoted Dynamic Strings are killing me (Second Attempt)
Hey Ron, I just echoed your $query string just like you have it and I get the quotes around the values. I put this in a file: $selectedLastname = "smith"; $selectedFirstname = "jimmy"; $selectedMarket = "test"; $query = "select bio FROM individual WHERE last_name ='". $selectedLastname ."' AND first_name ='". $selectedFirstname ."' AND market ='".$selectedMarket."'"; and it worked fine, check to make sure there are values in your variables. -Steve -Original Message- From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Quoted Dynamic Strings are killing me (Second Attempt) I have been trying to create strings dynamically by combining text and variables. Because SQL wants single quotes surrounding the values I have been forced to create the string as follows (all variables have been previuosly set earlier on the page): $query = "select bio FROM individual WHERE last_name ='". $selectedLastname ."' AND first_name ='". $selectedFirstname ."' AND market ='".$selectedMarket."'"; Which seems to be good to me but when I echo the query it parses out like this: select bio FROM individual WHERE last_name ='Appleyard selectedFirstname=Peter selectedMarket=Atlanta' AND first_name ='' AND market ='' What am I missing...or doing wrong? This seems so straightforward but I'm getting beat up something horrible! Thanks, Ron Herhuth -- 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 Command Line Syntax
If you're running from the command line, you can use standard command line arguments. In the file they'll be entered into the array $argv[]. $argv[0] is the name of the script called, and each other argument is consecutively numbered. For example the file test.php: running: c:\php\php.exe -q test.php SERVERNAME would print: Argv0 is test.php Argv1 is SERVERNAME If you want to use the same php file on the server as for command line, just put a check at the start to see if argv is defined and has elements, and if so, map them to your QUERY equivalants. (e.g. if(count(argv)>1) {$servername=$argv[1]} ) -steve http://www.cheatcodes.com/ http://www.gear21.com > -Original Message- > From: Scott Dowd [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 5:32 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP Command Line Syntax > > > I would like to schedule a series of PHP pages to run overnight from a > Win2k/IIS/PHP4 box. An example of the url is > http://localhost/checklist/checksingle.php?servername=SERVERNAME. > When I try > to execute this from a DOS prompt, "C:\PHP\PHP.EXE -q checksingle.php" it > works fine, but when I add "?servername=SERVERNAME" as in the url, it does > not recognize the command. > > "PHP Fatal error: Unable to open checksingle.php?servername=SERVERNAME in > Unknow > n on line 0" > > Is this the best way to schedule a PHP page to run ? > > Thanks, > Scott. > > > > -- > 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] Re: Question installing and running php
I am fairly new to php to, when I did my first install, I had to learn how to set up the httpd.conf file and the php.ini file, also httpd.conf has to be in windows system dir. And after I finally figured that out, I realized that I had my php file named test.php.txt. HA! If this doesn't help then what do you have php running as, cgi or module? -Steve -Original Message- From: theN [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 8:09 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Question installing and running php [EMAIL PROTECTED] (James Ku-Ok Chung) wrote in news:[EMAIL PROTECTED]: > hello, > I am having trouble with the php. > > on a apache 1.3.12 and php4 (also tried php3) > > and followed all the directions of .ini and stuff... > > when I run the sample php on the web browser.. I don't get what I want > but it appears the script itself... > > meaning it doesn't run the script but it just shows me the script code > on the > browser. > > any hints of what I have done wrong? > > james > [EMAIL PROTECTED] > > I guess apache is not set up to parse PHP scripts. I would suggest that you please take a look at Apache's httpd.conf again. -- 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] Re: Cant get PHP to run on Win 98
Or alternatively extract($HTTP_GET_VARS); // creates all GET vars, no others echo $C; - Steve Yates - Omit needless, redundant, unnecessary, repetitive words. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Moving to non-Windows technology
Jerry, I was trained at a college that had little use for Microsoft products and I feel I am all the better for it. Yes I have found that setup and configuration of the non microsoft products may be text based, or somewhat cryptic at first but I have found that with some, as you put it, determination, it took a very short time to learn to navigate and update the appropriate configuration files. As for your comments on the GUI side of things... Keep looking, you will find a wide variety of GUI's from Linux to php to MySQL. What is happening in this environment is you have the choice to do it your way, either through line commands or the click of a button in a GUI. And it gets better, not only does this non-windows technology provide GUI's I have found that they are increadibly easy to use. A perfect example of this is a comparison of MS SQL server front end and a popular front end to MySQL called phpMyAdmin. If you introduce a person with intermediate technological skills to both packages, as I have done, you will find that it is the microsoft product that becomes cryptic and hard to understand, where as its open source counter part is clean, straight forward and simply easier to use. All this aside, the greed for cash and power and the fact that their products are simply unreliable, instead of what is just "better", is what put me off of Microsoft. -Steve. -Original Message- From: Jerry [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 2:53 PM To: PHP Win Subject: [PHP-WIN] Moving to non-Windows technology Wow, that was a very fast response and from so many people re: shutting down Apache. Thank you all. I have been developing Web sites with ASP and MS SQL Server. I am so sick of Microsoft's greed for cash and power that I just had to bail. Just an example, Visual Studio .net can be had for no less than $1000.00. I can't stop there. MS is turning to subscription based income for everything. They go after ANYTHING that is making someone else money. I hate their business tactics. Their products are bloated, and have too many security holes. It is a great stock to own but I hate who they have become. So, I am moving to all non-Microsoft technology. I am using Windows and it will take some time to move to Linux. I'll probably move one PC at a time. However, I am switching to PHP, PERL, and MySQL. What I have found however is that doing so has been harder than I thought it would be. The farther I get into it the easier things are becoming. That is partly due to my determination. My observation and opinion is that those that use non-ms technologies have a club of their own and while they think Windows users should move away from Windows, they don't go to much effort to help them make the move. Also, they are typically more technical and thus prefer a more technical approach to things. For example, they work from the command prompt and prefer not to use a GUI because they feel that doing so is a much more pure experience. I don't fault them for this. It is just a difference. However, Windows users are used to using a GUI for most everything. Using a command prompt is considered unproductive to them. I have found though that there are developers that have been addressing this issue. Luckily, I was able to find some great tools which has made the move pretty smooth so far. I know there are a lot of people that are prisoners in the MS world that would like to move to non-MS technologies but don't see the benefits, are scared to do so, and/or just don't know how. So, I have decided to document my experience for their benefit. I'll either submit an article to some Web sites in hopes that they will publish it and/or I'll put a site up just for the cause. I think a lot more people will make the move if they see the benefits and how easy it can be done. I'd like to hear your comments and suggestions on the topic. Anyway, I look forward to participating in the non-MS community! Jerry -- 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] Re: mail() doesn't work with $ variable
"Cheyenne Vermeulen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $recipient.= "$voornaam $naam <$email>" ; I would suggest trying this with just the e-mail address, and/or quotes around the name. Heck, replace each of the four variables with a string literal and see what happens. - Steve Yates - Patience: A virtue that carries a lot of wait. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Why Global Variables turned off??
"Then" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At the cost of sounding dense...wouldn't POSTing the variables solve the > problem. Nope. For instance, was the variable $authorized set via POST, GET, cookie, etc.? You don't know. But specifically testing it by $_POST['authorized'] or extract($HTTP_POST_VARS) (and no other variable arrays) would ensure it arrived via a POST. - Steve Yates - Friends help you move. Real friends help you move bodies. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] php won't "process" forms anymore
"Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the book > only talks bout writting a string to a file ... while > i have multiple stingz to b saved Use fwrite() twice. http://www.php.net/manual/en/function.fwrite.php - Steve Yates - Sex is not the answer. Sex is the question. "Yes" is the answer. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] register_globals and php 4.2
"Court Shrock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Replace all references of "$pagetype" with "$_GET['pagetype']" (without the > doube-quotes, of course) or have the line "$pagetype = $_GET['pagetype']" at > the beginning of your file. Repeat this same idea with your other variables Or to get them all at once use extract($HTTP_GET_VARS). - Steve Yates - I didn't fight my way to the top of the food chain to be a vegetarian. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: flushing output to the browser whilst the script does somethinguseful
"Mr. Adam Allen." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Currently, html only gets displayed by the browser once the complete > script has finished. What I'm looking to do, is flush the HTML out How about flush() ? :) http://www.php.net/manual/en/function.flush.php - Steve Yates - I'm sorry, were the voices in my head bothering you? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: $PHP_SELF generating an error
"R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Undefined variable PHP_SELF in... Do you have PHP 4.1.2? Try this syntax: echo $_SERVER["PHP_SELF"]; 4.1 no longer automatically creates variables by default. - Steve Yates - I was just stopped by the LAPD and boy am I beat! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Needed: Several short, swift kicks.
"Mark Filipak" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 1 - Can PHP be used as a batch processor under MS-Windows? I believe so, although that's not its original intent. > 2 - I downloaded php-4.2.1-installer.exe and php-4.2.1-Win32.zip. I ran > php-4.2.1-installer.exe to the point where I got this dialog: > > Title Bar: "Mail Configuration" >Query #1: "Please enter the address of your SMTP server." > Textbox #1: "localhost" >Query #2: "Please enter the 'from' address for the mail function." > Textbox #2: "[EMAIL PROTECTED]" > > I don't know what is being asked. What do I do now? It's asking for your mail server info as you point out below. This is for use under Windows for the mail() command. If you don't intend to send e-mail from PHP just leave it at the defaults for now, or use your e-mail address and your ISP's mail server. > 4 - What run time environment does PHP for command line scripting expect > and how much of it, a, is installed by php-4.2.1-installer.exe, and b, > is found in php-4.2.1-Win32.zip? I believe the installer installs the basic stuff, and the zip file includes a lot of samples and extra modules. > I seek an alternative to CGI and PHP seems to be just that. I have never > written CGI. I have an e-smith SME server 5 box that I'd like to put on > the net as a general purpose gateway/firewall/www-server/mail-handler > and on which I hope to process PHP-enhanced, server-side HTML. I'd like > to learn PHP under MS-Windows first, and perhaps use it to do useful, > batch type things, bulk processing email 'inbox' files for example, > while traveling the path to PHP enlightenment. While I'm all for PHP it sounds like you're trying to find a way to use your tool rather than evaluate what you want to accomplish. ("When you only have a hammer everything looks like a nail"). Do you know how to set up a web server? If so I suggest that trying to use PHP outside of the web environment first will be more confusing than helpful. However to get you started put this into a plain text file called "hello.php" and run "php hello.php" from a command prompt: The content-type header that prints is for the web server's use. - Steve Yates - Drive nail here [.] for new monitor. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Email Addresses (was: [PHP-WIN] Re: Needed: Several short, swift kicks.)
"Mark Filipak" wrote ... > From both replies I assume that this list does not protect, hide, or > munge email addresses I personally haven't been on a list that does. Usually the "to" and/or "reply-to" is the list but the "from" is the author's e-mail software. > And from Steve's reply, do I correctly infer that my posts and his are > also going to a news server? Yes in fact that's how I'm posting. Via news.php.net. - Steve Yates - * <- Tribble & <- Tribble practicing Yoga. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: mail() and user name
"Tomator" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > tried something like "Name" - and didn't work. Try '"Name" ' or if you're using variables "\"$Name\" <$email>". The latter uses "\" to escape the internal quotes so they are interpreted literally. - Steve Yates - A single fact can spoil a good argument. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: form Post action
> "Martin.Andrew" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This document resulted from a POST operation and has expired from the Still sounds like a caching issue to me. Change the name of the posted-to page temporarily, or set a caching timeout for that page, or try holding down the shift key as you click the button to post to that page. - Steve Yates - MONEY IS THE ROOT OF ALL EVIL. Send me $20 for more info! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: notice:undefined variable
"Michael Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you are leasing space, you will probably not have access to the php.ini > file to make this change. A quick alternative might be to add extract($HTTP_POST_VARS); to the beginning of the script. This will autocreate all posted vars just like if register_globals was on. - Steve Yates - I've been rich and I've been poor. Rich is better. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] newbie problem with quotes
"Prachi Shroff" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the link just says > javascript:window.open( > Why would that happen? > R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: echo " href=\"javascript:window.open(\"addfossilpage.php?me=$folder_id\",\"width=43 > 0\",\"height=450\" )\">"; Count your quotes...your string is href="javascript:window.open(" At that second quote your string ends. Use single quotes inside the doubles, or single quote the entire string and get rid of the slashes. Something like: echo 'href="javascript:window.open("addfossilpage.php?me=' . $folder_id . '","width=43 0","height=450" )">'; - Steve Yates - I drank WHAT!? - Socrates / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: notice:undefined variable
"Marius Venter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Security Alert! The PHP CGI cannot be accessed directly. > This PHP CGI binary was compiled with force-cgi-redirect enabled. I forget your earlier post...if you have PHP on a Windows server I believe you can safely enable this option in php.ini. - Steve Yates - I don't work long hours. They are all 60 minutes, just like everyone else's. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Re: PHP 4.2.1 And WinXP
"Fester" <[EMAIL PROTECTED]> wrote in message ae3dft$39s$[EMAIL PROTECTED]">news:ae3dft$39s$[EMAIL PROTECTED]... > Thank you very much. I see that I must access variables using $_POST['var'] > syntax. I'm disappointed that variable access appears not to be backward > compatible to earlier versions fo PHP, but such is life. However it's more secure in terms of users spoofing your variables. As a tip, you can also use extract($_POST) to automatically create all the POST variables, just like before. Add this to the beginning of "old" code to get it to work while you fix all the individual references. - Steve Yates - Life's unfair...but the root password helps! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: beginner question to variables
"Si Ming" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $totalqty = $tireqty + $oilqty + $sparkqty; > -- change it to --- > $totalqty = $HTTP_POST_VAR["tireqty"] + $HTTP_POST_VAR["oilqty"] + Some options: 1) extract($HTTP_POST_VARS); // note it's plural... 2) if you use these vars a lot: $tireqty = $HTTP_POST_VAR["tireqty"]; (...) $totalqty = $tireqty + ... > and what about the $totalqty variable that has just been created? How do I > refer to it? As $totalqty since you created it. The arrays are only for post, get, environment, etc., variables that come from outside your script. - Steve Yates - A pessimist complains about the noise when opportunity knocks. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Somebody please help beginner with variable problem
> > > I have set register_globals = On. Where is your php.ini file? Should be in your c:\windows folder. - Steve Yates - I used spot remover on my dog. Good thing his name is Rover. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PHP 4.2.1. on PWS...
"CéSar Monroy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Lucky you... I've still try to figure out how to make it work... After > several tries, following step by step instructions my PWS still can't pase > PHP scripts. > "Max Sullivan" <[EMAIL PROTECTED]> escribió en el mensaje > 004d01c20bf6$bf074420$1f281142@WILLY">news:004d01c20bf6$bf074420$1f281142@WILLY... > > You need to set cgi.force_redirect = 0 in your php.ini file. Is your PHP.INI file in your Windows directory? - Steve Yates - Paranoia is when you think these are about you. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Installing PHP for Apache on Windows XP
At 7:18 AM -0700 6/23/02, Dave wrote: >I have been trying to install PHP for Apache on WinXP. I have added all of >the necessary lines to the Apache Config file, although when i try to add > >LoadModule php4_module c:/php4/sapi/php4apache2.dll > >Apache wont restart. > >I copied all of the PHP .ini and .dll files into the appropriate >directories, but I just wont work. > >You think they would have made it a little more compatible, even the PHP >installer doesnt work properly. > >Can anyone help? > Are you running Apache 2.0.39? What is the error? It helps to share this info when seeking assistance. :) I'll guess that you need an updated php4apache2.dll. You can get a replacement php4apache2.dll here: <http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip> That worked for me. Thanks to Matt Parlane, who recently posted a message with this info. HIH, Steve Parrish -- <mailto:[EMAIL PROTECTED]> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: 404 error not being triggered for files with a php extension
"Ian Tuck" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > For some reason, when I request a file with a php extension that doesn't > exist, apache doesn't check to see if it exists before sending it off to > php.exe. To possibly save you some head-beating and wall dents, I reported this several months back. See http://bugs.php.net/bug.php?id=14409. That also references an Apache issue number (mod_cgi/8683) in case you can add anything that might speed a solution. Seems like *something* should realize there's no file present. - Steve Yates - "Let's face the obvious. Yesterday we were nerds. Today we're the cognetive elite. Let's conquer." - Chester G Edwards / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: errormessage: undefined variables - why define them?
"Uwe Birkenhain" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > - is it now neccessary to define variables before I use them??? No, but realize 4.2 changed how variables are referenced. By default register_globals is set to off now. - Steve Yates - Make headlines! Use corduroy pillow cases! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Problems acessing post data
"JoãO" Paulo Batistella" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > OK under Linux but nothing happens on Windows. I bet they are different PHP versions? With 4.2, you must use $_POST['varname'], since by default the register_globals .INI file option is turned off. - Steve Yates - I'm pink...therefore, I'm SPAM. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Apache/PHP...
At 5:25 PM +0100 7/9/02, Brian McGarvie wrote: >C:\APACHE2\BIN>apache -t >APACHE: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" >is not comp >atible with this version of Apache. >Please contact the vendor for the correct version. > >anyone seen this when trying to run apache? > I think you (and others) need an updated PHP. There are numerous recent messages on this list referring to the issue and the fix. Checking the message archives would yield the answer. I'll save you the trouble... Visit: <http://snaps.php.net/win32/> <http://ftp.proventum.net/pub/php/win32-snapshots/> for the latest Win32 PHP binaries. ...or get a quick fix here: <http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip> HIH, Steve Parrish -- <mailto:[EMAIL PROTECTED]> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] PhpMyadmin?
phpMyAdmin is an easy to use, web based administration tool for MySQL. I use it religiously and would highly recommend it for beginner to advanced level. It lets you create db's, tables and work with data etc. What I really liked at the beginning was how it shows you the sql statements each time you do somthing so your learning while you work. As far as getting help, let people know where your stuck, if your host has it installed or if you have to do it yourself etc. So ya go for it, its one of the easiest tools i've used. Steve. -Original Message- From: Viper1 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] PhpMyadmin? Ok I have a hoster for my site that has it where I can use phpmyadmin to create a db. Is this a solid way to make a db? I am trying to do an online db for resumes and searching for employers. I heard several different things about this, that it is hard to do and not stable. I have tried to start one but having no luck at all. I need some start up help on this please. I appreciate all the help, thanks. "Court Shrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Any question in particular that you would like help with? Please feel > free to spare us the pleasantries and get right to your question. We > are here to help! :-) > > Viper1 wrote: > > > Anyone help me out with PHPMyadmin? > > > >Thanks > > > > > > > > > > > > -- 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] InnoDb and php
Yes it is. Once InnoDb tables have been setup, just fire the traditional Begin, rollback, commit statements to Mysql with mysql_query() or whatever. -Steve. -Original Message- From: Waldemar Brand Neto [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:55 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] InnoDb and php Is it possible to use rollback, commit in a MySql InnoDb table trough php? Tank´s, Waldemar -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] MORE ABOUT SOCKETS
I can't get php4apache2.dll (php4.2.2) to work with Apache 2.0.40. I get: "Cannot load C:/php/sapi/php4apache2.dll into server: The specified procedure could not be found." ...same goes for mod_perl. Is there some incompatibility I don't know about? Thanks, Steve Parrish -- <mailto:[EMAIL PROTECTED]> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Newbie needs help.
Hello all. I am new to PHP having used ASP for some time. (Seems a lot of us are moving this way) What I'm stuck on is this; I need to build a DB in MySQl and then use PHP to display it. My question is how you get a test environment working on XP Pro. I understand how to call up a database table from say Access because you can develop the DB using Office then use SQL strings to call it using ADODB connections. How though do you make a MySQL database in a windows environment? Can it be done or is it done in Unix or Linux? If so are there any windows based programs to develop a MySQL database? I've been to www.mysql.com and downloaded the software for XP. So how do I use it? I ran the set-up prog and nothing seemed to happen. PHP - can you configure IIS to run PHP? if so how? Sorry if these questions are totally obvious to you all but I've been online searching for a couple of hours without any answer to these questions. I might be asking the wrong questions. I hope I am anyway! Thanks in advance. Steve. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Newbie needs help.
Thanks all for your help, you all have probably saved me a lot of time. I now have IIS running PHP and XP running MySQL. I am using MySQLFront to develop the database etc. Thanks again. > -Original Message- > From: Werner Stuerenburg [mailto:[EMAIL PROTECTED]] > Sent: 13 August 2002 11:36 > To: Steve Jackson > Cc: Harrison Fisk; Zak Greant; David Axmark; Jeremy Cole; Olof Tjernren; > Jim Winstead; Bertrand Matthelié; Kaj Arnö; Rasmus > Subject: Re: [PHP-WIN] Newbie needs help. > > > Hallo Steve! > > As an addendum: a very easy way to install Apache/MySQL/PHP on a > Windows platform ist to use PHPTriad at > >http://sourceforge.net/projects/phptriad > > It installs smoothly and gives you a full working WAMP > installation with very few clicks. The MySQL version is quite > old, though, but this is no problem as you can simply overwrite > it with a new one. > > Note that the popular browser based managing tool phpMyAdmin is > included as well, which has its advantages over tools like MyCC > and MySQLFront as you have to connect to a remote server via > TCP/IP with those, which will not be possible with most ISPs due > to security considerations, whereas phpMyAdmin works on the > server machine in any case, so it conncets from localhost. It > doesn't look that pretty, though. > > > Harrison Fisk schrieb am Montag, 12. August 2002, 19:48:08: > > > Hello Steve, > > > Please find my answers underneath your questions. > > >>Hello all. > > >>I am new to PHP having used ASP for some time. (Seems a lot of us are > >>moving this way) What I'm stuck on is this; > > >>I need to build a DB in MySQL and then use PHP to display it. > >>My question is how you get a test environment working on XP Pro. > > >>I understand how to call up a database table from say Access because you > >>can develop the DB using Office then use SQL strings to call it using > >>ADODB connections. > > > MySQL natively connects using TCP/IP or named pipes on windows directly. > > There are many different API's built over it though that you can connect > > to MySQL with. > > > In PHP you will normally connect to it using the PHP API which is > > described in great detail at http://www.php.net/manual/en/ref.mysql.php > > Basically you will issue a mysql_connect() call then issue a > mysql_query() > > and get the results back with mysql_fetch_row() or something similar. > > There are some examples in the documentation that I listed. > > > There are also many other API's available, such as the C API, and JDBC > > that you may want to use to connect to MySQL for other purposes. Since > > you are on windows, one common one to use is MyODBC, which is the > > available at > http://www.mysql.com/downloads/api-myodbc-3.51.html This will > > allow you to connect to MySQL from various programs, including Access or > > Excel if you so desire. > > >>How though do you make a MySQL database in a windows environment? Can it > >>be done or is it done in Unix or Linux? If so are there any > windows based > >>programs to develop a MySQL database? > > > MySQL can run under windows or under a UNIX/Linux environment > as a native > > application. There are only a few very small differences > between the two, > > so it is perfectly normal for people to develop applications > under windows > > and then deploy them on Linux with little problem! There are a few more > > issues with PHP differences between windows and UNIX/Linux, and they are > > detailed in the documentation relating to the functionality. > > > For a GUI based application to connect to MySQL I recommend MyCC, > > http://www.mysql.com/downloads/gui-mycc.html > > It is multi-platform and is becoming better and better rapidly with each > > release. Another program that others have used with success is > > mysqlfront, this is a third party application that can be found at > > www.mysqlfront.de > > >>I've been to www.mysql.com and downloaded the software for XP. > >>So how do I use it? I ran the set-up prog and nothing seemed to happen. > > > There are a couple of steps you need to take on windows XP in > order to get > > MySQL running after you run the installer. It is recommended that you > > first install MySQL as a service and then you can run it from your > > services menu or at startup time. All of that information and > more is at > > http://www.mysql.com/doc/en/Windows_installation.html and > > http://www.mysql.com/doc/en/NT_start.html > > >>PHP - can you configure IIS to
[PHP-WIN] Re: mail() on W2K Pro
"Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message 004e01c25778$8ce4c490$a04d933e@satellite">news:004e01c25778$8ce4c490$a04d933e@satellite... > I want to be able to use error_log() ( or mail() ) in a W2K Pro installation > (PHP 4.2). I suppose some kind of message queuing service or SMTP server has > to be installed. > > I would appreciate if somebody who has done this successfully could give me > some indications. What problems are you having? I haven't used error_log() but mail() works using either localhost (at least with recent versions of PHP) or your ISP's SMTP server. You have to set that setting in your PHP.INI file. - Steve Yates - For people who like peace and quiet: a phoneless cord. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: all variables unset on w2k pro.
> "Lasse Riis" <[EMAIL PROTECTED]> wrote in message... > > I've been trying to install php 4.2.2 on my w2k box. I suspect you are not using the "new" method to address variables. Use $_POST['varname'] instead of $varname, or use extract($HTTP_POST_VARS) at the top of your script to autocreate all the POSTed variables. See the information on changes between 4.1 and 4.2 on php.net for details. - Steve Yates - "Let's eat kosher tonight," said Tom judiciously. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: using apache on a network
"M.B." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > when I type in that he must Listen to then everytime I'm not > connected to to the network, my computer with the apache server can't run. When you are not connected, Windows will not load the card driver or TCP/IP. Always log in to Windows even when you're off the network. > one of the connected computers in my network, I have to have an > internetconnection to view the pages (I also use a port to listen to in the > file) but when I have my internetconnection it isn't used only the network I suspect you have Windows set to automatically dial out on that PC. In your Internet options, set your connection to Never Dial. - Steve Yates - When one is flying in tranquility, watch out for the mountains. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: "Headers already sent" error message
> "R.S. Herhuth" <[EMAIL PROTECTED]> schreef in bericht > news:[EMAIL PROTECTED]... > > What is the cause of this error? what sort of things should I check > > for? I didn't see the code if you posted it, but make sure there are no blank lines before your script starts. Even one blank line will be sent out, and therefore your headers would be coming too late. - Steve Yates - If you hold a hard drive to your ear, can you hear the C:? ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: which smtp server can I install in windows used only myself?
Mercury (www.pmail.com) can be set to only accept SMTP mail from a specific IP address. Set it for 127.0.0.1 and then send your mail to 'localhost'. - Steve Yates - He who laughs last probably made a backup. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] apche loadmodule php help.
Hello all, I am in the process of changing my win 98 box to a 2000 box and am also upgrading from apache 1.3.23 to 1.3.26. Unfortunatly I took the easy route and simply copied my old httpd.conf file over the existing httpd.conf. All is fine except Apache has a problem with the line: "LoadModule php4_module c:/Program Files/Apache/Apache/php/sapi/php4apache.dll" Apache says "Load module takes 2 arguments..." Can anyone help me with what I have done wrong? This works with 1.3.23 but not with 1.3.26, do I need some kind of seperator in this line to specify that it is 2 arguments? Thanks alot, Steve. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Norton Anti Virus
Hi, I am running 2.0.43 on WIndows 2000 Advanced Server. It is working fine, but since installing, Norton Antivirus Auto Protect will no longer start when rebooting, nor can I manually start it. Is this a known issue? Is there a fix? Thanks! Steve Staker -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN]
"Jason Porembski" <[EMAIL PROTECTED]> wrote in message news:01c27d5c$0487d830$6401a8c0@;HOMEPC... > page refuses to use PHP and is in love with ASP. I need to run some PHP > code from within ASP. How can this be done? Have you tried using fopen()? - Steve Yates - Why is it called "rush hour" if it's so damn slow? ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] 404 documents
>I there a way to have the .php page pickup the url that was typed in e.g. >usertype= www.mydomain.com/wRongurl $usertype = getenv('REQUEST_URI'); I believe this is one of those server-dependent environment variables, but it works with Apache. - Steve Yates - Who is General Failure and why is he reading my drive? ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: 2 Issues for Mail() in Win/PHP4-
"Marie Monday" <[EMAIL PROTECTED]> wrote in message news:3DC3F4BB.D40352A5@;nomail.net... > I'm a PHP newbie and have just installed php4.2.3 Earlier versions of 4.x would auto-create variables for you. 4.2 no longer does that. Your Apache server is probably using an older version of PHP, or has register_globals turned on. Use $variable = $_POST['variable']; // or echo $_POST['variable']; or, extract($_POST) or extract($HTTP_POST_VARS) to create all POSTed variables. - Steve Yates - Wicked witch parking only -- Violators will be toad. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Getting my IP adress (not 127.0.0.1)
"Michael Delorme" <[EMAIL PROTECTED]> wrote > However I only get 127.0.0.1 > But I want the "public" dynamic adress my ISP gave me, Don't use localhost, that's always 127.0.0.1 by definition. You didn't say what server you are using but if it's Apache try... getenv('SERVER_ADDR'); or gethostbynamel(getenv('HTTP_HOST')); phpinfo() should tell you what environment variables are available for your server. - Steve Yates - I have nothing against MS-DOS, stone knives, or bearskins. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Can't get XML Parser Class to work
I am very new at using PHP and need some help. I have downloaded several of the pre written XML Parser Classes and can't seem to get any of them to work. They simply don't return any data. I wrote a simple routine that calls the XML Parser and writes the output to the browser and it works fine. I am using PHP 4.05 on W2k Pro and IIS 5. Any suggestions would be greatly appreciated, Steve Dowell -- 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] Loading CURL
Hi Todd, 1: In 4.05 SSLEAY.DLL and LELEAY.DLL have a dependency for another DLL titled MSVCR70.DLL which is a replacement for MSVCRT.DLL. It's not the curl module itself, rather these later versions of ssleay and leleay that are distributed with the binary. 2: So you have two choices, use the 4.04 SSLEAY and LELEAY dll's copying into SYSTEM (W9x) or SYSTEM32 (NT+) or you could try copying MSVCRT.DLL to MSVCR70.DLL. I suspect that the copy would work. PS: You might try to get hold of DEPENDENCY WALKER 2, a freebie. A very good tool, not sure where but a search should point you in the right direction. For what it's worth I removed 4.05 and rolled back to 4.04, found a few other things which did not behave correctly. "Todd Cary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My version of PHP is the pre-compiled Windows executable (4.0.5). There > is a DLL, "php_curl.dll" that is in the extensions directory. In the > PHP.INI I have > > extension=php_curl.dll > > like the other extension that I have specified (e.g. > php_interbase.dll). The others load fine, but I get an error at startup > that it cannot *find* php_curl.dll. > > What am I missing? > > Todd > > -- > Todd Cary > Ariste Software > [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]
Re: [PHP-WIN] how to exucute PHP file automatically on Window NT4.0 scheduler
Hi Lalit, You should have no problem in running your script. Just create a batch file, change drive then directory and add PHP YOURSCRIPT.PHP. eg: DOIT.BAT @ECHO OFF D: CD\PHP4 PHP YOURSCRIPT.PHP EXIT Then use the AT command to invoke the batch file at the times required. ""Lalit"" <[EMAIL PROTECTED]> wrote in message 9e5b96$hgs$[EMAIL PROTECTED]">news:9e5b96$hgs$[EMAIL PROTECTED]... > I am working with PHP, Mysql on WINDOWS NT4.0.(IIS 4.0) > My problem is regarding Window Scheduler. I want to send mail every day at > perticular time to the email address list stored in Mysql database > automatically. The subject and mail body is also stored in database. > Window scheduler invokes only executable files, not php file in which I have > written queries and mail function. > > Does anybody know the solution ? > Thanks > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP 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 on win2000 : cgi error
Hyoneg, You say you have extension_dir in PHP.INI set to c:/php, unless you have moved things (PHP subdirectories) it should read c:/php/extensions. ""Hyoneg Kim"" <[EMAIL PROTECTED]> wrote in message 9e6mtt$jk1$[EMAIL PROTECTED]">news:9e6mtt$jk1$[EMAIL PROTECTED]... > I have w2000 and installed IIS 5.0 > I installed PHP 4.0.5 after that > I put extension_dir = c:/php > when I tryed the test.php under php directory > it gives me > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: > > > > > > -- > 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-WIN] sybase_ct module
Has anybody successfully used the sybase_ct.dll? It is linking in fine, but I don't think it's finding the interfaces file. Thanks! Steve Meyers -- 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] Need Help
I have a project where I need to use information gathered from a form and pass it to another web server and wait for a response from the other server in the form of an XML document then write the response to a file. Can anyone point me to information on how to accomplish this. Thanks in advance for any assistance, Steve Dowell -- 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] Need Help
I have a project that needs to take data from a form and pass that data to another webserver then receive a response from that other webserver in the form of an XML document and then write that document to a file. Can anyone point me to information on how to accomplish this? Thanks in advance for any help, Steve Dowell -- 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] crash on shutdown in php4ts.dll
I have a problem that has been nagging me for a while. If I load any php page from my machine, when I shut down Windows I get an error in php4ts.dll. If I have not loaded any php pages then it shuts down fine. My test system: Windows 98 SE MS Personal Web Server PHP 4.06 I have tried both the CGI and ISAPI versions of PHP. I also believe 4.05 had this problem as well, but earlier 4.x versions did not. (it's been around for a while as it only happens when I shut down and I usually forget to ask later :) I have put php4ts.dll on the PATH, and moved it to the \windows\system folder. Any suggestions? Any corroboration? - Steve Yates - SRT Enterprises - If you shoot a mime, should you use a silencer? / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] Help with Php4.06 installation
MB> Error:"The specified CGI application misbehaved by not returning a MB> complete MB> set of HTTP headers. The headers it did return are:" I do remember encountering this at one point, but unfortunately don't recall my solution. :-/ Make sure that you have modified the registry so PWS will execute PHP properly. Have test.php include something simple like just a call to phpinfo(). Or, have it be plain html, no PHP code. When PHP parses it, it should just output the plain html. Have you made sure the temporary directory in php.ini exists? I seem to recall it was something along these lines. MB> the path I try to access through Netscape MB> is: http://ppp/scripts/database/test.php Is "ppp" the name of your server? - Steve Yates - SRT Enterprises - Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes. / Taglines by Taglinator - www.srtware.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] Re: crash on shutdown in php4ts.dll
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a problem that has been nagging me for a while. If I load > any php page from my machine, when I shut down Windows I get an error in > php4ts.dll. If I have not loaded any php pages then it shuts down fine. OK, finally got around to remembering to write down the message. :) "INETINFO caused an invalid page fault in module php4ts.dll at 017f:01d7b434 ..." - Steve Yates - SRT Enterprises - Can I be excused? My brain is full. / Taglines by Taglinator - www.srtware.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] Re: upload files problem
"Camelia Moldovan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Unable to create '/img//tmp/php7C2cMh': No such file You have two //'s here. Also you weren't clear if this was hosting by you or at a hosting service. They may need the true path, in other words should something come before "/img"? - Steve Yates - SRT Enterprises - -- All right! Five more points! / Taglines by Taglinator - www.srtware.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] CGI mode still requires php4isapi.dll?
On my development PC, if I do not have php4isapi.dll in my PATH then I get 500 errors from PWS. I have PWS running on Windows 98 SE, and am running PHP in CGI mode per the Script Map registry entry (running PHP.EXE). As soon as I move php4isapi.dll into the PATH it starts working. Why is this DLL required? Do I have something configured incorrectly? I should note I do see one other oddity on my PC...if I access any PHP page, I get a GPF on Windows shutdown. If I open no .php pages (i.e. PHP never runs), I do not get the error. (This is bug report #13396 in the database.) I have encountered this problem for the last few versions of PHP, but just with installing 4.1 did I notice that I had php4isapi.dll in my PATH from previous versions, leading me to wonder if PHP was still somehow running in ISAPI mode. - Steve Yates - SRT Enterprises - Do files get embarrassed when you unZIP them? / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] CGI mode still requires php4isapi.dll?
"Martin Halford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I suspect we have the same problem - I've also tried setting up the registry > entry for the CGI mode and it makes no difference whatsoever. If you do a > phpinfo() you can see whether or not you are in ISAPI mode I think. Of course, don't know why I didn't think of that. I *am* running in ISAPI mode. Why is that? Does PWS ignore the script map entries? I did have it set up as ISAPI at one point but since that's still pre-release I thought I had changed back to CGI mode. Even more strange, when trying to debug the GPF-on-shutdown problem I had reinstalled PWS and am 99% sure I didn't configure PHP for ISAPI mode after. So it's pulling that from somewhere. - Steve Yates - SRT Enterprises - Meticulously hand-crafted from only the finest ASCII... / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] File question...
> From: Anthony Ritter > > >Using PHP, could I type in the updated fishing report in a > >simple text filecalled: fishingreport.txt > >and then... save that file to the server every time there is an update > where > >a php script (or function) could be called to read or write to that file > >(fishingreport.txt) without the need of publishing the file every time A variation on this that I've seen (with Perl I think though) was to mark a section of an HTML file with a specific comment like "Fishy fishy fishy fish". Then you or the user could interactively edit the text from another PHP page, retreiving, displaying, and replacing the text between the comments. - Steve Yates - SRT Enterprises - My hard disk is full! Maybe I'll try this message section thing. / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] CGI mode still requires php4isapi.dll?
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does PWS ignore the script map entries? I > did have it set up as ISAPI at one point but since that's still > pre-release I thought I had changed back to CGI mode. I was able to find a reference to php4isapi.dll in PWS's metabase.bin file. Unfortunately that seems the end of the road...Microsoft does have an editor for NT/2000 that runs as an MMC snap-in, but nothing for Win98. Suggestions, besides the obvious of completely deleting and reinstalling PWS or Apache? Thanks, - Steve Yates - SRT Enterprises - I suport publick skools. / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] HTTP Referer
> From: "Mihail Bota" <[EMAIL PROTECTED]> > > I am trying to use the HTTP_Referer (or any of its variants: SERVER_VARS, > > ENV_VARS) to keep track of the URL of pages that are passed through forms. One thing you might want to consider is that unless I am mistaken, HTTP_REFERER is dependent on the web browser sending that info to the server. It may also be dependent on the server also (?), but if it's working for you then obviously your server supports it. - Steve Yates - SRT Enterprises - There are 3 kinds of people: those who can count and those who can't. / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] CGI mode still requires php4isapi.dll?
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suggestions, besides the obvious of > completely deleting and reinstalling PWS or Apache? To follow up with the group, I uninstalled PWS and installed Apache 1.3.22 and the problem has disappeared as expected. I never was able to find a way to get PWS to not use the ISAPI DLL. - Steve Yates - SRT Enterprises - New oxymoron: final beta. / Taglines by Taglinator - www.srtware.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] Re: Apache 1.3.22 and PHP 4.1.0
"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Make sure you have this line in your httpd.conf . It's an omission from the > documentation if I remember right. > > AddModule mod_php4.c Just set this combination up the other day. I don't have that and I can run files via PHP.EXE. (but you're right there is no pre-made entry for it in the file) > "Randall Barber" <[EMAIL PROTECTED]> wrote in message > 002001c1940e$3af25ea0$c4df070a@rdb55">news:002001c1940e$3af25ea0$c4df070a@rdb55... > I add the familiar LoadModule and AddType lines to the Apache httpd.conf Did you add: ScriptAlias /php/ "c:/Program Files/php/" Action application/x-httpd-php "/php/php.exe" (note the second refers to the ScriptAlias "/php/" not a path, took me a bit to figure that out). I did have PHP installed first, though I downloaded the Windows binaries in Zip format to get the other goodies. >I install Apache first, then PHP with the following error: >Cannot unload mod-php4.c: File is not in module list Is this when installing, running Apache, or browsing a .php page? - Steve Yates - SRT Enterprises - Safe Sex: A pillow propped firmly against the headboard. / Taglines by Taglinator - www.srtware.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] Re: PHP and IIS
"Matt Obstgarten" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > that this is most likely because I don't have any mail settings Look for these settings in PHP.INI: [mail function] ; For Win32 only. SMTP = smtp.drcadvertising.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] - Steve Yates - SRT Enterprises - Meddle not in the affairs of dragons, for thou art crunchy, and good with ketchup. / Taglines by Taglinator - www.srtware.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] Re: Newbie Question: Using Cookies...
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I load the page into the browser and it says: > Cookie has been set Unless I am missing something you will ALWAYS get this since this is output as static body text? > 1. I didn't get a prompt box For what? > $cookie_name = "test_cookie"; > $cookie_value = "test string!"; > $cookie_expire= time() + 900; > setcookie($cookie_name, $cookie_value, $cookie_expire, "/", 0); > ?> > > > Set Test Cookie > > > Cookie has been set The last part is your domain name, so "0" is probably not matching your cookie to anything? Unless you're trying to make that the "secure" parameter, in which case you skipped one (and besides you can simply leave it off). Then later: - Steve Yates - SRT Enterprises - Change is inevitable, except from a vending machine. / Taglines by Taglinator - www.srtware.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] Re: $PHP_SELF
"David" <[EMAIL PROTECTED]> wrote: > Gregory Hart said something on 05 Jan 2002, in php.windows: > > I understand that the variable $PHP_SELF doesn't always work. I'm > > using Windows 98 SE with PHP 4.1.1. Is there any way to get I think I have seen $PHP_SELF not work on PWS...is that what you have? You might try $PATH_INFO or $SCRIPT_URL. > $SCRIPT_NAME usually works for me on most servers. I think this returns the program or CGI name. At least is does on the versions of Apache that I've tried. - Steve Yates - SRT Enterprises - I have a dream: DIR C: 965465065464984030373436 bytes free... / Taglines by Taglinator - www.srtware.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]
Re: [PHP-WIN] Windows NT SMTP Set Up Help Needed
> > A client is having trouble setting up SMTP services on their > > Windows NT machine so PHP can access it through the mail() function. > > > > SMTP is set to mail.theserver.com in the php.ini. > > Mail() works when set to a different mail server. > If they're on the same machine, why dont you use > localhost instead? Try a newer version of PHP. This was a known issue with older versions, and should be fixed in 4.0.2. This was my report, although in truth I can't recall if I ever went back and tried it with 4.1: http://bugs.php.net/bug.php?id=5743 The symptom was that it would hang trying to connect. - Steve Yates - WWhhaatt ddooeess ""DDUUPPLLEEXX"" mmeeaann?? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Apache variables
"B Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > echo $SCRIPT_NAME; > > Returns: nothing. What does phpinfo() show? There are some variables that are web-server dependent. - Steve Yates - Debrief: Wife listening while you talk in your sleep. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] pdf_open_memory_image not supported?
Looking all over web for resolution..can't find... getting "pdf_open_memory_image" not supported when I try to pass a GD image to PDF. PHP.net says available in 4.0 or better... I am trying to pass a barcode image created in GD to a PDF file, but need to create the barcodes dynamically for each label in the PDF, so I don't want to use a .png, .jpg or other. Using PHP 4.2.1 - Win2K, Apache 1.3.14, GD ver 1.6.2, PDFlib GmbH 4.0.2. Am I missing something? All .dlls are enabled and confirmed in phpinfo Any help would be appreciated... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Is ASP.NET faster than php?
"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Does anyone have any thoughts about PHP vs ASP.NET? See http://www.php.net/manual/en/faq.languages.php , including the comments. - Steve Yates - When all else is lost, the future still remains. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: more on HTTP post variables
[EMAIL PROTECTED] (Weifan Agusman) wrote in news:[EMAIL PROTECTED]: > I dont need to (and don't want to) put the 'school' field on the form. This is actually an HTML question. Use: - Steve Yates - * <- Tribble.! <- Tribble With A Mohawk. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP not outputting HTML
IIS 5, Windows 2000, PHP 4.3.3 ISAPI (manually installed) - but I'm not sure the ISAPI module is being called because when I go to http://fci.es.temp.roisupply.com/x.php - which contains a single call to phpinfo() - my browser tries to download the file and the mime type is apparently not being sent... Help... please :> -- JustThe.net Internet & New Media Services 22674 Motnocab Road * Apple Valley, CA 92307-1950 Steve Sobol, Proprietor 888.480.4NET (4638) * 248.724.4NET * [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: PHP not outputting HTML
Norbert GrXttner wrote: The script will work if either a) PHP.INI is changed to allow short tags Already does. I have it in c:\winnt\php.ini - is that the right location for the file? (Win2000 Terminal Server) short_open_tag=On plus when I change to If I view the page with IE, it does not show the proper MIME type for the file, so I think the problem runs a little bit deeper than this... -- JustThe.net Internet & New Media Services 22674 Motnocab Road * Apple Valley, CA 92307-1950 Steve Sobol, Proprietor 888.480.4NET (4638) * 248.724.4NET * [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: PHP not outputting HTML
Tao Z wrote: Seems like it's not sending the correct header. You can try add header("Content-type: text/html"); at the begining of your script. There is probably an option in the ini file you can change.. I'm not supposed to have to do that, I didn't have to do that on the last Windows installation I did, and I have _never_ had to do it with Linux and Apache. Besides, the file isn't being executed as a PHP script, so adding PHP commands won't help. Try going to http://fci.es.temp.roisupply.com/x.php - tell it you want to save the file; open up the file on your hard drive and you'll see it's the source code, not the output the script is supposed to display. -- JustThe.net Internet & New Media Services 22674 Motnocab Road * Apple Valley, CA 92307-1950 Steve Sobol, Proprietor 888.480.4NET (4638) * 248.724.4NET * [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php