[PHP] Re: Stopping the browser from continuing to load

2001-10-19 Thread Lucas Chan

Try this:

header(Connection: close);

Or:

Register_ShutDown_Function();

Regards,

[ niveus ]




Adam Whitehead [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi All-

 I have a script in which I use ignore_user_abort() to perform some
 extensive processing that
 can take a few hours which there is no need for users to wait for.

 I display a message saying their submission is complete and continue to
run
 the PHP script
 in the background. It doesn't matter if they close their browser or
 whatever, as the script continues
 to run.

 My problem is, I want the browser to stop waiting for more output from the
 script. It confuses people
 when it says you may now close the browser when the icon in the top right
 is still moving and the progress
 bar is still moving.

 Is there any way in PHP (or even Javascript) that I can tell the browser
to
 close the connection
 (ie. the equivalent of hitting the stop button).

 Apparently window.stop() in javascript works in Netscape Navigator but
 not in IE. I really need this to
 work in IE (and it only need be IE!).

 Any ideas?

 PS/ Not really keen on running a cron job to do the same thing when it
 would be easier just to stop
 the browser from loading.

 -Adam




-- 
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]




[PHP] Server performance

2001-10-19 Thread Michael Bonfert

We are using the LAMP configuration.
Frequently we get a high server load.
I am sure the server load is caused by a php script using mysql. We've a
lot of scripts running out there, so i can't locate the 'bad' script.
Is there any product that can track the cpu/mem usage of php scripts or
helps me locating a bad script?


Michael




-- 
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]




Re: [PHP] Stopping the browser from continuing to load

2001-10-19 Thread Christopher William Wesley

For a process that takes a long time, I usually break the user interaction
 the processing apart.

For instance, when the user makes a submission from the browser interface,
the PHP takes the submitted data and stores it someplace on the file
system or in a database.  This being a quick operation, the user can be
safely notified that their submission is complete, and the user can go
about his/her business within the browser interface.  Then there is a
process that runs on the server, say every minute (asynchronously from
visitors triggering the PHP script), that is looking for new data in the
location the PHP script deposits the submitted data, and processes it.

It's a bit more work than just making the PHP script execute for hours,
but it is far better use of the server's resources, and gives you much
more flexibility to alter the processing w/o affecting the user experience
(actually creating a better user experience).

g.luck,
~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden

On Fri, 19 Oct 2001 [EMAIL PROTECTED] wrote:

 Hi All-

 I have a script in which I use ignore_user_abort() to perform some
 extensive processing that
 can take a few hours which there is no need for users to wait for.

 I display a message saying their submission is complete and continue to run
 the PHP script
 in the background. It doesn't matter if they close their browser or
 whatever, as the script continues
 to run.

 My problem is, I want the browser to stop waiting for more output from the
 script. It confuses people
 when it says you may now close the browser when the icon in the top right
 is still moving and the progress
 bar is still moving.

 Is there any way in PHP (or even Javascript) that I can tell the browser to
 close the connection
 (ie. the equivalent of hitting the stop button).

 Apparently window.stop() in javascript works in Netscape Navigator but
 not in IE. I really need this to
 work in IE (and it only need be IE!).

 Any ideas?

 PS/ Not really keen on running a cron job to do the same thing when it
 would be easier just to stop
 the browser from loading.

 -Adam


 --
 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]




-- 
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]




Re: [PHP] InterBase transaction ...

2001-10-19 Thread Christopher William Wesley

Just use one argument or the other ... not both.

 ibase_commit($myTrans);
OR
 ibase_commit($myDB);

g.luck,
~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden

On Fri, 19 Oct 2001, Yoel Benitez Fonseca wrote:

 Hi!

 Someone can explain me (or give me an example or more) about the function:
 ibase_commit()

 I am using PHP 4 and InterBase 6.0 over IIS 5.0, in the version of the
 manual that I have the following description appears:

 int ibase_commit ([int link_identifier, int trans_number])

 but when I use it in my script, for example:

 ibase_commit($myDB, $myTrans);

 I receive the following error:

 . Wrong parameter count for ibase_commit () in.

 thank you in advance, Yoel.


 --
 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]




-- 
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]




[PHP] Re: InterBase transaction ...

2001-10-19 Thread Kal Amry

For future reference, the [] in the parameter are means either or (it list
the options you have)




Yoel Benitez Fonseca [EMAIL PROTECTED] wrote in message
00a601c1585d$7fb33ba0$[EMAIL PROTECTED]">news:00a601c1585d$7fb33ba0$[EMAIL PROTECTED]...
 Hi!

 Someone can explain me (or give me an example or more) about the function:
 ibase_commit()

 I am using PHP 4 and InterBase 6.0 over IIS 5.0, in the version of the
 manual that I have the following description appears:

 int ibase_commit ([int link_identifier, int trans_number])

 but when I use it in my script, for example:

 ibase_commit($myDB, $myTrans);

 I receive the following error:

 . Wrong parameter count for ibase_commit () in.

 thank you in advance, Yoel.




-- 
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]




[PHP] PHP4 doesn´t work with apache_1.3.22-win32-no_src.msi

2001-10-19 Thread Carsten Bernstein

No php4-support in this msi? Bah!

Or did I miss something?
Apache tells me that it can´t load the module php4apache.dll - no such
module.
Perhaps my LoadModule entry for php4 is wrong, though it´s  the same I used
for 1.3.20 (LoadModule php4_module C:\php\sapi\php4apache.dll)?

Or perhaps I need something for the AddModule-part as well? But what? I
don´t have a *php*.c-file on my disk, whatever this is.



-- 
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]




[PHP] Re: Web portals

2001-10-19 Thread Daniel Masur

would intresst me too, cose i want to biuld my own portal

[EMAIL PROTECTED]; [EMAIL PROTECTED] schrieb im Newsbeitrag
20011018124135.17694.1001.qmail@server0021">news:20011018124135.17694.1001.qmail@server0021...

 Hi !

 I am looking for an efficient web portal, sutable for medium/big
corporation
 sites, with a searcable product catalog etc. The catalog is the main
 emphasis of the site.

 One more thing :
 Is there a tutorial or an article that covers the web portal building ?

 Thanks
 Nikola




-- 
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]




[PHP] Fwd: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Andrey Hristov



--  Forwarded Message  --

Subject: [PHP-DEV] 4.1.0RC1 out
Date: Fri, 19 Oct 2001 09:27:58 +0200
From: Stig S. Bakken [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]

Hi,

4.1.0RC1 is out, download it from
http://www.php.net/~ssb/php-4.1.0RC1.tar.gz

 - Stig

--
PHP Development 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]

---

-- 
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]




[PHP] Fwd: Re: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Andrey Hristov



--  Forwarded Message  --

Subject: Re: [PHP-DEV] 4.1.0RC1 out
Date: Fri, 19 Oct 2001 09:51:22 +0200 (CEST)
From: Derick Rethans [EMAIL PROTECTED]
To: Stig S. Bakken [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]

Hello,

RC1 doesn't compile if --with-zzip is used, I'm committing a fix to CVS
shortly.

Derick

On Fri, 19 Oct 2001, Stig S. Bakken wrote:
 Hi,

 4.1.0RC1 is out, download it from
 http://www.php.net/~ssb/php-4.1.0RC1.tar.gz

  - Stig

 --
 PHP Development 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]

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


--
PHP Development 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]

---

-- 
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]




Re: [PHP] Fwd: Re: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Rasmus Lerdorf

Andy, please stop forwarding these.  If people on php-general were
interested in the QA process they would be on the QA list, or if they were
interested in -dev issues they would be on that list.

-Rasmus

On Fri, 19 Oct 2001, Andrey Hristov wrote:



 --  Forwarded Message  --

 Subject: Re: [PHP-DEV] 4.1.0RC1 out
 Date: Fri, 19 Oct 2001 09:51:22 +0200 (CEST)
 From: Derick Rethans [EMAIL PROTECTED]
 To: Stig S. Bakken [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]

 Hello,

 RC1 doesn't compile if --with-zzip is used, I'm committing a fix to CVS
 shortly.

 Derick

 On Fri, 19 Oct 2001, Stig S. Bakken wrote:
  Hi,
 
  4.1.0RC1 is out, download it from
  http://www.php.net/~ssb/php-4.1.0RC1.tar.gz
 
   - Stig
 
  --
  PHP Development 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]

 Derick Rethans

 -
 PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
  SRM: Site Resource Manager - www.vl-srm.net
 -


 --
 PHP Development 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]

 ---




-- 
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]




[PHP] Q: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread ArsenKirillov

How one can pass throught sessions arrays with no use of mysql or files ?
help me to advance pls.

-- 
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]




[PHP] ask for help about php+mysql install: /usr/local/php-4.0.5/main/internal_functions.c:60: undefined reference to`mysql_module_entry', thanks in advance.

2001-10-19 Thread Harrison

Hi there,
   I encounter the following problem when trying to build a LAMP Box with
Mysql-4.0.0+PHP-4.0.5+Apache-1.3.22.
   1. Mysql Installed ok
   2. when trying to make php with
./configure --with-apache=/home/user/apache_1.3.22 --with-mysql=/usr/local/
db/mysql --with-config-file-path=/usr/local/apache/ini --enable-track-vars;m
ake;make install, it response :
  /usr/local/php-4.0.5/main/internal_functions.c:60: undefined reference
to`mysql_module_entry', and of course the same happend when trying to build
apache.

  Any Help will be very appreciated, Thanks in advance.





-- 
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]




[PHP] Re: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread Kal Amry


The best way (to get around cookies) is to pass it on the URL

a href=phpFile.php??=SID?

or

a href=phpFile.php?? echo SID; ?

Notice no $ before SID

Kal


Arsenkirillov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 How one can pass throught sessions arrays with no use of mysql or files ?
 help me to advance pls.



-- 
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]




[PHP] parse_str and parse_url

2001-10-19 Thread Olexandr Vynnychenko

Hello php-general,

  I need a function which is opposite to parse_str or parse_url, i.e.
  it makes string containing URL with passed variablenames and
  variablevalues. Did someone see such function? I can't find it in th
  manual. Thank's.

-- 
Best regards,
 Olexandr Vynnychenko  mailto:[EMAIL PROTECTED]



-- 
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]




