[PHP] Re: PHP / MySQL Hosting Charges

2001-08-24 Thread Raphael Pirker

You can see hosts offer the package for around $10/month, so if it's inside
a package they shouldn't charge more than US$2-US$4/month. If it's an extra
feature, however, they may well charge around $5/month for the add-on and
possibly also a setup fee, because it's not in their actual product list.
anything above that could possibly be considered as expensive. For example I
get

350MB
mySQL/PHP/Python/CGI
Logs etc
100x POP, unlimited forwards
1x Domain
+ lots more

for around $20/month

HTH,

Raphael



-- 
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] text wrap in table

2001-08-24 Thread Adrian D'Costa

Hi,

I am creating a program for a newspaper to publish their article
online.  There is a form what allows them to cut and past from their
editors (word, pagemaker, staroffice).  The data is being entered
correctly.  

The problem is when I try and get the data from the table the whole matter
scrolls off the screen.  I need it to be formatted as the client cut and
pastes it (headings, paras, etc).  Below is my table and part of my
program.

mysql desc newsarticles;
+--+--+--+-+++
| Field| Type | Null | Key | Default| Extra  |
+--+--+--+-+++
| id   | int(5)   |  | PRI | NULL   | auto_increment |
| nid  | int(5)   |  | MUL | 0  ||
| headline | varchar(100) |  | |||
| article  | mediumtext   |  | |||
| date | date |  | | -00-00 ||
| imgpath  | varchar(200) | YES  | | NULL   ||
+--+--+--+-+++

html
head
title? echo $row-headline; ?/title
/head

body bgcolor=white
h1 align=center? echo $row-headline; ?/h1
h3 align=center? echo $row-description; ?/h3
table width=600 border=1
tr
td valign=top width=70%font
face=Arial size=2 color=bluestrong? echo $sd .-. $sm
.-. $sy; ?/strongbrpre? echo $row-article; ?/pre/font/td
td valign=top width=30%img src=? echo
$row-imgpath; ? ? echo $iwh[3]; ? /td
/tr
/table
/body
/html


I use the pre/pre to display with the line breaks.  If I take of the
pre it does not wrap but does not give the breaks.  To my thinking maybe
while entering the data we should give break the lines physically.  This
is part of my entry form.

tr
tdfont face=Arial size=2HeadLine/font/td
tdinput type=text name=headline size=30
/tr

tr
tdfont face=Arial size=2Article/font/td
tdtextarea name=article cols=60 rows=10/textarea/td
/tr

tr
tdfont face=Arial size=2Upload Image/font/td
tdinput type=file name=userfile size=30 wrap=ON/td
/tr
tr align=center
td colspan=2input type=submit value=Submit/td
/tr


How do I get the text not to wrap and to preserve the formatting given by
the client.

Adrian


-- 
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] Reading files from a directory

2001-08-24 Thread Niklas Lampén

I have problem with reading files from directory.

This is the code:

?
$Handle = opendir('/www/publico2/docs/map');

while ($file = readdir($Handle)) {
 print $filebr\n;
};
?

That is ALL code on a script file.
These are the file in directory:

.
..
array_maker.php4
map.php4
renamer.php4
border_bl.gif
border_bm.gif
border_br.gif
border_ml.gif
border_mr.gif
border_ul.gif
border_um.gif
border_ur.gif
grid.gif
map_config.php4
map_dot.php4
handle.php4
map_dot.gif
core
md_998634933_071758800998634933.gif
md_998634937_060465500998634937.gif
md_998634941_025996400998634941.gif

If I have more than five of the files named like
md_123456789_12345.gif page returns Internal Server Error (500). What
can cause this? Is there a solution?


Niklas



[PHP] PHP 2 MySQL over the network

2001-08-24 Thread Boaz Yahav

Hi

Till recently, out MySQL DB and our Apache/PHP/Solaris were on the same
machine. We moved to front end / back end configuration and all of the
queries are now done over the network (Switch). I was wondering if
anyone has any experience in optimizing such a configuration from the
System / MySQL / PHP side?

Issues like packet sizes, connect vs. pconect etc...


Sincerely

  berber



--
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: Sorting and foreach of MultiDimensional Array failing

2001-08-24 Thread Tim Ward

You haven't reset $numbercount, so on the second iteration you never enter
the while loop and so $num_array[2] is never actually created. Remember
$num_array[2] is simply an element of the top level array. It isn't an array
until you make it one, regardless of what the previous elements are.
Remember ... there are no multi-dimensional arrays in php, just arrays that
can contain arrays (that can contain arrays, etc.)

Tim Ward

--
From:  Montz, James C. (James Tower) [SMTP:[EMAIL PROTECTED]]
Sent:  23 August 2001 22:48
To:  Php-General (E-mail)
Subject:  Sorting and foreach of MultiDimensional Array failing

In the following code, I'm reading a variable set of random numbers
into a
multi-dimensional array.

The first iteration runs properly, but when I get to my 2nd+
iteration, I
get the following errors;
Warning: Wrong datatype in sort() call in
/home/usrlinux/WWW/pballs.php on
line 18
Warning: Invalid argument supplied for foreach() in
/home/usrlinux/WWW/pballs.php on line 19

Is there a specific function for sorting and foreach statements of
multidimensional arrays?  If so, why does it work properly for the
first
interation,i.e. sort($num_array[1]) then subsequently fail on
sort($num_array[2])

Thank you in advance!


?
srand ((double) microtime() * 100);
$totnum = 5;
$min = 1;   
$max = 49;
$tickcount=1;
$num_array = array();
array_push($num_array, array());
echo Now Generating $tickets Tickets!br\n;
while ($tickcount = $tickets)
{
 while ( $numbercount  $totnum)
  {
   $num_array[$tickcount][] = rand($min,$max);
   $numbers = array_unique($num_array[$tickcount]);
   $numbercount = count($num_array[$tickcount]);   
  }
 sort($num_array[$tickcount]);
 foreach($num_array[$tickcount] as $val)   
  {
   echo img src=ball.php?text=$valcolor=greynbsp;nbsp;
  }
 $pb[$tickcount] = rand(1,42);
 print img src=ball.php?text=$pb[$tickcount]color=red;
 $tickcount++;
}
?

___
James C. Montz
James Tower
http://www.jamestower.com 
[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: Array's in classes

2001-08-24 Thread Tim Ward

Can't help too much without more code, but the diagnostics I'd use would be
foreach() and count() to find out what is there rather than seeing if what I
expect to be there actually is.

Tim Ward

--
From:  Scott Mebberson [SMTP:[EMAIL PROTECTED]]
Sent:  24 August 2001 00:52
To:  [EMAIL PROTECTED]
Subject:  Array's in classes

Hi Guys,

I have written a class in which it uses the global command to get
the value
of a variable from outside of this class which I use within the
class.

I have recently changed this variable to an array and added 5 extra
keys to
this array. It is a string indexed array. In now seems as though PHP
wont
import the array. It is really weird though because if I access the
key of
an array such as $database[hostname] is just echo's nothing at all
to the
browser. It also echo's nothing to the browser if I use
$database[0]. But,
if I echo just $database to the browser it returns Array ?

Does anybody have any idea of why this is happening?

Thanks

Scott.



-- 
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] Useful function. Better than print_r

2001-08-24 Thread Andrey Hristov

?php
function print_rrr($name, $element, $level){
// Returns $element as if you have to declare it using PHP syntaxis.
 if (is_array($element)) {
  $res = str_repeat(\t,$level).($level? \t\.$name.' = ':'$'.$name.' =
').'array(';
  $counter = 1;
  reset($element);
  while(list($key, $val) = each($element)){
   $res .= \n.print_rrr($key,$val,$level+1);
   $res .= ($counter==count($element)? '':',');
   $counter++;
  }
  $res .= \n.str_repeat(\t,$level).($level? \t):');');
 } else {
  $res = str_repeat(\t,$level+1).(is_numeric($name)?
$name:'.addslashes(stripslashes($name)).').
 ' = '.(is_numeric($element)?
$element:'.addslashes(stripslashes($element)).');
 }

 return $res;
}
// Usage
$a1 = array(1=dd,ff=array(1,2,3));
echo print_rrr(a1,$a1,0);

?
The output is:
$a1 = array(
  1 = 'dd',
  ff = array(
   0 = 1,
   1 = 2,
   2 = 3
  )
);
Hope this help someone.
It is useful when in a script you modify an array and have to save changes.
Just preg_replace in the file content with the new definition.

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%


- Original Message -
From: Philip Olson [EMAIL PROTECTED]
To: james [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 12:23 AM
Subject: Re: [PHP] print_r question


 About the simplest way to accomplish what you want is :

 pre
 ?php print_r($var) ?
 /pre

 \newlines don't show up in browser but will in the source, check your html
 source and see how pretty it is (full of newlines).

 Here's an example :

   $string = a\nb\nc\n;

   print $string;(newlines in source)
   print nl2br($string); (newlines and br's in source)

 Regarding print_r(), use pre as suggested above or you _could_ do other
 things but we'll worry about later :)

 Regards,
 Philip

 On Thu, 23 Aug 2001, james wrote:

  When I print an array out with print_r (php 4.06 on IIS 4.0) it does not
  print newlines even if newlines are embedded in the array element.  I
must
  embed br, instead.
 
  The manual examples use \n and the output shows that newlines are
created.
 
  Am I missing something?
 
  Newbie, here.  Hope this is the right thread for such question.
 
  Thanx,
  James
 
 
 
 
 
  --
  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] text wrap in table

2001-08-24 Thread Navid Yar

Have you tried using the nobr tag along with the pre tag? The nobr tag
will not allow the text to wrap. You can use it outside the pre tags and
see what you come up with. It sounds simple, but it may provide you with the
solution that you need.

Navid

-Original Message-
From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 11:36 PM
To: php general list
Subject: [PHP] text wrap in table


Hi,

I am creating a program for a newspaper to publish their article
online.  There is a form what allows them to cut and past from their
editors (word, pagemaker, staroffice).  The data is being entered
correctly.

The problem is when I try and get the data from the table the whole matter
scrolls off the screen.  I need it to be formatted as the client cut and
pastes it (headings, paras, etc).  Below is my table and part of my
program.

mysql desc newsarticles;
+--+--+--+-+++
| Field| Type | Null | Key | Default| Extra  |
+--+--+--+-+++
| id   | int(5)   |  | PRI | NULL   | auto_increment |
| nid  | int(5)   |  | MUL | 0  ||
| headline | varchar(100) |  | |||
| article  | mediumtext   |  | |||
| date | date |  | | -00-00 ||
| imgpath  | varchar(200) | YES  | | NULL   ||
+--+--+--+-+++

html
head
title? echo $row-headline; ?/title
/head

body bgcolor=white
h1 align=center? echo $row-headline; ?/h1
h3 align=center? echo $row-description; ?/h3
table width=600 border=1
tr
td valign=top width=70%font
face=Arial size=2 color=bluestrong? echo $sd .-. $sm
.-. $sy; ?/strongbrpre? echo $row-article; ?/pre/font/td
td valign=top width=30%img src=? echo
$row-imgpath; ? ? echo $iwh[3]; ? /td
/tr
/table
/body
/html


I use the pre/pre to display with the line breaks.  If I take of the
pre it does not wrap but does not give the breaks.  To my thinking maybe
while entering the data we should give break the lines physically.  This
is part of my entry form.

tr
tdfont face=Arial size=2HeadLine/font/td
tdinput type=text name=headline size=30
/tr

tr
tdfont face=Arial size=2Article/font/td
tdtextarea name=article cols=60 rows=10/textarea/td
/tr

tr
tdfont face=Arial size=2Upload Image/font/td
tdinput type=file name=userfile size=30 wrap=ON/td
/tr
tr align=center
td colspan=2input type=submit value=Submit/td
/tr


How do I get the text not to wrap and to preserve the formatting given by
the client.

Adrian


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

2001-08-24 Thread Alberto

I have 2 timestamps like mktime(0,0,0,10,10,2001) and
mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1 to
timestamp2 or how many hours, or how many seconds, thnx



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] help needed

2001-08-24 Thread steven

PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE LIST

hi there I am trying to insert this code into my pages to dynamically add
backwards and forwards links to my pages but the code keeps giving me
errors.

below is the code, if someone could please tell me what I am doing wrong I
would really apprectiate it.

thanks

steve




?  //list previous if found using desc results array


echo p align='center';

$sql= select id from travel where id  '$id' and visible = 'checked' order
by id desc;
$result = mysql_query($sql) or die(Invalid Query);
$row = mysql_fetch_array($result)


if ($row[article] != ){
echo  laquo; a href='viewlog.php?id=;
echo $row[id], ';
echo Previous;
echo /a raquo;;
echo /font/font/p\n;
}
else
{
echo a href='travelog/FONT COLOR=#99buHome/u/b/a
}

?

echo  | 

?  //list NEXT if possible using ascending results array
$sql = select id from travel where id  '$id' and visible = 'checked' order
by id asc;
$result = mysql_query($sql) or die(Invalid Query);
$row = mysql_fetch_array($result)


if ($row[article] != ){
echo  laquo; a href='viewlog.php?id=;
echo $row[id], ';
echo Next;
echo /a raquo;;
echo /font/font/p\n;
}
else
{
echo a href='travelog/FONT COLOR=#99buHome/u/b/a
}

?

echo /p;


*
CURRENTLY IN THAILAND
Steven Raucher
The Karma Tourer
www.RaucherTour.com
mailto:[EMAIL PROTECTED]
yahoo messenger: stevenraucher
*




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

2001-08-24 Thread Nick Davies


Erm.. 

date1 - date2 = seconds
(date1 - date2)/60 = mins
(((date1 -date2)/60)/60)/24 = days

Nick.

On Fri, 24 Aug 2001, Alberto wrote:

 I have 2 timestamps like mktime(0,0,0,10,10,2001) and
 mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1 to
 timestamp2 or how many hours, or how many seconds, thnx
 
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to download a picture thru http://?

2001-08-24 Thread Tamas Bucsu

Hi guys,

Is there any special way to get some pics from the web? Cos' what I wrote just does 
not work. Thanks


  if (file_exists($kepnev)){

 $kepnev=http://www.stg/pics/somethinggy.jpg;];

   $fdr = fopen($kepnev,r);
   $fdw = fopen($kepnevshort,w);
   while (!feof($fdr)) {
fputs ($fdw,fgets($fdr, 4096));

   }

   fclose($fdr);
   fclose($fdw);
  }
 }






