php-windows Digest 16 Jan 2004 00:15:05 -0000 Issue 2082
Topics (messages 22579 through 22587):
Is the link correct?
22579 by: Disko_kex
22580 by: Humberto Silva
Re: undefined printing functions
22581 by: Humberto Silva
Not about PHP, but ....
22582 by: Jose Marcos Souza Junior
22583 by: Humberto Silva
Regular expressions
22584 by: Gerardo Rojas
22585 by: Ignatius Reilly
22586 by: Gerardo Rojas
how to check the form filled all
22587 by: Sungpill Han
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 ---
Hi
$link = "http://www.does_not_exists.com";
Is there a way to check if the link is correct and return true or false?
Thanks
//jocke
--- End Message ---
--- Begin Message ---
>From the manual notes:
<?php
if (@fclose(@fopen("http://www.example.com", "r"))) {
print("File exists.");
} else {
print("File does not exist.");
}
?>
Humberto Silva
World Editing
Portugal
-----Original Message-----
From: Disko_kex [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 15 de Janeiro de 2004 9:34
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Is the link correct?
Hi
$link = "http://www.does_not_exists.com";
Is there a way to check if the link is correct and return true or false?
Thanks
//jocke
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
In the php.ini make sure this points to the directory where the
php_printer.DLL is.
extension_dir = "./"
Humberto Silva
World Editing
Portugal
-----Original Message-----
From: Luis Moreira [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 14 de Janeiro de 2004 15:03
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] undefined printing functions
Hi
I am trying to write scripts to print data using PHP 4.2.2 (Win2K) ,
and keep getting
Fatal error: Call to undefined function: WATHEVER_FUNCTION() in
d:\myweb\printers.php on line xx
(the line number matches the line where the function - any function - is
called from)
On PHP.INI, the corresponding extension php_printer.dll is not
commenetd, and the DLL file exists.
Any hints ?
Thanks
Luis
--- End Message ---
--- Begin Message ---
Hi people
The question thats i have is not about PHP, but a very weird
problem with windows !
---------------------------------------------------------------------------------------
in the inicialization of the system, it's give the error:
"Protection error of the system. It must be reinicialized"
it's appears thats is a problem with RAM memory, but is
the second time thats occours !
i resolve this initializing the system in security mode, and after
i reinicialize again (in normal mode) and Windows load properly !!!
why ???
can anyone explain what is happening ?
thanks for all
note: i don't want to continue in this process ! i want to load the Windows
in the first time ! and not reinicialized after the "security mode".
Cheers
Jose Marcos from Brazil
email: [EMAIL PROTECTED]
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
--- End Message ---
--- Begin Message ---
Hi,
This is offtopic i'm sure there are mailling lists to this questions...
Anyway i would check for the HD or wrong acess times, RAM timming
setting in the BIOS..
Humberto Silva
World Editing
Portugal
-----Original Message-----
From: Jose Marcos Souza Junior [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 15 de Janeiro de 2004 12:09
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Not about PHP, but ....
Hi people
The question thats i have is not about PHP, but a very weird problem
with windows !
------------------------------------------------------------------------
---------------
in the inicialization of the system, it's give the error:
"Protection error of the system. It must be reinicialized"
it's appears thats is a problem with RAM memory, but is
the second time thats occours !
i resolve this initializing the system in security mode, and after i
reinicialize again (in normal mode) and Windows load properly !!!
why ???
can anyone explain what is happening ?
thanks for all
note: i don't want to continue in this process ! i want to load the
Windows
in the first time ! and not reinicialized after the "security
mode".
Cheers
Jose Marcos from Brazil
email: [EMAIL PROTECTED]
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have 2 regular expressions that work correctly. How do i combine them to work as 1
or 2
1: /^\d\{1,2}\.
2: /^\s\d\{1,2}\.
i want to replace any matching pattern with either regular expression. It would be
nice if i could put this in a single command. Currently i have this mapped to a
Function Key "F2"
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
What do you want to replace a match with?
_________________________
----- Original Message -----
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 18:16
Subject: [PHP-WIN] Regular expressions
I have 2 regular expressions that work correctly. How do i combine them to
work as 1 or 2
1: /^\d\{1,2}\.
2: /^\s\d\{1,2}\.
i want to replace any matching pattern with either regular expression. It
would be nice if i could put this in a single command. Currently i have
this mapped to a Function Key "F2"
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
i found out what was happening.
i was using: "\|" as the or
but "\" is also an escape character so i needed "\\|" as an OR.
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: Ignatius Reilly [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 11:36 AM
To: Gerardo Rojas; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Regular expressions
What do you want to replace a match with?
_________________________
----- Original Message -----
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 18:16
Subject: [PHP-WIN] Regular expressions
I have 2 regular expressions that work correctly. How do i combine them to
work as 1 or 2
1: /^\d\{1,2}\.
2: /^\s\d\{1,2}\.
i want to replace any matching pattern with either regular expression. It
would be nice if i could put this in a single command. Currently i have
this mapped to a Function Key "F2"
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
HI, i want to check if the user filled the all inputs in the form. So, I
checked NULL and "" with this function in the post receiving script.
-------------------------------
function is_filled_out()
{
// test that each variabl has a value
foreach($_POST as $key => $value)
{
if(is_null($value) || $value="")
return false;
}
return true;
}
---------------------
but when I submit the form without putting any value, it returns 'true'.
what's wrong with my code?
--- End Message ---