[PHP] Undefined variable

2001-10-19 Thread Tshering Norbu

Dear list,

I test the  following script on local web server and it runs fine. But when
I upload the script to the real web server I get the following
error/message, but the script works fine. Do you know why?

Here is the error/message I get:

Undefined variable : id in test.php on line 6


And here is the script file (test.php):

html
body
?php
$db = mysql_connect(localhost, root, root);
mysql_select_db(penpal,$db);
if ($id)

$result = mysql_query(select * from penpal where id = $id,$db);
$myrow = mysql_fetch_array($result);
printf(bID:/b %s\nbr, $myrow[id]);
printf(bName:/b %s\nbr, $myrow[name]);
printf(bAge/Sex/Location:/b %s\nbr, $myrow[asl]);
printf(bDescription:/b %s\nbr, $myrow[description]);
printf(bEmail:/b %s\nbr, $myrow[email]);
} else {
$result = mysql_query(select * from penpal order by id desc, $db);
if ($myrow = mysql_fetch_array($result)) {
do {
   printf(a href = \%s?id=%s\%s %s/abr\n, $PHP_SELF, $myrow[id],
$myrow[name], $myrow[asl]);
} while ($myrow = mysql_fetch_array($result));
}   else {
echo Sorry, no records;
   }
}
?
/body
/html



The id field in my table has the attribute: id tinyint (4)

Thanks in advance
NOBBY


-- 
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]




RE: [PHP] Undefined variable

2001-10-19 Thread Boaz Yahav

it's a warning, not an error...
you should check if it is set before you use it :

If(IsSet($id)) {
Do something...
}

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-Original Message-
From: Tshering Norbu [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Undefined variable


Dear list,

I test the  following script on local web server and it runs fine. But
when
I upload the script to the real web server I get the following
error/message, but the script works fine. Do you know why?

Here is the error/message I get:

Undefined variable : id in test.php on line 6


And here is the script file (test.php):

html
body
?php
$db = mysql_connect(localhost, root, root);
mysql_select_db(penpal,$db);
if ($id)

$result = mysql_query(select * from penpal where id = $id,$db);
$myrow = mysql_fetch_array($result);
printf(bID:/b %s\nbr, $myrow[id]);
printf(bName:/b %s\nbr, $myrow[name]);
printf(bAge/Sex/Location:/b %s\nbr, $myrow[asl]);
printf(bDescription:/b %s\nbr, $myrow[description]);
printf(bEmail:/b %s\nbr, $myrow[email]);
} else {
$result = mysql_query(select * from penpal order by id desc, $db);
if ($myrow = mysql_fetch_array($result)) {
do {
   printf(a href = \%s?id=%s\%s %s/abr\n, $PHP_SELF,
$myrow[id],
$myrow[name], $myrow[asl]);
} while ($myrow = mysql_fetch_array($result));
}   else {
echo Sorry, no records;
   }
}
?
/body
/html



The id field in my table has the attribute: id tinyint (4)

Thanks in advance
NOBBY


-- 
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]


--
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]




Re: [PHP] Undefined variable

2001-10-19 Thread Dimitris Kossikidis

This should work ...

if ( IsSet($id) ) {
.
sql statement
}else{
.
}

- Original Message -
From: Tshering Norbu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 12:22 PM
Subject: [PHP] Undefined variable


 Dear list,

 I test the  following script on local web server and it runs fine. But
when
 I upload the script to the real web server I get the following
 error/message, but the script works fine. Do you know why?

 Here is the error/message I get:

 Undefined variable : id in test.php on line 6


 And here is the script file (test.php):

 html
 body
 ?php
 $db = mysql_connect(localhost, root, root);
 mysql_select_db(penpal,$db);
 if ($id)

 $result = mysql_query(select * from penpal where id = $id,$db);
 $myrow = mysql_fetch_array($result);
 printf(bID:/b %s\nbr, $myrow[id]);
 printf(bName:/b %s\nbr, $myrow[name]);
 printf(bAge/Sex/Location:/b %s\nbr, $myrow[asl]);
 printf(bDescription:/b %s\nbr, $myrow[description]);
 printf(bEmail:/b %s\nbr, $myrow[email]);
 } else {
 $result = mysql_query(select * from penpal order by id desc, $db);
 if ($myrow = mysql_fetch_array($result)) {
 do {
printf(a href = \%s?id=%s\%s %s/abr\n, $PHP_SELF,
$myrow[id],
 $myrow[name], $myrow[asl]);
 } while ($myrow = mysql_fetch_array($result));
 }   else {
 echo Sorry, no records;
}
 }
 ?
 /body
 /html



 The id field in my table has the attribute: id tinyint (4)

 Thanks in advance
 NOBBY


 --
 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]



-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Rasmus Lerdorf

The obvious hack would be to simply make the link:

  http://your.domain.com/script.php/filename_you_want.pdf

-Rasmus

On Fri, 19 Oct 2001, George Pitcher wrote:

 Hi all,

 I am delivering my PDF files from a non-internet directory. The file gets
 delivered but the filename is always changed to the name of the php script.

 Can anyone tell me how to get the file delivered so that the name stays as
 it was on the server?

 My PHP code. This is all the php code I use in my site (so far).
 ==
 ?php
 $fp1 = D:\\Pdf\\ . $fp;
 $len = filesize($fp1);
 header(Content-type: application/pdf);
 header(Content-Disposition: inline; filename=$fp1);
 header(Content-Length: $len);
 readfile($fp1);
 ?
 =

 Regards

 George Pitcher, Edinburgh


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com





-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Arpad Tamas

On Friday 19 October 2001 11:52, George Pitcher wrote:
 Hi all,

 I am delivering my PDF files from a non-internet directory. The
 file gets delivered but the filename is always changed to the name
 of the php script.

 Can anyone tell me how to get the file delivered so that the name
 stays as it was on the server?
It works this way for me on many browsers (included ie):

header(Content-Type: application/octectstream);
header(Content-Disposition: filename=$name);
header(Pragma: no-cache);
header(Expires: 0);

Don't forget to double-check every capital letter, because it matters 
in http and for most browsers too (for example your Content-Type's 
capitals are wrong below).
Arpi

 ==
 ?php
 $fp1 = D:\\Pdf\\ . $fp;
 $len = filesize($fp1);
 header(Content-type: application/pdf);
 header(Content-Disposition: inline; filename=$fp1);
 header(Content-Length: $len);
 readfile($fp1);
 ?
 =

 Regards

 George Pitcher, Edinburgh


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com

-- 
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]




[PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Kal Amry


Anyone knows how I can use pfpro_init();

It is giving me an error right away saying:

Fatal error: Call to undefined function: pfpro_init() in PATH_TO_FILE.php on
line 3

Where can I find a support for these functions?

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, e-mail: [EMAIL PROTECTED]




[PHP] Dividing too integers...

2001-10-19 Thread Seb Frost

Sorry for the stupid question...

I want to do 

$this=$foo/$bar;  (All are integers.)

where this is always rounded up.

I tried the obvious

$this = ceil($foo/$bar) but I just always get 0.


cheers,

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001


-- 
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]




Re: [PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Richard Baskett

Did you check out?: http://www.php.net/manual/en/ref.pfpro.php

These functions are only available if PHP has been compiled with the
--with-pfpro[=DIR] option. You will require the appropriate SDK for your
platform, which may be downloaded from within the manager interface once you
have registered. If you are going to use this extension in an SSL-enabled
webserver or with other SSL components (such as the CURL+SSL extension) you
MUST get the beta SDK.

Rick



 Anyone knows how I can use pfpro_init();
 
 It is giving me an error right away saying:
 
 Fatal error: Call to undefined function: pfpro_init() in PATH_TO_FILE.php on
 line 3
 
 Where can I find a support for these functions?
 
 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, e-mail: [EMAIL PROTECTED]
 


-- 
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]




Re: [PHP] Dividing too integers...

2001-10-19 Thread Richard Baskett

I don't see why that doesnt work...  I would echo your values first to make
sure the values you want in $foo and $bar are the right ones...  It looks to
me that your expression is correct...

Rick

 Sorry for the stupid question...
 
 I want to do 
 
 $this=$foo/$bar;  (All are integers.)
 
 where this is always rounded up.
 
 I tried the obvious
 
 $this = ceil($foo/$bar) but I just always get 0.
 
 
 cheers,
 
 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 
 
 -- 
 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]
 


-- 
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]




[PHP] Mysql export

2001-10-19 Thread Roman

Please help me, how to export mysql table to the xls table ?
Thanks for all

Roman



-- 
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]




RE: [PHP] Dividing too integers...

2001-10-19 Thread Seb Frost

Cheers Rich!

I had $numrows instead of $num_rows - Doh!

I said too instead of two - double Doh!

- seb

-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2001 11:30
To: Seb Frost; PHP General
Subject: Re: [PHP] Dividing too integers...


I don't see why that doesnt work...  I would echo your values first to make
sure the values you want in $foo and $bar are the right ones...  It looks to
me that your expression is correct...

Rick

 Sorry for the stupid question...

 I want to do

 $this=$foo/$bar;  (All are integers.)

 where this is always rounded up.

 I tried the obvious

 $this = ceil($foo/$bar) but I just always get 0.


 cheers,

 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001


 --
 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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001


-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

Rasmus,

Thanks for the suggestion but it didn't change anything.

George
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 10:54 AM
Subject: Re: [PHP] Delivering NAMED pdf files


 The obvious hack would be to simply make the link:

   http://your.domain.com/script.php/filename_you_want.pdf

 -Rasmus

 On Fri, 19 Oct 2001, George Pitcher wrote:

  Hi all,
 
  I am delivering my PDF files from a non-internet directory. The file
gets
  delivered but the filename is always changed to the name of the php
script.
 
  Can anyone tell me how to get the file delivered so that the name stays
as
  it was on the server?
 
  My PHP code. This is all the php code I use in my site (so far).
  ==
  ?php
  $fp1 = D:\\Pdf\\ . $fp;
  $len = filesize($fp1);
  header(Content-type: application/pdf);
  header(Content-Disposition: inline; filename=$fp1);
  header(Content-Length: $len);
  readfile($fp1);
  ?
  =
 
  Regards
 
  George Pitcher, Edinburgh
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

Arpi,

