Re: [PHP] RegExp help..

2001-03-12 Thread Fredrik Wahlberg

Try this:

$
ereg("^([0-9]{2})[0-9]{2}([0-9]{2}).*", $var, $hits)
if ($hits[1] == themonth  $hits[2] == theyear) {
do_the_stuff
}

What it does is that it puts the first two digitst into $hits[1], skips 
the two nextcoming digits and finally puts the next two numbers into $hits[2]

/Fredrik

 Ursprungligt meddelande 

John Vanderbeck [EMAIL PROTECTED] skrev 2001-03-12, kl. 02:40:25 
angende mnet [PHP] RegExp help..:


 I really wish I could figure these darn things out :)  I have a task I 
need
 to do, and i'm certain I could do this easily with a regexp..

 I have a file name in the format MMDDYY-*.txt...I need to parse it to
 determine if the month and year matches a specified month and year.  Day 
is
 irrelevant

 Can any of your regexp wizards help me?

 Thanks!

 - John Vanderbeck
 - Admin, GameDesign



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

2001-03-12 Thread Tiki

Be careful. Only for PHP4.
Alternatively, try PHPLIB. Works for me:)

""Chris Lee"" [EMAIL PROTECTED] wrote in message
98bfqi$asb$[EMAIL PROTECTED]">news:98bfqi$asb$[EMAIL PROTECTED]...
sessions

?php

/*

http://php.net/manual/en/ref.session.php

sessions with cookies

 - will transfer across full urls
 - will transfer acress full form urls
 - will not set SID
 - will not transfer across multiple domainnames

sessions without cookies

 - will set SID
 - will transfer across multiple domainnames if the domain name is on the
same server and $SID is manualy appended to the url
 - will transfer across full urls if $SID is appended to the url
 - will transfer across full form urls if $SID is appended to the form url

*/

 function mtime()
 {
  $mtime = microtime();
  $mtime = str_replace('.', '', $mtime);
  $mtime = explode(' ', $mtime);
  $mtime = $mtime[1] . $mtime[0];

  return($mtime);
 }

 if ( isset($HTTP_GET_VARS['PHPSESSID']) )
  session_id($HTTP_GET_VARS['PHPSESSID']);
 if ( isset($HTTP_POST_VARS['PHPSESSID']) )
  session_id($HTTP_POST_VARS['PHPSESSID']);

 if (!isset($HTTP_SESSION_VARS['SessionID']))
 {
  $SessionID = mtime();
  session_register('SessionID');
 }

 $PHPSESSID = session_id();
 $SID = "PHPSESSID=$PHPSESSID";

 //

 echo "
 a href='http://$SERVER_NAME/$PHP_SELF?$SID'here /a
 ";

?

there ya go


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


"Leo" [EMAIL PROTECTED] wrote in message
98be7g$qnj$[EMAIL PROTECTED]">news:98be7g$qnj$[EMAIL PROTECTED]...

hi

i'm currently programming a php web application and i have the following
problem: i need a login scheme; programmed a simple one. Whichever page the
user reaches, in some i need their userid, for extra validation. so
basically, i'm looking for a mechanism to share a variable between multiple
pages, but as i don't always use forms, i think i can't use url-encoding
with the a-tag to make the userid available for all scripts.
maybe there is support for logging users in, i don't know
anyone an idea?

tx





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

2001-03-12 Thread Peter Sabaini


On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote:
 On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote:
  Ok, I've tried time and time again to unsubscribe from php.net's
  mailing list unisubscribe instructions but it doesn't work. So how do I
  get off the list?
 
 
 The following is at the bottom of each message from the list:
 
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

which i did. and also emailed [EMAIL PROTECTED] 

to no avail i am afraid. 

i think you should check your setup...

meanwhile i am just going to set up some procmail rule to redirect
this to /dev/null i guess.

shrug /

peter.

 --- snip ---

Date: Mon, 5 Mar 2001 14:36:09 +0100
From: Peter Sabaini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: unsubscribe wont work
User-Agent: Mutt/1.2.5i
 
 
hi,
 
for some reason i cannot unsubscribe myself from php-general. i dont
even get a reply from the help address. can you please unsubscribe me?
 
thanks,
peter.
 
 --- snip ---

Date: Tue, 27 Feb 2001 19:35:04 +0100
From: Peter Sabaini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: unsubscribe
User-Agent: Mutt/1.2.5i
 

-- 
Peter Sabaini [EMAIL PROTECTED]
NETCONOMY Onlineberatungs- und -management Gmbh  Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081 


 --- snip ---


-- 
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-CVS] cvs: php4 /pear/DB common.php

2001-03-12 Thread Stig Bakken

ssb Mon Mar 12 01:33:21 2001 EDT

  Modified files:  
/php4/pear/DB   common.php 
  Log:
  * bugfix (thanks to Alexey Borzov)
  
  
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.38 php4/pear/DB/common.php:1.39
--- php4/pear/DB/common.php:1.38Mon Feb 19 04:22:25 2001
+++ php4/pear/DB/common.php Mon Mar 12 01:33:21 2001
@@ -721,7 +721,8 @@
 }
 } else {
 // return scalar values
-while (($row = $this-fetchRow($res))  !DB::isError($row)) {
+while (($row = $this-fetchRow($res, DB_FETCHMODE_ORDERED)) 
+   !DB::isError($row)) {
 $results[$row[0]] = $row[1];
 }
 }



-- 
PHP CVS 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] Good Free PHP Editor?

2001-03-12 Thread Simon Garner

From: "Andrew Halliday" [EMAIL PROTECTED]

 Does anyone know of a good PHP enabled editor that fits the following
 criteria:?

 (in order of importance)
 - Is free
 - Runs under Windows
 - Has colors (syntax highlighting)
 - Can edit multiple files (ie multi threaded)
 - Reports line numbers
 - Has good search  replace functionality

 ???

 Ive been using editpad up till now but my code is starting to get so large
 that ill need syntax highlighting soon...

 AndrewH



HomeSite is great. www.allaire.com

- not totally free I'm afraid, but there is an eval version.
- runs under Windows yes
- supports syntax highlighting for lots of languages including HTML, PHP,
Perl, SQL, ASP (VB/JS).
- can edit multiple files yes
- shows line numbers in gutter on left hand side
- supports regular-expression based search  replace across multiple
files/directories
- nice interface.


Cheers

Simon Garner



-- 
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] ASP vs PHP

2001-03-12 Thread Simon Garner

From: "Chris Anderson" [EMAIL PROTECTED]

 This is going to sound like heresy, but is there any way to
 use ASP and PHP in the same fle/page? Seperated of course.


What if you put:

!--#include virtual="path/to/file.php"--

in your ASP page?





-- 
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-CVS] cvs: php4 /pear pear.m4

2001-03-12 Thread Stig Bakken

ssb Mon Mar 12 01:54:26 2001 EDT

  Modified files:  
/php4/pear  pear.m4 
  Log:
  HEADS UP: renamed config header file in "phpize"d extensions to
  "config.h" rather than "php_config.h".
  
  
Index: php4/pear/pear.m4
diff -u php4/pear/pear.m4:1.7 php4/pear/pear.m4:1.8
--- php4/pear/pear.m4:1.7   Mon Oct 30 10:27:46 2000
+++ php4/pear/pear.m4   Mon Mar 12 01:54:26 2001
@@ -81,6 +81,6 @@
 test -d modules || mkdir modules
 touch .deps
 
-AC_CONFIG_HEADER(php_config.h)
+AC_CONFIG_HEADER(config.h)
 
 AC_OUTPUT()



-- 
PHP CVS 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] Grab and print user IP address

2001-03-12 Thread Dream

Hi!

I need just a little script so I can get and print in browser the currently
users IP address and if possible, browser type, etc.

Thanks a lot!

marc




-- 
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] Problems with string replacement

2001-03-12 Thread Christian Reiniger

On Sunday 11 March 2001 23:44, you wrote:
  Well, I'm having problems again.  This time with string replacement.
  I'd like people to be able to write notes on one of the site's I'm
  helping with, and would like them to be able to use Bold, Italic,
  Underline and a href tags.  I tried using striptags(); but that
  would strip anything within double quotes too.  So I've gotten
  around it by
 
  huh? strip_tags works fine for me.
 
  echo strip_tags ('Hello a href="http://foo/"bar/a
  "world"bremthere/em', 'a br');
 
  creates
 
  'Hello a href="http://foo/"bar/a "world"brthere'

 True, but then it doesn't:
 -Open the link in a new window

??
You have some tag like
a href="http://foo.bar/" target="_new"link/a
and strip_tags() transforms this to
a href="http://foo.bar/"link/a
?

Or what do you mean with that?

 it does:
 -remove all content between "and".

No. Just plain no. See my example above. The stuff in quotes was kept 
without any problems.

 Of course, I could replace quote marks with htmlspecialchars/entities
 or using manual string replacement, but then it'd render all tags using
 quote marks invalid.

 See the problem? ;)

No ;)
Perhaps if you could provide some example code...

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

Error 032: Recursion error - see error 032

--
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] New to navigation functions...

2001-03-12 Thread Yasuo Ohgaki
I cannot figure out what is your problem exactly.
Could you explain what you want to do with on server side(PHP) and client
side(JavaScript) again on the new thread?

Regards,
--
Yasuo Ohgaki

""Richard"" [EMAIL PROTECTED] wrote in message
98ev42$r6d$[EMAIL PROTECTED]">news:98ev42$r6d$[EMAIL PROTECTED]...
 Thanks, I will check it out.

 Anyhow, I was thinking of fixing an Update bug that I have in one of my
 scripts. I use the same php file for reading and saving a file, the thing
 is, if the user hits update or whatever, the entry or text will be entered
 again, because the address is file.php?PARAM1=...PARAM2=...Can you
 help me with this one? What I want to do is to make sure that the location
 is purely the website address and the php file name.

 - Richard



 ""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message
 98epti$n83$[EMAIL PROTECTED]">news:98epti$n83$[EMAIL PROTECTED]...
  ""Richard"" [EMAIL PROTECTED] wrote in message
  98eo58$7fg$[EMAIL PROTECTED]">news:98eo58$7fg$[EMAIL PROTECTED]...
   Greetings.
  
   I was wondering if there is any function like the JavaScript
 function:
   location.href = "".or perhaps how I can execute a javascript
   function from PHP. All related help is appriciated.
  
 
  You cannot execute JavaScript function, but you can use Java. There are
  articles about it on phpbuilder.com or else.
 
  Server side and Client side scripts are nothing to do with each other. You
  can specify parameters for client side script in server side script,
 though.
 
  Regards,
  --
  Yasuo Ohgaki
  PHP and Related resources
  [PHP FAQ] http://www.php.net/FAQ.php
  [PHP Manual] http://www.php.net/manual/en/
  [PHP Links] http://www.php.net/links.php
  [RFCs] http://www.faqs.org/rfcs/
 
 
   - Richard
  
  
  
   --
   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 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] header

2001-03-12 Thread Christian Reiniger

On Monday 12 March 2001 08:33, you wrote:
 Hello!
 Why header under Windows do not work?

Because you have some problem.

That's all that can be said without telepathic skills.

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

Error 032: Recursion error - see error 032

--
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] Quotes in inputfields Reload

2001-03-12 Thread Jens Nedal

Hy everybody,

Well here is the deal (Probably an easy one 8))
I have several inputfields and check if the are valid or have content.
If an error occurs and the page reloads i simply echo the content of the
fields back into the input fields, viola, wonderful.

BUT if there are " eg. Quotes in those fields they suddenly read \" instead
of " as they should 8(

I guess that the parser is doing something to it there since " is a
sensitive char in php. BUT how can i get the content to be reloaded
correctly into the fields again.

Here an example of how those fields look like

input type=text name=v_email value="?php echo($v_email); ?" size=40

tried it like this too, no difference:
input type=text name=v_email value="?php echo("$v_email"); ?" size=40


thx in advance, Jens Nedal


-- 
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-CVS] cvs: php4 /ext/standard array.c

2001-03-12 Thread Stanislav Malyshev

stasMon Mar 12 02:14:00 2001 EDT

  Modified files:  
