Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread Luis Moreira
What do you mean by "it doesn't work" ? It does (the minitest, I mean). Luis MikeA wrote: I have a PHP file that outputs HTML to the Internet to a user. The user also wants to be able to print that output to a printer. The user wants it formatted with page breaks in the proper place and so on.

Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread Jason Barnett
*Warning* I don't really suggest that you use eval() unless absolutely necessary. But in this case it does what I *think* you want it to do. http://www.php.net/manual/en/function.eval.php Luis Moreira wrote: What do you mean by "it doesn't work" ? It does (the minitest, I mean). Luis MikeA wrote

[PHP-WIN] Re: Error when trying to get global variables

2005-01-13 Thread Jason Barnett
Louis Young wrote: Hi there I've used a tool called asp2php to convert all my asp files to php files, but now in ASP you have the global.asa file. I've converted this to global.php. So now part of it looks as follows: It actually worked? Cool! function Application_OnStart() { extract($GLOBALS);

Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread David Elliott
Hail Mike, The ancient mystics foretold that on 13 January 2005, at 03:05:02 +0100 (which was 01:46 where I live) Mike rearranged electrons to get > I have a PHP file that outputs HTML to the Internet to a user. The user > also wants to be able to print that output to a printer. The user wants >

[PHP-WIN] Reg Ex help

2005-01-13 Thread Ron.Herhuth
I might be an idiot... I am trying to do a simple check to make sure a string contains at least an alphanumeric character before I print the string. How can I do this? Ron

[PHP-WIN] Application variables

2005-01-13 Thread Louis Young
Hi guys I know PHP doesn't support application variables. Anybody have a good workaround for this? Cheers Louis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread Michael Adams
On Wed, 12 Jan 2005 20:46:46 -0500 "MikeA" <[EMAIL PROTECTED]> wrote: > I have a PHP file that outputs HTML to the Internet to a user. The > user also wants to be able to print that output to a printer. The > user wants it formatted with page breaks in the proper place and so > on. Using one PH

[PHP-WIN] Error when trying to get global variables

2005-01-13 Thread Louis Young
Hi there I've used a tool called asp2php to convert all my asp files to php files, but now in ASP you have the global.asa file. I've converted this to global.php. So now part of it looks as follows: function Application_OnStart() { extract($GLOBALS); $Application["ConnectionString"]="PROVIDER=

[PHP-WIN] Re: Application variables

2005-01-13 Thread Jason Barnett
Louis Young wrote: Hi guys I know PHP doesn't support application variables. Anybody have a good workaround for this? Cheers Louis There is a PEAR package for this. Offhand I can't remember the name of it... but look and ye shall find. -- Teach a person to fish... Ask smart questions: http://w

[PHP-WIN] This is a tricky one

2005-01-13 Thread Louis Young
Hi I have a header which I just include every time from all my pages, but the headers caption needs to change according to the page which has been loaded. I've tried global variables, but as soon as I jump into a different session they seem to lose their values. So, what I did was created a tab

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread Leif Gregory
Hello Ron, Thursday, January 13, 2005, 8:17:51 AM, you wrote: R> I am trying to do a simple check to make sure a string contains at R> least an alphanumeric character before I print the string. How can R> I do this? if (preg_match("/[a-zA-Z0-9]+/"),$str) { echo $str; } There may be a more e

RE: [PHP-WIN] Reg Ex help

2005-01-13 Thread Wagner, Aaron
couldn't you use is_string ( mixed var ) aaron > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: January 13, 2005 10:18 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Reg Ex help > > > > I might be an idiot... > > I am trying to do a simple che

RES: [PHP-WIN] Reg Ex help

2005-01-13 Thread Rafael Soares
No, you aren't na idiot. You just don't how to do it, nobody knows everything. I think you can use strlen(); it returns an integer with the lenght of the variable (0 if it's blank). Don't worry, I learned this function some weeks ago... Happy new year, bye bye. -Mensagem original- De: [

[PHP-WIN] including an HTML file

2005-01-13 Thread Gaetano Savoca
How i can include in a HTML (with .php extension) file another HTML file, i mean not all teh page but only the element of the tag? I would to include with the include (nomefile); the body of other page There are some php function or some other way to do this? _ Ga

Re: [PHP-WIN] This is a tricky one

2005-01-13 Thread David OBrien
$PHP_SELF is the name of the current page. -Dave At 11:11 AM 1/13/2005, Louis Young wrote: Hi I have a header which I just include every time from all my pages, but the headers caption needs to change according to the page which has been loaded. I've tried global variables, but as soon as I jump

Re: [PHP-WIN] This is a tricky one

2005-01-13 Thread Randy Clamons
Louis, Try using $_SERVER['REQUEST_URI']. That will tell you the name of the page requested. Randy Clamons Systems Programming Astro-auction.com > Original Message > From: Louis Young <[EMAIL PROTECTED]> > To: php-windows@lists.php.net, [EMAIL PROTECTED] > Date: Thu, Ja

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread trystano
>if (preg_match("/[a-z0-9]+/i"),$str) So what denotes the end of the reg ex here? (if the '/' at the begin identifies the start? Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread Jason Barnett
[EMAIL PROTECTED] wrote: if (preg_match("/[a-z0-9]+/i"),$str) So what denotes the end of the reg ex here? (if the '/' at the begin identifies the start? Tryst Surely there is a manual page somewhere for "Perl Compatible Regular Expressions" :) Hint: actually, never mind, it's worth making you

RE: [PHP-WIN] Reg Ex help

2005-01-13 Thread Randy Clamons
Aaron, is_string() will return true even if there are no alphanumeric characters in the variable, even if the variable is empty. My best guess is that is_string() will not work in this case. Randy Clamons Systems Programming Astro-auction.com > Original Message > From:

Re: [PHP-WIN] weird problem php mssql

2005-01-13 Thread Frank M. Kromann
Are you using the same SAPI and context on both maschines? The mssql extension can give different results depending on the context the driver is used in (OEM to ansi convertion). If your data is stored in a binary column (not a text column) it should not matter though. - Frank > Hi, > I've st

[PHP-WIN] RE: [PHP] php editor

2005-01-13 Thread tg-php
It's true that googling would produce a list of PHP-happy editors, but the intended question seems to be more along the lines of "What does everyone like? Use? Prefer?" That's not something that's always found on lists you'd get off of google. Helpful responses aren't always ones that are t

[PHP-WIN] Re: [PHP] php editor

2005-01-13 Thread Jason Barnett
I use Wordpad. Seriously ;) -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2 -- PHP Windows Mailing List (http://www.php.net/

Re: [PHP-WIN] including an HTML file

2005-01-13 Thread Gaetano Savoca
On Friday, January 14, 2005 1:06 AM [GMT+1=CET], Gaetano Savoca <[EMAIL PROTECTED]> ha scritto: So i must do all manually i write this //Seeding the while loop below with the first line of the input file $line=fgets($fh); while (!feof($fh)){