Thanks for the suggestion but it didn't change anything.

George

- Original Message - 
From: Arpad Tamas [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 11:13 AM
Subject: Re: [PHP] Delivering NAMED pdf files


 On Friday 19 October 2001 11:52, George Pitcher wrote:
  Hi all,
 
  I am delivering my PDF files from a non-internet directory. The
  file gets delivered but the filename is always changed to the name
  of the php script.
 
  Can anyone tell me how to get the file delivered so that the name
  stays as it was on the server?
 It works this way for me on many browsers (included ie):
 
 header(Content-Type: application/octectstream);
 header(Content-Disposition: filename=$name);
 header(Pragma: no-cache);
 header(Expires: 0);
 
 Don't forget to double-check every capital letter, because it matters 
 in http and for most browsers too (for example your Content-Type's 
 capitals are wrong below).
 Arpi
 
  ==
  ?php
  $fp1 = D:\\Pdf\\ . $fp;
  $len = filesize($fp1);
  header(Content-type: application/pdf);
  header(Content-Disposition: inline; filename=$fp1);
  header(Content-Length: $len);
  readfile($fp1);
  ?
  =
 
  Regards
 
  George Pitcher, Edinburgh
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Sebastian

Hi George

I had the same problem a while ago.
The only solution i found was to change the link to :
www.blabla.com/pdffile/test.pdf
test.pdf does not exist, but 
in /pdffile/ there is a .htaccess which redirects the 404 to the php
script that reads/generates the pdfs. And for my purpose checks if user
is 
authorized to get these files.

sebastian

 -Ursprüngliche Nachricht-
 Von: George Pitcher [mailto:[EMAIL PROTECTED]] 
 Gesendet: Freitag, 19. Oktober 2001 12:55
 An: Arpad Tamas; [EMAIL PROTECTED]
 Betreff: Re: [PHP] Delivering NAMED pdf files
 
 
 Arpi,
 
 Thanks for the suggestion but it didn't change anything.
 
 George
 
 - Original Message - 
 From: Arpad Tamas [EMAIL PROTECTED]
 To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, October 19, 2001 11:13 AM
 Subject: Re: [PHP] Delivering NAMED pdf files
 
 
  On Friday 19 October 2001 11:52, George Pitcher wrote:
   Hi all,
  
   I am delivering my PDF files from a non-internet 
 directory. The file 
   gets delivered but the filename is always changed to the 
 name of the 
   php script.
  
   Can anyone tell me how to get the file delivered so that the name 
   stays as it was on the server?
  It works this way for me on many browsers (included ie):
  
  header(Content-Type: application/octectstream);
  header(Content-Disposition: filename=$name);
  header(Pragma: no-cache);
  header(Expires: 0);
  
  Don't forget to double-check every capital letter, because 
 it matters
  in http and for most browsers too (for example your Content-Type's 
  capitals are wrong below).
  Arpi
  
   ==
   ?php
   $fp1 = D:\\Pdf\\ . $fp;
   $len = filesize($fp1);
   header(Content-type: application/pdf);
   header(Content-Disposition: inline; filename=$fp1);
   header(Content-Length: $len);
   readfile($fp1);
   ?
   =
  
   Regards
  
   George Pitcher, Edinburgh
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 -- 
 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]
 
 



--
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]




[PHP] kindly help adding days on a date

2001-10-19 Thread Krushna Kumar R

Hi,

I have 2 fields on a table as shown below

1. period   int- we enter no of days as number/integer
2. lastdatedate  - here i'll have to add period to todays(current) date and store 
in the table

i used dateadd it was working on mysql prompt, but when i used it with PHP, it doesnt 
work

Any help would be appreciated

Regards
Krushna Kumar



Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread speedboy

 Thanks for the suggestion but it didn't change anything.

It won't. Put them in a web accessible directory and don't use custom header calls 
because they do not work reliably.


-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

Sebastian,

Just tried it - it dosn't work for me.

George
- Original Message -
From: Sebastian [EMAIL PROTECTED]
To: 'George Pitcher' [EMAIL PROTECTED]; 'Php-General
[EMAIL PROTECTED]
Sent: Friday, October 19, 2001 12:19 PM
Subject: AW: [PHP] Delivering NAMED pdf files


Hi George

I had the same problem a while ago.
The only solution i found was to change the link to :
www.blabla.com/pdffile/test.pdf
test.pdf does not exist, but
in /pdffile/ there is a .htaccess which redirects the 404 to the php
script that reads/generates the pdfs. And for my purpose checks if user
is
authorized to get these files.

sebastian

 -Ursprüngliche Nachricht-
 Von: George Pitcher [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 19. Oktober 2001 12:55
 An: Arpad Tamas; [EMAIL PROTECTED]
 Betreff: Re: [PHP] Delivering NAMED pdf files


 Arpi,

 Thanks for the suggestion but it didn't change anything.

 George

 - Original Message -
 From: Arpad Tamas [EMAIL PROTECTED]
 To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, October 19, 2001 11:13 AM
 Subject: Re: [PHP] Delivering NAMED pdf files


  On Friday 19 October 2001 11:52, George Pitcher wrote:
   Hi all,
  
   I am delivering my PDF files from a non-internet
 directory. The file
   gets delivered but the filename is always changed to the
 name of the
   php script.
  
   Can anyone tell me how to get the file delivered so that the name
   stays as it was on the server?
  It works this way for me on many browsers (included ie):
 
  header(Content-Type: application/octectstream);
  header(Content-Disposition: filename=$name);
  header(Pragma: no-cache);
  header(Expires: 0);
 
  Don't forget to double-check every capital letter, because
 it matters
  in http and for most browsers too (for example your Content-Type's
  capitals are wrong below).
  Arpi
 
   ==
   ?php
   $fp1 = D:\\Pdf\\ . $fp;
   $len = filesize($fp1);
   header(Content-type: application/pdf);
   header(Content-Disposition: inline; filename=$fp1);
   header(Content-Length: $len);
   readfile($fp1);
   ?
   =
  
   Regards
  
   George Pitcher, Edinburgh
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

Thanks for the [non] suggestion.

I will not host these in a web-accessable directory. They are copyright
materials.

I've done this type of hosting previously using Frontier on a Mac and it
worked fine.

I thought that php was better than Frontier, though.

George
- Original Message -
From: speedboy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 12:27 PM
Subject: Re: [PHP] Delivering NAMED pdf files


  Thanks for the suggestion but it didn't change anything.

 It won't. Put them in a web accessible directory and don't use custom
header calls because they do not work reliably.


 --
 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]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox

can you paste the full text of the code as you have it? I don't see anywhere
where you define the name of the file.

James Cox

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
Politicalia admin and editor
e: [EMAIL PROTECTED]  :: w: http://www.politicalia.com/
Today's Discussion, Tomorrow's Agenda.
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.


 -Original Message-
 From: George Pitcher [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 12:27 PM
 To: speedboy; [EMAIL PROTECTED]
 Subject: Re: [PHP] Delivering NAMED pdf files


 Thanks for the [non] suggestion.

 I will not host these in a web-accessable directory. They are copyright
 materials.

 I've done this type of hosting previously using Frontier on a Mac and it
 worked fine.

 I thought that php was better than Frontier, though.

 George
 - Original Message -
 From: speedboy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 19, 2001 12:27 PM
 Subject: Re: [PHP] Delivering NAMED pdf files


   Thanks for the suggestion but it didn't change anything.
 
  It won't. Put them in a web accessible directory and don't use custom
 header calls because they do not work reliably.
 
 
  --
  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]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]



-- 
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]




Re: [PHP] Mysql export

2001-10-19 Thread Andrey Hristov

PhpMyAdmin (on http://www.phpwizard.net") has the capability to export mysql 
table ot CSV, then import the CSV or maybe this will help you too(on small 
tables, otherwise the HTML code is big)
$dump='';
$separator=',';
$the_query="select * from $table;";
$res=mysql_query($the_query);
if ($res){
  $num_rows=mysql_num_rows($res);
  for (;$numrows=0;$num_rows--){
$arr=mysq_fetch_assoc($res);
$line='';
foreach ($arr as $k = $v){
$line.=($v.$separator);
}
$line=substr($line,0,-strlen($separator));
$dump.=$line."\n";
  }
}
if ($dump){
$fd=fopen("{$table}_dump.csv","w+");
frwite($fd,$dump);
fclose($fd);
echo "pre\n".$dump."\n/pre";
}

Hope this helps.


-- 
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com

On Friday 19 October 2001 06:33 am, you wrote:
 Please help me, how to export mysql table to the xls table ?
 Thanks for all

   Roman


-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

James,

I can. The text in square brackets is a pdf filename referenced in full from
a Filemaker database using Lasso.

Form action=fileaccess.php method=post
input type=hidden name=fp value=[field:'Doc_filename']
input type=Submit value=Download PDF file
/form

And the php page which is fileaccess.php:

?php
$fp1 = D:\\Pdf\\ . $fp;
$len = filesize($fp1);
header(Content-Type: application/pdf);
header(Content-Disposition: inline; filename=$fp1);
header(Content-Length: $len);
readfile($fp1);
?

HTH

George
- Original Message -
From: James Cox [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED]; Php-General@Lists. Php. Net
[EMAIL PROTECTED]
Sent: Friday, October 19, 2001 12:45 PM
Subject: RE: [PHP] Delivering NAMED pdf files


 can you paste the full text of the code as you have it? I don't see
anywhere
 where you define the name of the file.

 James Cox

 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
 .
 Politicalia admin and editor
 e: [EMAIL PROTECTED]  :: w: http://www.politicalia.com/
 Today's Discussion, Tomorrow's Agenda.
  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
 .


  -Original Message-
  From: George Pitcher [mailto:[EMAIL PROTECTED]]
  Sent: Friday, October 19, 2001 12:27 PM
  To: speedboy; [EMAIL PROTECTED]
  Subject: Re: [PHP] Delivering NAMED pdf files
 
 
  Thanks for the [non] suggestion.
 
  I will not host these in a web-accessable directory. They are copyright
  materials.
 
  I've done this type of hosting previously using Frontier on a Mac and it
  worked fine.
 
  I thought that php was better than Frontier, though.
 
  George
  - Original Message -
  From: speedboy [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 19, 2001 12:27 PM
  Subject: Re: [PHP] Delivering NAMED pdf files
 
 
Thanks for the suggestion but it didn't change anything.
  
   It won't. Put them in a web accessible directory and don't use custom
  header calls because they do not work reliably.
  
  
   --
   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]
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  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]
 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