[PHP] Re: strange error

2001-08-24 Thread Elias Santiago

Brack wrote:

 if you have structure like
 html
 ?php
 if (isset(...)){
 ..;
 }
 elseif (isset()){
 }
 else {
 ..
 ?
 /html
 then you need to insert } before /html
 or if you use syntax


Correct, in part.  The last ELSE has a starting {,  but no ending }.
It should go before the ? not /html, that would place it outside the PHP
code block.


 html
 ?php
 if (isset()):
 ..;
 elseif (isset()):
 ..;
 else:
 ..;
 ?
 /html
 you have to insert endif;
 If you think you did it but still have an error, try to count your if
 statements and endif; maybe something is missing.

 Youri

the correct structure would be:

html
?php
if ( condition ) {
multiple ;
statements for condition=true, all ended with ; (semi-colon) ;
}
elseif ( other_condition) {
multiple ;
statements for other_condition=true, all ended with ; (semi-colon) ;
}
else {
other block ;
of multiple lines ;
}
?
/html

Note that curly braces (expression group) does not need the semicolon after
them.

If the IF, ELSEIF or ELSE constructs just need to execute one line then

html
?php
if (condition)
echo whatever  ;
?
/html

the constructs themselves don't need an ending semicolon

Elias



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

2001-08-24 Thread Leila

Thanks for all that answered my question.
I wanted this function because i use Postgres too in the same project , i
will use informix or postgres , so
the logic in my implementation was based on postgres functions...
But if to Informix it doesn't work ... I will do of another way.
Leila
Martín marqués [EMAIL PROTECTED] escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
 On Jue 23 Ago 2001 21:21, Chris Fry wrote:
  This function does not work reliably with most databases, not just
  Informix. Caused me a lot of problems as I have a number of pages where
I'd
  like to display a No records found message.

 I normally have a count(*) query to know how much records belong to the
query
 (especially when I use LIMIT and that stuff).

 With Informix, you'll have to use sqlca.sqlerrd[0..5]. One of the elements
of
 the array is the amount of records.

  Just have to do it the hard way.
 
  I think there's a disclaimer in the docs about this being unreliable.

 It once was on the informix docs, but not anymore. The source may have
 changed.


 Saludos... :-)

 P.D.: No problems with pg_num_rows() :-)

 --
 Porqué usar una base de datos relacional cualquiera,
 si podés usar PostgreSQL?
 -
 Martín Marqués  |[EMAIL PROTECTED]
 Programador, Administrador, DBA |   Centro de Telematica
Universidad Nacional
 del Litoral
 -



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

2001-08-24 Thread Boaz Yahav

checkout http://www.weberdev.com


there are several scripts ready made for this.

Sincerely

berber

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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] help needed


PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE
LIST

hi there I am trying to insert this code into my pages to dynamically
add
backwards and forwards links to my pages but the code keeps giving me
errors.

below is the code, if someone could please tell me what I am doing wrong
I
would really apprectiate it.

thanks

steve




?  //list previous if found using desc results array


echo p align='center';

$sql= select id from travel where id  '$id' and visible = 'checked'
order
by id desc;
$result = mysql_query($sql) or die(Invalid Query);
$row = mysql_fetch_array($result)


if ($row[article] != ){
echo  laquo; a href='viewlog.php?id=;
echo $row[id], ';
echo Previous;
echo /a raquo;;
echo /font/font/p\n;
}
else
{
echo a href='travelog/FONT
COLOR=#99buHome/u/b/a
}

?

echo  | 

?  //list NEXT if possible using ascending results array
$sql = select id from travel where id  '$id' and visible = 'checked'
order
by id asc;
$result = mysql_query($sql) or die(Invalid Query);
$row = mysql_fetch_array($result)


if ($row[article] != ){
echo  laquo; a href='viewlog.php?id=;
echo $row[id], ';
echo Next;
echo /a raquo;;
echo /font/font/p\n;
}
else
{
echo a href='travelog/FONT
COLOR=#99buHome/u/b/a
}

?

echo /p;


*
CURRENTLY IN THAILAND
Steven Raucher
The Karma Tourer
www.RaucherTour.com
mailto:[EMAIL PROTECTED]
yahoo messenger: stevenraucher
*



--
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] text wrap in table

2001-08-24 Thread Miles Thompson


rant on

Please, DO NOT USE the pre tag, or fonts fixed in point size.
You have no control over the device which will display the page, let the 
web function the way it's supposed to. Users run screens at various 
resolutions, in Windows maybe large fonts or small fonts. If the user wants 
bigger type, then let her kick up the font size in the browser.

Why? I'm 53 years old, my father is 84, and my oldest child is 16. Our 
visual acuity varies greatly.

rant off

Direct the client to sites like salon, which are elegantly done with the 
goal of readability and clarity on the screen. Or LinuxToday. For the 
opposite, kick your monitor to high resolution, then go to some of the 
dipstick sites linked from msn.com, 
e.g.www.bcentral.com/resource/articles/homeoffice/101.asp, and then try the 
Print-friendly version. It still displays and prints in about 9 pt type.

Persuade the client that the web is a different medium, and presentation 
has to change.
If they resist, then generate PDF's and call by reference from the database.

Regards - Miles Thompson

At 03:47 AM 8/24/01 -0500, Navid Yar wrote:
Have you tried using the nobr tag along with the pre tag? The nobr tag
will not allow the text to wrap. You can use it outside the pre tags and
see what you come up with. It sounds simple, but it may provide you with the
solution that you need.

Navid

-Original Message-
From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 11:36 PM
To: php general list
Subject: [PHP] text wrap in table


Hi,

I am creating a program for a newspaper to publish their article
online.  There is a form what allows them to cut and past from their
editors (word, pagemaker, staroffice).  The data is being entered
correctly.

The problem is when I try and get the data from the table the whole matter
scrolls off the screen.  I need it to be formatted as the client cut and
pastes it (headings, paras, etc).  Below is my table and part of my
program.

mysql desc newsarticles;
+--+--+--+-+++
| Field| Type | Null | Key | Default| Extra  |
+--+--+--+-+++
| id   | int(5)   |  | PRI | NULL   | auto_increment |
| nid  | int(5)   |  | MUL | 0  ||
| headline | varchar(100) |  | |||
| article  | mediumtext   |  | |||
| date | date |  | | -00-00 ||
| imgpath  | varchar(200) | YES  | | NULL   ||
+--+--+--+-+++

 html
 head
 title? echo $row-headline; ?/title
 /head

 body bgcolor=white
 h1 align=center? echo $row-headline; ?/h1
 h3 align=center? echo $row-description; ?/h3
 table width=600 border=1
 tr
 td valign=top width=70%font
face=Arial size=2 color=bluestrong? echo $sd .-. $sm
.-. $sy; ?/strongbrpre? echo $row-article; ?/pre/font/td
 td valign=top width=30%img src=? echo
$row-imgpath; ? ? echo $iwh[3]; ? /td
 /tr
 /table
 /body
 /html


I use the pre/pre to display with the line breaks.  If I take of the
pre it does not wrap but does not give the breaks.  To my thinking maybe
while entering the data we should give break the lines physically.  This
is part of my entry form.

tr
 tdfont face=Arial size=2HeadLine/font/td
 tdinput type=text name=headline size=30
/tr

tr
 tdfont face=Arial size=2Article/font/td
 tdtextarea name=article cols=60 rows=10/textarea/td
/tr

tr
 tdfont face=Arial size=2Upload Image/font/td
 tdinput type=file name=userfile size=30 wrap=ON/td
/tr
tr align=center
 td colspan=2input type=submit value=Submit/td
/tr


How do I get the text not to wrap and to preserve the formatting given by
the client.

Adrian


--
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] Re: The future of PHP - object orientation

2001-08-24 Thread Manuel Lemos

Hello,

Steve Orr wrote:
 
 What kind of PHP application development frameworks, class libraries, or
 templates are widely used? Is SiteManager any good? How about phplib?
 Others? Doesn't the future of object oriented PHP depend on good foundation
 classes? Any comments on PHP object orientation?

Good enough to have over 200 people contributing to this PHP Classes
repository with well over 300 classes. Not that all have a great quality
or all of them are really useful to everybody, but they are there ready
for anybody to use despite some people claim PHP object orientation is
not good enough.

Regards,
Manuel Lemos

-- 
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] problem with constants

2001-08-24 Thread Wolfgang Schneider

Hello,

I managed to setup my Win2k machine for testing purposes with php and
mysql and things appear to work fine with one strange problem ...

The same files work perfectly well when run from the server at my
ISP, but now when running them on my machine, I am getting first some
error messages such as 

Warning: Use of undefined constant link - assumed 'title' in
./lib/lib_main.php3 on line 352
Warning: Use of undefined constant link - assumed 'subtitle' in
./lib/lib_main.php3 on line 352
Warning: Use of undefined constant link - assumed 'link' in
./lib/lib_main.php3 on line 354

And then the page is properly displayed at the bottom of all those
warnings ... :-) These messages do not show up with the same files
when used at my ISP's server, but do show up on my machine here.

The constant code causing this warning message are things like the
following:
$list[title]
$list[subtitle]
$list[link]

Anyone have an idea what may be causing these warnings? It is only
with code such as  $variable[value] that these messages show up ...
and then the code is processed anyways and the page displayed.  
Thank you for any input and help to solve this problem ... 

God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 




-- 
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: konquerer and php

2001-08-24 Thread Steve Brett

konquerer is krap.
:-)

only kidding. i seem to remember that konquerer has specific settings for
script execution - it may be worth checking out the setup...

Steve

Scott [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have a database browser that I made with php and mysql.  When I use it
in
 Netscape it behaves normally.  However when I view it using Konquerer, all
 kinds of php code shows up on the screen when I execute a php page.  I
 thought that Konquerer might not be recognizing the ? and ? start and
end
 tags so I tried script language=php and /script.  However if I use
 these nothing at all shows up on the screen.  Can someone tell me what the
 problem is?
 Thanks,
 SW



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

2001-08-24 Thread Juraj Hasko

Hi,

I would like to know if PHP on *nix system can use another SMTP mailer than sendmail. 
On WinNT is PHP indipendent on concrete mail-server. In our company we use Symantec's 
Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is it posible ?
Thanks in advance,

Juraj Hako
System Administrator

CAC LEASING Slovakia, a.s.



Re: [PHP] konquerer and php

2001-08-24 Thread * RzE:

Original message
From: Scott [EMAIL PROTECTED]
Date: Thu, Aug 23, 2001 at 08:29:07PM -0400
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] konquerer and php

 I have a database browser that I made with php and mysql.  When I use it in  
 Netscape it behaves normally.  However when I view it using Konquerer, all 
 kinds of php code shows up on the screen when I execute a php page.  I 
 thought that Konquerer might not be recognizing the ? and ? start and end 
 tags so I tried script language=php and /script.  However if I use 
 these nothing at all shows up on the screen.  Can someone tell me what the 
 problem is?
 Thanks, 
 SW
 
 -- 
 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]

/Original message

Reply

For the script execution it doesn't matter at all which browser you
use. PHP is processed server-side, so the browser just gets 'plain'
HTML. I guess something else is wrong than using a different
browser.

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
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] PHP / MySQL Hosting Charges