/php4/ext/standard  array.c 
  Log:
  Prevent memory leak
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.100 php4/ext/standard/array.c:1.101
--- php4/ext/standard/array.c:1.100 Mon Mar 12 00:07:00 2001
+++ php4/ext/standard/array.c   Mon Mar 12 02:14:00 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.100 2001/03/12 08:07:00 stas Exp $ */
+/* $Id: array.c,v 1.101 2001/03/12 10:14:00 stas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2209,7 +2209,7 @@
} else if (Z_TYPE_PP(entry) == IS_STRING) {

zend_hash_update(Z_ARRVAL_P(return_value),Z_STRVAL_PP(entry),Z_STRLEN_PP(entry) + 1, 
data, sizeof(data), NULL);
} else {
-   zval_dtor(data);
+   zval_ptr_dtor(data); /* will free also zval structure */
php_error(E_WARNING, "Can only flip STRING and INTEGER 
values!");
}




-- 
PHP CVS 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-CVS] cvs: php4 /ext/midgard article.c

2001-03-12 Thread David Guerizec

davidg  Mon Mar 12 02:19:37 2001 EDT

  Modified files:  
/php4/ext/midgard   article.c 
  Log:
  added NULL-check
  
  
Index: php4/ext/midgard/article.c
diff -u php4/ext/midgard/article.c:1.14 php4/ext/midgard/article.c:1.15
--- php4/ext/midgard/article.c:1.14 Fri Mar  9 04:16:57 2001
+++ php4/ext/midgard/article.c  Mon Mar 12 02:19:37 2001
@@ -1,4 +1,4 @@
-/* $Id: article.c,v 1.14 2001/03/09 12:16:57 davidg Exp $
+/* $Id: article.c,v 1.15 2001/03/12 10:19:37 davidg Exp $
 Copyright (C) 1999 Jukka Zitting [EMAIL PROTECTED]
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA [EMAIL PROTECTED]
@@ -645,7 +645,7 @@
convert_to_long_ex(id);
convert_to_long_ex(up);
 
-   if ((*up)-value.lval != 0) {
+   if (up  ((*up)-value.lval != 0)) {
 #if HAVE_MIDGARD_SITEGROUPS
if (!mgd_exists_bool(mgd_handle(), "article src, article tgt",

"src.id=$d AND tgt.id=$d"



-- 
PHP CVS 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] Close persistent db-Connection

2001-03-12 Thread Carola Meyberg

I cannot find out how I can manually close a persistent
Postgres Database Connection that has been established by
pg_pconnect.
I believe pg_close only closes non-persistent connections.

Does anyone know how to do this?


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

2001-03-12 Thread Yasuo Ohgaki

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

 if this is really a silly problem dont blame me, i'm a newbie in php (but i'm
experienced in c++ a bit :-)
 well, imagine i want to write a content of some text file word by word.
example will be more understandable
 than my english:
 let file.txt consists:
 lenin lives
 forever
 i want my php script to write to the screen:
 lenin
 lives
 forever
 I tried to manage this using fscanf function. i expected it works same as in
c, but it looks it doesnt. consider
 the code:
 while (fscanf($file,"%s",$buffer)==1)
 {
 echo $buffer,"br";
 }
 the result:
 lenin
 forever
 just like fscanf moved the file pointer to the next line after reading
"lenin". i dont know whats up... why "lives"
 disappeared??? i know i can try using fgets and then split the string, but i
want to know why fscanf doesnt
 work... :-)
 could anyone explain me this phenomena?

I think fscanf() is line oriented in C, isn't it? (I haven't used fscanf() for a
long time, I'm not 100% sure w/o reference.)
"%s" format in fscanf() and sscanf() will macthes sequecne of non-white-space
charactors in C and PHP.
Your $buffer should only have "lenin".

So if you write like

while (fscanf($file,"%s %s",$buf1,buf2))

You should get "lives" in $buf2.

Regards,
Yasuo Ohgaki


 best regards,
 jakub zytka




 --
 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] Using selected fields

2001-03-12 Thread Tristan . Pretty



Hi there,
Firstly a big thanks to those who pointed me in the direction of 'PHP-fast and
easy web development'. it was/is a great book, and I have learnt loads on the
past week.

Anyhoo...

I have a php page and included the line:

$sql = "SELECT * FROM $table_name
 WHERE member = \"$member\" AND pw = \"$pw\"
 ";

Now I have a third column called 'userlevel'.

I have a cookie that activates on successfully matching the member and pw fields
from a form on the previous page. make sense?

How can I tell the page to use the userlevel colunm too?

Here is the relevent section to my code... can anyone point me in teh rigth
direction please???



$sql = "SELECT * FROM $table_name
 WHERE member = \"$member\" AND pw = \"$pw\"
 ";

$result = mysql_query($sql)
or die ("Can't execute query.");

$num = mysql_numrows($result);

if (($num != 0)  ($userlevel == 1)) {

$cookie_name = "auth";
$cookie_value = "ok";
$cookie_expire = "";
$cookie_domain ="";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain, 0);

$display_block ="

pBSecret area:/B
UL
 LIa href=\"secreta.php\"secret page a/A
 LIa href=\"secretb.php\"secret page b/A
 LIa href=\"secretc.php\"secret page c/A
 LIa href=\"secretd.php\"secret page d/A
 LIa href=\"secreteb.php\"secret page e/A
/UL
";

} else {

 header("Location: http://www.mypage.com");
 exit;
}



=

Thanks guys...
Tris...





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


**

-- 
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] Grab and print user IP address

2001-03-12 Thread Dream

Thanks, michi

Just a question, what means the tag PRE?

thanks!
marc

[EMAIL PROTECTED] escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi!
 
  I need just a little script so I can get and print in browser the
  currently
  users IP address and if possible, browser type, etc.

 html
 body
 pre
 ?
   echo "Your IP-Address: $HTTP_SERVER_VARS[REMOTE_ADDR]\n";
   echo "Your Browser   : $HTTP_SERVER_VARS[HTTP_USER_AGENT]\n";
 ?
 /pre
 /body
 /html

 HTH
 michi

 --
 Sent through GMX FreeMail - http://www.gmx.net

 --
 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] Grab and print user IP address

2001-03-12 Thread mailing_list

 Thanks, michi
 
 Just a question, what means the tag PRE?
 
Commonly used for programing code!
All between the tags is written AS IS!!
try the below with and without pre:

htmlbody
pre
My program
  BEGIN
If event 
  do something
  else dont do something
fi
  END
;
/pre
/body/html

michi

-- 
Sent through GMX FreeMail - http://www.gmx.net

-- 
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] Good Free PHP Editor?

2001-03-12 Thread Aviv Revach

Hey!


PHPEd is free:

*  Runs under Windows.
*  Has syntax highlighting. Supports: Html, Perl, Php, SQL, and regular 
text files.
*  Can edit multiple files
*  I'm quite sure it reports line numbers.
*  It has a very good search  replace functionality.

This is obviously what you need!!

You can get it from: http://soysal.com/PHPEd/


Best Regards -

   Aviv Revach

 BRILLIANeT Website -
   http://www.brillianet.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] Good Free PHP Editor?

2001-03-12 Thread Nick Davies



How about linux ones?

I just tend to use vim or emacs but i'm sure there are some out there.

On Sun, 11 Mar 2001, Aviv Revach wrote:

 Hey!
 
 
 PHPEd is free:
 
 *  Runs under Windows.
 *  Has syntax highlighting. Supports: Html, Perl, Php, SQL, and regular 
 text files.
 *  Can edit multiple files
 *  I'm quite sure it reports line numbers.
 *  It has a very good search  replace functionality.
 
 This is obviously what you need!!
 
 You can get it from: http://soysal.com/PHPEd/
 
 
 Best Regards -
 
Aviv Revach
 
  BRILLIANeT Website -
http://www.brillianet.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] Good Free PHP Editor?

2001-03-12 Thread Lucas Persona

Andrew Halliday wrote:
 
 Does anyone know of a good PHP enabled editor that fits the following
 criteria:?
 
 (in order of importance)
 - Is free
 - Runs under Windows
 - Has colors (syntax highlighting)
 - Can edit multiple files (ie multi threaded)
 - Reports line numbers
 - Has good search  replace functionality

You could try ConTEXT ( http://www.fixedsys.com/context/ )
It has everything you've described above..and yes..its free!
-- 
Lucas Persona

-- 
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: printing data using javascript with php

2001-03-12 Thread Tim Ward


 -Original Message-
 From: Nicole Lallande [mailto:[EMAIL PROTECTED]]
 Sent: 10 March 2001 00:12
 To: [EMAIL PROTECTED]
 Subject: printing data using javascript with php
 
 
 Dear Gurus:
 
 I am trying to use javascript with my php code to output data 
 onChange.
 I have read the archives and know that because javascript is 
 client side
 and php is server side I cannot interact natively on the page 
 except to
 pass the variables through an http request.  Here is what I have done
 based on what I have read in the archives etc.:
 
 script language="javascript"
 !--
function setboo() {
 
var boo = ?php echo $boo ?;
var dsc = ?php echo $dsc ?;
var sz = ?php echo $sz ?;
var prc = ?php echo $prc ?;
document.forms[0].boo.value+=1;}
 --
 /script 
 
 $boo is set to 0 within the php code and I am setting it to 
 one with the
 javascript because I thought I could then use an if statement:
 
 //here is where boo gets set to one
 echo "td width=\"100\" align=\"left\"select name=\"catalog_id\"
 onChange=\"setboo()\""; 
 this is the html code for the document.forms input type="hidden"
 name="boo" value="1" 
 
 so what is supposed to happen here is the user selects a 
 product by its
 id number and presto - the rest of the information will be written to
 the fields along side (I wish):

if you want this to happen in the browser you have to have all the info sent
with the page. I would do this with invisible DIV's which you can make
visible or invisible in Javascript. I usually do something like
obj.style.display = "" to show and obj.style.display = "none" to hide.

if you want to get from the database every time you have to resubmit, which
is slower and looks crap.

 
 //here is the if statement
  if ($boo == '1') {
 echo "td width=\"350\" align=\"left\"input type=\"text\"
 name=\"description\" onChange=\"javascript:
 document.write(dsc)\"/td"; }

if you want $dsc to be available to the javascript you have to send it with
the html, either as a hidden field or in the query string. In this case what
you may be wanting to do is send the contects of $dsc in which case replace
document.write(dsc) with document.write('" . $dsc . "')") or however you
like to do this sort of concatenation.

 
 where $dsc is set equal to an array element read in from a database in
 the php code.  Now I KNOW I have got things MAJORLY confused 
 here - but
 the more I read the more wrapped up I seem to get so if there a way to
 pull this off and someone knows - I would appreciate your help
 
 Thanks,
 
 Nicole
 
 -- 
 
 Nicole Lallande
 [EMAIL PROTECTED]
 760.753.6766
 
 

it's hard to tell precisely what you want to do form your snippets, but I
hope I've been of some help.

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html

-- 
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] (doubt)MCAL installation

2001-03-12 Thread Celestino Roberto Alejandro

How i can get further information about the installation of MCAL extension
in a Solaris 2.7 environment?

  Roberto Celestino
Universidad Nacional de la Matanza



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

2001-03-12 Thread Harshdeep S Jawanda



 On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote:
  On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote:
   Ok, I've tried time and time again to unsubscribe from php.net's
   mailing list unisubscribe instructions but it doesn't work. So how do I
   get off the list?

I suppose you must already have tried sending mail to
[EMAIL PROTECTED] by now.

Just one small point: is the email address from which you send off your
unsubscription request the one at which you receive mail from this list?

Another point to consider: it may be that you are subscribed to the list using
a redirecting email address. If that is the case, you'll have to send your
unsubscription email from that address. Could you check that up?

--
Regards,
Harshdeep Singh Jawanda.



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

2001-03-12 Thread Harshdeep S Jawanda

Hi,

Harshdeep S Jawanda wrote:

 I suppose you must already have tried sending mail to
 [EMAIL PROTECTED] by now.

I tried this address and it worked for me.

--
Regards,
Harshdeep Singh Jawanda.



-- 
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-CVS] cvs: php4 /pear/DB oci8.php

2001-03-12 Thread Stig Bakken

ssb Mon Mar 12 04:50:44 2001 EDT

  Modified files:  
/php4/pear/DB   oci8.php 
  Log:
  * added "@" in front of all OCI* function calls
  
  
Index: php4/pear/DB/oci8.php
diff -u php4/pear/DB/oci8.php:1.19 php4/pear/DB/oci8.php:1.20
--- php4/pear/DB/oci8.php:1.19  Mon Feb 19 04:22:26 2001
+++ php4/pear/DB/oci8.php   Mon Mar 12 04:50:44 2001
@@ -87,9 +87,9 @@
 DB::assertExtension("oci8");
$connect_function = $persistent ? 'OCIPLogon' : 'OCILogon';
if ($hostspec) {
-   $conn = $connect_function($user,$pw,$hostspec);
+   $conn = @$connect_function($user,$pw,$hostspec);
} elseif ($user || $pw) {
-   $conn = $connect_function($user,$pw);
+   $conn = @$connect_function($user,$pw);
} else {
$conn = false;
}
@@ -110,7 +110,7 @@
 */