[PHP] session ID does not delete itself

2001-10-19 Thread Peter


Hi,

I have been experimenting with PHP4 using sessions and one of my books
says that session ID's are created in the /tmp directory so I take a look
in there and I find are about 10 sessions that have not been deleted dated
earliest to about being week old

ie.  sess_5b30ccebb1d098c37a5e46efd7708fef

I have been experimenting with user authentication with sessions and just
plain starting a session when a user accesses the site.

Well, the site is still experimental and each time I logged myself out.

But I thought sessions were supposed to wipe themselves out from the /tmp
directory immediately after leaving the website.

Appreciate if someone could shed the light on this issue for me.

Thanks.

Peter


-- 
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]




[PHP] Re: kindly help adding days on a date

2001-10-19 Thread _lallous

you can use it like that:

see the mysql's date_add() usage:

SELECT DATE_ADD(NOW(), INTERVAL 5 DAY)
or 5 YEAR or n MONTH


Krushna Kumar R [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

I have 2 fields on a table as shown below

1. period   int- we enter no of days as number/integer
2. lastdatedate  - here i'll have to add period to todays(current) date
and store in the table

i used dateadd it was working on mysql prompt, but when i used it with PHP,
it doesnt work

Any help would be appreciated

Regards
Krushna Kumar




-- 
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread MrBaseball34

 
 And the php page which is fileaccess.php:
 
 ?php
 $fp1 = D:\\Pdf\\ . $fp;
 $len = filesize($fp1);
 header(Content-Type: application/pdf);
 header(Content-Disposition: inline; filename=$fp1);
 header(Content-Length: $len);
 readfile($fp1);
 ?

Have you CHECKED the value of $fp?

-- 
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]




[PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Alexander Deruwe

Hey all,

When running PHP scripts from the command line, I get this error:

Content type: text/html
PHP Fatal error: Unable to start session mm module in Unknown on line 0

The script doesn't run, or so it seems. I also get this error when I run 
generic stuff such as 'php4 --help', or just 'php4 -q'.

The script in question is this (though I hardly think it matters):
#!/usr/bin/php4 -q
?php
echo Hello, World!\n;
?

Does anyone know what is going on? Searching the archives for the error 
string turned up nothing.

I'm running PHP v4.0.7RC3 (from package php4-cgi) on Linux 2.4.10-ac11. 
Distribution debian unstable.

Thanks in advance,

Alexander Deruwe

-- 
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]




Re: [PHP] sscanf() question...

2001-10-19 Thread Christian Reiniger

On Wednesday 17 October 2001 23:25, Uchendu Nwachukwu wrote:
 I am trying to write a script to convert a MySQL timestamp
 (MMDDhhmmss) to a unix timestamp.

SELECT UNIX_TIMESTAMP(timefield) AS MyTime FROM xy

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

These are the people who proudly call themselves hackers --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert.

- ESR

--
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]




Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher

Yes,

If I download the file as it is named, it is the file I expected, only not
named the way I wanted.

George

MrBaseball34 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  And the php page which is fileaccess.php:
 
  ?php
  $fp1 = D:\\Pdf\\ . $fp;
  $len = filesize($fp1);
  header(Content-Type: application/pdf);
  header(Content-Disposition: inline; filename=$fp1);
  header(Content-Length: $len);
  readfile($fp1);
  ?

 Have you CHECKED the value of $fp?

 --
 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]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




[PHP] Problems with get URL from script (post without forms)

2001-10-19 Thread Silvia Mahiques

Hi

 I´m interested in launching an HTML page directly from another page. The
former has php code and I´d also like to pass some arguments to it.
 I´m using the getURL code to do this job but I had some problems:

 After launched, the page looks quite weird. When I look at the source code,
the variable replacements in the php pieces is wrong. Instead of getting the
contents of the variables, it looks as if everything was delated and
backlashes were inserted within the quotes. For example, the following line
in the php code

input type=text name=name value=? echo $name; ? width=600
size=33 maxlength=80

  was replace by

input type=\text\ name=\name\ value=\\ width=\600\ size=\33\
maxlength=\80\

 Do you have any hint about the problem here? If getURL is not the
appropriate way of doing what I want, what should I use?

 Thanks in advance,

Silvia





Re: [PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Jon Farmer

 I'm running PHP v4.0.7RC3 (from package php4-cgi) on Linux 2.4.10-ac11.
 Distribution debian unstable.

I would recommend 4.0.6 compiled from source. Thats what I use and its very
stable.

Regards

jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send blank email to [EMAIL PROTECTED]



-- 
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]




[PHP] phpPgAdmin joins SourecForge

2001-10-19 Thread Dan Wilson

For full story, please visit
http://sourceforge.net/forum/forum.php?forum_id=117841

It looks like a previous post didn't go through, so if this is a duplicate,
please forgive me.

-Dan
[EMAIL PROTECTED]
http://sourceforge.net/projects/phppgadmin



-- 
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]




[PHP] How to convert text/html mail into readable thing ?

2001-10-19 Thread Rafa Zawadzki

I am using PHP @ Red Hat. And i have got one big problem:

I am writing interface for pop3 accounts. Everything is ok, when mail
are normal, it means their has got attachments, or not. But when i am
reading mail which has been written in html, and it has got also
attachment, i got for example:

--=_NextPart_001_000B_01C158B1.7C25EB00
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable


- Original Message -=20
From: rafal=20
To: [EMAIL PROTECTED]=20
Sent: Friday, October 19, 2001 2:01 PM
Subject: buziak


eretertetret

--=_NextPart_001_000B_01C158B1.7C25EB00
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

here is html message

***
When mail has been written in html and hasnt got att. everything is
ok.

main fragment of my script:

?
$mbox = imap_open ("{10.1.1.4:110/pop3}INBOX", $login, $pass);
$mailik=imap_fetchstructure ($mbox,$mail);
$czesci=$mailik-parts;
echo htmlentities(imap_fetchbody ($mbox, $mail, 1));
$mailek=imap_fetchbody ($mbox, $mail, 1);



/*

Here is part script for list attachments.

*/

imap_close($mbox);
  
?


Thanks for helps.


-- 
Rafal Zawadzki [EMAIL PROTECTED]
 Linux registered user #232814


-- 
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]




RE: [PHP] Timestamp math and format

2001-10-19 Thread Alfredeen Johan K

Thanks, That was just what I needed, ie:
SELECT DATE_FORMAT(DATE_SUB(insert_date, INTERVAL 2 HOUR), '%b %e (%r)')

Johan

 On 17-Oct-2001 Alfredeen Johan K wrote:
  I store a timestamp in a database of when a record was 
 inserted. When I pull
  it out, I format it like this SELECT 
 DATE_FORMAT(insert_date,'%b %e (%r)')
  AS idate
  
  Now I would like to subtract 2 hours from the hour part of 
 the timestamp.
  What's the easiest way to do this, before or after the 
 formatting? In PHP or
  mySQL function? Can someone give me some code of how they 
 would do this.
  
 
 SELECT DATE_FORMAT(DATE_SUB(insert_date, INTERVAL 2 HOUR), 
 '%b %e (%r)')
 
 Regards,
 -- 
 Don Read   [EMAIL PROTECTED]
 -- It is necessary for me to learn from others' mistakes. I 
will not live long enough to make them all by myself.
 



-- 
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]




[PHP] how to know if email sent

2001-10-19 Thread Alexander Jäger

hi everybody

i'm making an automatic booking system in php. for the hotelier it's also
possible to calculte offers and send them to his gasts. we send the email
with @mail and although we put in a right-formated (with @ in it etc.) but
wrong email adress the function results true.
so we tried to get an error-email from the server that send the mails but no
success.
does anybody has a solution for our problem

thanx for every little help

Alexander Jäger



-- 
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]




[PHP] weird session problem

2001-10-19 Thread Ross Barefoot

Summary: when I write scripts using sessions and run them on my web host the
session is created, a session file is opened, but the session file is 0
bytes and therefore the session variables are not being passed.  When the
tech support guys at the host run the same script they work, even when
dialing out through an external isp.  They run the same scripts and the
session file is created with the session variables intact.

When I run my scripts on a different hosting company, or using the Apache
server on my local machine, they process fine.

I set up two test scripts to try and resolve this, but after three days of
trying, and many hours expended by both myself and the host's tech support,
we find no reason.  We have tested different browsers, locations, ISP's,
OS's.  We've ruled out a cookie problem, so no need to go there.

Here are the two test scripts I've set up:
http://www.flexiss.net/page1.php
?
session_start();
session_register(test_var);

$test_var = Testing 1-2-3...;

print the content of \$test_var is $test_varBR;
?

A HREF=page2.phpNext Page/A

(end of page1.php)

Here's page2.php
?
session_start();
print the content of \$test_var is $test_varBR;

$count = count($HTTP_SESSION_VARS);

print the count of elements in \$HTTP_SESSION_VARS is $count;

print BRthe session id is:  . $PHPSESSID;

print BR . $HTTP_SESSION_VARS['test_var'] ;
?

If you run these scripts you may get correct results, but I and other test
users at different locations using different machines get the session id,
but a count of 0 elements in $HTTP_SESSION_VARS and therefore nothing is
passed.

If you want to look at how the php is set up, you can go to this link:
http://www.flexiss.net/phpinfo.php

Any help would really be appreciated.  I've posted this on two PHP forums
without a solution being found.

Ross



-- 
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]




[PHP] Searching for a word in a string

2001-10-19 Thread Brandon

Hello,

How can I search for a certain word in a string?

Thanks
Brandon


-- 
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]




RE: [PHP] Searching for a word in a string

2001-10-19 Thread Boget, Chris

 How can I search for a certain word in a string?

strpos()  ereg()  preg() and similar functions.

Chris



RE: [PHP] how to know if email sent

2001-10-19 Thread David Pearson

By default you'll never know if the email you sent gets through.