2001-08-24 Thread Alnisa Allgood

At 4:09 PM +1000 8/24/01, Chris Aitken wrote:
Hi All,


Just a quick non-technical question.

I live in Australia and a friend of mine has a website hosted here 
in Oz, and he pays his set amount per month which simply is for 
Hosting, cgi-bin and log file access for his website.

Hes wanting to have the ability to use PHP and MySQL on his site and 
his provider has quoted him the cost to add to his current monthly 
charges to give him a MySQL username/password/database and PHP 
ability.

Both he and I feel its a bit pricey for what they want to charge so 
I figured I would ask the list to see what other people consider a 
reasonable price to add PHP and MySQL access to his current 
www/cgi-bin/logs website.


Personally, I've always dealt with ISPs that offer PHP and MySQL as 
part of the basic monthly web hosting cost, which I generally expect 
to run between $20-$50 per month, depending on amount of space 
provided, backbone of the provider, and other variables.

Can PHP be offered as an add-on, I thought it was either or not, but 
anyway... I've seen others pay separately for MySQL access. I would 
expect to pay between $5-$15 more per month, if it was a separate 
item.

Alnisa
-- 
   .
Alnisa  Allgood
Executive Director
Nonprofit Tech
(ph) 415.337.7412  (fx) 415.337.7927
(url)  http://www.nonprofit-techworld.org
(url)  http://www.nonprofit-tech.org
(url)  http://www.tech-library.org
   .
Nonprofit Tech E-Update
mailto:[EMAIL PROTECTED]
   .
applying technology to transform
   .

-- 
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] problem with constants

2001-08-24 Thread Pavel Jartsev

Wolfgang Schneider wrote:
 
 ...
 
 Anyone have an idea what may be causing these warnings? It is only
 with code such as  $variable[value] that these messages show up ...
 and then the code is processed anyways and the page displayed.
 Thank you for any input and help to solve this problem ...
 

Use $variable['value'] or $variable[value].

Because, if you use $variable[value], then PHP thinks that 'value' is 
some constant, not string. This is why these warnings occurs.

-- 
Pavel a.k.a. Papi

-- 
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] ODBC Driver for UniVerse Database

2001-08-24 Thread Justin Farnsworth

Does anyone on this list know where a client-side, for Linux,
ODBC driver is available for the UniVerse Database.  I have
not yet found any commercial products on IBM-Informix-UniVerse
chain...

_justin


-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

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

2001-08-24 Thread Jon Haworth

Yup, try qmail: www.qmail.org

You need to adjust the setting in your php.ini as well.

HTH
Jon


-Original Message-
From: Juraj Hasko [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 14:19
To: [EMAIL PROTECTED]
Subject: [PHP] PHP  sendmail


Hi,

I would like to know if PHP on *nix system can use another SMTP mailer than
sendmail. On WinNT is PHP indipendent on concrete mail-server. In our
company we use Symantec's Mail-Gear on Linux (Slackware) and I'd like to
setup PHP use it. Is it posible ?
Thanks in advance,

Juraj Hako
System Administrator

CAC LEASING Slovakia, a.s.

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

2001-08-24 Thread Pavel Jartsev

Juraj Hasko wrote:
 
 Hi,
 
 I would like to know if PHP on *nix system can use another SMTP mailer than 
sendmail. On WinNT is PHP indipendent on concrete mail-server. In our company we
 use Symantec's Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is 
it posible ?

http://www.php.net/manual/en/configuration.php#ini.sendmail-path

-- 
Pavel a.k.a. Papi

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

2001-08-24 Thread Juraj Hasko

Mail-Gear hasn't sendmail wrapper.

Juraj

Juraj Hasko wrote:
 
 Hi,
 
 I would like to know if PHP on *nix system can use another 
SMTP mailer than sendmail. On WinNT is PHP indipendent on 
concrete mail-server. In our company we
 use Symantec's Mail-Gear on Linux (Slackware) and I'd like 
to setup PHP use it. Is it posible ?

http://www.php.net/manual/en/configuration.php#ini.sendmail-path

-- 
Pavel a.k.a. Papi


[PHP] wget

2001-08-24 Thread Augusto Cesar Castoldi

Hi.

I'm using wget -q -o /home/httpd/html/temp/logs.txt
http://localhost/script.php; to run a php script from
shell.

But 'wget' always create a log file with same name of
the script that wget are running in
/home/httpd/html/.

why he doesn't put the logs in logs.txt?

thanks.

Augusto

___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil 
e grátis!
http://br.geocities.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] comparing 2 mysql tables

2001-08-24 Thread Tom Churm

hi,

i've got 2 different MySQL tables.  i need to check which entries in the
text-field 'User' in one table are NOT present in the 'User' field in
the other table.  then i need to either save this array to a textfile or
otherwise prepare it for creating a new, third table.

any hints on how this kind of comparison operation can be accomplished?

many thanks,

tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problems with PHP calling PGP

2001-08-24 Thread CO Group Support

Hi all.  I am having a very strange problem when trying to run PGP under
Unix shell from inside a php script.  I am trying to encrypt the body of an
email message.  And, bizarrely, I can get it to work fine several different
ways (using exec(), popen(), backtick, etc), but (here's the strange part)
every time the script works fine, I get an internal web server (Apache)
error when the script terminates.  Whenever I try an exec() or popen()
command that DOESN'T work, Apache DOESN'T complain!  In other words, when
the call to PGP works, Apache fails and vice-versa!  It feels like PGP and
Apache are working together to make sure I can't get the job done!

Now, when I use GNUPG instead of PGP, everything works fine (and no Apache
error).  So, I think the problem has something to do with the way PHP, PGP,
Unix and Apache interact together.  One solution is to just use GNUPG
instead of PGP, but I like PGP better.

Note: I am running my PHP script through a program called php-cgiwrap which
makes the PHP script execute as me on the server rather than as nobody.  I
can't let the script execute as nobody because nobody doesn't have
permission to run PGP, but I do.

I would greatly appreciate help on getting the PGP approach to work
perfectly.  I am posting both the PGP and GNUPG code snippets below (note:
all the GNUPG snippets work perfectly).  Thanks.

Kurt Bertone

/**/
Here are some code snippets where the PGP works fine, but Apache complains:

script language=php

/* set up some strings */
$pgppath = /usr/home/myhome/.pgp;
$uid = Recipient Name [EMAIL PROTECTED];
$to = [EMAIL PROTECTED];
$subject = Seekwit Message;
$from = [EMAIL PROTECTED];
$msg = This is a vewy, vewy seekwit message.;

putenv(PGPPATH=$pgppath);

/* following works fine, except we get the Apache error */
$cmd = /usr/local/bin/pgp -feat '$uid' | /usr/bin/mail -s '$subject' $to;
$pp = popen($cmd, w);
fputs($pp, $msg);
pclose($pp);

/* following works fine, except we get the Apache error */
$cmd = echo '$msg' | /usr/local/bin/pgp -feat '$uid' | /usr/bin/mail -s
'$subject' $to;
`$cmd`;

/* following works fine, except we get the Apache error */
$cmd = echo '$msg' | /usr/local/bin/pgp -feat '$uid';
$encrypted = `$cmd`;
$encrypted = From: $from\n\n . $encrypted;
mail($to, $subject, , $encrypted);

/script

/**/
The following GNUPG code works perfectly - no problems at all.

script language=php

/* set up some strings */
$pgppath = /usr/home/myhome/.pgp;
$uid = Recipient Name [EMAIL PROTECTED];
$to = [EMAIL PROTECTED];
$subject = Seekwit Message;
$from = [EMAIL PROTECTED];
$msg = This is a vewy, vewy seekwit message.;

putenv(GNUPGHOME=$gnupghome);

/* following works perfectly */
$cmd = /usr/local/bin/gpg --textmode --always-trust ;
$cmd .= --armor --batch --no-secmem-warning --homedir '$gnupghome' ;
$cmd .= --compress-algo 1 --cipher-algo cast5 --recipient '$uid' --encrypt
;
$cmd .= | /usr/bin/mail -s '$subject' $to;
$pp = popen($cmd, w);
fputs($pp, $msg);
pclose($pp);

/* following works perfectly */
$cmd = echo '$msg' | /usr/local/bin/gpg --textmode --always-trust ;
$cmd .= --armor --batch --no-secmem-warning --homedir '$gnupghome' ;
$cmd .= --compress-algo 1 --cipher-algo cast5 --recipient '$uid' --encrypt
;
$cmd .= | /usr/bin/mail -s '$subject' $to;
`$cmd`;

/* following works perfectly */
$cmd = echo '$msg' | /usr/local/bin/gpg --textmode --always-trust ;
$cmd .= --armor --batch --no-secmem-warning --homedir '$gnupghome' ;
$cmd .= --compress-algo 1 --cipher-algo cast5 --recipient
'$uid' --encrypt;
$encrypted = `$cmd`;
$encrypted = From: $from\n\n . $encrypted;
mail($to, $subject, , $encrypted);

/script



Re: [PHP] help needed

2001-08-24 Thread Sheridan Saint-Michel

It looks to me like you are trying to use a result your DB
query isn't set to generate.

You have
$sql= select id from travel where id  '$id' and visible = 'checked' order
by id desc;

then

if ($row[article] != ) {

Your select only returned id, so the above if should always fail.

try
$sql= select id,article from travel where id  '$id' and visible =
'checked' order by id desc;

and see if that works.
If not, let me know what kind of error you are getting.

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: [EMAIL PROTECTED]
To: 
Sent: Friday, August 24, 2001 4:38 AM
Subject: [PHP] help needed


 PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE
LIST

 hi there I am trying to insert this code into my pages to dynamically add
 backwards and forwards links to my pages but the code keeps giving me
 errors.

 below is the code, if someone could please tell me what I am doing wrong I
 would really apprectiate it.

 thanks

 steve




 ? //list previous if found using desc results array


 echo p align='center';

 $sql= select id from travel where id  '$id' and visible = 'checked'
order
 by id desc;
 $result = mysql_query($sql) or die(Invalid Query);
 $row = mysql_fetch_array($result)


 if ($row[article] != ) {
 echo  laquo; a href='viewlog.php?id=;
 echo $row[id], ';
 echo Previous;
 echo /a raquo;;
 echo /font/font/p\n;
 }
 else
 {
 echo a href='travelog/FONT COLOR=#99buHome/u/b/a
 }

 ?

 echo  | 

 ? //list NEXT if possible using ascending results array
 $sql = select id from travel where id  '$id' and visible = 'checked'
order
 by id asc;
 $result = mysql_query($sql) or die(Invalid Query);
 $row = mysql_fetch_array($result)


 if ($row[article] != ) {
 echo  laquo; a href='viewlog.php?id=;
 echo $row[id], ';
 echo Next;
 echo /a raquo;;
 echo /font/font/p\n;
 }
 else
 {
 echo a href='travelog/FONT COLOR=#99buHome/u/b/a
 }

 ?

 echo /p;


 *
 CURRENTLY IN THAILAND
 Steven Raucher
 The Karma Tourer
 www.RaucherTour.com
 mailto:[EMAIL PROTECTED]
 yahoo messenger: stevenraucher
 *


-- 
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 / POST strange error

2001-08-24 Thread Mike

i have written a login page for a members area on my site - the code is as
follows...

?
require_once(backend.php);

if (!$userid || !$password) {

 include(loginform.php);
 exit;
}
else {
$login = $authlib-login($userid, $password);

if ($login != 2) {
 $error = $login;
 include(loginform.php);
 exit;
}
else {
 include(index.php);
}
}
?

it uses authlib to authorise the user and then include a different pasge if
they are logged in...fairly simple so far..

approx 50% of the time the user cannot log in straight away... the page just
reloads and you get the blank entry fields again.

The logs show the page being posted and then get

213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] POST /cand/members/login.php
HTTP/1.1 302 1792
213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] GET /cand/members/login.php
HTTP/1.1 200 1094

i am using apache 1.3.19 and php 4.0.4 on redhat 7

I have had this problem reported on another form page as well...



-- 
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 with RSA/Java

2001-08-24 Thread Martin Gunther

Hi all,
I need to use a public/private key encryption system for dredit card
details on a site I am developing.  We are not taking Credit Card payments
with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
send the CC details to the Shop Management for putting through a PDQ
machine.  How can I use a Public Private key system to do this from PHP.  I
know Java can support RSA (although never investigated it), and that PHP can
use standard Java classes (is this true?).

Please any help would be great

Martin Gunther



-- 
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] source code of c/c++

2001-08-24 Thread nafiseh saberi


hi .
do you know in what site I find the source code of compiler and

design editor for it.

thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Martin Gunther

Hi all,
I need to use a public/private key encryption system for dredit card
details on a site I am developing.  We are not taking Credit Card payments
with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
send the CC details to the Shop Management for putting through a PDQ
machine.  How can I use a Public Private key system to do this from PHP.  I
know Java can support RSA (although never investigated it), and that PHP can
use standard Java classes (is this true?).