function disconnect()
 {
-   return OCILogOff($this-connection);
+   return @OCILogOff($this-connection);
}
 
 // }}}
@@ -130,15 +130,15 @@
 {
$this-last_query = $query;
 $query = $this-modifyQuery($query);
-   $result = OCIParse($this-connection, $query);
+   $result = @OCIParse($this-connection, $query);
if (!$result) {
return $this-raiseError();
}
if ($this-autoCommit) {
-   $success=OCIExecute($result,OCI_COMMIT_ON_SUCCESS);
+   $success = @OCIExecute($result,OCI_COMMIT_ON_SUCCESS);
}
else {
-   $success=OCIExecute($result,OCI_DEFAULT);
+   $success = @OCIExecute($result,OCI_DEFAULT);
}
if (!$success) {
return $this-raiseError();
@@ -167,9 +167,9 @@
$fetchmode = $this-fetchmode;
}
if ($fetchmode  DB_FETCHMODE_ASSOC) {
-   $moredata = OCIFetchInto($result, $row, OCI_ASSOC + OCI_RETURN_NULLS + 
OCI_RETURN_LOBS);
+   $moredata = @OCIFetchInto($result, $row, OCI_ASSOC + OCI_RETURN_NULLS + 
+OCI_RETURN_LOBS);
} else {
-   $moredata = OCIFetchInto($result, $row, OCI_RETURN_NULLS + 
OCI_RETURN_LOBS);
+   $moredata = @OCIFetchInto($result, $row, OCI_RETURN_NULLS + 
+OCI_RETURN_LOBS);
}
if (!$row) {
return $this-raiseError();
@@ -198,9 +198,9 @@
$fetchmode = $this-fetchmode;
}
if ($fetchmode  DB_FETCHMODE_ASSOC) {
-   
$moredata=OCIFetchInto($result,$arr,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS);
+   $moredata = 
+@OCIFetchInto($result,$arr,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS);
} else {
-   
$moredata=OCIFetchInto($result,$arr,OCI_RETURN_NULLS+OCI_RETURN_LOBS);
+   $moredata = 
+@OCIFetchInto($result,$arr,OCI_RETURN_NULLS+OCI_RETURN_LOBS);
}
if (!($arr  $moredata)) {
return $this-raiseError();
@@ -221,7 +221,7 @@
function freeResult($result)
 {
if (is_resource($result)) {
-   return OCIFreeStatement($result);
+   return @OCIFreeStatement($result);
}
if (!isset($this-prepare_tokens[$result])) {
return false;
@@ -243,7 +243,7 @@
 */
function numCols($result)
 {
-   $cols = OCINumCols($result);
+   $cols = @OCINumCols($result);
if (!$cols) {
return $this-raiseError();
}
@@ -263,7 +263,7 @@
 */
function errorNative()
 {
-   $error=OCIError($this-connection);
+   $error = @OCIError($this-connection);
if (is_array($error)) {
return $error['code'];
}
@@ -302,7 +302,7 @@
$newquery .= $tokens[$i];
$this-last_query = $query;
 $newquery = $this-modifyQuery($newquery);
-   $stmt=OCIParse($this-connection, $newquery);
+   $stmt = @OCIParse($this-connection, $newquery);
$this-prepare_types[$stmt] = $types;
$this-manip_query[$stmt] = DB::isManip($query);
return $stmt;
@@ -343,15 +343,15 @@
}
}
}
-   if (!OCIBindByName($stmt,":bind".$i,$pdata[$i],-1)) {
+   if (!@OCIBindByName($stmt,":bind".$i,$pdata[$i],-1)) {
return $this-raiseError();
}
}
if ($this-autoCommit) {
-

Re: [PHP] Mailing List

2001-03-12 Thread Nick Davies

On Mon, 12 Mar 2001, Harshdeep S Jawanda wrote:

 Hi,
 
 Harshdeep S Jawanda wrote:
 
  I suppose you must already have tried sending mail to
  [EMAIL PROTECTED] by now.
 
 I tried this address and it worked for me.
 

Obviously ;)

 --
 Regards,
 Harshdeep Singh Jawanda.
 
 
 
 


-- 
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 Digest 12 Mar 2001 13:32:45 -0000 Issue 562

2001-03-12 Thread php-general-digest-help


php-general Digest 12 Mar 2001 13:32:45 - Issue 562

Topics (messages 43423 through 43463):

ASP vs PHP
43423 by: Chris Anderson
43427 by: Michael Kimsal
43428 by: Rick St Jean
43434 by: Steve Edberg
43440 by: Simon Garner
43447 by: Carsten Gehling
43452 by: Carsten Gehling

RegExp help..
43424 by: John Vanderbeck
43425 by: David Robley
43435 by: Fredrik Wahlberg

Re: Resource for PHP and other technologies
43426 by: Valter Santos

Good Free PHP Editor?
43429 by: Andrew Halliday
43430 by: David Robley
43431 by: John LYC
43439 by: Simon Garner
43456 by: Aviv Revach
43457 by: Nick Davies
43458 by: Lucas Persona

Re: Best way to pass SQL TEXT field via a link
43432 by: Jens Nedal

header
43433 by: Nick Kostirya
43444 by: Christian Reiniger

form code for download - very powerful, object oriented
43436 by: Jeffrey Greer

Re: sharing variables
43437 by: Tiki

Re: Mailing List
43438 by: Peter Sabaini
43461 by: Harshdeep S Jawanda
43462 by: Harshdeep S Jawanda
43463 by: Nick Davies

Grab and print user IP address
43441 by: Dream
43451 by: mailing_list.gmx.at
43454 by: Dream
43455 by: mailing_list.gmx.at

Re: Problems with string replacement
43442 by: Christian Reiniger

Re: New to navigation functions...
43443 by: Yasuo Ohgaki

Re: File Upload Size Limit Problem
43445 by: Yasuo Ohgaki

Quotes in inputfields  Reload
43446 by: Jens Nedal

Re: newbie array question
43448 by: Robin Vickery

Close persistent db-Connection
43449 by: Carola Meyberg

Re: fscanf
43450 by: Yasuo Ohgaki

Using selected fields
43453 by: Tristan.Pretty.risk.sungard.com

Re: printing data using javascript with php
43459 by: Tim Ward

(doubt)MCAL installation
43460 by: Celestino Roberto Alejandro

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



This is going to sound like heresy, but is there any way to use ASP and PHP in the 
same fle/page? Seperated of course.




You're comparing a framework to a language.

ASP is a technology which allows code for different languages to be embedded in a file
parsed by a webserver (IIS).  To accomplish this, different languages need to be 
written
as modules for that webserver.  MS has VBScript (default language), JScript and 
PerlScript
(anyone know of any more?).  If someone was to write PHP to be an ASP/IIS module
that could be executed under the ASP framework, then yes.  Until then, no.  I also
don't think it's a likely scenario, but I've been wrong many times before in my life.  
:)



Chris Anderson wrote:

 This is going to sound like heresy, but is there any way to use ASP and PHP in the 
same fle/page? Seperated of course.





I was told by someone that it is possible with apache.  You can have 
something parse
the page once then be parsed by something else.  I don't know how and I 
have never seen
it but I have been told that it is possible.

Rick

At 11:28 PM 3/11/01 -0500, Michael Kimsal wrote:
You're comparing a framework to a language.

ASP is a technology which allows code for different languages to be 
embedded in a file
parsed by a webserver (IIS).  To accomplish this, different languages need 
to be written
as modules for that webserver.  MS has VBScript (default language), 
JScript and PerlScript
(anyone know of any more?).  If someone was to write PHP to be an ASP/IIS 
module
that could be executed under the ASP framework, then yes.  Until then, 
no.  I also
don't think it's a likely scenario, but I've been wrong many times before 
in my life.  :)



Chris Anderson wrote:

  This is going to sound like heresy, but is there any way to use ASP and 
 PHP in the same fle/page? Seperated of course.


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

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##





At 11:48 PM -0500 3/11/01, Rick St Jean wrote:
I was told by someone that it is possible with apache.  You can have 
something parse
the page once then be parsed by something else.  I don't know how 
and I have never seen
it but I have been told that it is possible.

Rick


That would be 'stacked request handlers'...not possible, AFAIK, with 

Re: [PHP] Mailing List

2001-03-12 Thread Jens Nedal

Seems that such "blasphemy" as unsubscribing is not allowed ;)
Dear heathen, once you sold your soul to PHP you have to payback lifelong,
dont forget that! No escape ;)

Contacting the Admin should do the thing i guess.

regards, Jens Nedal

on 12.03.2001 13:49 Uhr, Harshdeep S Jawanda at [EMAIL PROTECTED] wrote:

 
 
 On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote:
 On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote:
 Ok, I've tried time and time again to unsubscribe from php.net's
 mailing list unisubscribe instructions but it doesn't work. So how do I
 get off the list?
 
 I suppose you must already have tried sending mail to
 [EMAIL PROTECTED] by now.
 
 Just one small point: is the email address from which you send off your
 unsubscription request the one at which you receive mail from this list?
 
 Another point to consider: it may be that you are subscribed to the list using
 a redirecting email address. If that is the case, you'll have to send your
 unsubscription email from that address. Could you check that up?
 
 --
 Regards,
 Harshdeep Singh Jawanda.
 
 


-- 
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] (doubt)PHP console run

2001-03-12 Thread Celestino Roberto Alejandro

Hello..friend...
..i have a doubt? how i can do for run php in console mode, or better say,
that run script in my shell not in a browser...
..and, you give me a hand an i get the arm, how i can get the argument of
the line of command?exist ARGV or ARGC?

Roberto Celestino
El sitio, "Tu portal en Internet"

- Original Message -
From: "Nick Davies" [EMAIL PROTECTED]
To: "Harshdeep S Jawanda" [EMAIL PROTECTED]
Cc: "Peter Sabaini" [EMAIL PROTECTED]; "PHP General"
[EMAIL PROTECTED]
Sent: Monday, March 12, 2001 10:35 AM
Subject: Re: [PHP] Mailing List


 On Mon, 12 Mar 2001, Harshdeep S Jawanda wrote:

  Hi,
 
  Harshdeep S Jawanda wrote:
 
   I suppose you must already have tried sending mail to
   [EMAIL PROTECTED] by now.
 
  I tried this address and it worked for me.
 

 Obviously ;)

  --
  Regards,
  Harshdeep Singh Jawanda.
 
 
 
 


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

2001-03-12 Thread Peter Sabaini

On Mon, Mar 12, 2001 at 06:19:04PM +0530, Harshdeep S Jawanda wrote:
 
 
  On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote:
   On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote:
Ok, I've tried time and time again to unsubscribe from php.net's
mailing list unisubscribe instructions but it doesn't work. So how do I
get off the list?
 
 I suppose you must already have tried sending mail to
 [EMAIL PROTECTED] by now.

yes, and i didn't get an error message or bounce.

 Just one small point: is the email address from which you send off your
 unsubscription request the one at which you receive mail from this list?

from the mail header:

Received: from toye.php.net (va.php.net [198.186.203.51]) by
mailhub.open-it.at (Switch-2.1.0.Beta2/Switch-2.1.0.Beta2) with SMTP
id f2CCjYY26922 for [EMAIL PROTECTED]; Mon, 12 Mar 2001
13:45:34 +0100

 -- at least the host toye.php.net thinks mail to peter sabaini should
go to [EMAIL PROTECTED], which is the address i tried to
unsubscribe.
 
 Another point to consider: it may be that you are subscribed to the list using
 a redirecting email address. If that is the case, you'll have to send your
 unsubscription email from that address. Could you check that up?

according to the ezlm welcome messg. to ezlm i am known as
[EMAIL PROTECTED] 

regards, 
peter.

-- 
Peter Sabaini [EMAIL PROTECTED]
NETCONOMY Onlineberatungs- und -management Gmbh  Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081 



-- 
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-CVS] cvs: php4 /ext/gd gd.c

2001-03-12 Thread Alexander Feldman

sasha   Mon Mar 12 05:57:53 2001 EDT

  Modified files:  
/php4/ext/gdgd.c 
  Log:
  A small fix to make the function imageloadfont portable.
  
  
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.117 php4/ext/gd/gd.c:1.118
--- php4/ext/gd/gd.c:1.117  Sun Feb 25 22:06:56 2001
+++ php4/ext/gd/gd.cMon Mar 12 05:57:53 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: gd.c,v 1.117 2001/02/26 06:06:56 andi Exp $ */
+/* $Id: gd.c,v 1.118 2001/03/12 13:57:53 sasha Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
Cold Spring Harbor Labs. */
@@ -371,13 +371,15 @@
 
 #endif
 
+#define FLIPWORD(a) (((a  0xff00)  24) | ((a  0x00ff)  8) | ((a  
+0xff00)  8) | ((a  0x00ff)  24))
+
 /* {{{ proto int imageloadfont(string filename)
Load a new font */
 PHP_FUNCTION(imageloadfont) 
 {
zval **file;
int hdr_size = sizeof(gdFont) - sizeof(char *);
-   int ind, body_size, n=0, b;
+   int ind, body_size, n=0, b, i, body_size_check;
gdFontPtr font;
FILE *fp;
int issock=0, socketd=0;
@@ -425,7 +427,23 @@
}
RETURN_FALSE;
}
+   i = ftell(fp);
+   fseek(fp, 0, SEEK_END);
+   body_size_check = ftell(fp) - hdr_size;
+   fseek(fp, i, SEEK_SET);
body_size = font-w * font-h * font-nchars;
+   if (body_size != body_size_check) {
+   font-w = FLIPWORD(font-w);
+   font-h = FLIPWORD(font-h);
+   font-nchars = FLIPWORD(font-nchars);
+   body_size = font-w * font-h * font-nchars;
+   }
+   if (body_size != body_size_check) {
+   php_error(E_WARNING, "ImageFontLoad: error reading font");
+   efree(font);
+   RETURN_FALSE;
+   }
+
font-data = emalloc(body_size);
b = 0;
while (b  body_size  (n = fread(font-data[b], 1, body_size - b, fp)))



-- 
PHP CVS 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] Advanced PHP

2001-03-12 Thread Brinkman, Theodore

Actually, the egg did.  Eggs existed LONG before land animals, much less
chickens.  Besides, the first chicken hatched from an egg laid by an
almost-chicken.

- Theo

-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 6:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Advanced PHP


The chicken did.

as the Chicken is an actual chicken
and the egg is a potential chicken.
Actuality precedes potentiality

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Keith Vance [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 3:14 PM
To: Kath
Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
Subject: Re: [PHP] Advanced PHP


What came first the chicken or the egg?

Keith

On Fri, 9 Mar 2001, Kath wrote:

 Yeah.  I even see some PHP book authors, like Julie Meloni here on this
 list.

 There is never a question, no matter how retarded, that this list or #php
on
 irc.openprojects.net has never been able to answer.

 - Kath


 - Original Message -
 From: "Krznaric Michael" [EMAIL PROTECTED]
 To: "'Rick St Jean'" [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Friday, March 09, 2001 5:11 PM
 Subject: RE: [PHP] Advanced PHP


  If I'm not mistaken, the big boys keep an eye out over here.
 
  Mike
 
 
  -Original Message-
  From: Rick St Jean [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 09, 2001 4:54 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Advanced PHP
 
 
  Does anyone know of any other lists that are a little more advanced,
  And has a little less traffic?  I am not the end all be all by any means
 of
  programming or PHP.  I just want to know where the big boys hang out
  and learn some secrets that require some understanding.
 
  Rick
  ##
  #  Rick St Jean,
  #  [EMAIL PROTECTED]
  #  President of Design Shark,
  #  http://www.designshark.com/
  #  Quick Contact:  http://www.designshark.com/messaging.ihtml
  #  Tel: 905-684-2952
  ##
 
 
  --
  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 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 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] Good Free PHP Editor?

2001-03-12 Thread Boget, Chris

  Ive been using editpad up till now but my code is starting 
  to get so large that ill need syntax highlighting soon...
 HomeSite is great. www.allaire.com
 - not totally free I'm afraid, but there is an eval version.
 - runs under Windows yes
 - supports syntax highlighting for lots of languages 
 including HTML, PHP,
 Perl, SQL, ASP (VB/JS).
 - can edit multiple files yes
 - shows line numbers in gutter on left hand side
 - supports regular-expression based search  replace across multiple
 files/directories
 - nice interface.

Has the worst memory management of any software I've ever used.
I have to reboot at lest 10 times a day when I use it.  The support
forum on their site is filled with complaints on this issue.  Their response
to this issue was not to fix the memory leak (or whatever it is) but to
issue a warning when resources are getting dangerously low to give
you the opportunity to save all your work before you reboot.  Beyond
that, their stance is "Well, if you don't like it, return it and we'll give
you a refund".
If this wasn't the only piece of software that handled projects the way
we needed, we'd have thrown out this piece of garbage software a *long*
time ago.

Chris



[PHP] Re: [PHP-DB] newbie: MySQL importing data from a variable

2001-03-12 Thread Miles Thompson

No problem.

Initialize the counter before your loop, like so:  $counter = 1;
In the loop, print out the value of the counter and increment it by 1: echo 
$counter++;

The "++" added to counter instructs PHP to increase the value by 1 AFTER 
the operation and is a shorthand way of saying
 echo $counter;
 $counter = $counter + 1;

If the second way is clearer to you, and you feel more comfortable with it, 
do it that way.

It will be well worth your time visiting www.thickbook.com and doing Julie 
Meloni's tutorials. She covers a lot of basic principles very clearly. You 
can also pick up a LOT of useful information on PHP at phpessentials, 
devshed, zend.com and so forth.

Have fun - Miles

At 11:00 AM 3/12/01 -0800, Gavin Tong wrote:
Miles, thank you for your prompt reply and suggestion.  My problem is that I
am an absolute beginer, not only to php, but to programing in general.  I
understand the logic of the counter but my attempts to add it into the
script have failed.  Any direction you could give me would be greatly
appreciated.
Thanks again,
Gavin Tong


-- 
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] Good Free PHP Editor?

2001-03-12 Thread Kevin Cawthorne

Edit Plus - every time !!!

www.editplus.com

I love it - syntax highlighting and great auto-indent features!

Kevin


-- 
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-CVS] cvs: php4 / NEWS

2001-03-12 Thread Alexander Feldman

sasha   Mon Mar 12 06:07:36 2001 EDT

  Modified files:  
/php4   NEWS 
  Log:
  Added NEWS.
  
  
Index: php4/NEWS
diff -u php4/NEWS:1.609 php4/NEWS:1.610
--- php4/NEWS:1.609 Sun Mar 11 02:08:27 2001
+++ php4/NEWS   Mon Mar 12 06:07:36 2001
@@ -2,6 +2,8 @@
 |||
 
 ?? ??? 200?, Version 4.0.5
+- The imageloadfont function of the gd extension should be not platform
+  dependent after this fix. ([EMAIL PROTECTED])
 - Fixed a compatibility problem in some file functions (fgets, fputs, fread,
   fwrite). The ANSI standard says that if a file is opened in read/write
   mode, fseek() should be called before switching from reading to writing



-- 
PHP CVS 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] Good Free PHP Editor?

2001-03-12 Thread Doug Brewer

As long as you are stretching the discussion to shareware, I highly
recommend UltraEdit. This is the most feature-loaded extensible text
editor I've ever seen. The $30 registration was more than worth it. It
has add-on support for syntax highlighting for 100+ languages
including PHP.

http://www.ultraedit.com

Doug

| -Original Message-
| From: Kevin Cawthorne [mailto:[EMAIL PROTECTED]]
| Sent: Monday, March 12, 2001 8:35 AM
| To: [EMAIL PROTECTED]
| Subject: Re: [PHP] Good Free PHP Editor?
|
|
| Edit Plus - every time !!!
|
| www.editplus.com
|
| I love it - syntax highlighting and great auto-indent features!
|
| Kevin
|
|
| --
| 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] javascript question

2001-03-12 Thread Miguel Loureiro

Hello all,
I have a small problem, when using IE4.0 the property, in javascript, 
document.name_form_nameRadio[n].DISABLED it woks fine, but in Netscape 4.6 it dont.
Anyone can give an ideia or an url for more information.
I know that this isn't a php question, sorry.
T.Y. all
Miguel Loureiro[EMAIL PROTECTED] 




Re: [PHP] Best way to pass SQL TEXT field via a link

2001-03-12 Thread The Arting Starvist

I'm passing the ID in the url, as recommended, and then having other
problems that may or may not really be pertinent to this list:

1) The mySQL text data ($description) won't populate my form.  I'm using
textarea input, and it just won't accept and display the value of
$description.  It's empty, and when the form is re-submitted after editing,
it empties the $description variable.

2) I also have image uploads in my form, and the type=file inputs will not
accept values, either.  Same problem as above .. the empty input areas cause
the image names to be deleted from my database when the form is edited and
re-submitted.

I can think of a few kludgy workarounds, but I'd rather have a way to get
these textarea and file inputs to accept values.  Any help would be
wonderful!

ms

-Original Message-
From: Pierre-Yves Lemaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, March 11, 2001 6:52 AM
Subject: Re: [PHP] Best way to pass SQL TEXT field via a link


Yes it would be a lot better to just passed the id in the url.

py

- Original Message -
From: Fates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 11, 2001 5:12 PM
Subject: [PHP] Best way to pass SQL TEXT field via a link


 I'm trying to update an existing record based on a link that represents
 the record to update.

 I have a link and I am passing variables that were assigned from a SQL
 database to another php form page which will be used to update the
 record. I'm passing variable like so:a
 href='addupdate.php?name=$namecategory=$categorydescription=$etc.

 This works fine for variables that contain values of only a few lines
 but what about passing a couple paragraphs stored in variable
 $description assigned via database value as TEXT.

 Would it be better just to pass the database record ID to the
 destination page and then query the record in the destination form page
 and populate the form with the current values and update the record or
 is there another way I don't know about?


 --
 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] content-type problem with file uploads

2001-03-12 Thread James Tremain

I've been successfully uploading graphic files to a directory on my php
server for more than a year. Suddenly, it no longer works, and after a lot
of probing, I'm at a loss to determine why.

I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as
expected, but PHP no longer provides the content-type as it should following
the upload, in the variable: $HTTP_POST_FILES['file']['type']. Furthermore,
the uploaded file no longer matches the original file: it has the content
type prepended at the start of the uploaded file.

For example, a file that starts out like this before the upload:


GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨
Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip
---

looks like this after being uploaded:


Content-Type: image/gif

GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨
Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip
---

Clearly, these problems are related -- it seems the content-type header is
being sent, but gets interpreted as part of the file instead of a header
about the file. I just can't figure out why, especially since this worked as
expected on the same hardware/software setup only days ago.

Thank you in advance for any thoughts or recommendations!



-- 
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] Print form variables in PHP

2001-03-12 Thread Jon Haworth

If the ACTION attribute of the form points to your PHP script, the variables
should automagically appear, i.e. $result would be "1", $age would be "23",
and $name would be "john". Failing that you could investigate the explode()
function.