You could set up a bounced email tracking system.  There is an Errors-To
header in the email messages that you can have send to a specially set up
account on your system.  Then have a cron job process that looking for
bounced emails you sent.  You do have to be able to distinguish real bounces
vs. informative warnings that delivery has been delayed.  You may also need
to track the Message Ids if you need to determine if a specific message that
was sent bounces, otherwise you could harvest that special mailbox for known
bad email addresses.

We're building a similar system for our service, I'm trying to get that team
to keep it generic enough to be able to be a standalone product.

David

-Original Message-
From: Alexander Jäger [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 8:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to know if email sent


hi everybody

i'm making an automatic booking system in php. for the hotelier it's also
possible to calculte offers and send them to his gasts. we send the email
with @mail and although we put in a right-formated (with @ in it etc.) but
wrong email adress the function results true.
so we tried to get an error-email from the server that send the mails but no
success.
does anybody has a solution for our problem

thanx for every little help

Alexander Jäger



--
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]



-- 
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]




[PHP] array to string

2001-10-19 Thread René Fournier

Just trying to convert an array to string before writing the whole thing
back out to a file.  (Trying to do a simple database-less database, using
text files).

$fcontents = file($name..db);  // THE ENTIRE TABLE
$fcontents[$update] = $updatedstring;  // THE ROW TO BE UPDATED
$fp = fopen($name..db, w+);

But before the next line, I need to convert $fcontents to a string, else
just Array gets written to the text file.  I just can't seem to find the
sure-to-be simple command to do this on php.net or phpbuilder.com, etc.  Any
ideas?

fwrite($fp,$fcontents);
fclose($fp);

Thanks.

...Rene

---
Rene Fournier
[EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]




Re: [PHP] array to string

2001-10-19 Thread Steve Werby

René Fournier [EMAIL PROTECTED] wrote:
 Just trying to convert an array to string before writing the whole thing
 back out to a file.  (Trying to do a simple database-less database, using
 text files).

 $fcontents = file($name..db);  // THE ENTIRE TABLE
 $fcontents[$update] = $updatedstring;  // THE ROW TO BE UPDATED
 $fp = fopen($name..db, w+);

 But before the next line, I need to convert $fcontents to a string, else
 just Array gets written to the text file.  I just can't seem to find the
 sure-to-be simple command to do this on php.net or phpbuilder.com, etc.
Any
 ideas?

See implode().

$fcontents_string = implode( '', $fcontents );

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
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]




[PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Tom Beidler

I'm running a query that pulls up automotive makes for a given year and
orders them alphabetically. One of the options is no make specified which
I would like to always move to the end of the mysql_fetch_array. So my while
loop would pull up

AMC
Ford
Volkswagon
No make specified 

Instead of

AMC
Ford
No make specified 
Volkswagon

After looking over the php site it doesn't look like there is an easy way to
do it.  Should I take the array, remove the element and then add it to the
end?

The no make specified unique id in the make database is 1. I could order by
id, use array_shift to pop off the first element, sort the array by asort,
and then add it on the end using array_push.

Is there a better way?

Thanks,
Tom 

-- 
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]




Re: [PHP] Re: mysql transactions/rollback

2001-10-19 Thread Heikki Tuuri

Hi!

Job Miller wrote in message
[EMAIL PROTECTED]...
yes, thank you though.
not in MyISAM tables, which is what mine are, and
again according the manual, you slow things down
significantly for transaction support.


Transactional InnoDB tables are actually faster in many
simple benchmarks than MyISAM. Set

innodb_flush_log_at_trx_commit=0

to avoid disk write at each commit. See benchmarks
at http://www.innodb.com/bench.html

is it worth it? instead of my previously suggested
method of handling it? or is there something better?


Regards,

Heikki
Innobase Oy

--- CC Zona [EMAIL PROTECTED] wrote:
 In article

[EMAIL PROTECTED],
  [EMAIL PROTECTED] (Job Miller) wrote:

  without save points and rollback what is the best
 way
  to replace all records for a user that might have
 been
  edited with their new values.

 To clarify: are you aware that MySQL does have
 transaction support
 available, or is using it not an option for you
 here?

 --
 CC

 --
 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]



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



-- 
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]




RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox

George,

your best bet is to have a table in your database which looks up the name of
the file, based on a more friendly name.

James

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
Politicalia admin and editor
e: [EMAIL PROTECTED]  :: w: http://www.politicalia.com/
Today's Discussion, Tomorrow's Agenda.
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.


 -Original Message-
 From: George Pitcher [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 2:42 PM
 To: MrBaseball34; [EMAIL PROTECTED]
 Subject: Re: [PHP] Delivering NAMED pdf files


 Yes,

 If I download the file as it is named, it is the file I expected, only not
 named the way I wanted.

 George

 MrBaseball34 [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
   And the php page which is fileaccess.php:
  
   ?php
   $fp1 = D:\\Pdf\\ . $fp;
   $len = filesize($fp1);
   header(Content-Type: application/pdf);
   header(Content-Disposition: inline; filename=$fp1);
   header(Content-Length: $len);
   readfile($fp1);
   ?
 
  Have you CHECKED the value of $fp?
 
  --
  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]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]



-- 
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]




RE: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark Charette

Don't bother with doing it in PHP, do it in MySQL with a functional
ordering:

Select Make from your_db order by if(left(Make,7)='no make','',Make)

-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 11:53 AM
To: php list
Subject: [PHP] how to move one element of an array to the end of the
array


I'm running a query that pulls up automotive makes for a given year and
orders them alphabetically. One of the options is no make specified which
I would like to always move to the end of the mysql_fetch_array. So my while
loop would pull up

AMC
Ford
Volkswagon
No make specified

Instead of

AMC
Ford
No make specified
Volkswagon

After looking over the php site it doesn't look like there is an easy way to
do it.  Should I take the array, remove the element and then add it to the
end?

The no make specified unique id in the make database is 1. I could order by
id, use array_shift to pop off the first element, sort the array by asort,
and then add it on the end using array_push.

Is there a better way?

Thanks,
Tom

--
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]





-- 
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]




Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Christopher William Wesley

Splice the array at the point in your result array where No make
specified is, for one element, then append it back onto the result array.
Here ...

$noMake = array_splice( $resultArray, array_search( No make specified,
$resultArray ), 1);  // This should be one line, sorry :)

$newResults = array_merge( $resultArray, $noMake );
// Two lines total

g.luck,
~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden

On Fri, 19 Oct 2001, Tom Beidler wrote:

 I'm running a query that pulls up automotive makes for a given year and
 orders them alphabetically. One of the options is no make specified which
 I would like to always move to the end of the mysql_fetch_array. So my while
 loop would pull up

 AMC
 Ford
 Volkswagon
 No make specified

 Instead of

 AMC
 Ford
 No make specified
 Volkswagon

 After looking over the php site it doesn't look like there is an easy way to
 do it.  Should I take the array, remove the element and then add it to the
 end?

 The no make specified unique id in the make database is 1. I could order by
 id, use array_shift to pop off the first element, sort the array by asort,
 and then add it on the end using array_push.

 Is there a better way?

 Thanks,
 Tom

 --
 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]




-- 
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]




Re: [PHP] Dividing too integers...

2001-10-19 Thread R'twick Niceorgaw

try this..
$temp = ($foo%$bar);
$this=$temp/$bar;

- Original Message - 
From: Seb Frost [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 6:20 AM
Subject: [PHP] Dividing too integers...


 Sorry for the stupid question...
 
 I want to do 
 
 $this=$foo/$bar;  (All are integers.)
 
 where this is always rounded up.
 
 I tried the obvious
 
 $this = ceil($foo/$bar) but I just always get 0.
 
 
 cheers,
 
 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 
 
 -- 
 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]
 
 


-- 
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]




[PHP] Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Chris Bailey

I'm wondering if there are any articles or other material describing how to
design PHP web applications in a highly object oriented fashion?
Specifically, object relational mapping, using classes for nearly everything
(as appropriate), etc.  The articles don't have to be PHP specific, but
PHP's OO/class facilities leave a bit to be desired in comparison to say
Java, so how this is done in PHP would be interesting.

I've read a few PHP articles, a couple books, etc. on the typical (my
impression) way of designing PHP web apps, where it's pretty much a 2 layer
setup of UI and database, and there is no encapsulation/data hiding, and
classes/objects aren't used much.

Pointers to any material of this nature would be appreciated.


Chris Baileymailto:[EMAIL PROTECTED]
Code Intensity  http://www.codeintensity.com


-- 
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]




[PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread sgibbs

We just upgraded to php4 but many of our html files end with the extension
.php3 - will this be a problem?

-- 
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]




RE: [PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread MINI2

No, just make sure you configure the .php3 extension as you would .php,
.phtml, etc.  You could make it .MyWierdExtension as long as Apache
knows that files of that type are PHP and need to be processed.

Cheers
Casey Swenson
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 19, 2001 1:18 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] html files with ext .php3 and upgrade to php4

We just upgraded to php4 but many of our html files end with the
extension
.php3 - will this be a problem?

-- 
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]


-- 
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]




Re: [PHP] array to string

2001-10-19 Thread R'twick Niceorgaw

try this
$fupdatecontents='';
while ( list($key,$value) = each($fcontents) ) {
$fupdatecontents .=$value;
}
$fcontents = $fupdatecontents;

or just write $fupdatecontents into the file.
You may need to add a \n after each line ( which I'm not sure);. If you need
you can change the

$fupdatecontents .=$value;

line to

$fupdatecontents .=$value.\n;

HTH
R'twick
- Original Message -
From: René Fournier [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 12:05 PM
Subject: [PHP] array to string


 Just trying to convert an array to string before writing the whole thing
 back out to a file.  (Trying to do a simple database-less database, using
 text files).

 $fcontents = file($name..db);  // THE ENTIRE TABLE
 $fcontents[$update] = $updatedstring;  // THE ROW TO BE UPDATED
 $fp = fopen($name..db, w+);

 But before the next line, I need to convert $fcontents to a string, else
 just Array gets written to the text file.  I just can't seem to find the
 sure-to-be simple command to do this on php.net or phpbuilder.com, etc.
Any
 ideas?

 fwrite($fp,$fcontents);
 fclose($fp);

 Thanks.

 ...Rene

 ---
 Rene Fournier
 [EMAIL PROTECTED]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]




-- 
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]




Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler

Trying to use the solution without positive results

First need to clarify, I'm actually trying to order the model. Here's my
original query;

$make_query = SELECT make.make, model.model, application.make_id,
application.model_id FROM application INNER JOIN make ON make.id =
application.make_id INNER JOIN model ON model.id = application.model_id
WHERE application.year_in = $value AND application.year_out = $value AND
application.make_id != 1 ORDER BY make.make, model.model;

here's what I tried to change it too

$make_query = SELECT make.make, model.model, application.make_id,
application.model_id FROM application INNER JOIN make ON make.id =
application.make_id INNER JOIN model ON model.id = application.model_id
WHERE application.year_in = $value AND application.year_out = $value AND
application.make_id != 1 ORDER BY make.make, if(left(model.model,7)='No
model specified','',model.model);

I get the same results with both. If you can, let me know where I strayed.

Also, out of curiosity, is it faster to do it in MySQL rather then PHP?

Thanks,
Tom

 From: Mark Charette [EMAIL PROTECTED]
 Date: Fri, 19 Oct 2001 12:34:24 -0500
 To: Tom Beidler [EMAIL PROTECTED], php list
 [EMAIL PROTECTED]
 Subject: RE: [PHP] how to move one element of an array to the end of the array
 
 if(left(Make,7)='no make','',Make)


-- 
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]




[PHP] Re: Searching for a word in a string

2001-10-19 Thread Chris Lee

php.net/strstr

if ( strstr($string, $search) )
echo TRUE;
else
echo FALSE;

--

  Chris Lee
  [EMAIL PROTECTED]



Brandon [EMAIL PROTECTED] wrote in message
001e01c158b3$91579170$5a52a040@wi">news:001e01c158b3$91579170$5a52a040@wi...
 Hello,

 How can I search for a certain word in a string?

 Thanks
 Brandon




-- 
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]




[PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin

While trying to use dir() on a certain directory, I get the error 
 
Warning: OpenDir: Invalid argument (errno 22) in
c:\inetpub\wwwroot\search\update.php on line 71.
 
I'm aware this is most likely a permissions error, but I've already
given SYSTEM, SELF, and SERVICE full control over the directory.  I have
to restrict access to a few users on our network for this directory so
EVERYONE isn't an option.
 
Anyone have any ideas as to what I need to set the permissions to?
 
-Justin 
 



Re: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark

On Fri, 19 Oct 2001 12:17:48 -0700, Tom Beidler wrote:
Trying to use the solution without positive results

First need to clarify, I'm actually trying to order the model.
Here's my
original query;

$make_query = SELECT make.make, model.model, application.make_id,
application.model_id FROM application INNER JOIN make ON make.id =
application.make_id INNER JOIN model ON model.id =
application.model_id
WHERE application.year_in = $value AND application.year_out =
$value AND
application.make_id != 1 ORDER BY make.make, model.model;

here's what I tried to change it too

$make_query = SELECT make.make, model.model, application.make_id,
application.model_id FROM application INNER JOIN make ON make.id =
application.make_id INNER JOIN model ON model.id =
application.model_id
WHERE application.year_in = $value AND application.year_out =
$value AND
application.make_id != 1 ORDER BY make.make,
if(left(model.model,7)='No
model specified','',model.model);

I get the same results with both. If you can, let me know where I
strayed.

try:
ORDER BY make.make='no make specified',make.make,model.model


Also, out of curiosity, is it faster to do it in MySQL rather then
PHP?

Thanks,
Tom

 From: Mark Charette [EMAIL PROTECTED]
 Date: Fri, 19 Oct 2001 12:34:24 -0500
 To: Tom Beidler [EMAIL PROTECTED], php list
 [EMAIL PROTECTED]
 Subject: RE: [PHP] how to move one element of an array to the end
of the array

 if(left(Make,7)='no make','',Make)




--
Mark, [EMAIL PROTECTED] on 10/18/2001



--
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]




[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee

in php.ini

session.gc_probability= 1   ; percentual probability that the
; 'garbage collection' process is
started
; on every session initialization
session.gc_maxlifetime= 604800  ; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process

I have my php.ini set to everytime php is run it looks for session files 7
days (604800 seconds) old, if there are any files at all, there is a 1%
chance php will delete them. this is called garbage collection.

so to simply answer your question: no. they are not deleted when the user
quits their browser. the cookie however can be set to a lifetime of 0, which
means when the browser quits the cookie is considered expired and the
browser on the next launch will delete the cookie.

--

  Chris Lee
  [EMAIL PROTECTED]




Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hi,

 I have been experimenting with PHP4 using sessions and one of my books
 says that session ID's are created in the /tmp directory so I take a look
 in there and I find are about 10 sessions that have not been deleted dated
 earliest to about being week old

 ie.  sess_5b30ccebb1d098c37a5e46efd7708fef

 I have been experimenting with user authentication with sessions and just
 plain starting a session when a user accesses the site.

 Well, the site is still experimental and each time I logged myself out.

 But I thought sessions were supposed to wipe themselves out from the /tmp
 directory immediately after leaving the website.

 Appreciate if someone could shed the light on this issue for me.

 Thanks.

 Peter




-- 
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]




[PHP] A case of client that affects the speed of the server

2001-10-19 Thread Carlos Henrique Barbosa Gonçalves

Hello, people.

I'm trying to configure Apache+PHP on a Linux Red Hat machine(Pentium III, 
IP 130.94.20.132) in order to leave the machine I'm currently using (Pentium 
II, www.etapa.net)

To evaluate the difference in performance, I ran the same PHP script in both 
machines. Much to my surprise, the machine with a better hardware was 
slower.

It's been some 10 days I've been working to fix this. Perhaps you can help 
me.

At this moment, both servers are running the same version of Apache and PHP. 
You can check this through the addresses:

www.etapa.net/info.php3

and

130.94.20.132/info.php3

The script I'm using to test the difference in performance can be reached 
through

www.etapa.net/enem_pontosnew.php3

and

130.94.20.132/enem_pontosnew.php3

If you want to see the script source, use 130.94.20.132/enem_pontosnew.txt 
and see the source.

In both of them you will see five measurements of time. My readings, from a 
lynx browser at the USA are

For www.etapa.net,
0.029524922370911
0.030010938644409
0.031177997589111
0.047765970230103
0.064495921134949

For 130.94.20.132
0.0050849914550781
0.0051850080490112
0.0054060220718384
0.024041056632996
0.038671016693115

If you look closely at the above figures, you'll notice that in the first 
three readings of each series, the new server is consistently 6 times faster 
than the old one (which of course is something very good). However, in the 
last two readings, the new server is only two times faster than the old one. 
During the assembling of the html code of the tables in the pages, the new 
server reduces its performance in a significant way.

Now an even more unexpected result. From an IE browser in Brasil, I've been 
getting approximately the same readings from etapa.net, but 130.94.20.132 is 
slower than the same page accessed from the USA. See it:

0.014531970024109
0.014856934547424
0.015432953834534
0.5794450044632
1.1874959468842


My conclusion is that the speed with which the browser can exchange bytes 
with the server at the 130.94.20.132 address is affecting the speed of the 
server.

How should I configure the server so that it is independent of the client? 
(Unfortunately, the people that have configured my other server don't know 
the answer for this question.)

Thanks.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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]




RE: [PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin

Well the code actually traverses a group of directories and errors on
that directory (the only one I've changed the permissions to) so I'm
pretty sure it's not the code.

Here's a snippet of the traversing code..

---code start---

function listDirs($startDir) {
  echo Checking $startDir...br;
  $d = dir($startDir);
  while($entry=$d-read()) 
  {
if (substr($entry,0,1)!=.)
{
  if(filetype($startDir/$entry)==dir)
  listDirs($startDir/$entry);
  if(substr($entry,strlen($entry)-4) == .php)
  dbInsert($startDir/$entry); 
}
  }
}

listDirs(/inetpub/wwwroot);

---code finish---

This outputs all the directories.. ending with this

---paste start---

Checking /inetpub/wwwroot/info/superintendent...
Checking /inetpub/wwwroot/info/transportation...
Checking /inetpub/wwwroot/info/transportation/Trans...

Warning: OpenDir: Invalid argument (errno 22) in
c:\inetpub\wwwroot\search\update.php on line 71

Fatal error: Call to a member function on a non-object in
c:\inetpub\wwwroot\search\update.php on line 72

---paste finish---

After Checking /inetpub/wwwroot/info/transportation/Trans... I'm
receiving the error.  Since the Trans directory is the directory with
the different permissions, I'm lead to believe it's a permissions issue.

-Justin

-Original Message-
From: Frewuill Rodriguez [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 19, 2001 2:52 PM
To: King, Justin
Subject: Re: [PHP] Windows 2000 Permissions error

check your path, may be some extra slash..

show the code when call dir()


- Original Message - 
From: King, Justin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 3:40 PM
Subject: [PHP] Windows 2000 Permissions error


While trying to use dir() on a certain directory, I get the error 
 
Warning: OpenDir: Invalid argument (errno 22) in
c:\inetpub\wwwroot\search\update.php on line 71.
 
I'm aware this is most likely a permissions error, but I've already
given SYSTEM, SELF, and SERVICE full control over the directory.  I have
to restrict access to a few users on our network for this directory so
EVERYONE isn't an option.
 
Anyone have any ideas as to what I need to set the permissions to?
 
-Justin 
 



--
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]




RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Bill Rausch

George,

Rasmus' suggestion is correct, but he was terse as usual :) and you 
might not have understood what he was saying.

My solution is to present a list of the filenames available as LINKS 
(to non-existent files). Then the script does what you've already 
got.  The problem is that some browsers cheat and ignore the 
filename that you send in the headers because they think they know 
better because of the URL that is currently active. So you fool them 
by making a fake URL.

In my case I have links that look like:
a href=/dl.php/file.pdffile.pdf/a

and my dl.php script looks something like:

...
$uri = urldecode(substr($REQUEST_URI,8));   # skip over the /dl.php/
$x = strpos( $uri, ? );   # get rid of trailing SID, etc.
if( $x  0 )
 $uri = substr($uri,0,$x);

header( ...
header( ...

readfile( $realfileloc/$uri );
...

Bill
-- 
  Bill Rausch, Software Development, Unix, Mac, Windows
  Numerical Applications, Inc.  509-943-0861   [EMAIL PROTECTED]

-- 
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]




[PHP] Error compiling pdflib extension

2001-10-19 Thread Eric Thelin

I recently tried to recompile PHP-4.0.6 and my pdflib extension stopped
working.  I was building it in directly but the module wasn't being
listed on phpinfo() and of course the pdf functions didn't work.  So
after many attempts I decided to try another approach and build it as a
shared module.  I had a very hard time finding any documentation about
how to even compile a shared module at all but I did finally find it.  I
got it compiled but it still doesn't work.  I recieve the following
error message when I try to load it.

Warning: Invalid library (maybe not a PHP library) 'libpdf_php.so' in
/home/httpd/html/u7/lib/pdflib.inc on line 3

I tried running 'file' on the module to see if I could find any
justification for that error.  I recieved

$ file libpdf_php.so
libpdf_php.so: ELF 32-bit LSB shared object, Intel 80386, version 1
(SYSV), not stripped

I am running on Mandrake 8.1 (I tried with 8.0 as well)

I know that the module interface is working because I compiled many
other modules (same compile) and they all work.  Then I had a really
strange idea,  I went out and found an rpm for php-pdf-4.0.6 and
extracted the share module.  It worked!  So now I am really confused.  I
am up and running but at some point I will want to upgrade so I will
need find the problem.  Anyone have an idea?

Eric


-- 
Eric Thelin  [EMAIL PROTECTED]
   AZtechBiz.com: Where Arizona Does Tech Business


-- 
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]




[PHP] Help converting ASP-PHP

2001-10-19 Thread MrBaseball34

PHP Newbie, so please don't flame me bg!

I am converting an organizer example from an ASP book to PHP
and need some help.

Need some help with the following code :

/*
 intMonth and intYear are variables passed into a function
 datCurrent, intCurrentMonthDays and intWorkDays are local 
 variables
*/

   datCurrent = CDate(intMonth  /1/  intYear)
   intCurrentMonthDays = _
  Day(DateAdd(d, -1, DateAdd(m, 1, datCurrent)))
   intWeekday = Weekday(datCurrent)

I can't find any PHP functions to handle this type of day/date
manipulation...

-- 
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]




[PHP] test

2001-10-19 Thread Kurth Bemis

system test


-- 
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]




