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.
*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
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);
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
>
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
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
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
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=
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
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
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
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
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: [
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
$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
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
>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
[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
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:
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
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
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/
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)){
23 matches
Mail list logo