Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83359 invoked by uid 1010); 28 Apr 2004 12:54:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76678 invoked from network); 28 Apr 2004 12:53:48 -0000 Received: from unknown (HELO theta.altoona-pa.com) (209.161.72.28) by pb1.pair.com with SMTP; 28 Apr 2004 12:53:48 -0000 Received: from ionzoft-jeg.ionzoft.com (dpvc-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id AEB8D13FA8 for ; Wed, 28 Apr 2004 08:52:58 -0400 (EDT) Message-ID: <5.1.0.14.0.20040428085218.01f8b710@mail.ionzoft.com> X-Sender: izftjason@mail.ionzoft.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 28 Apr 2004 08:52:29 -0400 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Javascript / Php From: jason@ionzoft.com (Jason Garber) Hello, This is the internal development mailing list. Please repost your question to the "General users list" at http://www.php.net/mailing-lists.php FYI, PHP is a server side scripting language, and javascript is a client side scripting language. Javascript code will not be evaluated until long after PHP is finished. ~Jason At 4/28/2004 02:37 PM +0200, Kyle Vorster wrote: >function setscreen() { > $height = ""; > $width = ""; > if (($height == "640") && ($width == "480")) { > echo "height == 640 & width = 480"; > } elseif (($height == "800") && ($width == "480")) { > echo "2"; > } elseif (($height == "800") && ($width == "600")) { > echo "3"; > } elseif (($height == "1024") && ($width == "576")) { > echo "4"; > } elseif (($height == "1024") && ($width == "768")) { > echo "Height = 1024 & width = 768"; > } >echo "Height == $height & width == $width"; >} >?> > > >gives me this > >Height == 1024 & width == 768 > >but the html for that is Height == > & width == > > >and i wanne work with the 1024 in php and not with the html ,, what can >i do to >run the javascript at server side and not on the client side > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php __________________________________________________________ Jason Garber President & Chief Technology Officer IonZoft, Inc. 814.742.8030 :: jason@ionzoft.com :: http://IonZoft.com __________________________________________________________