However, if the form isn't controlled by you, how come is it sending results
to your script?

Like the e-mail BTW :-)

Cheers
Jon


-Original Message-
From: Dream [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 15:27
To: [EMAIL PROTECTED]
Subject: [PHP] Print form variables in PHP


Any idea of how to get information from a form (not a form controlled by me,
through GET method, i.e. info coming with the URL, like this
http://www.xxx.com/xxx.cgi?result=1age=23name=john)  and print it through
php v.3?

I don't know how to get the info (coming from an outside form) and pass it
throught the php3 variables..

Thanks,

marc






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



**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

-- 
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] content-type problem with file uploads

2001-03-12 Thread Nick Davies


Content-type = 
not
Content-Type = ...

On Mon, 12 Mar 2001, James Tremain wrote:

 I've been successfully uploading graphic files to a directory on my php
 server for more than a year. Suddenly, it no longer works, and after a lot
 of probing, I'm at a loss to determine why.
 
 I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as
 expected, but PHP no longer provides the content-type as it should following
 the upload, in the variable: $HTTP_POST_FILES['file']['type']. Furthermore,
 the uploaded file no longer matches the original file: it has the content
 type prepended at the start of the uploaded file.
 
 For example, a file that starts out like this before the upload:
 
 
 GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨
 Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip
 ---
 
 looks like this after being uploaded:
 
 
 Content-Type: image/gif
 
 GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨
 Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip
 ---
 
 Clearly, these problems are related -- it seems the content-type header is
 being sent, but gets interpreted as part of the file instead of a header
 about the file. I just can't figure out why, especially since this worked as
 expected on the same hardware/software setup only days ago.
 
 Thank you in advance for any thoughts or recommendations!
 
 
 
 


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

2001-03-12 Thread Kubol

01-03-13 05:00:01, "Yasuo Ohgaki" [EMAIL PROTECTED] wrote:

I think fscanf() is line oriented in C, isn't it? (I haven't used fscanf() for a
long time, I'm not 100% sure w/o reference.)
no, i'm sure in c fscanf reads the next string available, not first string in next line
Your $buffer should only have "lenin".
i agree. in first iteration buffer should contain "lenin", but in second the content 
should be "lives", not "forever",  
but is "forever" and i dont 
know why and i'm angry about it :-)
while (fscanf($file,"%s %s",$buf1,buf2))
You should get "lives" in $buf2.
i agree again, but i dont know how many stings do i have in one line. therefore i cant 
use 
fscanf($file,"n*%s",n*some_variables);
besides it looks terrible... :-)

regards,
jakub zytka



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

2001-03-12 Thread Tristan . Pretty



Hi there,
I got this book from php.net is it the one you're after? who knows.
I just tried mailing it to you, but it was a huge 9Mb and my Firewall stops
mails after 5Mb
What I have done for you is put it up on line at my site.
Click here to get it, but remember it is 9Mb in size, have you got a fast
connection.
I'll take it down in a few days, if you still need it, let me know
http://www.beetastic.co.uk/phpman.pdf

good luck
Tris...






**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


**

-- 
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-CVS] cvs: php4 /ext/mysql php_mysql.c

2001-03-12 Thread Sean Bright

elixer  Mon Mar 12 07:14:38 2001 EDT

  Modified files:  
/php4/ext/mysql php_mysql.c 
  Log:
  Fixed prototype.
  
  
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.72 php4/ext/mysql/php_mysql.c:1.73
--- php4/ext/mysql/php_mysql.c:1.72 Sun Feb 25 22:07:04 2001
+++ php4/ext/mysql/php_mysql.c  Mon Mar 12 07:14:38 2001
@@ -16,7 +16,7 @@
+--+
 */
  
-/* $Id: php_mysql.c,v 1.72 2001/02/26 06:07:04 andi Exp $ */
+/* $Id: php_mysql.c,v 1.73 2001/03/12 15:14:38 elixer Exp $ */
 
 
 /* TODO:
@@ -705,7 +705,7 @@
 
 #ifdef HAVE_GETINFO_FUNCS
 
-/* {{{ proto string mysql_get_client_info([int link_identifier])
+/* {{{ proto string mysql_get_client_info(void)
Returns a string that represents the client library version */
 PHP_FUNCTION(mysql_get_client_info)
 {



-- 
PHP CVS 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] PHP Book

2001-03-12 Thread Tristan . Pretty



My god, you ever have one of those days???
I missed out an R...
the correct address is...
http://www.beertastic.co.uk/phpman.pdf

I am sorry, lets try again eh?

Tris...







Could not resolve nameserver.

 Original Message 

On 3/12/01, 8:44:32 AM, [EMAIL PROTECTED] wrote regarding
[PHP] PHP Book:


 Hi there,
 I got this book from php.net is it the one you're after? who knows.
 I just tried mailing it to you, but it was a huge 9Mb and my Firewall
stops
 mails after 5Mb
 What I have done for you is put it up on line at my site.
 Click here to get it, but remember it is 9Mb in size, have you got a fast
 connection.
 I'll take it down in a few days, if you still need it, let me know
 http://www.beetastic.co.uk/phpman.pdf

 good luck
 Tris...






 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.


 **

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









**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


**

-- 
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] Good Free PHP Editor?

2001-03-12 Thread Data Driven Design

It sounds like you just described Homesite.

