RE: [PHP-WIN] mhash extension module

2003-02-12 Thread Matt Hillebrand
Yeah, I checked it. Other extensions are working fine. I read elsewhere that the mhash dll just doesn't work in Windows So why even have the .dll in the first place? Something is fishy about this. |-Original Message- |From: Rico Derks [mailto:[EMAIL PROTECTED]] |Sent: Thursday, Febru

Re: [PHP-WIN] mhash extension module

2003-02-12 Thread Rico Derks
Hi Matt, Maybe you checked it already. How is the extensions_dir specified in your php.ini. Should be something like: c:/php/extensions Cheers, RICO. At 20:55 12/02/2003, Matt Hillebrand wrote: Does anyone know how to use the php_mhash.dll that comes with PHP for Windows? If I uncomment that

Re: [PHP-WIN] PHP or Apache isn't playing nice

2003-02-12 Thread Rico Derks
Hi, I forgot something. Check your php.ini where your includes are stored. Cheers, RICO. At 00:27 13/02/2003, o-juice wrote: Hello. I've got the following set-up and working at home (on a Win98SE workstation): Apache 2.0.43 PHP 4.2.1 For some reason the following code (which works fine on my

Re: [PHP-WIN] PHP or Apache isn't playing nice

2003-02-12 Thread Rico Derks
Hi, Try removing the ../ part from the include functions. I had more or less the same problem! Cheers, RICO. At 00:27 13/02/2003, o-juice wrote: Hello. I've got the following set-up and working at home (on a Win98SE workstation): Apache 2.0.43 PHP 4.2.1 For some reason the following code (whi

Re: [PHP-WIN] Getting HTML Content as a variable

2003-02-12 Thread Leo G. Divingracia III
1. use SESSIONS to pass authentication between pages. 2. register_globals ON or OFF? ;) [EMAIL PROTECTED] wrote: Hi, I've been directed to use file() or implode() to get the html content of a web page, like this: $html = implode ('', file ('http://192.168.1.100/PHP/index.php')); 1 ) How do

Re: [PHP-WIN] copying a mysql table within a database

2003-02-12 Thread Leo G. Divingracia III
here's the mysql syntax: http://www.mysql.com/doc/en/CREATE_TABLE.html create table SPORTLASER select * from MICROLIGHT just call that from PHP... Frank Tudor wrote: I know this is not the right group but the mysql group is very quite. how do I copy a table and rename it inside a database Li

[PHP-WIN] Re: PHP or Apache isn't playing nice

2003-02-12 Thread wisi
register_globals must be turned ON. "O-Juice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello. I've got the following set-up and working at home (on a Win98SE > workstation): > > Apache 2.0.43 > PHP 4.2.1 > > For some reason the following code (which wor

RE: [PHP-WIN] Need Help with Classes

2003-02-12 Thread Matt Hillebrand
I'm not sure what you're expecting to see. You don't have any code that produces output, nor do you invoke the myFunc() method. Matt |-Original Message- |From: Paul Dymecki [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, February 12, 2003 8:23 PM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] N

php-windows Digest 13 Feb 2003 02:23:23 -0000 Issue 1585

2003-02-12 Thread php-windows-digest-help
php-windows Digest 13 Feb 2003 02:23:23 - Issue 1585 Topics (messages 18483 through 18510): Re: Apostrophe in login causes error 18483 by: Nichols, Mark A. 18490 by: Matt Hillebrand String Compare 18484 by: Brennan Mann 18489 by: Piotr Pluciennik 1849

[PHP-WIN] Need Help with Classes

2003-02-12 Thread Paul Dymecki
Ya it seems like a pain indeed. I guess i'll pose the question though: for the following class class myClass { var myVar; function myFunc($myVarA,$myVarB) { $this -> myVar = array("b" => 55,"c" => 66); } } Now i try $somveVar = new myClass(); and finally i try and acces myVar from outs

RE: [PHP-WIN] PHP or Apache isn't playing nice

2003-02-12 Thread Chris Kranz
This may just be me, and I could be wrong, but I've had problems with relative paths and such using windows boxes before. Windows had always been an ass to me on this. You may need to try specifying the directory absolutely. Are you getting any error messages? chris kranz fatcuban.com -Or

