Re: [PHP] Macs and PHP

2001-02-18 Thread Jesse Swensen

Another thing to look for is JavaScript.  There have been several sites I
have visited (I am also a big Mac user), that use a lot of JavaScript that
will break on IE 5 for the Mac.
-- 
Jesse Swensen
[EMAIL PROTECTED]

 From: Michael Stearne [EMAIL PROTECTED]
 Date: Sun, 18 Feb 2001 13:45:21 -0500
 To: Mike Yuen [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Macs and PHP
 
 Mike Yuen wrote:
 
 I'm got another person working for me on a site.  He's a Mac user and for
 some reason, he can't seem to register as a new person.  I know this
 problem isn't due to the large amount of traffic b/c it's a new site with
 3 users max at any time.
 
 I haven't found any similar problems in any knowledge base and i'm
 thinking it has something to do with my cable modem connection and the
 fact that:
 1. I'm in Seattle and he's in Cleveland (distance issue) - less likely.
 
 That's not really possible.  The only way this could happen is that if
 you have certain IPs blocked.
 
 
 2. ON the more likely side, all the crap that is running on my computer
 (ie: firewalls, IDS, telnet, applications).
 
 This all depends on the type of authentication you are using to allows
 users access to the site.  It's probably not a firewall problem becuase
 if any user can see the sight at all, all should be able to.  But all
 the other crap you have running on your computer shouldn't matter as
 long as you or one other user can register.  The problem is probably
 somewhere in your script.
 
 Are you checking for browser types?  Are you and the other Win user
 using IE and the Mac user using NS.  Is the web server IIS or Apache?
 Are you using PHP for checking the users or Apache or IIS?
 
 If you could post some code, it would probably help.
 
 Michael
 
 
 
 
 -- 
 PHP General 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 General 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] help with classes

2001-02-13 Thread Jesse Swensen

on 2/13/01 12:04 AM, Joe Conway at [EMAIL PROTECTED] wrote:

 ?PHP
 
 class Foo {
 
 var $bar;
 
 function mymethod(){
 
 global $foo;
 $this-bar = $foo;
 
 }
 
 }
 
 $foo = "hello world";
 
 echo "htmlbody";
 
 $cls = new foo();
 $cls-mymethod();
 echo $cls-bar;
 
 echo "/body/html";
 ?

This can be simplified by:

?php
class Foo {
function Foo($foo="") {
$this-bar = $foo;
}
}

$foo = "Hello World";
    $cls = new Foo($foo);
echo $cls-bar;
?
-- 
Jesse Swensen
[EMAIL PROTECTED]


-- 
PHP General 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] Regex help needed...

2001-02-12 Thread Jesse Swensen

This should be a quick one, but I can't seem to wrap my brain around it.
All I need to do is replace leading or trailing spaces with underscores.  If
there is spaces in between words, leave them alone.

Suggestions?

-- 
Jesse Swensen
[EMAIL PROTECTED]


-- 
PHP General 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] Regex help needed...

2001-02-12 Thread Jesse Swensen

on 2/12/01 1:01 PM, Jason Stechschulte at [EMAIL PROTECTED] wrote:

 On Mon, Feb 12, 2001 at 12:15:04PM -0500, Jesse Swensen wrote:
 This should be a quick one, but I can't seem to wrap my brain around it.
 All I need to do is replace leading or trailing spaces with underscores.  If
 there is spaces in between words, leave them alone.
 
 $fix = ereg_replace("(^ )|( $)", "_", $checkme);

This is very close.  If the string, "  Testing  ", had multiple spaces, but
I wanted to convert each space to a "_", then what?  I tried:

$fix = ereg_replace("(^ +)|( +$)", "_", $checkme);

and

$fix = ereg_replace("(^[ ]+)|([ ]+$)", "_", $checkme);

with no success.

Thanks for your help...
-- 
Jesse Swensen
[EMAIL PROTECTED]


-- 
PHP General 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] Regex help needed...

2001-02-12 Thread Jesse Swensen