Please any help would be great

Martin Gunther




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

2001-08-24 Thread Wilbert Enserink

Hi all,


I have the simplest question maybe, but I can't seem to find the answer.
It's friday.


Anybody knows how I can redirect to another url?


greetings


Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[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] redirect

2001-08-24 Thread Nick Davies


Guys this stuff is all in the manual. :)

header (Location: url);

On Fri, 24 Aug 2001, Wilbert Enserink wrote:

 Hi all,
 
 
 I have the simplest question maybe, but I can't seem to find the answer.
 It's friday.
 
 
 Anybody knows how I can redirect to another url?
 
 
 greetings
 
 
 Wilbert
 
 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [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] PHP vs CGI Search ?

2001-08-24 Thread KPortsmout

Hi,

I know this question has been asked many times before so I am not asking 
again :-) What I am asking is how I can search the forum, is there a web 
based system that I can use to search???

TIA
Ade

-- 
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] source code of c/c++

2001-08-24 Thread Jorge Amaya

I am a programmer in c++ builder, this place has a section of the
compiler's discharge, you can see if it serves you

http://www.borland.com/bcppbuilder/freecompiler/
and
http://www.gnu.org/software/gcc/gcc.html

greetings!!!



hi .
do you know in what site I find the source code of compiler and

design editor for it.

thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: source code of c/c++

2001-08-24 Thread J Smith


Definitely not in this group/mailing list. It's called *PHP*.general for a 
reason.

Nevertheless, this should get you started:

Unix-like compilers (with source, GPL):

http://www.gnu.org/software/gcc/gcc.html

For design editor, use any text edtior. vi, emacs, an X notepad type 
thing... If you have KDE, try KDevelop (http://www.kdevelop.org).

MS-DOS/Windows shell (with source, GPL):

http://www.delorie.com/djgpp/

Again, use text editors. Or, if you want the whole she-bang 
IDE-with-compiler *without* source code (or any of the freedoms of free 
software), try MS Visual Studio (http://www.microsoft.com).

J

p.s. you'll get a better response and discussion in an actual C or C++ 
group.


Nafiseh Saberi wrote:

 
 hi .
 do you know in what site I find the source code of compiler and
 
 design editor for it.
 
 thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] GET / POST strange error

2001-08-24 Thread Johnson, Kirk

I have seen this behavior when the user had a bookmark to the page with a
session ID in the bookmark URL. Just a thought.

Kirk

 -Original Message-
 From: Mike [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 8:17 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] GET / POST strange error
 
 
 i have written a login page for a members area on my site - 
 the code is as
 follows...
 
 ?
 require_once(backend.php);
 
 if (!$userid || !$password) {
 
  include(loginform.php);
  exit;
 }
 else {
 $login = $authlib-login($userid, $password);
 
 if ($login != 2) {
  $error = $login;
  include(loginform.php);
  exit;
 }
 else {
  include(index.php);
 }
 }
 ?
 
 it uses authlib to authorise the user and then include a 
 different pasge if
 they are logged in...fairly simple so far..
 
 approx 50% of the time the user cannot log in straight 
 away... the page just
 reloads and you get the blank entry fields again.
 
 The logs show the page being posted and then get
 
 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] POST 
 /cand/members/login.php
 HTTP/1.1 302 1792
 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] GET 
 /cand/members/login.php
 HTTP/1.1 200 1094
 
 i am using apache 1.3.19 and php 4.0.4 on redhat 7
 
 I have had this problem reported on another form page as well...

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

2001-08-24 Thread Jeremy Morano


Sorry to bother you with what probably seems like a useless question but why
is this not skipping a line?


echo  $team \n ;



Its in a while loop and the output is:

  Bears Giants Jets etc


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

2001-08-24 Thread Nick Davies


In html?

If it is then you should be using BR. An \n will just put a newline in
your source code.

Nick.

On Fri, 24 Aug 2001, Jeremy Morano wrote:

 
 Sorry to bother you with what probably seems like a useless question but why
 is this not skipping a line?
 
 
 echo  $team \n ;
 
 
 
 Its in a while loop and the output is:
 
   Bears Giants Jets etc
 
 
 


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

2001-08-24 Thread ReDucTor

you do know you need to put br to make it go to a new line :D one of the
stupidest mistakes, but done alot :D
- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 25, 2001 1:18 AM
Subject: [PHP] \n



 Sorry to bother you with what probably seems like a useless question but
why
 is this not skipping a line?


 echo  $team \n ;



 Its in a while loop and the output is:

   Bears Giants Jets etc


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

2001-08-24 Thread Daniel Adams

are you on windows or *nix? paste more code

On Fri, 24 Aug 2001, Jeremy Morano wrote:


 Sorry to bother you with what probably seems like a useless question but why
 is this not skipping a line?


 echo  $team \n ;



 Its in a while loop and the output is:

   Bears Giants Jets etc




-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Fwd: functions returning arrays

2001-08-24 Thread Frank Loewenthal

Hi

Perhaps I am confused, but is it not possible to return arrays in PHP?

Example:

function getArray() {
$ret = array('hallo','you');
return $ret;
}

$r = getArray();

for( $i=0;$i  count($r); $i++)
echo $r[i];

Does not work! The array shows 2 Elements, but they are emty

Hm... Where is do mistake?

Regards
Frank




--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

---

-- 
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
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] PHP vs CGI Search ?

2001-08-24 Thread Thomas Deliduka

On 8/24/2001 10:54 AM this was written:

 I know this question has been asked many times before so I am not asking
 again :-) What I am asking is how I can search the forum, is there a web
 based system that I can use to search???

Well, there's a Newgroup:

news.php.net

There is an archive on this list but I forget where it is. Perhaps the
support page on www.php.net will give it.

-- 

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] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer

PGP would be an ideal solution for this. The webserver would have the public
key and the people operating the PDQ machine the private key. A few things
to remember are.

1. Call PGP using exec()
2. Make sure you read the PGP docs to see how to use a particular keyring.
3. Make sure the keyrings and randseed files are readable by the apache
user.
4. Have fun

I have successfully got this working and if you need any help let me know

Regards

jon

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

-Original Message-
From: Martin Gunther [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 15:41
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and RSA/Java (Repost with correct e-mail!)


Hi all,
I need to use a public/private key encryption system for dredit card
details on a site I am developing.  We are not taking Credit Card payments
with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
send the CC details to the Shop Management for putting through a PDQ
machine.  How can I use a Public Private key system to do this from PHP.  I
know Java can support RSA (although never investigated it), and that PHP can
use standard Java classes (is this true?).

Please any help would be great

Martin Gunther




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

2001-08-24 Thread Jon Farmer

header(location: redirect.php);

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

-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 15:45
To: [EMAIL PROTECTED]
Subject: [PHP] redirect


Hi all,


I have the simplest question maybe, but I can't seem to find the answer.
It's friday.


Anybody knows how I can redirect to another url?


greetings


Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[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] Fwd: functions returning arrays

2001-08-24 Thread Johnson, Kirk

Try echo $r[$i] instead of echo $r[i].

Kirk

 -Original Message-
 From: Frank Loewenthal [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Fwd: functions returning arrays
 
 
 Hi
 
 Perhaps I am confused, but is it not possible to return arrays in PHP?
 
 Example:
 
 function getArray() {
   $ret = array('hallo','you');
   return $ret;
 }
 
 $r = getArray();
 
 for( $i=0;$i  count($r); $i++)
   echo $r[i];
 
 Does not work! The array shows 2 Elements, but they are emty
 
 Hm... Where is do mistake?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Fwd: functions returning arrays

2001-08-24 Thread Nick Davies

On Fri, 24 Aug 2001, Frank Loewenthal wrote:

 Hi
 
 Perhaps I am confused, but is it not possible to return arrays in PHP?
 
 Example:
 
 function getArray() {
   $ret = array('hallo','you');
   return $ret;
 }
 
 $r = getArray();
 
 for( $i=0;$i  count($r); $i++)
   echo $r[i];

Do we assume echo $r[$i]?? Or is that your mistake ;)

 
 Does not work! The array shows 2 Elements, but they are emty
 
 Hm... Where is do mistake?
 
 Regards
 Frank
 
 
 
 
 --
 SFI Technology Services AG
 Dr. F. Loewenthal
 Stettbachstrasse 10
 CH-8600 Dübendorf
 Switzerland
 
 [EMAIL PROTECTED]
 www.sfi.ch
 +41/1-824 49 00
 
 ---
 
 


--
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] fatal input in flex scanner

2001-08-24 Thread Jaxon

okay... I have a function that includes multiple files in a directory - it
was working but I changed something and I'm now getting a Fatal error:
input in flex scanner failed

can anyone see where I messed up?

cheers,
jaxon
---
function group_include($directory)
{
$handle=opendir($directory);
while ($file = readdir($handle))
{ //load files in $directory into array
if  ($file != ..  $file != .)
{
$files_to_include[count($files_to_include)] = $file;
}
}

//clean up and sort
closedir($handle);
if (is_array($files_to_include))
{
while (list ($key, $val) = each ($files_to_include))
{
include $directory/$val;
}
}
}

//include common and page specific modules

$common_include_dir=modules/common;
$page_include_dir=modules/page;

group_include($common_include_dir);
group_include($page_include_dir);


-- 
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] functions returning arrays II

2001-08-24 Thread Frank Loewenthal

A lot of answers about the typing error 
$r[ i ] resp. $r[ $i ]

Sorry, this was only wrong in my mail. But this is not the solution. 


Hi

Perhaps I am confused, but is it not possible to return arrays in PHP?

Example:

function getArray() {
$ret = array('hallo','you');
return $ret;
}

$r = getArray();

for( $i=0;$i  count($r); $i++)
echo $r[ $i ];

Does not work! The array shows 2 Elements, but they are emty

Hm... Where is do mistake?

Regards
Frank




--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

---

--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

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

---

-- 
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to download a picture thru http://?

2001-08-24 Thread Hugh Bothwell


Tamas Bucsu [EMAIL PROTECTED] wrote in message
012c01c12c8b$49cf6750$1100020a@domain1">news:012c01c12c8b$49cf6750$1100020a@domain1...
 Is there any special way to get some pics from
 the web? Cos' what I wrote just does not work.
 Thanks


  if (file_exists($kepnev)){

 $kepnev=http://www.stg/pics/somethinggy.jpg;];

   $fdr = fopen($kepnev,r);
   $fdw = fopen($kepnevshort,w);
   while (!feof($fdr)) {
fputs ($fdw,fgets($fdr, 4096));

   }

   fclose($fdr);
   fclose($fdw);
  }
 }

The simplest method, assuming
the file is web-accessible, is probably
echo img src='$kepnev';

If you really need to pass the raw image data
back (ie you're pulling it out of a database or
server file system or dynamically generating it),
you have to start with appropriate headers to
tell the browser how to treat what it's getting, ie
header(Content-Type: image/jpg);

Also, I bet it helps if you set $kepnev
_before_ you test whether it exists.



-- 
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] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Gregor Maier

This would work but I don't think that this was the idea.

You could send encrypted email from to server to another place with this method
but you can't encrypt the date transmitted with an html form. (since php runs
on the server and not on the client machine)

To secure the communication between the web-server and the client's browser you
can't use php. You'll either need SSL for your server or you use a java to
encrypte the data on the client side and then send it to the server.


On 24-Aug-2001 Jon Farmer wrote:
 PGP would be an ideal solution for this. The webserver would have the public
 key and the people operating the PDQ machine the private key. A few things
 to remember are.
 
 1. Call PGP using exec()
 2. Make sure you read the PGP docs to see how to use a particular keyring.
 3. Make sure the keyrings and randseed files are readable by the apache
 user.
 4. Have fun
 
 I have successfully got this working and if you need any help let me know
 
 Regards
 
 jon
 
 
 Hi all,
 I need to use a public/private key encryption system for dredit card
 details on a site I am developing.  We are not taking Credit Card payments
 with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
 send the CC details to the Shop Management for putting through a PDQ
 machine.  How can I use a Public Private key system to do this from PHP.  I
 know Java can support RSA (although never investigated it), and that PHP can
 use standard Java classes (is this true?).
 
 Please any help would be great
 
 Martin Gunther
 
 
 
 
 --
 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]
 

--
E-Mail: Gregor Maier [EMAIL PROTECTED]
Date: 24-Aug-2001
Time: 17:37:41
--

-- 
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] Outlook Express and Miltiple send to Addresses

2001-08-24 Thread Godd

I would like to send generate a list of members and allow the user to send a
mail to all the members.

This is done using the users email client, so i would have to pass all the
names to the mailto link that is generated.

Is it possible to do so?? and if it is any suggestions on how I can get it
done??



-- 
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] functions returning arrays II ... Umpf....@!**x@#

2001-08-24 Thread Frank Loewenthal

