http://php.net/require_once
-Original Message-
From: ROsen [mailto:[EMAIL PROTECTED]]
Sent: 23 iulie 2001 14:17
To: [EMAIL PROTECTED]
Subject: [PHP] Check for exist function
Hi,
How can I check, thath some function is declared and to do
not declare it
second time
eval(); ?
--
Julio Nobrega.
Because happiness is a warm gun
Bang-bang shoot-shoot
B R [EMAIL PROTECTED] wrote in message
005501c10ee3$e82b4740$c6655ad1@Test4">news:005501c10ee3$e82b4740$c6655ad1@Test4...
I know there's a function that takes a string argument and runs it as PHP
code.
i.e.
Does php have a funciton like reponse.flush in asp
aa
--
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]
PROTECTED]
To: Php Lists (E-mail) [EMAIL PROTECTED]
Sent: Monday, July 16, 2001 12:40 AM
Subject: [PHP] does php have a response.flush function
Does php have a funciton like reponse.flush in asp
aa
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I am trying to dynamically generate an image gallery from a directory iof
images.
To do this I am using the following code
while (false!==($file = readdir($handle)))
{
if ((is_file($file)))
{
echo .. Link info here
}
http://www.evilwalrus.com/download_agree.php?codeEx=304 is a good example of
using directory handles, works in windows...
- Original Message -
From: Antony Cleave [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 14, 2001 1:17 AM
Subject: [PHP] Problem with is_file function
Hello. I wrote a routine that queries a table (Mysql) to pull about 300
records and record their emails. I iterate over this recorset invoking
the mail() function to send an email for each record in this recordset.
The problem is that on my providers server, there is a big delay before
the
');
-Original Message-
From: Thomas David Kehoe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 9:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Missing arguments for function in class?
(object-orientedprogramming)
I have a function that works perfectly (from within a script
On Wed, Jun 27, 2001 at 07:26:53AM -0600, Thomas David Kehoe wrote :
[...]
$my_records = new Display_Records;
[...]
?php
class Display_Records {
function display_records($row, $record_count) {
The constructor of your class assumes two parameters;
you're creating an instance
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have a function that works perfectly (from within a script). But
when I make it a class (object) and call it from an external file,
I get the following error:
Warning: Missing argument 1 for display_records() in
class script, followed by the
script I use to call the function.
--
Thomas David Kehoe, author of
THE EVOLUTION OF INTIMATE RELATIONSHIPS
How Our Brains Are Hardwired For Relationships
http://www.FriendshipCenter.com/TEIR/
?php
class Display_Records {
function display_records($row
The problems that I'm having with the mail function stem from the extra
arguments that I'm trying to pass it. What I'm trying to do is write a
script to mail links to interesting stories to other people. In doing this,
I want to make the mail appear that it came from the e-mail address of the
I had smilar problems before and found out that I missed some \ns. It
seems that you missed a \n at the end of headers. That might be a reason.
Another solution might be replacing \ns with \r\n. I heard in newsgroups
and in some documentations that this might be problem in some systems.
I
can anyone help with PEAR nextId() function.
it's in mysql.php but NOT part of DB.php
usage?
rgds.
--
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
I am a newuser to php , I am setting up a site with user authenication and I
would like to setup a ICQ function some my users will know if other users
are online can someone please guide me in the right direction..
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
"Black S." wrote:
Basically I have array variables, lets say:
---
$folder[0] = "basic";
$folder[1] = "standard";
$folder[2] = "knowledge";
Fruther down in the code:
---
$totalsub_basic = "10";
Basically I have array variables, lets say:
---
$folder[0] = "basic";
$folder[1] = "standard";
$folder[2] = "knowledge";
Fruther down in the code:
---
$totalsub_basic = "10";
$totalsub_standard = "24";
?php
function auth_user() {
exec("");
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
}
// Header("WWW-Authenticate: Basic realm=\"My Realm\"");
if (!isset($PHP_AUTH_USE
Hi, Can anyone help me the mail function.
I am using PHP 4.04, on Windows 98,with PWS.
1.What must I configure thse settings in my php.ini file to?
SMTP= localhost
sendmail_from = [EMAIL PROTECTED]
2.Why does this code give me the following error
From: "Sonya Davey / QDCEL" [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 10:55 AM
1.What must I configure thse settings in my php.ini file to?
SMTP = localhost
sendmail_from = [EMAIL PROTECTED]
SMTP must be set to the address of a SMTP-server (Simple Mail Transfer
Protocol) - that is a
]]
Sent: Monday, March 26, 2001 2:25 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Problem with mail function
Hi, Can anyone help me the mail function.
I am using PHP 4.04, on Windows 98,with PWS.
1.What must I configure thse settings in my php.ini file to?
SMTP= localhost
Thank you Michael. I will look for mime_mail classes.
"Michael Hall" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not sure about including them in the mail function as such, but it can
certainly be done using one of several mime_mail classes that are
Is there anyway to include attachments in mail() function?
If you give a small example, it will be great.
Thanks
--
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,
I am trying to register a session variable in a function without using the
global in the beginning.
The reason for this is that I don´t always know how many variables I am
going to register (I separate the different fields with | like this,
"username|email|cellphone" and explode them).
Is there
In article 99dn35$duo$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("Tobias Talltorp") wrote:
I am trying to register a session variable in a function without using the
global in the beginning.
You can pass the variable(s) to the function as an argument. Perhaps it
will be easier to deal with a
so your trying to take a list of variables and register them as session vars?
?php
function make_session($vars)
{
$vars = explode('|', $vars);
foreach($vars as $pos = $val)
{
global $val;
session_register($val);
}
}
?
this will work for that.
--
Chris Lee
[EMAIL
Well... Whadda ya know. Right after I sent the post I figured it out.
(Solution? Variable variables!)
function register_vars($reg_var) {
// Make the $reg_var global
$global_vars=explode("|", $reg_var);
for ($i=0; $isizeof($global_vars); $i++)
global $$global_vars[$i]; //
Hey everyone,
I just upgraded from php v4.03pl1 to php
4.04pl.
Everything seems to work okay except my
IMP/Webmail.
When I load the url, I get:
Fatal error: Call to undefined function: page_open() in
/home/www/websites/horde/imp/index.php3 on line 15
Is this something that is no longer
To: [EMAIL PROTECTED]
Sent: Thursday, March 15, 2001 6:53 PM
Subject: [PHP] Call to undefined function
Hey everyone,
I just upgraded from php v4.03pl1 to php 4.04pl.
Everything seems to work okay except my IMP/Webmail.
When I load the url, I get:
Fatal error: Call to undefined
clayton,
checking php.net for 'page_open()' gives me nothingalso, why is it
.php3 if you're on php 4.04?
jack
Clayton Dukes wrote:
Hey everyone,
I just upgraded from php v4.03pl1 to php 4.04pl.
Everything seems to work okay except my IMP/Webmail.
When I load the url, I get:
: "Clayton Dukes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 15, 2001 7:03 PM
Subject: Re: [PHP] Call to undefined function
clayton,
checking php.net for 'page_open()' gives me nothingalso, why is it
.php3 if you're on php 4.04?
jack
Clayton Dukes wrot
php works server side. you cannot get user to run anything in php without
resubmitting (posting or whatever) ... you need javascript if this is
something you can do client-side, if not you'll have to live with some sort
of resubmit.
Tim Ward
Senior Systems Engineer
Please refer
Hi,
I have a seious problem with the mail function. It does not send the emails.
It returns 1 but does not send them. I think it may be a problem with
sendmail permissions. Can you help me? Please.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -)
Hi,
I have a seious problem with the mail function. It does not send the emails.
It returns 1 but does not send them. I think it may be a problem with
sendmail permissions. Can you help me? Please.
What do the sendmail mail logs say? if
?
stas
- Original Message -
From: "Colin May" [EMAIL PROTECTED]
To: "Kike" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 11:01 AM
Subject: Re: [PHP] Problems with mail function
Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -)
Hi,
I h
Hello all
I am trying to generate a MD5 string equal to a known passwords MD5 string , with no
luck
in order to make a new password file
i have tried use php's : $value = md5($string);
and $value = crypt($string,$salt);
the passwds in my systems /etc/shadow all start with $1 which i believe
On Monday 12 March 2001 18:31, you wrote:
I am trying to generate a MD5 string equal to a known passwords MD5
string , with no luck in order to make a new password file
i have tried use php's : $value = md5($string);
and $value = crypt($string,$salt);
the passwds in my systems /etc/shadow
Addressed to: Darren Ward [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from Darren Ward [EMAIL PROTECTED] Tue, 6 Mar 2001 18:17:11
+1100
Hi Guys,
Newbie to the list and the world of PHP.
I'm having a LOT of trouble getting PHP to work.
The PHP and Apache installs
PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 7:57 PM
To: Darren Ward; [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie: Can't find function error.
Addressed to: Darren Ward [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from Darren Ward [EMAIL PROTECTED] Tue, 6
Can I do any "subtraction" with times and/or dates on php or mysql?
I have two times (HH:MM:SS). And I want to know if there is a diference of
5 min between the times.
Is there any function that do this? Or I have to program this?
regards,
Augusto Cesar Castoldi
--
PHP General Mailing
Just convert the time to unixtime and - 5*60 (5 mins).
On Tue, 6 Mar 2001, Augusto Cesar Castoldi wrote:
Can I do any "subtraction" with times and/or dates on php or mysql?
I have two times (HH:MM:SS). And I want to know if there is a diference of
5 min between the times.
Is there
I am building my first basic function to verify a session.
If the verification is not in the function it works...
What am I missing?
(I couldn´t find anything about this in the mailing list archive)
-- This works --
session_start();
if (isset($PHPSESSID)){
echo "ok";
U just have to add global $PHPSESSID
to make the session variable global;
From: "Tobias Talltorp" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Verify session in function
Date: Mon, 5 Mar 2001 18:30:00 +0100
I am building my first basic function to verify
Hi Guys,
Newbie to the list and the world of PHP.
I'm having a LOT of trouble getting PHP to work.
The PHP and Apache installs have gone well as evidenced by:
# ./httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
?php
function someFunction($var)
{
echo $var;
}
// Your script
someFunction("Foobar!");
?
if you're creating an instance of a class object....
?php
class someClass
{
function someFunction($var)
{
echo $var;
}
}
$someClass = new
Hello,
I need to generate the value '0A 00 00 00' with the pack function.
How to do this?
TIA
--
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
Could anyone give me the correct syntax for calling a function.
I have a block of code I want to reuse. How do I name this
code block and how do I call it? Having a hard time finding an
answer looking through docs. It's so basic I can't find
an explanation. :)
Jeff Oien
--
PHP General Mailing
?php
function someFunction($var)
{
echo $var;
}
// Your script
someFunction("Foobar!");
?
if you're creating an instance of a class object
?php
class someClass
{
function someFunction($var)
{
echo $var;
}
}
$someClass = new someClass;
$someClass-someFuncti
How do you write a function that takes an array as an argument?
Could someone please point me at an example?
Regards,
Jaxon
--
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
On Wed, 7 Feb 2001 11:30, Jaxon wrote:
How do you write a function that takes an array as an argument?
Could someone please point me at an example?
Regards,
Jaxon
Try this:
?php
function show_elements($ary) {
while(list($key,$val) = each($ary)) {
echo "
Well, I think the equivalent PHP function to VB's eval() function is...
eval().
go to:
http://www.php.net/manual/en/function.eval.php
HTH,
johnny p.
-Original Message-
From: ¹æâÇö [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 8:11 PM
To: [EMAIL PROTECTED]
Subject
February 03, 2001 1:51 PM
Subject: RE: [PHP] PHP evaluates an expression function?
Well, I think the equivalent PHP function to VB's eval() function is...
eval().
go to:
http://www.php.net/manual/en/function.eval.php
HTH,
johnny p.
-Original Message-
From:
You can override (and yet still have access to) inherited
class methods in subclasses. Have you looked at applicability
of OOP in your implementation?
Unfortunately, I'm pretty much an old-school programmer, I just
can't wrap my brain around OOP and don't have the time to stop
and learn :\
ubsjoen" [EMAIL PROTECTED]
To: "PHP Mailing List" [EMAIL PROTECTED]
Sent: Friday, January 19, 2001 10:17 AM
Subject: [PHP] Function / String Problem
Okay, what is wrong with this:
echo "brbr...are you logged in: $LoggedIn()brbr";
// outputs:...are you logged
It won't work even with single quotes. It'll just echo out LoggedIn() as
part of the string.
"Boget, Chris" wrote:
What if I want the function to be processed within the " "
quotes? Same as a variable might be interopelated? IOW,
can I call a function without concantenating the
It won't work even with single quotes. It'll just echo out
LoggedIn() as part of the string.
Yeah, I didn't think so. But I knew that '' behaves differently
than "". I just wasn't sure of the exact details of the differences.
Chris
Yep. I think the only difference is the way it handles variable
interpolation, but I'm not entirely sure on that one.
"Boget, Chris" wrote:
It won't work even with single quotes. It'll just echo out
LoggedIn() as part of the string.
Yeah, I didn't think so. But I knew that '' behaves
On Fri, 19 Jan 2001, Shawn Blaylock wrote:
Yep. I think the only difference is the way it handles variable
interpolation, but I'm not entirely sure on that one.
"Boget, Chris" wrote:
It won't work even with single quotes. It'll just echo out
LoggedIn() as part of the string.
O yeah! Thanks for pointing that out! =)
Ignacio Vazquez-Abrams wrote:
On Fri, 19 Jan 2001, Shawn Blaylock wrote:
Yep. I think the only difference is the way it handles variable
interpolation, but I'm not entirely sure on that one.
"Boget, Chris" wrote:
It won't work even
801 - 859 of 859 matches
Mail list logo