- Original Message -
From: Harshdeep S Jawanda [EMAIL PROTECTED]
To: Andrew Halliday [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 12, 2001 7:54 AM
Subject: Re: [PHP] Good Free PHP Editor?


 Hi,

 Andrew Halliday wrote:

  Does anyone know of a good PHP enabled editor that fits the following
  criteria:?
 
  (in order of importance)
  - Is free
  - Runs under Windows
  - Has colors (syntax highlighting)
  - Can edit multiple files (ie multi threaded)
  - Reports line numbers
  - Has good search  replace functionality

 Have you tried GNU emacs yet? It has all of the above and much more. You
may
 need to separately download and install a package for PHP, though.

 --
 Regards,
 Harshdeep Singh Jawanda.



 --
 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: Good Free PHP Editor?

2001-03-12 Thread The Arting Starvist

I recently downloaded a newer EditPad Lite version that offers highlighting
and other nice improvements over the "classic" EditPad.

m

-Original Message-
From: Andrew Halliday [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, March 12, 2001 12:04 AM
Subject: Good Free PHP Editor?


Does anyone know of a good PHP enabled editor that fits the following
criteria:?

(in order of importance)
- Is free
- Runs under Windows
- Has colors (syntax highlighting)
- Can edit multiple files (ie multi threaded)
- Reports line numbers
- Has good search  replace functionality

???

Ive been using editpad up till now but my code is starting to get so large
that ill need syntax highlighting soon...

AndrewH




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

2001-03-12 Thread Marcelo Pereira

Hi all,

I am new at PHP and I realize that the pdf format of the PHP Book by Bruce Momjian at 
http://www.php.net has been removed from there and now there is only the html format 
(I guess I arrived very late to get the pdf format).

Has anybody downloaded the pdf file of this book when the link was active ??? 
I really would like to get it.

Thanks in advance,

Marcelo Pereira
Unicamp - Brasil



Re: [PHP] Functional Programming Style?

2001-03-12 Thread Ted Goranson

Beyond that. Anything to suggest?

The requirement is for a peer-peer agent-based situation-theoretic 
backward-chainer with quasirealtime browser feedback. A functional 
paradigm is indicated, with monads and all that. All the rest of the 
site is PHP-driven, so it could make sense to do as much as possible 
(on the server side) in php.

It looks on the surface that if we stay away from arrays. and we make 
all functions side-effect free (essentially no overlapping internal 
variables) and we center the state of results on the browser (a 
natural for php), then we will be much of the way there, especially 
if we carefully limit scope as much as possible.

Since we have language heaviweights on the list, thought perhaps 
there would be some insights into this. Thought also, that the list 
would appreciate a different question than the same old, same old, 
same old...

Best, Ted

Argh Haskell - All the bad memories come flooding back.

On Fri, 9 Mar 2001, Ted Goranson wrote:

   Hello--
  
   Is PHP suitable for programming in a Haskell-like fashion? Is there
   existing information on how to do this?

_
Ted Goranson
Fusecap and Sirius-Beta, Virginia Beach USA
757/426-6704
[EMAIL PROTECTED]
Symmetry Conference: http://www.isis-s.unsw.edu.au

-- 
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] syntax for session_register();

2001-03-12 Thread stas

Hello,

What is the correct syntax for registering a variable that's a part of an array. I 
tried these variations (i'm doing this in a loop):

session_register('$form_val[$val]');

session_register($form_val[$val]);

This registers _something_, but not what I need. Thanks for any help!

stas






RE: [PHP] Advanced PHP

2001-03-12 Thread PHPBeginner.com

If I am not wrong, there are over 5.000 subscribers to this list, while it
only sends 200-300 emails a day. (I took this data from my own 80.000-emails
mailbox, so don't judge my previsions)

The "big boys", or better say these who do not write because of being busy
but always read because there's always something to learn, ARE HERE.

If you look at archives you'll find a lot of advanced help messages, as well
as generic ones.

I think - there's nothing bigger then [EMAIL PROTECTED],
that's where I, and most of my team learn and update ourselves.

we're always following this community from above.


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Brinkman, Theodore [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Advanced PHP


Actually, the egg did.  Eggs existed LONG before land animals, much less
chickens.  Besides, the first chicken hatched from an egg laid by an
almost-chicken.

- Theo

-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 6:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Advanced PHP


The chicken did.

as the Chicken is an actual chicken
and the egg is a potential chicken.
Actuality precedes potentiality

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Keith Vance [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 3:14 PM
To: Kath
Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
Subject: Re: [PHP] Advanced PHP


What came first the chicken or the egg?

Keith

On Fri, 9 Mar 2001, Kath wrote:

 Yeah.  I even see some PHP book authors, like Julie Meloni here on this
 list.

 There is never a question, no matter how retarded, that this list or #php
on
 irc.openprojects.net has never been able to answer.

 - Kath


 - Original Message -
 From: "Krznaric Michael" [EMAIL PROTECTED]
 To: "'Rick St Jean'" [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Friday, March 09, 2001 5:11 PM
 Subject: RE: [PHP] Advanced PHP


  If I'm not mistaken, the big boys keep an eye out over here.
 
  Mike
 
 
  -Original Message-
  From: Rick St Jean [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 09, 2001 4:54 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Advanced PHP
 
 
  Does anyone know of any other lists that are a little more advanced,
  And has a little less traffic?  I am not the end all be all by any means
 of
  programming or PHP.  I just want to know where the big boys hang out
  and learn some secrets that require some understanding.
 
  Rick
  ##
  #  Rick St Jean,
  #  [EMAIL PROTECTED]
  #  President of Design Shark,
  #  http://www.designshark.com/
  #  Quick Contact:  http://www.designshark.com/messaging.ihtml
  #  Tel: 905-684-2952
  ##
 
 
  --
  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 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 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] Re: Good Free PHP Editor?

2001-03-12 Thread PHPBeginner.com

Have you tried EditPlus? www.editplus.com

they are especially good for search, replace function and highlighting is
also very easy to use, you can even define your own functions to highlight.



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: The Arting Starvist [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 1:04 AM
To: Andrew Halliday; [EMAIL PROTECTED]
Subject: [PHP] Re: Good Free PHP Editor?


I recently downloaded a newer EditPad Lite version that offers highlighting
and other nice improvements over the "classic" EditPad.

m

-Original Message-
From: Andrew Halliday [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, March 12, 2001 12:04 AM
Subject: Good Free PHP Editor?


Does anyone know of a good PHP enabled editor that fits the following
criteria:?

(in order of importance)
- Is free
- Runs under Windows
- Has colors (syntax highlighting)
- Can edit multiple files (ie multi threaded)
- Reports line numbers
- Has good search  replace functionality

???

Ive been using editpad up till now but my code is starting to get so large
that ill need syntax highlighting soon...

AndrewH




--
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] Quotes in inputfields Reload

2001-03-12 Thread PHPBeginner.com

hi Jens,

PHP automatically escape the dangerous characters from the user input on
form submissions.

there are several ways to escape that back :

stripslashes()
urlencode()
htmlentities()

read about these, they will soon become your solutions.



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Jens Nedal [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 7:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Quotes in inputfields  Reload


Hy everybody,

Well here is the deal (Probably an easy one 8))
I have several inputfields and check if the are valid or have content.
If an error occurs and the page reloads i simply echo the content of the
fields back into the input fields, viola, wonderful.

BUT if there are " eg. Quotes in those fields they suddenly read \" instead
of " as they should 8(

I guess that the parser is doing something to it there since " is a
sensitive char in php. BUT how can i get the content to be reloaded
correctly into the fields again.

Here an example of how those fields look like

input type=text name=v_email value="?php echo($v_email); ?" size=40

tried it like this too, no difference:
input type=text name=v_email value="?php echo("$v_email"); ?" size=40


thx in advance, Jens Nedal


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

2001-03-12 Thread PHPBeginner.com

Nick,
headers work on Windows just as they do on Linux.

Can you give us a piece of code so we can give you a hand with your problem?


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Nick Kostirya [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] header


Hello!
Why header under Windows do not work?
Nick


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

2001-03-12 Thread PHPBeginner.com

do this:

${$var.$num}


But, as I can only guess you are not very familiar with arrays, they usually
better for most of your needs.

I think this is what you have to learn instead.
www.php.net/arrays


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Pierre-Yves Lemaire [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 12:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable dynamique


I receive 2 variables, $var and $num
I need to make a variable out of these two like this

$var2 where $num = 2 or
$var3 where $num = 3

How can I do that ?

__
Pierre-Yves Lemaire
514.729.8100


-- 
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] ASP vs PHP

2001-03-12 Thread Michael Kimsal



Carsten Gehling wrote:


  Are you sure? The #include is an SSI directive, not ASP. It should create
 a
  separate internal HTTP request for the included file. I know for sure that
  for example you can include a JScript ASP page inside a VBScript ASP page
  like this - although I realise that's not the same difference as ASP/PHP.

 You're right about that, but AFAIK ASP will simply not allow two different
 serverside script languages on the same page (which it becomes once the
 inclusion is complete). You must state your @language=... directive as the
 first ASP statement after which it cannot be changed.

 Unless of course you use:

 script runat=server language=vbscript
 ... your code here
 /script

 script runat=server language=jscript
 ... your code here
 /script

 Don't know if that will work though.

 - Carsten

Yes it will work.  we've used it in the past to do millisecond timing - had to
use jscript for that because vbscript internals don't have any timer mechanism
that accurate, but jscript did.  it's the same computer, same OS, but each
language
had different capabilities.


-- 
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] syntax for session_register();

2001-03-12 Thread stas

Sean, as I said, I'm trying to accomplish this in a loop, and the variable
is in array. To use your approach I would have to get rid of the loop and
type out the code manually. This purpose of this is to create persistant
form values in case form validation fails. Here's my code:

?php session_start();

 while (list ($key, $val) = each ($form))
 {
  if ($val)
  {
   session_register('$form_val[$val]');
   $form_val[$val] = $val;
   echo "$form_val[$val]br";
   echo "a href=\"form.php\"test/a";
  }
 }
?



- Original Message -
From: "Sean B." [EMAIL PROTECTED]



 You were close:
 session_register("varname");
 The key thing to remember is that it's the variable name WITHOUT the $.
so...
 $variable = "Hello";
 session_register("variable");


   Hello,
 
  What is the correct syntax for registering a variable that's a part of
an
  array. I tried these variations (i'm doing this in a loop):
 
  session_register('$form_val[$val]');
 
  session_register($form_val[$val]);
 
  This registers _something_, but not what I need. Thanks for any help!



-- 
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] Graphic plugins?

2001-03-12 Thread Todd Cary

Is there a plugin for browsers that will give the user the ability to
Zoom, rotate, and do other graphic functions with images?

Todd

--
Todd Cary
Ariste Software
[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] Testing for session without setting cookies

2001-03-12 Thread Simon Woods

Hi all,

Comments in the message below ...

Yasuo Ohgaki wrote:

 "Simon Woods" [EMAIL PROTECTED] wrote in message
  Hi All,
 
  Sorry if I am asking a vfaq but I was unable to find anything in the
  archives.
 
  I am using PHP4 with session handling to track users which have logged
  in to my server.
 
  I would like to (non intrusively) check to see if a user is logged in
  without having to start a new session. 95% of my users do not log in at
  all and do not want to be fed with cookies for no apparent reason. I
  wanted to avoid giving my visitors the impression that I am tracking
  them as well.

 I posted session helper html sample at zend code exchange. I might want to
 use to detect cookie and javascript are enabled. You might want to use and
 modify code to show reason why you are using cookie. Search keyword with
 'session' and look for session helper HTML.

I am able to assume that all of my logged in users have cookies and what ever else
I need turned on.




 Or if you need session only for users logged in, you could write  following code
 and put each pages you might want to use session for logged in users.

 // If you are only using session cookie
 // No auto start in php.ini. Check session value/format/referer also, if you
 need.
 if (!empty($HTTP_COOKIE_VARS['PHPSESSION'])) {
   session_start();
 }

 to avoid sending cookie to users who are not logged in. (You must set session id
 when users are logged in)

I have added my own function session_isvalid() which checks for the existance of
the cookie based on the above code which will be sufficient as a work around for my
small application.

This defeats the purpose somewhat of the session module however. I thought that the
objective was to some extent hide the underlying implementation from the
programmer.  A non invasive check requires that I know which cookie is being
used(assuming the use of cookies at all). The assumption is not very difficult to
make, but the session handling would appear to be more complete with something like
"session_isValid()"





  I could check to see if the cookie PHPSESSION or what ever I called my
  cookie has been returned by the browser, but I have no guarantee that
  the session is still or at all valid. Checking to see if there are
  corresponding session files or writing my own handler start to get over
  complicated.

 I think all you need to do is checking session value format. HTML session
 is easily hijacked if session key is known to users anyway.
 Also, writing your own session handlers are not difficult. There are many
 session
 handlers for verious databases. How about look for one and modify?

This would not help really anyway as the handler only replaces the storage
mechanism (I hope I have understood this correctly!). We could however check the
session id in our DB without having to call session_start(). If I have gone to such
bother though (reading cookies directly and looking up in DB), I would be better
off starting from scratch and ignoring the session module all together!!

Stuff removed..

Thanks again for the help,

Simon Woods

--
Siemens Business Services D BIM CVS
Mch P/Ca, Carl-Weri-Strasse 22, 81739 Muenchen, Germany

Tel: +49-89-636-54347   (Fax: -54303)

Internet-Mail: 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]




Re: [PHP] sending SMS messages via PHP

2001-03-12 Thread Steven WC

Hi,

This may soon depend on what Cellco you are sending from/to in the UK. They
used to pass on messages between themselves for no cost but I understand
that they are going to change over to charging each other per message. This
may effect their own free email gateways but it certainly will effect the
'independent' ones.

If you want to use an SMSC to do this rather than via an email gateway, and
you don't want to set up a link to a real SMSC, you could always use a
mobile phone with an 'AT' modem interface (eg, Nokia 7110, 6210) or a GSM
modem (a bit more expensive but dedicated to the task) as a virtual SMSC and
link the software into that to send the SMS messages for you. There are a
few SMS gateways around that will do that - quite a few are free. One
example is 'Kannel' - its a WAP and SMS gateway. A nice thing about that one
is that you can recieve SMS messages and have them be processed via PHP
scripts - to process, respond etc.


""Valter Santos"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!

Instead of send a direct SMS to a SMSCenter you can send the
message as an standard email... Many Cellcos allow that, and it
will be cheaper to you (no cost!!!)

Here in Portugal we can do it... we just use the MSISDN (phone number)
from who we want to send and sms and append the cellco mail server...

As an example, to send a SMS to me, you can send a email to

[EMAIL PROTECTED]

this, probably will work... the mail user alias is my phone number and
the server domain is the Cellco' mail server
~

hope this help


Valter Santos
WEB/WAP Consultant

Email : [EMAIL PROTECTED]
Mobile: +351 93 9650075

WeDo Consulting - http://www.wedo.pt



 -Original Message-
 From: Michael Smith [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 5:00 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] sending SMS messages via PHP


 I can easily send standard email messages via PHP. Does anyone know how to
 send SMS messages?

 --
 Michael A. Smith [EMAIL PROTECTED]
 Director of Data Systems, wcities.com
 ICQ: 35884415
 :wq

 --
 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 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] (roberto)PHPJVA

2001-03-12 Thread Celestino Roberto Alejandro

Hello..i'm trying PHPJAVA
..we can in my .java file import javax.swing classes, and the how i can do
that runnin it with php, don't say the Error...of
javax.swinng...etc..can't loaded...!
thanks...
Roberto Celestino


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

2001-03-12 Thread Lembit Pirn

Hi there,
I'm real beginner in php and tried to use sockets.
I copied an example from manual (Simple TCP/IP client) and connected to my
socket server.
If I understadn manual correctly, then function

read ($socket, $out, $len)

is supposed to read buffer with length $len or break out with chr(0) or
chr(10).

When I tried, it read the buffer, but always timed out with default 30 sec
no matter what I was doing on the other end of socket.

while ($ab=read ($socket, $out, $len)) {
echo $out;
}

Where should I look ?

Lembit Pirn
7+7 Software
tel.:+372 6313172
fax:+372 6459780
[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]




FW: [PHP] Classes and Kernel CPU Load?

2001-03-12 Thread Krznaric Michael



-Original Message-
From: Krznaric Michael 
Sent: Monday, March 12, 2001 12:29 PM
To: 'Jens Kisters'
Subject: RE: [PHP] Classes and Kernel CPU Load?


I don't know much about OS design, but I may want to check out how long the
context switches are taking.  That could be an issue?

Mike

-Original Message-
From: Jens Kisters [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 10:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Classes and Kernel CPU Load?


I have Scripts that seem to cause imense Kernel (not user) CPU Load
under Solaris,
could this be caused by using classes?

I already removed use of md5() and crypt() from the scripts no change so
far.
What else could cause an immense increase in Kernel CPU Load?

tks
Jens
--
Gre aus dem schnen Kleve
Jens Kisters

rosomm et partner
Agentur fr neue Medien GmbH
Dienstleistungszentrum am
Weien Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau

Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
[EMAIL PROTECTED]
http://www.rosomm-partner.de



-- 
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-CVS] cvs: php4 /pear pear.m4

2001-03-12 Thread Andi Gutmans

What is the reason for this? Shouldn't we keep it the way it works within 
the PHP tree? Some modules include php_config.h or do you also have that in 
PEAR?

Andi

At 09:54 AM 3/12/2001 +, Stig Bakken wrote:
ssb Mon Mar 12 01:54:26 2001 EDT

   Modified files:
 /php4/pear  pear.m4
   Log:
   HEADS UP: renamed config header file in "phpize"d extensions to
   "config.h" rather than "php_config.h".


Index: php4/pear/pear.m4
diff -u php4/pear/pear.m4:1.7 php4/pear/pear.m4:1.8
--- php4/pear/pear.m4:1.7   Mon Oct 30 10:27:46 2000
+++ php4/pear/pear.m4   Mon Mar 12 01:54:26 2001
@@ -81,6 +81,6 @@
  test -d modules || mkdir modules
  touch .deps

-AC_CONFIG_HEADER(php_config.h)
+AC_CONFIG_HEADER(config.h)

  AC_OUTPUT()



--
PHP CVS 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 CVS 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] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread neil

Hello all

I am trying to generate a MD5 string equal to a known passwords MD5 string , with no 
luck
in order to make a new password file

i have tried use php's : $value = md5($string); 
and $value = crypt($string,$salt); 

the passwds in my systems /etc/shadow all start with $1 which i believe is standard 
for MD5 passwords of 32 length

any one have any ideas ? 

Thanks in advance

Neil M



Re: [PHP] Re: Good Free PHP Editor?

2001-03-12 Thread Ryan Christensen

I'd definitely agree with that.. I've been using EditPlus for quite a while
now, and have no complaints..

""PHPBeginner.com"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Have you tried EditPlus? www.editplus.com

 they are especially good for search, replace function and highlighting is
 also very easy to use, you can even define your own functions to
highlight.



 Sincerely,

  Maxim Maletsky
  Founder, Chief Developer

  PHPBeginner.com (Where PHP Begins)
  [EMAIL PROTECTED]
  www.phpbeginner.com




 -Original Message-
 From: The Arting Starvist [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 13, 2001 1:04 AM
 To: Andrew Halliday; [EMAIL PROTECTED]
 Subject: [PHP] Re: Good Free PHP Editor?


 I recently downloaded a newer EditPad Lite version that offers
highlighting
 and other nice improvements over the "classic" EditPad.

 m

 -Original Message-
 From: Andrew Halliday [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Monday, March 12, 2001 12:04 AM
 Subject: Good Free PHP Editor?


 Does anyone know of a good PHP enabled editor that fits the following
 criteria:?
 
 (in order of importance)
 - Is free
 - Runs under Windows
 - Has colors (syntax highlighting)
 - Can edit multiple files (ie multi threaded)
 - Reports line numbers
 - Has good search  replace functionality
 
 ???
 
 Ive been using editpad up till now but my code is starting to get so
large
 that ill need syntax highlighting soon...
 
 AndrewH
 
 


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

2001-03-12 Thread Matt Williams

Hi

Does anyone know if anyone has built phorum or any other BB with PHPLib
authentication??

I was wondering if I could save myself a lot of time..

TIA

M@


-- 
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] search a text file

2001-03-12 Thread Peter Benoit

I've got a bit of a task where I need to poll a text file for several lines
of text which is buried deep within the file.  These lines change each day,
but the text surrounding them do not.

Is it possible to extract these lines of information based on the text
surrounding them?


-- 
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] upload file problems

2001-03-12 Thread Jerry Lake

Using this code
snip
?php
if (is_uploaded_file($userfile)) {
 echo $userfile;
copy($userfile, "/www/workbox/htdocs/audio");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}

?
/snip

I keep getting the following error. the directory exists and is chmoded to
777, what am I doing wrong ?
Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in
/www/workbox/htdocs/upload.php on line 4

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.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] Have you ever seen this?

2001-03-12 Thread Dhaval Desai

Hi!

I know this is in no way related to Php but I am
writing this mail coz I didn't know where to ask this
question and I am sure there are a lot of Web
Developers and Programmers who can help me out.

Well There are some versions of some sites in two
languages and both of them work equally well even If
your system doesn't have fonts.
It uses some kindaa server font management I gues..

Has anyone of you all out there worked on some site
like that or have any idea on how it works.

I can give you the URL:

http://www.arabia.com





__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.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] HTTP_POST_VARS

2001-03-12 Thread stas

Hello,

Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I 
am trying to do server side form validations, and this represents a bit of difficulty 
in terms of notifying a user about which fields are missing values.



Re: FW: [PHP] Classes and Kernel CPU Load?

2001-03-12 Thread Christian Reiniger

On Monday 12 March 2001 18:28, you wrote:
 I don't know much about OS design, but I may want to check out how long
 the context switches are taking.  That could be an issue?

Definitely not under Solaris :)

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

