php-windows Digest 13 Feb 2003 02:23:23 -0000 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
        18492 by: Brennan Mann
        18504 by: Cam Dunstan

Is there something like findfirst/findnext
        18485 by: J.Veenhuijsen
        18486 by: J.Veenhuijsen
        18487 by: Ignatius Reilly
        18488 by: J.Veenhuijsen

Parsing Error
        18491 by: Wade
        18493 by: Wade
        18494 by: Dash McElroy

general question on Globals
        18495 by: Paul Dymecki
        18498 by: Dash McElroy
        18502 by: Paul Dymecki
        18503 by: Paul Dymecki

ereg_replace
        18496 by: Bobo Wieland
        18499 by: Dash McElroy

copying a mysql table within a database
        18497 by: Frank Tudor

mhash extension module
        18500 by: Matt Hillebrand

Re: PWS or IIS?
        18501 by: Vladimir Galkov

[Import text file]
        18505 by: RG

Re: Passing parameters in forms
        18506 by: o-juice

Re: Blank line for writing to a file
        18507 by: o-juice

PHP or Apache isn't playing nice
        18508 by: o-juice
        18509 by: Chris Kranz

Need Help with Classes
        18510 by: Paul Dymecki

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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: Wednesday, February 12, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Apostrophe in login causes error


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 fine for 500+ partners...but we have three people whose last name
is O'Conner in the database (I can't change their HR record in the DB)
and the apostrophe in their name is causing the script to fail.  Without
changing settings in the ini file is there a way I can quickly make the
script accept the apostrophe in the name?

Thanks,
Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
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:24 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] Apostrophe in login causes error
|
|
|
|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 fine for 
|500+ partners...but we have three people whose last name is 
|O'Conner in the database (I can't change their HR record in 
|the DB) and the apostrophe in their name is causing the script 
|to fail.  Without changing settings in the ini file is there a 
|way I can quickly make the script accept the apostrophe in the name?
|
|Thanks,
|Ron
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|


--- End Message ---
--- Begin Message ---
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
evaluate to true and this worked:
if($string1 == "1000"), but I can't get it to work with both variables. Both
variables are string type. Any Ideas?

Thanks,
Brennan


--- End Message ---
--- Begin Message ---
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: 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
> evaluate to true and this worked:
> if($string1 == "1000"), but I can't get it to work
> with both variables. Both
> variables are string type. Any Ideas?
> 
> Thanks,
> Brennan
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--- End Message ---
--- Begin Message ---
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
loaded from a form when the user logs on..
Thanks,
Brennan

"Brennan Mann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> evaluate to true and this worked:
> if($string1 == "1000"), but I can't get it to work with both variables.
Both
> variables are string type. Any Ideas?
>
> Thanks,
> Brennan
>
>


--- End Message ---
--- Begin Message ---
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 PROTECTED]>
Sent: Thursday, February 13, 2003 2:33 AM
Subject: [PHP-WIN] String Compare


> 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
> evaluate to true and this worked:
> if($string1 == "1000"), but I can't get it to work with both variables.
Both
> variables are string type. Any Ideas?
>
> Thanks,
> Brennan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
I should have read the manual better.

<?php

if ($dir = @opendir("/tmp")) {
  while (($file = readdir($dir)) !== false) {
    echo "$file\n";
  }
  closedir($dir);
}

?>


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


--- End Message ---
--- Begin Message ---
You could have read even better:

<?php
if ($handle = opendir('.')) {
   while (false !== ($file = readdir($handle))) {
       if ($file != "." && $file != "..") {
           echo "$file\n";
       }
   }
   closedir($handle);
}
?>

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]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 4:55 PM
Subject: [PHP-WIN] Re: Is there something like findfirst/findnext


> I should have read the manual better.
>
> <?php
>
> if ($dir = @opendir("/tmp")) {
>    while (($file = readdir($dir)) !== false) {
>      echo "$file\n";
>    }
>    closedir($dir);
> }
>
> ?>
>
>
> 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://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Just what I need!!!

Thanks

Ignatius Reilly wrote:
You could have read even better:

<?php
if ($handle = opendir('.')) {
   while (false !== ($file = readdir($handle))) {
       if ($file != "." && $file != "..") {
           echo "$file\n";
       }
   }
   closedir($handle);
}
?>

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]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 4:55 PM
Subject: [PHP-WIN] Re: Is there something like findfirst/findnext



I should have read the manual better.

<?php

if ($dir = @opendir("/tmp")) {
  while (($file = readdir($dir)) !== false) {
    echo "$file\n";
  }
  closedir($dir);
}

?>


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://www.php.net/unsub.php




--- End Message ---
--- Begin Message --- 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 = "
<form method = \"POST\" action = \"db_createtable.php\">
<input type = \"hidden\" name = \"$_POST[table_name]\" value = \"$_POST[table_name]\">

Wade

--- End Message ---
--- Begin Message --- 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 values from the POST variable?

$sql = "CREATE TABLE $_POST[table_name](";
for($i = 0; $i < count($field_name); $i++)

wade


Wade wrote:
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 = "
<form method = \"POST\" action = \"db_createtable.php\">
<input type = \"hidden\" name = \"$_POST[table_name]\" value = \"$_POST[table_name]\">

Wade


--- End Message ---
--- Begin Message ---
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 etc etc
}

If $_POST['table_name'] is not a variable (how are you passing more than
one name in it then?!?), you'll have to split it up however.

>From my experience, if you try to use the $_POST, $_GET, $_etc variables
in double quotes, it won't work. That's why I use the
".$_POST['varname']." trick. Don't forget to put the array name in single
(or double) quotes. $_POST[varname] will give you an undefined constant
error.

-Dash

On Wed, 12 Feb 2003, Wade wrote:

> 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 values from the POST variable?
>
> $sql = "CREATE TABLE $_POST[table_name](";
>               for($i = 0; $i < count($field_name); $i++)
>
> wade
>
>
> Wade wrote:
> > 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 = "
> >         <form method = \"POST\" action = \"db_createtable.php\">
> >         <input type = \"hidden\" name = \"$_POST[table_name]\" value =
> > \"$_POST[table_name]\">
> >
> > Wade
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- 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





_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--- End Message ---
--- Begin Message ---
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

On Wed, 12 Feb 2003, Paul Dymecki wrote:

> 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
>
>
>
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- 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. I know how to declare classes(i've been working in java for the past few years) but i don't get php's calling structure. Any help would be appreciated.
thx,
Paul



From: Dash McElroy <[EMAIL PROTECTED]>
To: Paul Dymecki <[EMAIL PROTECTED]>
Subject: Re: [PHP-WIN] general question on Globals
Date: Wed, 12 Feb 2003 12:21:56 -0800 (PST)

More than happy to help. I thought I was going insane last night...

-Dash

If mathematically you end up with the wrong answer, try multiplying by
the page number.

On Wed, 12 Feb 2003, Paul Dymecki wrote:

> Cool thanks,
> Paul
>
>
>
> >From: Dash McElroy <[EMAIL PROTECTED]>
> >To: Paul Dymecki <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: [PHP-WIN] general question on Globals
> >Date: Wed, 12 Feb 2003 11:46:47 -0800 (PST)
> >
> >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
> >
> >On Wed, 12 Feb 2003, Paul Dymecki wrote:
> >
> > > 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
> > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Protect your PC - get McAfee.com VirusScan Online
> > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > >
> > >
> > > --
> > > 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
>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

--- End Message ---
--- Begin Message ---
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=longlat";
$parms1[1] = "ellps=GRS80";
$parms1[2] = "datum=NAD83";
$parms1[3] = "no_defs";
$projLonLat = pj_init($parms1);

//project to lambert conical x,y
$parms2[0] = "proj=lcc";
$parms2[1] = "ellps=GRS80";
$parms2[2] = "datum=NAD83";
$parms2[3] = "lat_0= 49.0";
$parms2[4] = "lon_0= -95.0";
$parms2[5] = "lat_1= 49.0";
$parms2[6] = "lat_2= 77.0";
$parms2[7] = "units=m";
$projLCC = pj_init($parms2);
$lccXY = pj_transform($projLonLat, $projLCC, $dlon, $dlat,0 );
if ($lccXY == 0)
{
 pj_free($pj);
 return FALSE;
}
else
{
pj_free($pj);
return TRUE;
}

}