Re: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread Alex Shi

Where you find it? Why not show up the link?

Actually I have been always thinking of a php studio. I think at least
following
things could be integrated into such a studio: a php IDE bundled with a web
authority tool, and port to SQL server and web server.

Alex


- Original Message -
From: René Fournier [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 3:50 PM
Subject: [PHP] Visual PHP Studio--comments?


 Just found this app, and wondered if anyone here is using it and could
 comment on it.  I was just wondering how it might help me do basic PHP
 development more than a good editor alone.  (I am a PHP newbie, so perhaps
 it's just overkill.)

 ...Rene

 ---
 Rene Fournier
 [EMAIL PROTECTED]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]




-- 
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]




[PHP] Re: Help converting ASP-PHP

2001-10-19 Thread MrBaseball34

In article [EMAIL PROTECTED], [EMAIL PROTECTED] 
says...
Goto yahoo and do a search for ASP2PHP - it is a script that converts
asp pages to php.  Never used it so I can't say how good it works, but
I'm guessing it will do all the basic stuff really well, but db stuff
might get a bit messy.  Worth a shot though.

Cheers
Casey Swenson


Messy isn't the word...bg

Here is how it converted the sample I provided:

 $datCurrent=$CDate[$intMonth./1/.$intYear];
  $intCurrentMonthDays=
$Day[$DateAdd[d,-1,$DateAdd[m,1,$datCurrent]]];
  $intWeekday=$Weekday[$datCurrent];

Don't look like it did a very good job, huh?
It took Consts in ASP and just made them as
scalars instead of using define()

Bad product for anything even remotely complex. Besides,
any kind of converter like that is bound to screw up...

-- 
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]




[PHP] Deleting HTTP auth...

2001-10-19 Thread Lic. Rodolfo Gonzalez Gonzalez

Hello list,

Is it possible to delete the data from an Apache's HTTP authentification
directly from a PHP script?. I know that the username/password pair is
stored in two variables which are sent by the client to the server,
right?. is it possible to alter them from PHP¿?.

Thanks a lot,
Rodolfo.


-- 
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]




[PHP] Re: Help converting ASP-PHP

2001-10-19 Thread Curt A. Gilman

You should be able to do everything with PHP's date functions:

http://www.php.net/manual/en/ref.datetime.php

Pay particular attention to the mktime, date, and getdate functions. The
script below might be helpful to you.

?

function begin_month($timestamp)
{
 $a = getdate($timestamp);
 return mktime(0, 0, 0, $a[mon], 1, $a[year]);
}

function end_month($timestamp)
{
 $a = getdate($timestamp);
 return mktime(0, 0, 0, $a[mon] + 1, 0, $a[year]);
}

function weekday($timestamp)
{
 $a = getdate($timestamp);
 return $a[wday];
}

$date = mktime(0, 0, 0, 12, 15, 2001);
echo date(M/d/Y, begin_month($date)), \n;
echo date(M/d/Y, end_month($date)), \n;
echo weekday($date), \n;

?
__
Curt A. Gilman
Richmond, Virginia, USA
[EMAIL PROTECTED]

Mrbaseball34 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 PHP Newbie, so please don't flame me bg!

 I am converting an organizer example from an ASP book to PHP
 and need some help.

 Need some help with the following code :

 /*
  intMonth and intYear are variables passed into a function
  datCurrent, intCurrentMonthDays and intWorkDays are local
  variables
 */

datCurrent = CDate(intMonth  /1/  intYear)
intCurrentMonthDays = _
   Day(DateAdd(d, -1, DateAdd(m, 1, datCurrent)))
intWeekday = Weekday(datCurrent)

 I can't find any PHP functions to handle this type of day/date
 manipulation...



-- 
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]




[PHP] Error on session_start()

2001-10-19 Thread Zavier Sheran

When I try to start a session or authenticate with HTTP headers, I get the
following error:

Warning: Cannot send session cache limiter - headers already sent (output
started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in
/usr/local/etc/httpd/vhosts/gar/english/login/login_2.php on line 1


It always says the headers were already sent. What could be the cause?

It happens on my dev server (Win32, PHP 4.06) and on my ISP's virtual server
(FreeBSD, PHP 4.04)

-Zavier



-- 
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]




Re: [PHP] Error on session_start()

2001-10-19 Thread p.whiter

Hi
Be sure that you are placing the session_start() before the (html)head
section of your script, best to put it right at the top of the page, also
make sure there is no white space before opening php tags.
HTH
Paul

- Original Message -
From: Zavier Sheran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 11:13 PM
Subject: [PHP] Error on session_start()


: When I try to start a session or authenticate with HTTP headers, I get the
: following error:
:
: Warning: Cannot send session cache limiter - headers already sent (output
: started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in
: /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php on line 1
:
:
: It always says the headers were already sent. What could be the cause?
:
: It happens on my dev server (Win32, PHP 4.06) and on my ISP's virtual
server
: (FreeBSD, PHP 4.04)
:
: -Zavier
:
:
:
: --
: 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]
:


-- 
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]




Re[2]: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread WebDev

Hello Alex,

www.visualphpstudio.com

/Merle


Friday, October 19, 2001, 6:19:30 PM, you wrote:

AS Where you find it? Why not show up the link?

AS Actually I have been always thinking of a php studio. I think at least
AS following
AS things could be integrated into such a studio: a php IDE bundled with a web
AS authority tool, and port to SQL server and web server.

AS Alex


AS - Original Message -
AS From: René Fournier [EMAIL PROTECTED]
AS To: Php-General [EMAIL PROTECTED]
AS Sent: Friday, October 19, 2001 3:50 PM
AS Subject: [PHP] Visual PHP Studio--comments?


 Just found this app, and wondered if anyone here is using it and could
 comment on it.  I was just wondering how it might help me do basic PHP
 development more than a good editor alone.  (I am a PHP newbie, so perhaps
 it's just overkill.)

 ...Rene

 ---
 Rene Fournier
 [EMAIL PROTECTED]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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]





-- 
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]




[PHP] Re: How to change the newline (br) into dot and br ?

2001-10-19 Thread c

$var = str_replace(\n, br, $var);
sometimes \r\n , but Im not sure... :)

c

[EMAIL PROTECTED] (Manisha) wrote in news:[EMAIL PROTECTED]:

 I am having the text fetched from mySQL database. I converted newline to 
 br with nl2br function.
 
 I need to detect br and need to put 'dot'  in front of it and then 
 display. (like unnumbered list with 'dot' as a separator)
 
 Is there any command line (substring and indexof to detect it ?)
 
 thanks in advance,
 
 manisha



-- 
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]




[PHP] contstant in heredoc

2001-10-19 Thread Pierce

is it possibe to include defined constant in heredoc block?
for example:
define(_ACONST_,CONSTVAL);
$str = EOL
value is _ACONST_
EOL;
echo $str;

*Normal* variables usage in {} doesn't woks :((

=-=-=--=
P.



-- 
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]




[PHP] Re: Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Lucas Chan

This may be of some use to you?

http://www.devshed.com/Server_Side/PHP/ExtensibleMenuClass/page1.html

Regards,

[ lucas ]




Chris Bailey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I'm wondering if there are any articles or other material describing how
to
 design PHP web applications in a highly object oriented fashion?
 Specifically, object relational mapping, using classes for nearly
everything
 (as appropriate), etc.  The articles don't have to be PHP specific, but
 PHP's OO/class facilities leave a bit to be desired in comparison to say
 Java, so how this is done in PHP would be interesting.

 I've read a few PHP articles, a couple books, etc. on the typical (my
 impression) way of designing PHP web apps, where it's pretty much a 2
layer
 setup of UI and database, and there is no encapsulation/data hiding, and
 classes/objects aren't used much.

 Pointers to any material of this nature would be appreciated.

 
 Chris Baileymailto:[EMAIL PROTECTED]
 Code Intensity  http://www.codeintensity.com




-- 
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]




[PHP] Re: Windows 2000 Permissions error

2001-10-19 Thread Fredrik Arild Takle