on 2/12/01 4:30 PM, Christian Reiniger at [EMAIL PROTECTED] wrote:

 On Monday 12 February 2001 21:08, Jesse Swensen wrote:
 This should be a quick one, but I can't seem to wrap my brain around
 it. All I need to do is replace leading or trailing spaces with
 underscores.  If there is spaces in between words, leave them alone.
 but I wanted to convert each space to a "_", then what?  I tried:
 
 $fix = ereg_replace("(^ +)|( +$)", "_", $checkme);
 
 and
 
 $fix = ereg_replace("(^[ ]+)|([ ]+$)", "_", $checkme);
 
 preg_match ('/^(\s*)(.*?)(\s*)$/', $checkme, $matches);
 $NewString = str_repeat ('_', strlen ($matches [1])).
 $matches [2] .
 str_repeat ('_', strlen ($matches [3]));
 
 not tested, but should work fine.

That worked.  Thank you very much.
-- 
Jesse Swensen
[EMAIL PROTECTED]


-- 
PHP General 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] shows up in IE but not Netscape

2001-02-09 Thread Jesse Swensen

Sounds like you may be missing a piece of a table. Make sure all your table,
tr, td type tags have a closing tag.  IE is more forgiving...
-- 
Jesse Swensen
[EMAIL PROTECTED]

 From: "Erik Boles" [EMAIL PROTECTED]
 Organization: rocky Mountain Web Tech
 Reply-To: "Erik Boles" [EMAIL PROTECTED]
 Date: Fri, 9 Feb 2001 10:09:02 -0700
 To: "PHP3 List" [EMAIL PROTECTED]
 Subject: [PHP] shows up in IE but not Netscape
 
 We are running a webform, that asks for user ID and pass, then passes it on
 to a .php3 file that shows them a page to continue (not a security thing,
 just a tracking thing).
 
 This .php3 file, called login.php3 works just fine in IE but when viewed in
 netscape it simply shows a white screen.  We did a "view source" and all of
 the php file is there, and it doesn't show any errors (HTML errors blink in
 the 'view source' with Netscape).
 
 Any ideas why the code below is not working right in Netscape??
 
 --login.php3---
 
 HTMLBODY
 
 ?php
 switch ($position)
 {
 case "process":
 require('logon.inc');
 $query = "select userid, company, active from registration where
 userid='$userid' and password='$password'";
 $result = mysql_query($query);
 $row = @mysql_fetch_array($result);
 
 //test section start
 
 //print ("Id entered by user is $useridbr");
 //print ("Id retrieved from database is");
 //print $row["userid"];
 //print ("br");
 
 //test section end
 
 if ($row["userid"] == $userid)
 {
 if ($row["active"] =="YES")
 {
 ?
 htmlhead/headbody bgcolor="#FF"
 center
 table valign=top nowrap
 tr
 td
 
 
 OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"
 
 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
 ,0"
 ID=ptac WIDTH=393 HEIGHT=272 ALIGN=top
 PARAM NAME=movie VALUE="ptacwebsite.swf"
 PARAM NAME=loop VALUE=false
 PARAM NAME=quality VALUE=high
 PARAM NAME=bgcolor VALUE=#FF
 EMBED src="ptacwebsite.swf" quality=high bgcolor=#FF
 loop=false
 WIDTH=393 HEIGHT=272 ALIGN=top TYPE="application/x-shockwave-flash"
 
 PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
 Version=ShockwaveFlash"
 /EMBED
 /OBJECT
 /td
 
 td
 Center
 Welcome back to the ColoradoPTAC website, ?PHP print
 $row['company']; ?.brbr
 Please click a href="registered/registered.html"
 target="_top"here/a to
 complete the login process and begin using the site.
 /center
 /td
 /tr
 table
 ?php
 }
 else
 {
 ?
 htmlhead/headbody bgcolor="#FF"
 center
 B
 Your account has temporarily been disabled by the system
 administrator. If you
 feel this was done by mistake, please send an email to
 a href="mailto:[EMAIL PROTECTED]"
 [EMAIL PROTECTED]/a
 to resolve the issue.BRBR
 We apologize for any inconvenience this has caused.
 /B
 /center
 ?php
 }
 }
 else
 {
 ?
 htmlhead/headbody bgcolor="#FF"
 center
 B
 Either you do not currently have a membership with us or you have entered
 an invalid Member ID/Password combination.brbr
 Please click a href="register/register.htm" target="_top"here/a to
 joinbrbr-OR-brbrClick a href="index.htm"here/a to try again.
 /B
 /center
 ?php
 }
 }
 ?
 /BODY/HTML
 
 ---login.php3--
 
 
 
 
 
 Erik
 
 
 -- 
 PHP General 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 General 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]