Hi, 

 A lot of answers about the typing error
 $r[ i ] resp. $r[ $i ]

 Sorry, this was only wrong in my mail. But this is not the solution.

Okay this was really the mistake. Hm... it is Friday, sorry for this 
stupid question.

Regards
Frank 






-- 
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
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: Timestamps operations

2001-08-24 Thread Hugh Bothwell


Alberto [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have 2 timestamps like mktime(0,0,0,10,10,2001) and
 mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1
to
 timestamp2 or how many hours, or how many seconds, thnx

define(SECONDS_PER_DAY, 86400);
define(SECONDS_PER_HOUR, 3600);
define(SECONDS_PER_MINUTE, 60);

$seconds = abs($time2 - $time1);

$days = (int) ($seconds / SECONDS_PER_DAY);
$seconds -= $days * SECONDS_PER_DAY;

$hours = (int) ($seconds / SECONDS_PER_HOUR);
$seconds -= $hours * SECONDS_PER_HOUR;

$minutes = (int) ($seconds / SECONDS_PER_MINUTE);
$seconds -= $minutes * SECONDS_PER_MINUTE;


printf(Total time elapsed was %d d %d:%02d:%02d, $days, $hours, $minutes,
$seconds);



-- 
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] File Upload and NT...

2001-08-24 Thread Joseph Koenig

Sorry, I know file uploads are asked about all the time...

I'm having an odd problem on a WinNT system.

When I try to do my upload, I test the file to see the type of it:
$image_info = GetImageSize($the_image);

However, that line gives me:
Warning: getimagesize: Unable to open
'/Joe1/Desktop%20Folder/device_eval.gif' for reading. in
D:\public\HJ\www.h-jenterprises.com\test\admin\item_functions.php on
line 22

At first I had thought this would be a permissions issue, but the file
it can't open is the one being uploaded. If I echo the file being
uploaded, i get:
Image Name: /Joe1/Desktop%20Folder/device_eval.gif

I swear I looked at the archive and I've done this plenty of times
before (but on Unix). This project is being done on NT, which I'm fairly
unfamiliar with though. Any help would be much appreciated.

Thanks,

Joe

-- 
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] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer

I dont think you read the original post correctly. Obviously you would use
SSL to get the info form the browser to server. What the poster was asking
was how does he securely get the information from the server to the people
using the PDQ machine.

Regards


--
Jon Farmer  O?O?
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gregor Maier
Sent: 24 August 2001 16:45
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)


This would work but I don't think that this was the idea.

You could send encrypted email from to server to another place with this
method
but you can't encrypt the date transmitted with an html form. (since php
runs
on the server and not on the client machine)

To secure the communication between the web-server and the client's browser
you
can't use php. You'll either need SSL for your server or you use a java to
encrypte the data on the client side and then send it to the server.


On 24-Aug-2001 Jon Farmer wrote:
 PGP would be an ideal solution for this. The webserver would have the
public
 key and the people operating the PDQ machine the private key. A few things
 to remember are.

 1. Call PGP using exec()
 2. Make sure you read the PGP docs to see how to use a particular keyring.
 3. Make sure the keyrings and randseed files are readable by the apache
 user.
 4. Have fun

 I have successfully got this working and if you need any help let me know

 Regards

 jon


 Hi all,
 I need to use a public/private key encryption system for dredit card
 details on a site I am developing.  We are not taking Credit Card payments
 with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
 send the CC details to the Shop Management for putting through a PDQ
 machine.  How can I use a Public Private key system to do this from PHP.
I
 know Java can support RSA (although never investigated it), and that PHP
can
 use standard Java classes (is this true?).

 Please any help would be great

 Martin Gunther




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


--
E-Mail: Gregor Maier [EMAIL PROTECTED]
Date: 24-Aug-2001
Time: 17:37:41
--

--
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] File Upload and NT...

2001-08-24 Thread Rasmus Lerdorf

Try putting it in a directory that doesn't have a space in it.

On Fri, 24 Aug 2001, Joseph Koenig wrote:

 Sorry, I know file uploads are asked about all the time...

 I'm having an odd problem on a WinNT system.

 When I try to do my upload, I test the file to see the type of it:
 $image_info = GetImageSize($the_image);

 However, that line gives me:
 Warning: getimagesize: Unable to open
 '/Joe1/Desktop%20Folder/device_eval.gif' for reading. in
 D:\public\HJ\www.h-jenterprises.com\test\admin\item_functions.php on
 line 22

 At first I had thought this would be a permissions issue, but the file
 it can't open is the one being uploaded. If I echo the file being
 uploaded, i get:
 Image Name: /Joe1/Desktop%20Folder/device_eval.gif

 I swear I looked at the archive and I've done this plenty of times
 before (but on Unix). This project is being done on NT, which I'm fairly
 unfamiliar with though. Any help would be much appreciated.

 Thanks,

 Joe




-- 
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] File Upload and NT...

2001-08-24 Thread Erik H. Mathy

 I'm having an odd problem on a WinNT system.

That's what NT is all about. ;)

 When I try to do my upload, I test the file to see the type of it:
 $image_info = GetImageSize($the_image);

Out of curiousity, who don't you try using:

if(is_file($the_image)) {
do something...
} else {
kick out no file warning...
}

Docs:
http://www.php.net/manual/en/function.is-file.php

 However, that line gives me:
 Warning: getimagesize: Unable to open
 '/Joe1/Desktop%20Folder/device_eval.gif' for reading. in
 D:\public\HJ\www.h-jenterprises.com\test\admin\item_functions.php on
 line 22

Have you specifically sent the uploaded file there? If not, it's more than
likely in whatever temporary upload folder you have defined in your php.ini
file.

 At first I had thought this would be a permissions issue, but the file
 it can't open is the one being uploaded. If I echo the file being
 uploaded, i get:
 Image Name: /Joe1/Desktop%20Folder/device_eval.gif

Oh! OK, I get it...you're tossing it up onto your desktop. So that path
isn't correct. It should be:

C:\WINNT\Profiles\Joe1\Desktop\device_eval.gif

In general, you're better off placing that file someplace other than the
desktop. Make a folder somewhere nice and generic, like D:\Uploads\Images\ .
That'll make your life a whole lot easier.

Hope this helps, drop me a line if it doesn't...
- Erik


-- 
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: force download in IE

2001-08-24 Thread Ralph Deffke

I went through the same problem. the simplest solution with browsers like IE
5.5 is to  click with the right buttom on the link an choose save this
location. You could mention this on the your page in a if you have trouble
dwonloading sentence.

a very stable solution would be to make a selfextracting archive and provige
two download links, one for people having the helper application installed and
want to just view it or those who want to download it.

David Minor schrieb:

 Can anybody tell me why this doesn't work in IE?  I need to force download
 mp3 files instead of IE5.5 trying to apply a helper app.  This code works
 fine for NN.

 // detect for MSIE bug
 if (strstr($HTTP_USER_AGENT, MSIE))
 $attachment = ;
 else
 $attachment =  attachment;;

 // stream file to user
 header(Content-Type: application/octet-stream);
 header(Content-Disposition:$attachment filename=$filename);
 header(Content-Length: .filesize($tmp_file));
 header(Content-Transfer-Encoding: binary);
 readfile($tmp_file);


-- 
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: force download in IE

2001-08-24 Thread Ralph Deffke

I went through the same problem. the simplest solution with browsers like IE
5.5 is to  click with the right buttom on the link an choose save this
location. You could mention this on the your page in a if you have trouble
dwonloading sentence.

a very stable solution would be to make a selfextracting archive and provige
two download links, one for people having the helper application installed and
want to just view it or those who want to download it.

David Minor schrieb:

 Can anybody tell me why this doesn't work in IE?  I need to force download
 mp3 files instead of IE5.5 trying to apply a helper app.  This code works
 fine for NN.

 // detect for MSIE bug
 if (strstr($HTTP_USER_AGENT, MSIE))
 $attachment = ;
 else
 $attachment =  attachment;;

 // stream file to user
 header(Content-Type: application/octet-stream);
 header(Content-Disposition:$attachment filename=$filename);
 header(Content-Length: .filesize($tmp_file));
 header(Content-Transfer-Encoding: binary);
 readfile($tmp_file);


-- 
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 chats? or better use cgi?

2001-08-24 Thread Wolfgang Schneider

Hello,

I've tried one php chat some time ago (myPhPChat ? or something
similar) which had some nice features, but was quite slow (compared
to what I see with some of the chat functions for example in AOL IM
or ICQ ) ... Are PHP based chats just slower? should one go for a CGI
solution? Does anyone have some ideas, perhaps can tell of their
experience with certain solutions?
I appreciate any helpful insights and input!
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP based authentification -----------

2001-08-24 Thread Ralph Deffke

send an 401 unauthorized header. see php manuall under function header() as an
example

Alex Sofronie schrieb:

 Hi all!

 How can I logout from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW
 and appropriate headers sent at the beginning)?
 It seems like unset($PHP_AUTH_USER) does not wotk in this case...

 Any help would be appreciated!

 Alex Sofronie
 [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] File Upload and NT...

2001-08-24 Thread Joseph Koenig

Actually,

The warning is coming from when I try and upload the file from the
desktop of my Mac. It's supposed to get uploaded into:
C:\WINNT\PHP\UPLOADTEMP. I checked phpinfo() and that's where it says
the upload_tmp_dir is. By the way, I was using the getimagesize to check
if the file is a .gif, .jpg, etc. Even without the getimagesize(), the
file still isn't being uploaded into the temp folder. I'm using,
basically, the same function that I use on Unix systems. Is there
something magic about doing uploads on windows that I don't know about? Thanks,

Joe

Erik H. Mathy wrote:
 
  I'm having an odd problem on a WinNT system.
 
 That's what NT is all about. ;)
 
  When I try to do my upload, I test the file to see the type of it:
  $image_info = GetImageSize($the_image);
 
 Out of curiousity, who don't you try using:
 
 if(is_file($the_image)) {
 do something...
 } else {
 kick out no file warning...
 }
 
 Docs:
 http://www.php.net/manual/en/function.is-file.php
 
  However, that line gives me:
  Warning: getimagesize: Unable to open
  '/Joe1/Desktop%20Folder/device_eval.gif' for reading. in
  D:\public\HJ\www.h-jenterprises.com\test\admin\item_functions.php on
  line 22
 
 Have you specifically sent the uploaded file there? If not, it's more than
 likely in whatever temporary upload folder you have defined in your php.ini
 file.
 
  At first I had thought this would be a permissions issue, but the file
  it can't open is the one being uploaded. If I echo the file being
  uploaded, i get:
  Image Name: /Joe1/Desktop%20Folder/device_eval.gif
 
 Oh! OK, I get it...you're tossing it up onto your desktop. So that path
 isn't correct. It should be:
 
 C:\WINNT\Profiles\Joe1\Desktop\device_eval.gif
 
 In general, you're better off placing that file someplace other than the
 desktop. Make a folder somewhere nice and generic, like D:\Uploads\Images\ .
 That'll make your life a whole lot easier.
 
 Hope this helps, drop me a line if it doesn't...
 - Erik
 
 --
 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] php chats? or better use cgi?

2001-08-24 Thread Augusto Cesar Castoldi

Depends on how BIG is your chat.

I made a chat that is usually used by 4/5 peoples and
it runs great.

I'm using MySQL (tow tables, one of rooms other for
the chat) and PHP, some JavaScript and a Frame.

see you.

Augusto

 --- Wolfgang Schneider [EMAIL PROTECTED]
escreveu:  Hello,
 
 I've tried one php chat some time ago (myPhPChat ?
 or something
 similar) which had some nice features, but was quite
 slow (compared
 to what I see with some of the chat functions for
 example in AOL IM
 or ICQ ) ... Are PHP based chats just slower? should
 one go for a CGI
 solution? Does anyone have some ideas, perhaps can
 tell of their
 experience with certain solutions?
 I appreciate any helpful insights and input!
 God bless you with His grace and peace 
 Wolfgang 
 
 Looking for Biblical information? COME AND SEE! 
 -- ONLINE Courses: http://classes.bibelcenter.de ...
 NEW!
 -- BibelCenter: http://www.bibelcenter.de 
 -- Bookstore: http://www.worthy.net/BibelCenter/ 
 
 
 
 
 -- 
 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]
  

___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil 
e grátis!
http://br.geocities.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] how can i cache php scripts enterpretet

2001-08-24 Thread Ralph Deffke

I have developed a web portal for big compamies with a lot of traffic on
their pages. main functions, like member authentication etc. are called
on every page request. it would make sence to have them ready
enterpretet to skip enterpretation on each request. i know that there
are tools arround like Zent Cache. however they require an
recompilation/binding on the server. but this is on such big corporate
servers almost impossible.

Does anybody know a solution for that ?


-- 
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] php chats? or better use cgi?

2001-08-24 Thread Wolfgang Schneider