thx,
Paul
From: Dash McElroy <[EMAIL PROTECTED]>
To: Paul Dymecki <[EMAIL PROTECTED]>
Subject: Re: [PHP-WIN] general question on Globals
Date: Wed, 12 Feb 2003 14:07:01 -0800 (PST)

Do you have an example of the function (or requirements) you need to pass
along? I've got lots of functions I use in multiple files that call one
include file. Works just fine.

Unfortunately, I have almost no experience with PHP Classes. I need to
learn, but I have not yet had a chance to split my mind apart and learn
the concepts behind it. It does not help that PHP's OO stuff is a little
bit weak compared to other languages (from what I have heard).

-Dash

Travel important today; Internal Revenue men arrive tomorrow.

On Wed, 12 Feb 2003, Paul Dymecki wrote:

> 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. I know how to declare classes(i've
> been working in java for the past few years) but i don't get php's calling
> structure. Any help would be appreciated.
> thx,
> Paul
>
>
>
> >From: Dash McElroy <[EMAIL PROTECTED]>
> >To: Paul Dymecki <[EMAIL PROTECTED]>
> >Subject: Re: [PHP-WIN] general question on Globals
> >Date: Wed, 12 Feb 2003 12:21:56 -0800 (PST)
> >
> >More than happy to help. I thought I was going insane last night...
> >
> >-Dash
> >
> >If mathematically you end up with the wrong answer, try multiplying by
> >the page number.
> >
> >On Wed, 12 Feb 2003, Paul Dymecki wrote:
> >
> > > Cool thanks,
> > > Paul
> > >
> > >
> > >
> > > >From: Dash McElroy <[EMAIL PROTECTED]>
> > > >To: Paul Dymecki <[EMAIL PROTECTED]>
> > > >CC: [EMAIL PROTECTED]
> > > >Subject: Re: [PHP-WIN] general question on Globals
> > > >Date: Wed, 12 Feb 2003 11:46:47 -0800 (PST)
> > > >
> > > >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
> > > >
> > > >On Wed, 12 Feb 2003, Paul Dymecki wrote:
> > > >
> > > > > 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
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > > Protect your PC - get McAfee.com VirusScan Online
> > > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > > > >
> > > > >
> > > > > --
> > > > > 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
> > >
> > >
> > > _________________________________________________________________
> > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > http://join.msn.com/?page=features/virus
> > >
> > >
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

--- End Message ---
--- Begin Message ---
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:]/])","<a
href='\\0' class='red' target='_blank' onfocus='this.blur()'>\\2</a>",
$str);

I'm trying to get the grips of regular expressions but I can't figure this
one out; If the url includes a query-string I don't want it to be shown. So
the url
http://www.elstudion.com/index.php?foo=bar should be replaced with:

<a
href='http://www.elstudion.com/index.php?foo=bar'>www.elstudion.com/index.ph
p</a>

How do I do this?


Thanks!


.bobo

--- End Message ---
--- Begin Message ---
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 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:]/])","<a
> href='\\0' class='red' target='_blank' onfocus='this.blur()'>\\2</a>",
> $str);
>
> I'm trying to get the grips of regular expressions but I can't figure this
> one out; If the url includes a query-string I don't want it to be shown. So
> the url
> http://www.elstudion.com/index.php?foo=bar should be replaced with:
>
> <a
> href='http://www.elstudion.com/index.php?foo=bar'>www.elstudion.com/index.ph
> p</a>
>
> How do I do this?
>
>
> Thanks!
>
>
> .bobo
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
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

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
 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 - the only way to fix - load last good
configuration and restart IIS
 3.It is difficult enough to adjust system to work with the rights below
localsystem and it will be always necessary to remember that in that case
users run php, perl scripts with localsystem rights...