Install once, run forever. Linux.

--
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] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread Christian Reiniger

On Monday 12 March 2001 18:31, you wrote:

 I am trying to generate a MD5 string equal to a known passwords MD5
 string , with no luck in order to make a new password file

 i have tried use php's : $value = md5($string);
 and $value = crypt($string,$salt);

 the passwds in my systems /etc/shadow all start with $1 which i believe
 is standard for MD5 passwords of 32 length

The "$1$" is the start of a 12-char salt (as described in the manual 
entry for crypt ()).

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

Install once, run forever. Linux.

--
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] Kick one of these darn elements out of my array, I aint having it!

2001-03-12 Thread Brandon Orther

Hello,

I want to take one element out of an array, is there a way to remove an
element and have the array resorted so there isn't a blank spot where I
remove the elements? Here is an example if the above text made no sense.

Example: $array = Array("1", "2", "3", "4");

So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4

I want to kick $array[2] out and have $array[3] be moved to $array[2]

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.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] Kick one of these darn elements out of my array, I ainthaving it!

2001-03-12 Thread Thomas Deliduka

On 3/12/2001 1:38 PM this was written:

 I want to take one element out of an array, is there a way to remove an
 element and have the array resorted so there isn't a blank spot where I
 remove the elements? Here is an example if the above text made no sense.
 
 Example: $array = Array("1", "2", "3", "4");
 
 So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4
 
 I want to kick $array[2] out and have $array[3] be moved to $array[2]

Only thing I can think of is a loop:

$temparray = array();
Reset($array);
while ($elem = current($array)) {
if ($elem != "2") {
$temparray[] = $elem
}
next($array);
}
$array = $temparray;


-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] Have you ever seen this?

2001-03-12 Thread Christian Reiniger

On Monday 12 March 2001 19:21, you wrote:

 Well There are some versions of some sites in two
 languages and both of them work equally well even If
 your system doesn't have fonts.
 It uses some kindaa server font management I gues..

 Has anyone of you all out there worked on some site
 like that or have any idea on how it works.

 I can give you the URL:

 http://www.arabia.com

Well, I guess they should invest some more work in it :)

 screen output 
[an error occurred while processing this directive]
 /screen output 

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

Install once, run forever. Linux.

--
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] search a text file

2001-03-12 Thread CC Zona

In article 
[EMAIL PROTECTED],
 [EMAIL PROTECTED] (Peter Benoit) wrote:

 I've got a bit of a task where I need to poll a text file for several lines
 of text which is buried deep within the file.  These lines change each day,
 but the text surrounding them do not.
 
 Is it possible to extract these lines of information based on the text
 surrounding them?

Sure.  preg_match() would be one way.

-- 
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] search a text file

2001-03-12 Thread Peter Benoit

OK, I'm a little new to this, else I would have known that.  Any examples
out there I could use/modify?  

thanks,
pete

-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] search a text file


In article 
[EMAIL PROTECTED],
 [EMAIL PROTECTED] (Peter Benoit) wrote:

 I've got a bit of a task where I need to poll a text file for several
lines
 of text which is buried deep within the file.  These lines change each
day,
 but the text surrounding them do not.
 
 Is it possible to extract these lines of information based on the text
 surrounding them?

Sure.  preg_match() would be one way.

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



-- 
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] Escape slashes?

2001-03-12 Thread Tanya Brethour


Hi!

I am trying to do some fileuploading.. but I am running into a problem
with escaping spaces.

Basically, I have this directory that includes spaces and I need to be
able to change the spaces to "\ " so for example..

my directory is: Fun Documents
I need to change it to: Fun\ Documents

That way when I copy.. I wont get errors! Plus, there is always the
potential that the filename might have a space in it.

So how do I escape these spaces?

I have tried this.. and it doesnt work:
$copyto = strtr($copyto, " ", "\ ");

That basically just replaces the spaces with a backslash. I tried this as
well:
$copyto = strtr($copyto, " ", "\\ ");

Didnt work.

I am sorta clueless.. any ideas?

Thanks in advance,
Tanya


-- 
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: Trouble setting up

2001-03-12 Thread Tanya Brethour


Did you copy the php library over?

And second.. are you actually going directly to the php script OR..  is it
named index.php and you are only going to the directory?

-Tanya


On Mon, 12 Mar 2001, Luis wrote:

  Hello all I new to the php . I was wondering
 if anyone could help me out with a little problem
 that I'm having. I download the new version of
 php. I installed mysql , apache (new version) and
 php.
 
 What i'm having trouble is setting it up.
 
 I found a link how to set up php, mysql and
 apache. I everthing on the page, but when it comes
 
 down to editing the httpd.conf file I get lost.
 I added the two things it tells me to do.
 
 17. Edit your httpd.conf or srm.conf file and add:
 
 
 
 For PHP 3:
 AddType application/x-httpd-php3 .php3
 For PHP 4:
 AddType application/x-httpd-php .php
 
 
 I then stop the apache server and restart it. I
 have  a  folder that has php file . when i try to
 bring this up i get
 this error message.
 "The page cannot be displayed. "
 I checked the folder and the permissions .
 everything looks fine. so can someone tell me what
 
 i'm doing wrong.
 
 Thank you .
 
 
 Luis
 


-- 
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] Trouble setting up

2001-03-12 Thread Tanya Brethour


err not the library.. but php.ini

-Tanya

On Mon, 12 Mar 2001, Luis wrote:

  Hello all I new to the php . I was wondering
 if anyone could help me out with a little problem
 that I'm having. I download the new version of
 php. I installed mysql , apache (new version) and
 php.
 
 What i'm having trouble is setting it up.
 
 I found a link how to set up php, mysql and
 apache. I everthing on the page, but when it comes
 
 down to editing the httpd.conf file I get lost.
 I added the two things it tells me to do.
 
 17. Edit your httpd.conf or srm.conf file and add:
 
 
 
 For PHP 3:
 AddType application/x-httpd-php3 .php3
 For PHP 4:
 AddType application/x-httpd-php .php
 
 
 I then stop the apache server and restart it. I
 have  a  folder that has php file . when i try to
 bring this up i get
 this error message.
 "The page cannot be displayed. "
 I checked the folder and the permissions .
 everything looks fine. so can someone tell me what
 
 i'm doing wrong.
 
 Thank you .
 
 
 Luis
 
 
 -- 
 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] Get next record

2001-03-12 Thread WreckRman2

How can one get the next record to compare two fields... I want to check if
the date of the first record matches the date of the next record with the
least amount of code...

David Smith
Indy Web Design
http://www.indywebdesign.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] Get next record

2001-03-12 Thread Boget, Chris

   How can one get the next record to compare two 
 fields... I want to check if the date of the first record 
 matches the date of the next record with the least amount 
 of code...

You are going to have to work with row pointers.  If you are
using mySQL, look at the function:

mysql_result();

Chris



Re: [PHP] Get next record

2001-03-12 Thread Tanya Brethour



Umm if you are talking about records in the sense of a table.. you could
do something like "SELECT record_id,record_date FROM table" and then go
through the array and compare the dates. You only do one query from the
database and then you know which records match by hanging onto their
record_id.

Is this what you wanted?

-Tanya

On Mon, 12 Mar 2001, WreckRman2 wrote:

   How can one get the next record to compare two fields... I want to check if
 the date of the first record matches the date of the next record with the
 least amount of code...
 
   David Smith
   Indy Web Design
   http://www.indywebdesign.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: Trouble setting up

2001-03-12 Thread Luis

Tanya Brethour wrote:

 Did you copy the php library over?

 And second.. are you actually going directly to the php script OR..  is it
 named index.php and you are only going to the directory?

 -Tanya

 On Mon, 12 Mar 2001, Luis wrote:

   Hello all I new to the php . I was wondering
  if anyone could help me out with a little problem
  that I'm having. I download the new version of
  php. I installed mysql , apache (new version) and
  php.
 
  What i'm having trouble is setting it up.
 
  I found a link how to set up php, mysql and
  apache. I everthing on the page, but when it comes
 
  down to editing the httpd.conf file I get lost.
  I added the two things it tells me to do.
 
  17. Edit your httpd.conf or srm.conf file and add:
 
 
 
  For PHP 3:
  AddType application/x-httpd-php3 .php3
  For PHP 4:
  AddType application/x-httpd-php .php
 
 
  I then stop the apache server and restart it. I
  have  a  folder that has php file . when i try to
  bring this up i get
  this error message.
  "The page cannot be displayed. "
  I checked the folder and the permissions .
  everything looks fine. so can someone tell me what
 
  i'm doing wrong.
 
  Thank you .
 
 
  Luis
 

Ok i'm new to this tanya, but I think i did. Here's a link to php site were I
found how to set it up. But tried this way and it still down not work.
Regarding the folder, I have a folder called ticket with alot of php files.

I pointed my browser 192.168.2.119/ticket.
What i get is a tree directory of everything inside the folder.

Sorry for the silly question but I'm just getting started.

Thank you for your help


-- 
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-CVS] cvs: php4 /pear/Net Dig.php