On Fri, 24 Aug 2001 13:21:41 -0300 (ART), Augusto Cesar Castoldi
wrote:

Depends on how BIG is your chat.
I made a chat that is usually used by 4/5 peoples and
it runs great.

Dear Augusto,
thank you for the note ... I would think that perhaps 5-10 people
might use the chat at one time. I don't anticipate that the chat
facility will become so well known that it draws a lot of people to
come and chat ... I think the general chatters would go to specific
chat sites ... or use the IRC chat servers etc.

I'm using MySQL (tow tables, one of rooms other for
the chat) and PHP, some JavaScript and a Frame.

Did you write this yourself, or is the application available for
download some place on the internet?
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 




-- 
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] Maintaining a session without cookies

2001-08-24 Thread Saurabh Kapoor

I would like to maintain a session without cookies, what would be the best
way of going about this?

I have a very complicated php site, and have recently recieved numerous
complaints about the lack of support for people behind firewalls (that block
cookies) and browsers with coookies disabled...

Any help would be appeciated.

Thanks in advance,

Saurabh!


-- 
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: Maintaining a session without cookies

2001-08-24 Thread Julio Nobrega Trabalhando

  Append the session id on the url.

  There are several ways to do this. Change all urls to put it at the end,
add a javascript that will do it for you (saw at php.net's page). Or change
an option at php.ini to this also automatically for you, or use ini_set();
if you can't change the .ini.

--

Julio Nobrega

A hora está chegando:
http://toca.sourceforge.net
Saurabh Kapoor [EMAIL PROTECTED] wrote in message
005701c12cba$9148efa0$701923d9@killer666">news:005701c12cba$9148efa0$701923d9@killer666...
 I would like to maintain a session without cookies, what would be the best
 way of going about this?

 I have a very complicated php site, and have recently recieved numerous
 complaints about the lack of support for people behind firewalls (that
block
 cookies) and browsers with coookies disabled...

 Any help would be appeciated.

 Thanks in advance,

 Saurabh!




-- 
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] PHP / MySQL Hosting Charges

2001-08-24 Thread ERISEN, Mehmet Kamil

Hello All,
I think for a thin page with PHP+mySQL you can go as low as
$3 a month (35MB)
I have seen decent packages, with Vserver privileges at
around $18/mnt.


--- Alnisa Allgood [EMAIL PROTECTED] wrote:
 At 4:09 PM +1000 8/24/01, Chris Aitken wrote:
 Hi All,
 
 
 Just a quick non-technical question.
 
 I live in Australia and a friend of mine has a website
 hosted here 
 in Oz, and he pays his set amount per month which simply
 is for 
 Hosting, cgi-bin and log file access for his website.
 
 Hes wanting to have the ability to use PHP and MySQL on
 his site and 
 his provider has quoted him the cost to add to his
 current monthly 
 charges to give him a MySQL username/password/database
 and PHP 
 ability.
 
 Both he and I feel its a bit pricey for what they want
 to charge so 
 I figured I would ask the list to see what other people
 consider a 
 reasonable price to add PHP and MySQL access to his
 current 
 www/cgi-bin/logs website.
 
 
 Personally, I've always dealt with ISPs that offer PHP
 and MySQL as 
 part of the basic monthly web hosting cost, which I
 generally expect 
 to run between $20-$50 per month, depending on amount of
 space 
 provided, backbone of the provider, and other variables.
 
 Can PHP be offered as an add-on, I thought it was either
 or not, but 
 anyway... I've seen others pay separately for MySQL
 access. I would 
 expect to pay between $5-$15 more per month, if it was a
 separate 
 item.
 
 Alnisa
 -- 
.
 Alnisa  Allgood
 Executive Director
 Nonprofit Tech
 (ph) 415.337.7412  (fx) 415.337.7927
 (url)  http://www.nonprofit-techworld.org
 (url)  http://www.nonprofit-tech.org
 (url)  http://www.tech-library.org
.
 Nonprofit Tech E-Update
 mailto:[EMAIL PROTECTED]
.
 applying technology to transform
.
 
 -- 
 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]
 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] Re: Please Help - getting a hightlight depending on selected page

2001-08-24 Thread Martin Hughes

Sorry Hugh - didn't mean to send it just to you!!

Hi!

Thanks for the help!

It works great, but I've now made the array 2 dimensional:

?php
$index = array (
The Music Behindbr /Les Miseacute;rables = array (About Les
Miseacute;rables),
Introduction = array (About Les Miseacute;rables),
Changes amp; Cuts = array (About Les Miseacute;rables),
Scores = array (About Les Miseacute;rables),
Orchestra = array (About Les Miseacute;rables),
Synthesizers = array (About Les Miseacute;rables),
Sound System = array (About Les Miseacute;rables),
Articles = array (About Les Miseacute;rables),
21st Centurybr /Les Miseacute;rables = array (About Les
Miseacute;rables),
Information = array (About Les Miseacute;rables),
Discussion Forums = array (About Les Miseacute;rables)
);
?

(they're not all the same - it's just for quick tesing purposes!)

Now in the nav menu I get:

Warning: Undefined offset: 0 in E:\inetpub\wwwroot\index.php on line 103

Warning: Undefined offset: 1 in E:\inetpub\wwwroot\index.php on line 103

Warning: Undefined offset: 2 in E:\inetpub\wwwroot\index.php on line 103

Warning: Undefined offset: 3 in E:\inetpub\wwwroot\index.php on line 103

etc... down to 10




the rest of the script is:

?php
$items = count($index);
for($i = 0; $i  $items; $i++) {
echo \ntrtd class='navtext';

if ($sect == $i)
echo  id='sel';

echo a href='index.php?sect=$iid=0'.$index[$i]./a;
 LINE 103

echo /td/tr;
}
?


is it something to do with the count($index)?

Thanks for all the help!

Martin-)



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

2001-08-24 Thread Peter Allum

I have written a web based package in php and mysql that I am looking at
selling to my customers, The only thing is that I do not want to give them
the source code,

Is there any way in which I can lock the files or secure the files if they
are not hosted on my server?

If not is there other way I can secure the software so that they do not give
copies out to their freinds foc.

Many thanks in advance for your reply.


Peter Allum



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP secure

2001-08-24 Thread Julio Nobrega Trabalhando

  Encode (or compile) the source.

  Zend's compiler costs 2400 dollars. At this cost is better to release your
code on an open source license ;-)

--

Julio Nobrega

A hora está chegando:
http://toca.sourceforge.net
Peter Allum [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have written a web based package in php and mysql that I am looking at
 selling to my customers, The only thing is that I do not want to give them
 the source code,

 Is there any way in which I can lock the files or secure the files if they
 are not hosted on my server?

 If not is there other way I can secure the software so that they do not
give
 copies out to their freinds foc.

 Many thanks in advance for your reply.


 Peter Allum





-- 
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] Maintaining a session without cookies

2001-08-24 Thread Egan

On Fri, 24 Aug 2001 17:33:51 +0100, Saurabh Kapoor
[EMAIL PROTECTED] wrote:

I would like to maintain a session without cookies, what would be the best
way of going about this?

You missed a related discussion by just a few days.  But here is a
summary of it ...

To initialize a session and force the browser to inject the PHPSESSID
string into the url of every page, including the first, use this code
in the very first page (and only the very first page!)


  ?
  $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
  session_start();
  if (!session_is_registered('vsid')) {
  session_register('vsid');
  $HTTP_SESSION_VARS['vsid'] = session_id();
  $sidurl = Location: $PHP_SELF . '?' . SID;
  header($sidurl);
  exit();
  }
  
   remaining code on first page
  
  ?



And then use this code on all pages you link to:


  ?
  session_start();
  
   remaining code
  
  ?



This approach has another benefit too:

On all pages you link to after the first, you can test the value of
vsid to see if it matches the value of PHPSESSID.  That way, you can
determine whether the user reached the other pages by going through
the initial page.  If not, you can reject the request with a message
like improper request or something similar.


In your php.ini, use:

  variables_order = ECGPS

to make GET data override cookie data, and use:

  session.use_trans_sid = 1

to have PHP inject the PHPSESSID string into document links (PHP also
needs a compile flag set, for this .ini value to work).  And to turn
off cookies, use:

  session.use_cookies = 0


Or if you have permission for setting these values in an .htaccess
file, then in .htaccess you can use:

  php_value session.use_cookies 0
  php_value session.use_trans_sid 1
  php_value variables_order ECGPS



Hope that helps!


Egan



-- 
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: PHP secure

2001-08-24 Thread Erik H. Mathy

   Encode (or compile) the source.

   Zend's compiler costs 2400 dollars. At this cost is better to
 release your code on an open source license ;-)

The open source license is only as effective as your ability to hire a
lawyer to enforce it. ;)

It also depends on:

a.) How much you're charging for the product
b.) If you feel confident in your ability to police your clients.

My .02 cents, IMHO, etc, etc...
- Erik


-- 
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] The future of PHP

2001-08-24 Thread Manuel Lemos

Hello,

Christopher Cm Allen wrote:
 
 
  I'm afraid that PHP is not yet very credible in that world. The truth is
  there is not great marketing force behind PHP like there is Sun behind
  Java or Microsoft behind .Net
 
 Good point, and how does one go about marketing a language that is
 open-source?

If you don't know it is because you are not very motivated to do it. So,
the first step is to convince and motivate yourself that PHP needs to be
marketed.

As for what to do, instead of suggesting new ideas, I would rather
recall some old ideas that always seemed to work well.

For instance, provide PHP users compensation. It does not need to be
financial compensation. It may be moral compensation as long as it is
real compensation.

For instance, if I am not mistaken, Guido Van Rossum, the Python
creator, sponsored a contest to develop software development tools with
cash prizes. Only a few won, but the contest attracted a lot of people
and was even mentioned in prestiged software development magazines like
Dr. Dobbs. This required some investment, but if you look around you
will not have much trouble to find a sponsor.

Another point is that they managed to get the media on their side. It
seems that in the PHP community there is little effort to appeal to
media. That is a major waste of oppiortunity because they can provide
some much marketing for free.

One free way to provide compensation to any PHP user is to promote their
work. 2 years ago I started a repository of PHP Classes of objects that
basically allow anybody to contribute regardless of the quality and
utility that you may attribute to what is contributed.

The point is that once users that anybody can have some fame to have his
work exposed to a large PHP audience (over 40.000 subscribers), they
want to contribute as well and the site grows thanks to the moral
compensation that it offers to any PHP user.

There are other class repositories, like the official PHP PEAR
repository, but the scope is different because the contributions are not
accepted arbitrarily, so you don't get as many contributors.

Other than that, PHP resources sites like these should be officially
linked altogether with things like Web rings. It would cause a much
better impression to newcomers or ceptic people as it would make PHP
more credible exposing the real level of support that the whole PHP
community can provide. Unfortunately, the maintainers of PHP main site
and Zend site do not seem to agree that it would be a good idea to
promote other PHP resources sites with banners to pointing to them like
what is done with Web rings.


Ok, these are just a few ideas that would help PHP to be better
marketed. They are not new and have already been discussed before. It is
up to the people that have more active roles in the PHP community to
open their minds and pick them up. 


 I do it by not allowing FP like extensions on my server's. All of my custom
 apps are php or if need be I switch to C/perl.
 If I get pushed hard enough I will do c++ :)
 
 By your own words though , the  volume of users of a non-marketed php,
 compared to the users of  marketed Java et al. speaks for itself.
 Php holds its own..

But for how long?


 What if a group of developers/designers started marketing PHP?

Marketing does wonders. I should not need to to tell you that. One
problem seems to be some people in the PHP community have some kind of
aversion to the idea of that somebody can make money from free software.
That way you are ruling out people that can do a lot of good to the
growth of the PHP market. I think it is a matter of being more open
minded. The more opportunities you provide to others, the greater are
the chances that opportunities benefit your goals, in this case a a
wider acceptance of PHP making it more credible to people that basically
ignore it. 

ok, that's just me trying to be more constructive. :-)

Regards,
Manuel Lemos

-- 
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 engine friendly php + form

2001-08-24 Thread Andras Kende

Hello,

I was successfully created  search engine friendly php from a tutorial on
zend site.. like:
salescomps.php?city=Canadamonth=febyear=2000
to
salescomps.php/cityCanada/month/feb/year/2001


Is there any way to modify a submit form to result a page with search engine
friendly format  without using GET or POST ( / ) ??


Thanks,

Andras


-- 
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] konquerer and php

2001-08-24 Thread Martín Marqués

On Jue 23 Ago 2001 22:33, Scott wrote:
 What's happening specifically is that I have an html form with action
 whatever.php and when I click  on submit I get code echoed to the screen.
 As I said it works normally in Netscape, I get the php page with all the
 data displayed perfectly.

That´s not logical, becuase the web server is who parses the php code, 
returning pure html code. Unless you don´t have a miss-configuration on your 
web sever.