I guess you have to set EVERYONE.
(Don't now for sure)

Fredrik A. Takle

Justin King [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
While trying to use dir() on a certain directory, I get the error

Warning: OpenDir: Invalid argument (errno 22) in
c:\inetpub\wwwroot\search\update.php on line 71.

I'm aware this is most likely a permissions error, but I've already
given SYSTEM, SELF, and SERVICE full control over the directory.  I have
to restrict access to a few users on our network for this directory so
EVERYONE isn't an option.

Anyone have any ideas as to what I need to set the permissions to?

-Justin





-- 
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]




[PHP] regular expresion

2001-10-19 Thread Richard

Hi, I want to validate that a variable only contains numbers. I came up with
this code

$variable = 154545;  -  must give me true.
$variable = $%54545;  -  must give me false
$variable = $%54545;  -  must give me false
$variable = 4545;#;  -  must give me false
$variable = 004545;  -  must give me false

CODE STARTS HERE

$variable = 5;
$variable = trim($variable);

if (ereg ([a-zA-Z], $variable)) {
   echo NOT ONLY NUMBERS: $variable;
   $variable = ;
}

if (ereg ([0-9], $variable)) {
   $variable = $variable * 1;
   if ($variable == 0) {
  echo IS NOT A NUMBER;
   } else {
  echo JUST NUMBERS: $variable;
   }
}

Another thing that I thought about was this :

$variable= ereg_replace( [^0-9], , $variable );

But is not what i am looking for...

I know there is a simpler way to do it. I just couldn't figure it out.

Thanks in advance
Ricardo



-- 
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]




[PHP] XML: Expat or DOM?

2001-10-19 Thread Daniele Baroncelli

Hi guys,

I would like to start the new development of my site in XML.

Can anyone with experience tell me the real difference in speed between the
Expat and DOM parser?

Also, is it really risky to develop in DOM, considering the module is
experimental, and in theory it could change ?


Any up-to-date info on the issue are very welcome!


Cheers

Daniele



-- 
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]




[PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy

Hi All,
I'm stumped.  I've got the following code:

?php
if(isSet($domain))
{
 for ( $counter=0; $counter = strlen($domain); $counter++ )
  {
  $nChar = ord(strtolower(substr($domain, $counter, 1)));
  if (($nChar  47 And $nChar  58) or ($nChar  96 And $nChar  123) or
$nChar = 45);
   {
   print OK.;
   }
  else
   {
   print Not OK.;
   }
  }
}
?

What's got me beat is that this code fails on the ELSE statement.  Now, if I
comment out the ELSE statement, the code proceeds, I just don't get the
results I want when the coditions in IF statement are false.

Anyone know what I'm doing wrong?  It's as if you can't nest an IF/Else
under a FOR, but you can use just an IF.  Thanks very much in advance.

Brad




-- 
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]




[PHP] Re: regular expresion

2001-10-19 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Richard) wrote:

 Hi, I want to validate that a variable only contains numbers. I came up with
 this code
 
 $variable = 154545;  -  must give me true.
 $variable = $%54545;  -  must give me false
 $variable = $%54545;  -  must give me false
 $variable = 4545;#;  -  must give me false
 $variable = 004545;  -  must give me false

Assuming that you actually wanted true on that last one, any of the 
following should do:

if(preg_match('/^[0-9]+$/',$variable))
if(preg_match('/^\d+$/',$variable))
if(ereg('^[0-9]+$',$variable))
if(ereg('^[[:digit:]]+$',$variable))

If you don't consider zero a valid number, you can use either of these 
instead:

if(preg_match('/^[1-9]+$/',$variable))
if(ereg('^[1-9]+$',$variable))

-- 
CC

-- 
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]




RE: [PHP] Re: regular expresion

2001-10-19 Thread Mark Charette


 In article [EMAIL PROTECTED],
  [EMAIL PROTECTED] (Richard) wrote:
 
  Hi, I want to validate that a variable only contains numbers. I 
 came up with
  this code
 

I came up with this code:

is_numeric($var)

mark C.


-- 
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]




RE: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread David Pearson

Could it be the semi colon at the end of the 'if' line, at '... $nChar =
45); { ...'  ?  Looks like the if statement ends there, the ' { print
OK.; } ' is a block on it's own and the 'else' is now out of context.

-Original Message-
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 8:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can I have If...Else inside a For Loop???


Hi All,
I'm stumped.  I've got the following code:

?php
if(isSet($domain))
{
 for ( $counter=0; $counter = strlen($domain); $counter++ )
  {
  $nChar = ord(strtolower(substr($domain, $counter, 1)));
  if (($nChar  47 And $nChar  58) or ($nChar  96 And $nChar  123) or
$nChar = 45);
   {
   print OK.;
   }
  else
   {
   print Not OK.;
   }
  }
}
?

What's got me beat is that this code fails on the ELSE statement.  Now, if I
comment out the ELSE statement, the code proceeds, I just don't get the
results I want when the coditions in IF statement are false.

Anyone know what I'm doing wrong?  It's as if you can't nest an IF/Else
under a FOR, but you can use just an IF.  Thanks very much in advance.

Brad




--
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]



-- 
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]




[PHP] Re: Mysql export

2001-10-19 Thread Nikhil Goyal

I've found the best way is to set up a MyODBC link. You can download 
MyODBC from http://mysql.com/downloads/api-myodbc.html

It's a bit complicated, but you get excellent results!

- Nikhil

Roman wrote:

 Please help me, how to export mysql table to the xls table ?
 Thanks for all
 
   Roman
 
 
 


-- 
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]




Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy

arrh!   I don't think I can say much else.  Thanks so
much for pointing that out David.  ;-)

.Brad


David Pearson [EMAIL PROTECTED] wrote in message
003101c1591a$e00ec290$320110ac@david">news:003101c1591a$e00ec290$320110ac@david...
 Could it be the semi colon at the end of the 'if' line, at '... $nChar =
 45); { ...'  ?  Looks like the if statement ends there, the ' { print
 OK.; } ' is a block on it's own and the 'else' is now out of context.

 -Original Message-
 From: Brad Melendy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 8:03 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Can I have If...Else inside a For Loop???


 Hi All,
 I'm stumped.  I've got the following code:

 ?php
 if(isSet($domain))
 {
  for ( $counter=0; $counter = strlen($domain); $counter++ )
   {
   $nChar = ord(strtolower(substr($domain, $counter, 1)));
   if (($nChar  47 And $nChar  58) or ($nChar  96 And $nChar  123) or
 $nChar = 45);
{
print OK.;
}
   else
{
print Not OK.;
}
   }
 }
 ?

 What's got me beat is that this code fails on the ELSE statement.  Now, if
I
 comment out the ELSE statement, the code proceeds, I just don't get the
 results I want when the coditions in IF statement are false.

 Anyone know what I'm doing wrong?  It's as if you can't nest an IF/Else
 under a FOR, but you can use just an IF.  Thanks very much in advance.

 Brad




 --
 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]





-- 
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]




Re: [PHP] Disable Back Button

2001-10-19 Thread Richard S. Crawford

Can you imagine the trouble you'd get into if you could?

At 09:47 PM 10/19/2001, Chip Landwehr wrote:
Is there any way to do this in PHP4?


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


--
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]




Re: [PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr

lol!

True, so true...

Richard S. Crawford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can you imagine the trouble you'd get into if you could?

At 09:47 PM 10/19/2001, Chip Landwehr wrote:
Is there any way to do this in PHP4?


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!




-- 
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]




[PHP] IRC Channel

2001-10-19 Thread Chip Landwehr

Is there a PHP IRC channel?



-- 
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]




[PHP] Re: PHP 4.0.6 Mysql 4.0

2001-10-19 Thread Yasuo Ohgaki

Jeroen Geusebroek wrote:

 Hi there,
  
 Does the current stable PHP (4.06) support the use of the newly released
 Mysql 4?

No. Not even with CVS version AFAIK.

--
Yasuo Ohgaki


-- 
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]




[PHP] Re: Annotated PHP Manual

2001-10-19 Thread Yasuo Ohgaki

Khalid Hazmi wrote:

 How I can download the current Annotated PHP Manual???
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 

There is no such thing... AFAIK.

--
Yasuo Ohgaki


-- 
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]




[PHP] Re: !!! URGENT [PHP] php mail() function Problem

2001-10-19 Thread Yasuo Ohgaki

If your sendmail is set up correctly, you should be able to send 
mail. Check your sendmail. Look for sendmail Manul, FAQ, etc, 
since it's not PHP problem.

--
Yasuo Ohgaki

Simos Varelakis wrote:

 Hi to everyone
 
 i have problem with php4 mail() function.
 
 Os:mandrake 7.2 Mailprog:Sendmail
 
 the following php code
 
 ?php
 
 mail("[EMAIL PROTECTED]","subject","body","From:[EMAIL PROTECTED]");
 ?
 
 does not send e-mail
 
 my /var/log/mail/info files log the following
 
 thewall sendmail[8313]: f9HAE9I08313: from=apache, size=0, class=0,
 nrcpts=0, relay=apache@localhost
 
 my php.ini sendmail path is /usr/sbin/sendmail -t
 
 Ive try to make apache sendmail trusted user
 + change my php.ini path to
 is /usr/sbin/sendmail -t -f root@localhost
 
 but nothing :-)
 
 any ideas
 thanks in advance for any help :-)
 
 Simos
 
 
 



-- 
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]




[PHP] Re: Variable Configuration Problem

2001-10-19 Thread Yasuo Ohgaki

I guess you are using php.ini-optimized, right?
Take a look at
http://www.php.net/manual/en/language.variables.external.php

I suggest to read PHP Manual :)

--
Yasuo Ohgaki

Patrick Quaedackers wrote:

 Hello all!
 I installed PHP 4.0.6 om my server (Winnt server, Apache), and I started testing 
with it.
 
 The problem I have now is this:
 I want to read the data passed from a form trough a variable.
 Let's say the form field is called Test. I want to use $Test in my PHP script to 
read that variable.
 
 But all variables stay empty. I don't wan't to use the Query_string to get my 
variables.
 
 Can anybody tell me what INI-setting(s) I got to turn on or off??
 
 Thanks!!!
 
 Greetz
   Patrick
 
 



-- 
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]




  1   2   >