[PHP-WIN] PHP or Apache isn't playing nice

2003-02-12 Thread o-juice
Hello. I've got the following set-up and working at home (on a Win98SE workstation): Apache 2.0.43 PHP 4.2.1 For some reason the following code (which works fine on my on-line PHP host) refuses to work at home: The way it's supposed to work is a user clicks on a link, e.g. "http://www.blah.com

[PHP-WIN] Re: Blank line for writing to a file

2003-02-12 Thread o-juice
Try \r\n instead of \n\r too. -- [EMAIL PROTECTED] "Brett Greiner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I found out that '\n' does work but "\n" does. Very Strange! > > "Brett Greiner" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[E

[PHP-WIN] Re: Passing parameters in forms

2003-02-12 Thread o-juice
Hello. Try checking the source of the file (in IE View > Source) and if you see instead of the file/script name try using " METHOD="POST"> instead. Hope that helps. ^_^ -- [EMAIL PROTECTED] "Apollo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, >

[PHP-WIN] [Import text file]

2003-02-12 Thread RG
Hi I try to do an import text file into a mysql table with the php script provided with Manucorp Easyphp, but it does not work. The message is : <> The path above seems to be incorrect, but i have not found where to modify it. Environment is : Apache 1.3.17 win32 PHP 4.0.5-dev MySQL client

Re: [PHP-WIN] String Compare

2003-02-12 Thread Cam Dunstan
Brennan You should confine those sorts of comparisons to numbers if($num == 1000) For strings, use strcmp() if (strcmp($s1, $s2) ==0){echo "these strings are identical"; } be aware that it is case sensitive. - Original Message - From: "Brennan Mann" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: [PHP-WIN] general question on Globals

2003-02-12 Thread Paul Dymecki
Hi Dash, Yup here's the function cal and the function: if (projectLatLon($lat,$lon)) { ...do stuff } else { ..do other stuff } function projectLatLon($lat,$lon) { GLOBAL $lccXY; $dlat = doubleval($lat); $dlon = doubleval($lon); //project from geodetic coordinate degrees $parms1[0] = "proj=lon

Re: [PHP-WIN] general question on Globals

2003-02-12 Thread Paul Dymecki
I guess i'm not out of the woods, What i'm actually trying to do is re-use a function across php files which isn't working to well. I'm not sure if i'll have to declare a class. In any case what i'm tryin to do is an ordinary function call passing in 2 arguments and getting one return value.

[PHP-WIN] Re: PWS or IIS?

2003-02-12 Thread Vladimir Galkov
I have to use IIS5 on one of my servers after approximately one and a half year I don't become a fan of it... apache much better (but compile it by yourself!). Lacks: 1. Large memory usage. 2. Logs of very popular resoureses become mad: IIS5 writes only what it want to write but all what I set

[PHP-WIN] mhash extension module

2003-02-12 Thread Matt Hillebrand
Does anyone know how to use the php_mhash.dll that comes with PHP for Windows? If I uncomment that line in my php.ini file and restart Apache, it says that that module can't be found. I know the file is in my extension directory. What's up? Thanks. Matt

Re: [PHP-WIN] ereg_replace

2003-02-12 Thread Dash McElroy
I would just cut the text off via explode at the ? mark. i.e.: $shorturl = explode("?", $str, 1); //may or may not work... then echo $shorturl[0]; -Dash Sturgeon's Law: 90% of everything is crud. On Wed, 12 Feb 2003, Bobo Wieland wrote: > I'm using ereg_replace to find urls as said i

Re: [PHP-WIN] general question on Globals

2003-02-12 Thread Dash McElroy
I actually just did this last night. I could not for the life of me figure out why my variable wasn't working. Until I remembered it was in a function and I had to do a global $varname; command. Works just fine. -Dash Age before beauty; and pearls before swine. -- Dorothy Parker

[PHP-WIN] copying a mysql table within a database