Advantages:
 Very simple setup and support.

-----
 Well... if you will be a single user of webserwer and your resourse IIS
qwite good... about PWS can say nothing... never saw it at all ;-) so ...
hm... use apache!! :-))))

"M1nt Ch3w" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>


--- End Message ---
--- Begin Message ---
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 :

<<Erreur 
requête SQL: 

LOAD DATA LOCAL INFILE 'C:\WINDOWS\TEMP\phpC255.TMP'  INTO TABLE 
abonnes FIELDS TERMINATED BY ';' ESCAPED BY '\\' LINES TERMINATED BY 
'\r\n' (dp_indpri,dp_nom,dp_ville)
MySQL a répondu:File 'c:windowstempphpc255.tmp' not found 
(Errcode:2)>>

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 API version 3.23.32

An idea ??

RG
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hello. Try checking the source of the file (in IE View > Source) and if you
see <FORM ACTION="" METHOD="POST"> instead of the file/script name try using
<FORM ACTION="<?php echo ($_POST["PHP_SELF"]); ?>" METHOD="POST"> instead.

Hope that helps. ^_^

--
[EMAIL PROTECTED]

"Apollo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> I am using Windows XP as my IIS platform, I have this code:
>
>   <form  action="<?php print $PHP_SELF?>" method="POST">
>     Type your name here: <input type="text" name="myName">
>   </form>
>
> even though i have typed a text on the textfield, $myName is still blank
> after I pressed enter. I have done all the settings i must do according to
> the installation manual, is there something else i should do?
>
> I am a newbie, please help. Thanks.
>
>


--- End Message ---
--- Begin Message ---
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:[EMAIL PROTECTED]...
> > When I'm writing some text to a file I want to add a carriage return to
> the
> > file. I've tried \n and \n\r and all that does is echo the \n\ and \n\r
> into
> > the file.
> > Any ideas?
> >
> >
>
>


--- End Message ---
--- Begin Message ---
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:

<?php
if ($mod) {
  switch($mod) {
    case "news":
    case "links":
      include ("../" . $mod . "/content.php");
    break;
    default:
      include ("../errorpages/404.php");
  }
} else {
  include ("../news/content.php");
}
?>

The way it's supposed to work is a user clicks on a link, e.g.
"http://www.blah.com/index.php?mod=news"; and the page with the content that
they're requesting is then displayed. Is there some setting missing in
Apache or PHP on my home system or is there some other explanation for why
things are going awry my side?

I'd appreciate any help. Thanks. :-)

--
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
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


-----Original Message-----
From: o-juice [mailto:[EMAIL PROTECTED]] 
Sent: 12 February 2003 23:27
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP or Apache isn't playing nice

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:

<?php
if ($mod) {
  switch($mod) {
    case "news":
    case "links":
      include ("../" . $mod . "/content.php");
    break;
    default:
      include ("../errorpages/404.php");
  }
} else {
  include ("../news/content.php");
}
?>

The way it's supposed to work is a user clicks on a link, e.g.
"http://www.blah.com/index.php?mod=news"; and the page with the content
that
they're requesting is then displayed. Is there some setting missing in
Apache or PHP on my home system or is there some other explanation for
why
things are going awry my side?

I'd appreciate any help. Thanks. :-)

--
[EMAIL PROTECTED]



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
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 outside the class:

$x = ($someVar->$myVar["u"]);
$y = ($someVar->$myVar["v"]);

Nada, rien, nicht, no dice...
Any help would be appreciated,

Paul


From: "Matt Hillebrand" <[EMAIL PROTECTED]>
To: "'Paul Dymecki'" <[EMAIL PROTECTED]>
Subject: OOP in PHP
Date: Wed, 12 Feb 2003 16:50:12 -0600

I like OOP as well. I'm a big fan of Java. However, I'm waiting for PHP
5 to do any OO in PHP since it's so limited in the current version.