Saludos... :-)

-- 
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-
Martín Marqués  |[EMAIL PROTECTED]
Programador, Administrador, DBA |   Centro de Telematica
   Universidad Nacional
del Litoral
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help needed

2001-08-24 Thread Javi - NeoDigit


I'm using copy() and the final owner is nobody, I'm opening a socket
connection with fsockopen() so I have a validate user.
I want the validated user to be the owner of the new file
That`s de code:
- open the socket
- validate user
- change dir chmod so we can write
- write the file (with nobody owner and I need the user owner)
- change back dir chmod
- close connection

--
$tftp = fsockopen(ftp.dominio.com, 21, $errno, $errstr, 60) or
die(Fallode Conexión);

socket_set_blocking($tftp, false);
fputs($tftp, user $login\n);
fputs($tftp, pass $password\n);

$ruta = /www/.$direc;
fputs($tftp, SITE chmod 0777 $ruta\n);

copy (file1.php, file2.php);

fputs($tftp, SITE chmod $perm $ruta\n);
sleep(1);

fclose($tftp);

Thanks for helping
Javi



-- 
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] Large gzip I/O

2001-08-24 Thread Shane Wegner

Hi,

I seem to be having trouble with the zlib support in PHP
and am curious if anyone has a workaround.

I am looking for an alternative to the gzuncompress
function.  The problem with gzuncompress is that it needs
the entire gzip stream in memory in order to work.  I'm
looking for something like is in the C API where you can
feed it many buffers in a while loop and it will construct
the uncompress stream.

If this is possible, I'd appreciate hearing from someone
who knows how to do it.

Thanks in advance,
Shane

-- 
Shane Wegner: [EMAIL PROTECTED]
  http://www.cm.nu/~shane/
PGP:  1024D/FFE3035D
  A0ED DAC4 77EC D674 5487
  5B5C 4F89 9A4E FFE3 035D

-- 
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] The future of PHP

2001-08-24 Thread Manuel Lemos

Hello,

Egan wrote:
 
 On Thu, 23 Aug 2001 20:32:10 -0500, Christopher CM Allen
 [EMAIL PROTECTED] wrote:
 
 hmmm, I might live in a smaller world than you but I find tons of  small to
 middle businesses that have no clue as to why or how things are done in
 applications(primarily web). Sure they know the buzz words of Java etc but
 when I come in and tell them I work with a certain tool set and that I can
 get it done for less $ and time they really don't care if I have a hammer or
 a mallet.
 
 Many small businesses would like to do e-commerce, but can't afford
 expensive consultants, expensive hardware, and expensive software
 tools developed by huge corporations.

e-commerce? You mean B2C? Can small business live from that? I'm afraid
not! Maybe I am wrong. :-)

 
 There is a vast market for web developers who use free software tools
 like Linux/Apache/PHP, and offer their services to small businesses at
 modest rates.
 
 Look at all the large corporations bleeding money and cutting staff.
 Mega-corporations are in decline, and their era is ending.  Long live
 the small business!

What? Large business are being affected because the whole networking
business is in recession. It was over-hyped for all these years because
of the Internet, so now everything is being brought down to the reality
because investors took the money from those companies. So, every other
dependent company was affected to some extent, large or small. I thought
this was clear to every body by now.

Regards,
Manuel Lemos

-- 
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: code check

2001-08-24 Thread Tom Malone

I do have the little script active on my website -
http://www.tom-malone.com. I don't know anyone who has a mac though. Isn't
there a site somewhere that allows you to view what your site looks like in
other browsers/OSs? I've searched but can't find one. Or perhaps some kind
mac user on the list would view source on it to determine if it worked by
checking the font tags for face=geneva? I could compensate you by being
extremely nice to you for the rest of your life...   =)

Tom Malone
Web Designer
http://www.tom-malone.com

-Original Message-
From: Gabe da Silveira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: code check


Perhaps you could put it on a webpage and ask a Mac user to see if it
works.

BTW, there is no reason to use preg_match for that.  Instead use
strpos(), it is MUCH faster.

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Tom Malone) wrote:

 Sorry to bother you all with this, but I have no way to test this, as I
have
 no access to a Mac. Could you tell me if this little piece of code looks
as
 if it would work (detect whether someone's using the Mac OS)?

 if (preg_match(/mac/i, $HTTP_USER_AGENT) || preg_match(/macintosh/i,
 $HTTP_USER_AGENT) || preg_match(/ppc/i, $HTTP_USER_AGENT) ||
 preg_match(/PowerPC/i, $HTTP_USER_AGENT)):
   $basefont = Geneva;
 else:
   $basefont = Verdana, Helvetica, Serif;
 endif;

 It doesn't return an error, but that doesn't mean it works. I really
 appreciate your help. TIA

 Tom Malone
 Web Designer
 http://www.tom-malone.com


--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu

wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet

--
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] How to act on many files (i.e. *)

2001-08-24 Thread Ken

I can't find a way in PHP to behave on multiple files, without knowing the script 
somehow knowing the filenames already.

In particular, I want to delete all files in a directory.  unlink(*) doesn't seem to 
work with wildcards (at least not on my test Windows environment).

I can't find any function that gets me a list of filenames, either.

Am I missing something, or do I have to shell out to do this?

- Ken
[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] The future of PHP

2001-08-24 Thread Egan

On Fri, 24 Aug 2001 15:34:04 -0300, Manuel Lemos [EMAIL PROTECTED]
wrote:
 
 Many small businesses would like to do e-commerce, but can't afford
 expensive consultants, expensive hardware, and expensive software
 tools developed by huge corporations.

e-commerce? You mean B2C? Can small business live from that? I'm afraid
not! Maybe I am wrong. :-)


100 years ago you could easily do business without a telephone.  But
what percentage of businesses today operate without a telephone?

A web presence with web commerce will become a utility like the
telephone.  Having it will be more important than measuring artificial
distinctions between B2C vs. B2B.

 
 Look at all the large corporations bleeding money and cutting staff.
 Mega-corporations are in decline, and their era is ending.  Long live
 the small business!

What? Large business are being affected because the whole networking
business is in recession.


Large corporations don't know you or care about you as an individual
customer.  You're just an account number to them.  The only thing they
care about is the big sale to other big corporations.  But even
then, do they really care?  Not in my experience.

The networking recession is just one symptom of their disease.

Why would anyone want to do business that way?  If I can find a small
business that sells the service or product I need, that's who gets my
business first.

If people ask how large my company is, I tell them We're large enough
to handle your business, and small enough to care.


Egan



-- 
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] The future of PHP

2001-08-24 Thread Jeff Lewis

I actually had a talk with my boss today...

We discussed different technologies and why we chose them.  The reasons we
chose Java/JSP/J2EE etc:

1) Scalability (number 1 reason)
2) Different projects like EJB etc

I had been talking about PHP a lot and he says he likes it to but...

Jeff

 -Original Message-
 From: Egan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 2:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] The future of PHP


 On Fri, 24 Aug 2001 15:34:04 -0300, Manuel Lemos [EMAIL PROTECTED]
 wrote:

  Many small businesses would like to do e-commerce, but can't afford
  expensive consultants, expensive hardware, and expensive software
  tools developed by huge corporations.
 
 e-commerce? You mean B2C? Can small business live from that? I'm afraid
 not! Maybe I am wrong. :-)


 100 years ago you could easily do business without a telephone.  But
 what percentage of businesses today operate without a telephone?

 A web presence with web commerce will become a utility like the
 telephone.  Having it will be more important than measuring artificial
 distinctions between B2C vs. B2B.


  Look at all the large corporations bleeding money and cutting staff.
  Mega-corporations are in decline, and their era is ending.  Long live
  the small business!
 
 What? Large business are being affected because the whole networking
 business is in recession.


 Large corporations don't know you or care about you as an individual
 customer.  You're just an account number to them.  The only thing they
 care about is the big sale to other big corporations.  But even
 then, do they really care?  Not in my experience.

 The networking recession is just one symptom of their disease.

 Why would anyone want to do business that way?  If I can find a small
 business that sells the service or product I need, that's who gets my
 business first.

 If people ask how large my company is, I tell them We're large enough
 to handle your business, and small enough to care.


 Egan



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to act on many files (i.e. *)

2001-08-24 Thread Ken

I got my answer:  Use directory functions, not filesystem functions:

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

- Ken
[EMAIL PROTECTED]

At 02:51 PM 8/24/01 -0400, Ken wrote:
I can't find a way in PHP to behave on multiple files, without knowing the script 
somehow knowing the filenames already.

In particular, I want to delete all files in a directory.  unlink(*) doesn't seem 
to work with wildcards (at least not on my test Windows environment).

I can't find any function that gets me a list of filenames, either.

Am I missing something, or do I have to shell out to do this?

- Ken
[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] Help help help ... or something like that

2001-08-24 Thread Dan McCullough

I have a burning question that needs to be looked at, and see if 
someone can give me an idea of a
way to get the desired result.  Are you ready.

Here is my problem, I need to strip out of an mbox file everything but 
the body of the email, now
to complicate matters this is an extremly large file, now seeing as it 
is a mbox file, and there
for has a set pattern of information display, I figure there must be 
some way of striping the
header information.  

Here is my code, which displayes the file, very easy and gives me the 
file size.

?
$fcontents =  file(/home/sites/projects/web/extractor/Main.mbx, 
r);
$file_size = filesize (/home/sites/projects/web/extractor/Main.mbx);
echo bSize of this file is/b -  . $file_size . brbr;
while (list ($line_num, $line) = each ($fcontents)) {
echo $linebr\n;
}
clearstatcache (void)
?

Here is the output resulting from the above code, I have only copied 3 
listings.

Size of this file is - 2915641

From Tue Aug 21 10:32:42 2001 
Received: from killer2.nextmill.net [216.115.243.3] by 
thedigitallab.com with ESMTP 
(SMTPD32-6.05) id AB392F8015A; Tue, 21 Aug 2001 10:32:41 -0700 
Subject: Kenwood Sovereign DVD Promo 
Sender: [EMAIL PROTECTED] 
From: [EMAIL PROTECTED] 
Date: Tue, 21 Aug 2001 10:32:41 -0700 
To: [EMAIL PROTECTED] 
X-Priority: 1 
X-MSMail-Priority: High 
Content-Transfer-Encoding: Quoted-Printable 
MIME-Version: 1.0 
Content-Type: text/plain; 
charset=iso-8859-1 
X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) 
Message-Id: [EMAIL PROTECTED] 
X-RCPT-TO: 
X-UIDL: 298071585 
Status: U 

Contact Us 
Subject: Kenwood Sovereign DVD Promo 
State:: CA 
Name:: Alan T. Lim 
Address:: 3494 Yuba Avenue 
City:: San Jose 
e-mail: [EMAIL PROTECTED] 
Zip:: 95117 
opt-in: yes 
Button: Send Request 

From Tue Aug 21 10:32:50 2001 
Received: from killer2.nextmill.net [216.115.243.3] by 
thedigitallab.com with ESMTP 
(SMTPD32-6.05) id AB414EB01A6; Tue, 21 Aug 2001 10:32:49 -0700 
Subject: Kenwood Sovereign DVD Promo 
Sender: [EMAIL PROTECTED] 
From: [EMAIL PROTECTED] 
Date: Tue, 21 Aug 2001 10:32:50 -0700 
To: [EMAIL PROTECTED] 
X-Priority: 1 
X-MSMail-Priority: High 
Content-Transfer-Encoding: Quoted-Printable 
MIME-Version: 1.0 
Content-Type: text/plain; 
charset=iso-8859-1 
X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) 
Message-Id: [EMAIL PROTECTED] 
X-RCPT-TO: 
X-UIDL: 298071586 
Status: U 

Contact Us 
Subject: Kenwood Sovereign DVD Promo 
State:: Colorado 
Name:: Paul Wu 
Address:: 2313 Hampshire Road 
City:: Fort Collins 
e-mail: [EMAIL PROTECTED] 
Zip:: 80526 
opt-in: yes 
Button: Send Request 

From Tue Aug 21 10:32:58 2001 
Received: from killer2.nextmill.net [216.115.243.3] by 
thedigitallab.com with ESMTP 
(SMTPD32-6.05) id AB494ED01A6; Tue, 21 Aug 2001 10:32:57 -0700 
Subject: Kenwood Sovereign DVD Promo 
Sender: [EMAIL PROTECTED] 
From: [EMAIL PROTECTED] 
Date: Tue, 21 Aug 2001 10:32:57 -0700 
To: [EMAIL PROTECTED] 
X-Priority: 1 
X-MSMail-Priority: High 
Content-Transfer-Encoding: Quoted-Printable 
MIME-Version: 1.0 
Content-Type: text/plain; 
charset=iso-8859-1 
X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) 
Message-Id: [EMAIL PROTECTED] 
X-RCPT-TO: 
X-UIDL: 298071587 
Status: U 

Contact Us 
Subject: Kenwood Sovereign DVD Promo 
State:: Kentucky 
Name:: Janis Ross 
Address:: 2033 Damson Drive 
City:: Villa Hills 
e-mail: [EMAIL PROTECTED] 
Zip:: 41017 
Button: Send Request 

This is the desired result:


Kenwood Sovereign DVD Promo Kentucky Janis Ross 2033 Damson Drive 
Villa Hills [EMAIL PROTECTED]
41017
Kenwood Sovereign DVD Promo Colorado Paul Wu 2313 Hampshire Road Fort 
Collins [EMAIL PROTECTED]
80526 yes 
Kenwood Sovereign DVD Promo CA Alan T. Lim 3494 Yuba Avenue San Jose 
[EMAIL PROTECTED] 95117 yes 

Please any help would be greatly appreciated ...

thanks

dan

=
Dan McCullough


=
Dan McCullough
---
Theres no such thing as a problem unless the servers are on fire!
h: 603.444.9808
w: McCullough Family
w: At Work

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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] limit 1

2001-08-24 Thread Jeremy Morano


Hi,


I wondering if it was possible to use limit on part of a query and not all.




this is my query which works the way it should.

$sql = SELECT users.names
FROM  users, selection
Where  users.name = selection.name   and   setting = 'on' limit 1
;




What I would like to do is put a limit of 1 to only this part - setting
= 'on' limit 1 --- and not on the rest.

You see, there are many users.name that have a setting = 'on'I
want, ALL those names , ONLY once..

How do I 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] Re: PHP secure

2001-08-24 Thread Brian Tanner

Zend's compiler doesn't really cost that much.  If you look at it that way
yes.

But if you get a developer membership to Zend ($50 a month), you get the
encoder as long as you have a membership (min 1 year).

So really, you can get the encoder for $600



-Original Message-
From: J Smith [mailto:[EMAIL PROTECTED]]
Sent: August 24, 2001 5:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP secure


If you can't trust your clients with the source code, what are you telling
your clients?

J

Erik H. Mathy wrote:

   Encode (or compile) the source.

   Zend's compiler costs 2400 dollars. At this cost is better to
 release your code on an open source license ;-)

 The open source license is only as effective as your ability to hire a
 lawyer to enforce it. ;)

 It also depends on:

 a.) How much you're charging for the product
 b.) If you feel confident in your ability to police your clients.

 My .02 cents, IMHO, etc, etc...
 - Erik


--
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] The future of PHP

2001-08-24 Thread Manuel Lemos

Hello,

Egan wrote:
 
 On Fri, 24 Aug 2001 15:34:04 -0300, Manuel Lemos [EMAIL PROTECTED]
 wrote:
 
  Many small businesses would like to do e-commerce, but can't afford
  expensive consultants, expensive hardware, and expensive software
  tools developed by huge corporations.
 
 e-commerce? You mean B2C? Can small business live from that? I'm afraid
 not! Maybe I am wrong. :-)
 
 100 years ago you could easily do business without a telephone.  But
 what percentage of businesses today operate without a telephone?
 
 A web presence with web commerce will become a utility like the
 telephone.  Having it will be more important than measuring artificial
 distinctions between B2C vs. B2B.

Huh? That's a nice marketoid speech for you to talk Internet-ignorant
people to get into e-commerce, but what does that have to do with my
question?

Can small business live from e-commerce today?


 
  Look at all the large corporations bleeding money and cutting staff.
  Mega-corporations are in decline, and their era is ending.  Long live
  the small business!
 
 What? Large business are being affected because the whole networking
 business is in recession.
 
 Large corporations don't know you or care about you as an individual
 customer.  You're just an account number to them.  The only thing they
 care about is the big sale to other big corporations.  But even
 then, do they really care?  Not in my experience.
 
 The networking recession is just one symptom of their disease.

Do you really believe that? As far as I can recall, this recession
started when a mean judge convicted Microsoft for anti-trust
practices. That caused NASDAQ crash that scared people away from
investing in tech company stocks. Many Internet companies dried and
without cash from the investors many went bankrupt. That affected all
the small or big corporations that have grown and were dependent on the
networking market. I don't think this affected much non-technological
companies, big or small. So I don't think  your anti-big corporations
speech has much to do with this.

Regards,
Manuel Lemos

-- 
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] The future of PHP

2001-08-24 Thread Navid Yar

There are big players who have an eye on the open-source market right now,
IBM being the biggest contributor. HP recently released their own Linux
version on their desktop PCs and is marketing them as we speak. Microsoft is
planning on giving away just part of their source code in their future
products to software developers. Everyone has felt the heat on Open Source
technology, and everyone knows it is the way to go.

The only thing that is missing from most Open Source products, probably
excluding PHP, is user-friendliness. There are a lot of computer illiterate
people out there that have gotten used to the click and drag features that
make using an application so easy, but they never dream of going into a
command line and typing in something. Right now Linux is easy to use thanks
to the abundance of different GUIs out there, but there is no standard, like
Windows has. Also it is harder to set-up for newbies than Windows is (not
really, but for the newbie it's a whole different world). It is a new
concept that users must grab in order to make good use of it. There must be
a way that people can link MS-like features into Linux a bit more so that at
least it will make it easier for people to make that transition over to a
different OS and try it out. After it has the market share it needs, users
will have gotten used to Linux or BSD or whatever and we can do what MS
does, promote a bunch of Linux-specific features into the OS. By that time
they will have grabbed the concept of free so much that Windows would
sound ridiculously pricey (especially the licensing). MS can't afford to
give it's OS away for free, just like it could give away it's IE browser and
break Netscape. That's why Open Source is the first real challenge for MS in
15 years.

THEN follows the marketing, where everyone will be backing up Linux because
of it's popularity and low cost, compared to Windows. And we'll see Bill
Gates crawling on his knees and selling his Ferraris to pay his mortgage.
Wouldn't I love to see that, just kidding. Until Linux gets better at
certain things, I think I have no choice but to stick with Windows for now
(especially in the design area). Anyway, that's my two cents worth.

Navid

P.S. -- When I say Linux, I mean all Open Source products, including PHP.
Linux is just the driving force. And Christopher, keep up the promotion of
PHP, you have some great ideas. I want it to grow as much as you do. Thanks
:)


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] The future of PHP


Hello,

Christopher Cm Allen wrote:

 
  I'm afraid that PHP is not yet very credible in that world. The truth is
  there is not great marketing force behind PHP like there is Sun behind
  Java or Microsoft behind .Net

 Good point, and how does one go about marketing a language that is
 open-source?

If you don't know it is because you are not very motivated to do it. So,
the first step is to convince and motivate yourself that PHP needs to be
marketed.

As for what to do, instead of suggesting new ideas, I would rather
recall some old ideas that always seemed to work well.

For instance, provide PHP users compensation. It does not need to be
financial compensation. It may be moral compensation as long as it is
real compensation.

For instance, if I am not mistaken, Guido Van Rossum, the Python
creator, sponsored a contest to develop software development tools with
cash prizes. Only a few won, but the contest attracted a lot of people
and was even mentioned in prestiged software development magazines like
Dr. Dobbs. This required some investment, but if you look around you
will not have much trouble to find a sponsor.

Another point is that they managed to get the media on their side. It
seems that in the PHP community there is little effort to appeal to
media. That is a major waste of oppiortunity because they can provide
some much marketing for free.

One free way to provide compensation to any PHP user is to promote their
work. 2 years ago I started a repository of PHP Classes of objects that
basically allow anybody to contribute regardless of the quality and
utility that you may attribute to what is contributed.

The point is that once users that anybody can have some fame to have his
work exposed to a large PHP audience (over 40.000 subscribers), they
want to contribute as well and the site grows thanks to the moral
compensation that it offers to any PHP user.

There are other class repositories, like the official PHP PEAR
repository, but the scope is different because the contributions are not
accepted arbitrarily, so you don't get as many contributors.

Other than that, PHP resources sites like these should be officially
linked altogether with things like Web rings. It would cause a much
better impression to newcomers or ceptic people as it would make PHP
more credible exposing the real level of support that the whole PHP

[PHP] `T_VARIABLE' or `'$''