2003-02-12 Thread Frank Tudor
I know this is not the right group but the mysql group is very quite. how do I copy a table and rename it inside a database Like if database = microlight table = microlight copy table microlight to table called sportlaser Please help. Frank __

[PHP-WIN] ereg_replace

2003-02-12 Thread Bobo Wieland
I'm using ereg_replace to find urls as said in the manual. I've changed it a tiny litte bit to remove the http:// part when displaying the link, like this: $str = ereg_replace("([[:alpha:]]+://)([^<>[:space:]]+[[:alnum:]/])","\\2", $str); I'm trying to get the grips of regular expressions but I c

[PHP-WIN] general question on Globals

2003-02-12 Thread Paul Dymecki
I have a general question on Global vars. If you declare a Global variable within a function in a program called x.php. Do you have access to this variable in another program say y.php that has include_once("x.php")? thx, Paul Dymecki ___

Re: [PHP-WIN] Re: Parsing Error

2003-02-12 Thread Dash McElroy
Wade, Is the variable table_name you're passing an array? If so, you would want to do something more like this: $array = $_POST['table_name']; foreach ($array as $table) { $sql = "CREATE TABLE ".$table."("; for($i = 0; $i < count($field_name); $i++) ///etc

[PHP-WIN] Re: Parsing Error

2003-02-12 Thread Wade
02122003 1252 GMT-6 Ok. This might be a different problem than I first thought. Im calling data from the previous page via the $_POST. This holding variable is holding eight or more values. It takes these values and creates fields for a database. My problem is, does this code pull multple value

[PHP-WIN] Re: String Compare

2003-02-12 Thread Brennan Mann
More information on the problems... $string1 = rtrim($line[0]); $string2 = ($_SESSION['username']); rtrim( $string2 ); rtrim( $string1 ); Here is what is being done to the two string. The session variable is being lo

[PHP-WIN] Parsing Error

2003-02-12 Thread Wade
02122003 1224 GMT-6 I have a question. When escaping characters, on the $_POST{x} do you need to escape this as well? This is a snippt of code but Im getting a Parse T error. $form_block = " Wade -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Matt Hillebrand
Check out addslashes() and stripslahes(). Also, when you're populating name fields using values from the database, try using htmlspecialchars(). I found that to be very useful. Matt |-Original Message- |From: Herhuth, Ron [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, February 12, 2003 7:2

Re: [PHP-WIN] String Compare

2003-02-12 Thread Piotr Pluciennik
Have you tried strcasecmp() or strcmp()? See the manual for reference. Piotr --- Brennan Mann <[EMAIL PROTECTED]> wrote: > Hello Everybody, > > Is there a way to do a hex view on strings. Right > now my if statement is > evaluating to false when I compare these two > strings: > S1: 1000 > S2:

Re: [PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
Just what I need!!! Thanks Ignatius Reilly wrote: You could have read even better: This will avoid the "." and ".." elements in the directory, that one usually does not need. HTH INAS, from Brussels (Ignatius is Not Ander Svensson) - Original

Re: [PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread Ignatius Reilly
You could have read even better: This will avoid the "." and ".." elements in the directory, that one usually does not need. HTH INAS, from Brussels (Ignatius is Not Ander Svensson) - Original Message - From: "J.Veenhuijsen" <[EMAIL PROTECTED

[PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
I should have read the manual better. J.Veenhuijsen wrote: I need to retrieve a list of files (jpg) in a directory. Is there a function like findfirst(*.jpg) like there is in Delphi? Thanks in advance ? Jochem -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP-WIN] Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
I need to retrieve a list of files (jpg) in a directory. Is there a function like findfirst(*.jpg) like there is in Delphi? Thanks in advance ? Jochem -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] String Compare

2003-02-12 Thread Brennan Mann
Hello Everybody, Is there a way to do a hex view on strings. Right now my if statement is evaluating to false when I compare these two strings: S1: 1000 S2: 1000 If ($s1 == $s2) should evaluate to true not to false. I tried a couple different things to see if I could get it the statement to eva

RE: [PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Nichols, Mark A.
Try using the addslashes function. Magic Quotes may need to be turned on in the php.ini file, but I'm not sure. $newloginname=addslashes($loginname); This should allow for the apostrophe in the variable. -Original Message- From: Herhuth, Ron [mailto:[EMAIL PROTECTED]] Sent: Wednes

php-windows Digest 12 Feb 2003 13:19:53 -0000 Issue 1584

2003-02-12 Thread php-windows-digest-help
php-windows Digest 12 Feb 2003 13:19:53 - Issue 1584 Topics (messages 18473 through 18482): Re: reading lines from a file 18473 by: Per Lundberg 18475 by: Svensson, B.A.T. (HKG) 18476 by: Svensson, B.A.T. (HKG) 18477 by: Neil Smith quotes and backslashes

[PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Herhuth, Ron
I have built a typical login form where a user enters their last name as the user name and the last four digits of their SSN as their password. The following page checks to see if the user exists in the database and either allows access or denies access based on the findings. This has worked

RE: [PHP-WIN] PWS or IIS?

2003-02-12 Thread Chris Kranz
I'm not 100% sure on how PWS runs on win XP, but I have used IIS, and I'm not a big fan. I believe IBM are now running XP with IIS, alongside 2k with IIS on their webservers. Response time from the XP servers are nearly double that of the 2k ones. Personally, I think you should look at apache. But

RE: [PHP-WIN] quotes and backslashes

2003-02-12 Thread Chris Kranz
Checkout the stripslashes() and addslashes() functions. Very cool for stuff like this, and very easy :) chris kranz fatcuban.com -Original Message- From: Per Lundberg [mailto:[EMAIL PROTECTED]] Sent: 12 February 2003 09:00 To: Bobo Wieland Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] qu

[PHP-WIN] PWS or IIS?

2003-02-12 Thread m1nt ch3w
Howdy all, Just got Win XP Pro, and was wondering which server to go for. IIS or PWS? Which one is more stable and stuff like that. Thanks in advance, /m1nt -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] quotes and backslashes

2003-02-12 Thread Per Lundberg
On Wed, 2003-02-12 at 09:35, Bobo Wieland wrote: > When I have strings like 'Hello "World"' containing quotes and passes them > to another page I use: rawurlenecode(html_entity_decode($string, > ENT_QUOTES)). > > And then I use rawurldecode to display them again, getting the string: > 'Hello \"Wo

RE: [PHP-WIN] reading lines from a file

2003-02-12 Thread Neil Smith
George - didn't you come to us with this exact problem a month or so ago ? I think chris probably meant not readline but fgets() and / or file() fgets() reads a specified chunk size into a string or other variable. file() reads a file line by line (separator is the newline character: : array fil

RE: [PHP-WIN] reading lines from a file

2003-02-12 Thread Svensson, B.A.T. (HKG)
> Cheer up and be confident in the judgement of the > respectively responsible. There are aspects to consider > unmentioned and irrelevant w/resp to this NG. So I'd > suggest to keep cool. Basically I don't care how people implement things: as long as I don't have to clean it up. So it not my bus

RE: [PHP-WIN] reading lines from a file

2003-02-12 Thread Svensson, B.A.T. (HKG)
> Maybe you should Read The Fine Manual, Anders? :-) I don't need that, because I don't use PHP. ;) > But then again, doing the parser would be a much more time-consuming > process. And even worse, we're on the wrong mailing list for that... :) I guess you are quite right on that one too. --

[PHP-WIN] quotes and backslashes

2003-02-12 Thread Bobo Wieland
Hi! When I have strings like 'Hello "World"' containing quotes and passes them to another page I use: rawurlenecode(html_entity_decode($string, ENT_QUOTES)). And then I use rawurldecode to display them again, getting the string: 'Hello \"World\"' ... Why, and hw do I fix it? My brain isn't in th

RE: [PHP-WIN] reading lines from a file

2003-02-12 Thread Per Lundberg
On Tue, 2003-02-11 at 18:27, Svensson, B.A.T. (HKG) wrote: > Also excuse my limited ignorant knowledge about PHP, but > my impression about PHP is that it is runs as an instance > of the web server or something? (Please, correct me if I > made any fundamental mistake here!) Yes and no. It can be