|-----Original Message-----
|From: Paul Dymecki [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, February 12, 2003 4:47 PM
|To: [EMAIL PROTECTED]
|Subject: RE: [PHP-WIN] general question on Globals
|
|
|Thanks that clears things up a bit, i may go with classes in
|any case. Paul
|
|
|
|>From: "Matt Hillebrand" <[EMAIL PROTECTED]>
|>To: "'Paul Dymecki'" <[EMAIL PROTECTED]>
|>Subject: RE: [PHP-WIN] general question on Globals
|>Date: Wed, 12 Feb 2003 15:50:38 -0600
|>
|>Functions in PHP behave just like those in C, Perl, and Java
|(methods).
|>I noticed you said that you "declared a global variable inside a
|>function." You don't "declare" a global variable inside a
|function, you
|>use the global keyword inside a function to tell PHP to look in the
|>global scope for that variable.
|>
|>For Example:
|>
|><?
|>     $x = 444;  // this is a variable in the global scope
|>
|>     function my_func() {
|>        global $x;
|>        print $x;  // prints "444"
|>     }
|>?>
|>
|>Matt
|>
|>|-----Original Message-----
|>|From: Paul Dymecki [mailto:[EMAIL PROTECTED]]
|>|Sent: Wednesday, February 12, 2003 3:44 PM
|>|To: [EMAIL PROTECTED]
|>|Cc: [EMAIL PROTECTED]
|>|Subject: Re: [PHP-WIN] general question on Globals
|>|
|>|
|>|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.  I know how to declare
|>|classes(i've
|>|been working in java for the past few years) but i don't get
|>|php's calling
|>|structure.  Any help would be appreciated.
|>|thx,
|>|Paul
|>|
|>|
|>|
|>|>From: Dash McElroy <[EMAIL PROTECTED]>
|>|>To: Paul Dymecki <[EMAIL PROTECTED]>
|>|>Subject: Re: [PHP-WIN] general question on Globals
|>|>Date: Wed, 12 Feb 2003 12:21:56 -0800 (PST)
|>|>
|>|>More than happy to help. I thought I was going insane last night...
|>|>
|>|>-Dash
|>|>
|>|>If mathematically you end up with the wrong answer, try
|>|multiplying by
|>|>the page number.
|>|>
|>|>On Wed, 12 Feb 2003, Paul Dymecki wrote:
|>|>
|>|> > Cool thanks,
|>|> > Paul
|>|> >
|>|> >
|>|> >
|>|> > >From: Dash McElroy <[EMAIL PROTECTED]>
|>|> > >To: Paul Dymecki <[EMAIL PROTECTED]>
|>|> > >CC: [EMAIL PROTECTED]
|>|> > >Subject: Re: [PHP-WIN] general question on Globals
|>|> > >Date: Wed, 12 Feb 2003 11:46:47 -0800 (PST)
|>|> > >
|>|> > >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
|>|> > >
|>|> > >On Wed, 12 Feb 2003, Paul Dymecki wrote:
|>|> > >
|>|> > > > 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
|>|> > > >
|>|> > > >
|>|> > > >
|>|> > > >
|>|> > > >
|>|> > > >
|>|________________________________________________________________
|>|> > > > _
|>|> > > > Protect your PC - get McAfee.com VirusScan Online
|>|> > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|>|> > > >
|>|> > > >
|>|> > > > --
|>|> > > > 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
|>|> >
|>|> >
|>|> > _________________________________________________________________
|>|> > MSN 8 with e-mail virus protection service: 2 months FREE*
|>|> > http://join.msn.com/?page=features/virus
|>|> >
|>|> >
|>|
|>|
|>|_________________________________________________________________
|>|Help STOP SPAM with the new MSN 8 and get 2 months FREE*
|>|http://join.msn.com/?page=features/junkmail
|>|
|>|
|>|--
|>|PHP Windows Mailing List (http://www.php.net/)
|>|To unsubscribe, visit: http://www.php.net/unsub.php
|>|
|>|
|>|
|
|
|_________________________________________________________________
|MSN 8 with e-mail virus protection service: 2 months FREE*
|http://join.msn.com/?page=features/virus
|
|
|

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--- End Message ---

Reply via email to