2001-08-24 Thread Paul Roberts

I'm using preg_replace and getting the following error

parse error, expecting `T_VARIABLE' or `'$''

anyone know where I can find out abut them, I did a search of the manual but
nothing came up.

Paul Roberts

[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] limit 1

2001-08-24 Thread ERISEN, Mehmet Kamil

This is a sql question:
Limit is limiting number of records that will come out of
query. So, it would not work.

SELECT users.names
FROM  users, selection
Where  users.name = selection.name   
and   setting =   'on' ;

you could use 
SELECT DISTINCT users.names
FROM  users, selection
Where  users.name = selection.name   
and   setting =   'on' ;

or 
SELECT users.names
FROM  users, selection
Where  users.name = selection.name   
and   setting =   'on' 
group by users.names




--- Jeremy Morano [EMAIL PROTECTED] wrote:
 
 Hi,
 
 
 I wondering if it was possible to use limit on part of a
 query and not all.
 
 
 
 
 this is my query which works the way it should.
 
 $sql = SELECT users.names
   FROM  users, selection
   Where  users.name = selection.name   
   and   setting =
 'on' 
   ;
 
 
 
 
 What I would like to do is put a limit of 1 to only this
 part - setting
 = 'on' limit 1 --- and not on the rest.
 
 You see, there are many users.name that have a setting =
 'on'I
 want, ALL those names , ONLY once..
 
 How do I 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]
 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] `T_VARIABLE' or `'$''

2001-08-24 Thread Ken

At 02:31 PM 8/24/01 +0100, Paul Roberts wrote:
I'm using preg_replace and getting the following error

parse error, expecting `T_VARIABLE' or `'$''

This sounds like PHP was expecting a variable name somewhere where you didn't provide 
one.  Perhaps you left off a $ before a variable name.

It might not be in your preg_replace call.

- Ken
[EMAIL PROTECTED]
ken's last ever radio extravaganza http://free-music.com/ken/extrav/

anyone know where I can find out abut them, I did a search of the manual but
nothing came up.

Paul Roberts

[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how can i cache php scripts enterpretet

2001-08-24 Thread Ken

At 06:29 PM 8/24/01 +0200, Ralph Deffke wrote:
I have developed a web portal for big compamies with a lot of traffic on
their pages. main functions, like member authentication etc. are called
on every page request. it would make sence to have them ready
enterpretet to skip enterpretation on each request. i know that there
are tools arround like Zent Cache. however they require an
recompilation/binding on the server. but this is on such big corporate
servers almost impossible.

Does anybody know a solution for that ?

Try Alternative PHP Cache, open source:
http://apc.communityconnect.com/

- Ken
[EMAIL PROTECTED]
ken's last ever radio extravaganza http://free-music.com/ken/extrav/


-- 
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] The future of PHP

2001-08-24 Thread Egan

On Fri, 24 Aug 2001 16:30:04 -0300, Manuel Lemos [EMAIL PROTECTED]
wrote:
 
Can small business live from e-commerce today?

What is the relevance of your question?  Do businesses live from
their telephone?  Whether they do or not, they need it in either case.


Do you really believe that? As far as I can recall, this recession
started when a mean judge convicted Microsoft for anti-trust
practices. That caused NASDAQ crash that scared people away from
investing in tech company stocks.


One mean judge all by himself, caused the NASDAQ crash, eh?

I am surely astounded to learn that!  Good day and goodbye!



Egan



-- 
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] The future of PHP

2001-08-24 Thread Sean C. McCarthy

Manuel Lemos wrote:
 
 Do you really believe that? As far as I can recall, this recession
 started when a mean judge convicted Microsoft for anti-trust
 practices. That caused NASDAQ crash that scared people away from
 investing in tech company stocks. Many Internet companies dried and
 without cash from the investors many went bankrupt. That affected all
 the small or big corporations that have grown and were dependent on the
 networking market. I don't think this affected much non-technological
 companies, big or small. So I don't think  your anti-big corporations
 speech has much to do with this.
 
 Regards,
 Manuel Lemos
 

No, recesion on the new economy started as the fact that the .com (or
dotcommers) companies did not develop with their market spectations.
Shareholders then started to not give any more credit to bussines
expectations and speculation stopped. Quarter after quarter with cash
looses, and even worse return on investement expectations, made the
shareholders move the money out of those companies and their confidence.
It is the way the dotcommers made bussines and SE speculation what
caused this problem.

Just as a point travelprice.com just announced that this is the first
quarter without losses before taxes. It just happened that they have
applied normal bussines strategies and bussines models.

Also the effect that this downturn is going through all the chain, from
transportation to food and goods. And BTW most companies that caused
this were startups not really big companies. Much more information on
this can be found on the Wall Street Journal.

Sean C. McCarthy
SCI, S.L. (www.sci-spain.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]




  1   2   >