2001-03-12 Thread Colin Viebrock

cmv Mon Mar 12 11:30:56 2001 EDT

  Added files: 
/php4/pear/Net  Dig.php 
  Log:
  A nice friendly OO interface to dig
  
  
  


Index: php4/pear/Net/Dig.php
+++ php4/pear/Net/Dig.php
?php
//
// +--+
// | PHP version 4.0  |
// +--+
// | Copyright (c) 1997-2001 The PHP Group|
// +--+
// | This source file is subject to version 2.02 of the PHP license,  |
// | that is bundled with this package in the file LICENSE, and is|
// | available at through the world-wide-web at   |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to  |
// | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
// +--+
// | Authors: Colin Viebrock [EMAIL PROTECTED]  |
// +--+
//
// $Id: Dig.php,v 1.1 2001/03/12 19:30:56 cmv Exp $
//
// A nice friendly OO interface to dig
//
require_once('PEAR.php');

class Net_Dig extends PEAR
{
// {{{ Public Properties

/**
 * The address to dig
 *
 * @var string $address
 * @access public
 */
var $address;

/**
 * The server to use for digging
 *
 * @var string $server
 * @access public
 */
var $server;

/**
 * The type of DNS records to dig for
 *
 * @var string $query_type
 * @access public
 */
var $query_type;

/**
 * The last system command executed (for debugging)
 *
 * @var string $cmd
 * @access public
 */
var $cmd;

/**
 * The raw output of the system command (for debugging)
 *
 * @var string $raw_data
 * @access public
 */
var $raw_data;

/**
 * The location of the system dig program
 *
 * @var string $dig_prg
 * @access public
 */
var $dig_prog;

/**
 * The parsed result of the last dig
 *
 * @var string $result
 * @access public
 */
var $result;

// }}}


// {{{ Net_Dig()

/**
 * The Net_Dig constructor
 * Called when a new Net_Dig object is initialized
 *
 * @param string   [$address] The address to dig (can be set 
 *using the $address property as well)
 *
 * @return object Net_Dig   $obj   A new Net_Dig object
 *
 * @access public
 * @author Colin Viebrock [EMAIL PROTECTED]
 * @since  PHP 4.0.5
 */
function Net_Dig($address = false)
{

$this-address = $address;
$this-server = false;
$this-query_type = false;

$this-cmd = '';
$this-raw_data = '';

$this-result = false;

$this-dig_prog = trim(`which dig`);
if (!$this-dig_prog) {
$this = new PEAR_Error("Couldn't find system dig program");
}

}

// }}}



// {{{ dig()

/**
 * Does a dig of the given address (or $this-address)
 *
 * @param string   [$address] The address to dig (can be set 
 *using the $address property as well)
 *
 * @return object Net_Dig_result$obj   A new Net_Dig_result object
 *
 * @access public
 * @author Colin Viebrock [EMAIL PROTECTED]
 * @since  PHP 4.0.5
 */
function dig($address=false)
{

if ($address) {
$this-address = $address;
}

if (!$this-address) {
return new PEAR_Error("No address specified");
}

if (!$this-_validate_type()) {
return new PEAR_Error($this-query_type." is an invalid query 
type");
}

$cmd = escapeshellcmd(
sprintf("%s %s %s %s",
$this-dig_prog,
($this-server  ? '@'.$this-server : ''),
$this-address,
   

[PHP] what are the steps to recompile PHP?

2001-03-12 Thread colin olkowski

if one wants to recompile php (to add support for something that was missed
during the first compile) is there a step I need to complete that will
remove the earlier version of php, or do i just recompile over the old php
and not worry about it?

thanks

colin olkowski - [EMAIL PROTECTED]
cell 917.549.8395
land 212.414.4481



-- 
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] what are the steps to recompile PHP?

2001-03-12 Thread Tanya Brethour


I would assume that you need to 1) make sure you install it in the same
place :) 2) if you already compiled a Apache binary you need to copy the
new binary over.. or do another make install.

I would just follow the steps you did when you first installed it.. and it
should overwrite everything you did before.. assuming your --prefix is
right and what not.

-Tanya


On Mon, 12 Mar 2001, colin olkowski wrote:

 if one wants to recompile php (to add support for something that was missed
 during the first compile) is there a step I need to complete that will
 remove the earlier version of php, or do i just recompile over the old php
 and not worry about it?
 
 thanks
 
 colin olkowski - [EMAIL PROTECTED]
 cell 917.549.8395
 land 212.414.4481
 
 
 
 -- 
 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] Need to download files in IE

2001-03-12 Thread James R. Edgar

I am trying to set my script up so that when a person clicks on the link, that
the page will prompt for a download w/ the filename in the File Name field in
the Save As prompt.
I can get this to work in Netscapse but when I try to do it with Internet
Explorer I encounter problems. It either says there is no application to read
the file (I have acrobat reader on the computer.) or it displays the prompt with
either [variable's name passed to script].htm or download.php. And the file I am
trying to download is a PDF file. If anyone can help me with this I would
greatly appreciate this, and thanks in advance.

Regards,
Edgar


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

2001-03-12 Thread Nicolas MERLET


Please help me !

My problem is that I can't load PHP scripts (.php extension) with my personal server. 
My OS is Windows 95B (but MSIE 5 update), and I use PWS for Win 95 (not 4.0 for Win 
98). My PHP version is: 4.0.4pl1 for Win32

I've already done this instructions, I've found in the manual: 

- Updating DCOM
- Copying "php.ini" into "c:\windows\" directory
- Writing correct path for "extension_dir" field (my path is "c:\php")
- Adding ".php" registry key in "HKLM/System/.../W3Svc/Parameters/ScriptMap" with 
"c:\php\php.exe %s %s" value
- Adding ".php" extension in "HKCR" registry key (with correct parameters, I've tested 
it, there's no running problem)

I don't understand why PHP doesn't run on my server. Maybe "ScriptMap/.php" registry 
key value is wrong...
I'm waiting for any answer...

Nicolas Merlet



Tel:  +33.674.520.959
Email:  [EMAIL PROTECTED]













Re: [PHP] SOS !

2001-03-12 Thread Phil Driscoll

A few people seem to have this PWS problem - and the only cure seems to be
to reinstall PWS. The symptoms seem to be something like PWS is ignoring the
scriptmap directive and no end of fiddling around with the registry will
make it behave.

You could always ditch PWS and use Xitami if you have a simple setup, or
Apache if your needs are more complex. Either way you'll have less bother
than with PWS.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org



-- 
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] getting client info

2001-03-12 Thread Tanya Brethour



I am not sure if there is a way to do this. The only thing you could do is
determine level of encryption by browser version. This might work in some
cases.. but obviously if they have an old browser version (whose
encryption level is low by default) and they install like an
encryption_pack (IE example).. it will increase the encryption and you
wouldnt have a way to tell.


Sorry.. just some thoughts.

-Tanya


On Mon, 12 Mar 2001, Mitchell Hagerty wrote:

 I am using http://www.asphyxia.com/PHP_BD/PHPClientSniffer.phps to get info about 
the browsers connecting to 
 me but I would also like to get the level of encryption they are capable of. 
 
 Any thoughts on how to do this?
 
 tks
 mitch
 
 
 
 -- 
 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] In my attempt to read from a text file...

2001-03-12 Thread Peter Benoit

I'm trying preg_match with no success.

I'd like to search inside the text file for my name, then pull all the info
from that point till the next name which is Fred.

The text file would be called names.txt


So I'm trying to 

preg_match("Peter",names.txt,$myname)

then do the same for Fred, and grab all the stuff in between.

Is this the right way to do this?  Or is there something easier?

How can I search names.txt?  Can I load it into a variable somehow?

Please help


-- 
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] Need to download files in IE

2001-03-12 Thread Pierre-Yves Lemaire

Hello,

I do that with this piece of code. ( This will close the window, so open a
new one and put this code inside)

header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("Expires: 0");
$fn=fopen($FileName,"r");
fpassthru($fn);
fclose($fn);
exit;

py

- Original Message -
From: James R. Edgar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 12, 2001 7:57 PM
Subject: [PHP] Need to download files in IE


 I am trying to set my script up so that when a person clicks on the link,
that
 the page will prompt for a download w/ the filename in the File Name field
in
 the Save As prompt.
 I can get this to work in Netscapse but when I try to do it with Internet
 Explorer I encounter problems. It either says there is no application to
read
 the file (I have acrobat reader on the computer.) or it displays the
prompt with
 either [variable's name passed to script].htm or download.php. And the
file I am
 trying to download is a PDF file. If anyone can help me with this I would
 greatly appreciate this, and thanks in advance.

 Regards,
 Edgar


 --
 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] search a text file

2001-03-12 Thread CC Zona

[quotes returned to bottom-posting, for clarity]

In article 
[EMAIL PROTECTED],
 [EMAIL PROTECTED] (Peter Benoit) wrote:

 In article 
 [EMAIL PROTECTED],
  [EMAIL PROTECTED] (Peter Benoit) wrote:
 
  I've got a bit of a task where I need to poll a text file for several
 lines
  of text which is buried deep within the file.  These lines change each
 day,
  but the text surrounding them do not.
  
  Is it possible to extract these lines of information based on the text
  surrounding them?
 
 Sure.  preg_match() would be one way.

 OK, I'm a little new to this, else I would have known that.  Any examples
 out there I could use/modify?  

Probably.  You could check the manual's page on preg_match (the user 
annotations often have very useful code examples), phpbuilder.com, 
hotscripts.com, etc.  A quick, oversimplified example:

Let's say your complete text was (no laughing now g) "Mary had a little 
lamb, its fleece was white as snow." where "Mary had a " and "fleece was 
white as snow." are always consistent but whatever's happens to be the 
portion of the text between them is what you want to extract.  You could do 
something like--

$search_string="Mary had a little lamb, its fleece was white as snow.";
$status=preg_match("/^Mary had a(.*)(?=fleece was white as 
snow.)$/i",$search_string,$match_text);

In which case, $status would evaluate to true if a (case-insensitive) match 
was found, and $match_text[1] would contain " little lamb, its ".

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




[PHP-CVS] cvs: php4 /pear Makefile.in

2001-03-12 Thread Colin Viebrock

cmv Mon Mar 12 11:35:28 2001 EDT

  Modified files:  
/php4/pear  Makefile.in 
  Log:
  Forgot to add it here
  
  
Index: php4/pear/Makefile.in
diff -u php4/pear/Makefile.in:1.72 php4/pear/Makefile.in:1.73
--- php4/pear/Makefile.in:1.72  Thu Mar  1 23:52:56 2001
+++ php4/pear/Makefile.in   Mon Mar 12 11:35:28 2001
@@ -83,6 +83,7 @@
Math/Fraction.php \
Math/Util.php \
Net/Curl.php \
+   Net/Dig.php \
Net/SMTP.php \
Net/Socket.php \
Numbers/Roman.php \



-- 
PHP CVS 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] Good Free PHP Editor?

2001-03-12 Thread Simon Garner

From: "Boget, Chris" [EMAIL PROTECTED]

  HomeSite is great. www.allaire.com
  - not totally free I'm afraid, but there is an eval version.
  - runs under Windows yes
  - supports syntax highlighting for lots of languages
  including HTML, PHP,
  Perl, SQL, ASP (VB/JS).
  - can edit multiple files yes
  - shows line numbers in gutter on left hand side
  - supports regular-expression based search  replace across multiple
  files/directories
  - nice interface.

 Has the worst memory management of any software I've ever used.
 I have to reboot at lest 10 times a day when I use it.  The support
 forum on their site is filled with complaints on this issue.  Their
response
 to this issue was not to fix the memory leak (or whatever it is) but to
 issue a warning when resources are getting dangerously low to give
 you the opportunity to save all your work before you reboot.  Beyond
 that, their stance is "Well, if you don't like it, return it and we'll
give
 you a refund".
 If this wasn't the only piece of software that handled projects the way
 we needed, we'd have thrown out this piece of garbage software a *long*
 time ago.

 Chris




Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+
files, without any problems whatsoever.

However, I used to run it under Win98 and it would crash 1-2 times per
day...


Regards

Simon Garner


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