Re: [PHP] while loop

2001-04-10 Thread Brian Clark


Hi Jacky,

@ 2:11:06 PM on 4/10/2001, Jacky@lilst wrote:

 Not in the actual code, sorry, I did not copy the opnneing bit, but there is
 one in the code.
 So the same question, I got error said, maximum execution time exceed, am I
 doing something time consuming here?

Unless I'm blind this morning, I don't believe so.

Try this and see what you get:

?php

$query = "SELECT * FROM MiniOffers";
$result = @mysql_query($query, $connection) or die(mysql_error());

while($row = @mysql_fetch_array($result))
{
   $IsAva = $row[6];
}

?

...
 @ 1:58:40 PM on 4/10/2001, Jacky@lilst wrote:

  Here I got this script:

  $queryoffers = "SELECT * FROM MiniOffers WHERE hotel_id = '$hotelID'
  ORDER BY start_date ASC";
  $resultofrs  = mysql_query($queryoffers, $connection) or
 die(mysql_error());

while($row = mysql_fetch_array($resultofrs))

 Are you missing the opening curly brace in the actual code?

   $IsAva = $row[6];
   }
...


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Wen Ni

I got an example from the internet about the PHP page counter.  However
after several testing on the coding, I still met the problem which I
don't understand.  Please help me.

?
$counter_file =
"/home/venus/public_html/qa/doccon/doc_distribution/count.txt";

$counter_file_line = file($counter_file);

$counter_file_line[0]++;

print "counter=$counter_file_line\n";
$cf = fopen($counter_file,"w");
fputs($cf, "$counter_file_line[0]");
fclose($cf);

echo $counter_file_line[0];

?

problems:

Warning:
fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
- Permission denied in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 10

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 11




Thanks

from: Wendy


-- 
PHP General Mailing List (http://www.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] while loop

2001-04-10 Thread Zeus

That was detailed :)

Thanks Jack, it fixed my misconception of the = and == operators.

BUT ...

 mysql_fetch_array keeps track of where it is in the array.
 after each while loop it moves a 'step ahead' in the result

the mysql_fetch_array fetches the results in an array but should it be an
one time affair ?



-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Jack Dempsey

 Warning:
 fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
 - Permission denied in
 /home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9

Check your permissions on the file. If its just a counter file, the
easiest thing to do would be to make it world writeable. chmod 777
count.txt. you should then have the perms to write to it.

-jack

-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Brian Clark


Hi Wendy,

@ 1:38:45 AM on 4/10/2001, Wen Ni wrote:

 I got an example from the internet about the PHP page counter.  However
 after several testing on the coding, I still met the problem which I
 don't understand.  Please help me.

...
 "/home/venus/public_html/qa/doccon/doc_distribution/count.txt";

...
 Warning:
 fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
 - Permission denied in
 /home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9

The file:

/home/venus/public_html/qa/doccon/doc_distribution/count.txt

Has to be writable by the user the web server is running as. Typically
www or nobody.


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Brian Clark


Hi Jack,

@ 2:44:51 AM on 4/10/2001, Jack Dempsey wrote:

...
 Check your permissions on the file. If its just a counter file, the
 easiest thing to do would be to make it world writeable. chmod 777
 count.txt. you should then have the perms to write to it.

777 is world writable. Bad idea. Maybe not for a simple counter file,
but I wouldn't get into the habit of doing that.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Keyur Kalaria

Hi wen,

Make sure that the counter file is readable by the user apache or user
nobody which ever is your default webserver user. If it is not then just
chown it to nobody or chmod it to 777 and you are done.

Keyur


- Original Message -
From: "Keyur Kalaria" [EMAIL PROTECTED]
To: "Wen Ni" [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 12:25 PM
Subject: Re: [PHP] page counter


 Hi

 Make sure that the counter file is readable by the user apache or user
 nobody which ever is your default webserver user.
 If it is not then just chown it to nobody or chmod it to 777 and you are
 done.

 Keyur




 - Original Message -
 From: "Wen Ni" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 10, 2001 11:08 AM
 Subject: [PHP] page counter


  I got an example from the internet about the PHP page counter.  However
  after several testing on the coding, I still met the problem which I
  don't understand.  Please help me.
 
  ?
  $counter_file =
  "/home/venus/public_html/qa/doccon/doc_distribution/count.txt";
 
  $counter_file_line = file($counter_file);
 
  $counter_file_line[0]++;
 
  print "counter=$counter_file_line\n";
  $cf = fopen($counter_file,"w");
  fputs($cf, "$counter_file_line[0]");
  fclose($cf);
 
  echo $counter_file_line[0];
 
  ?
 
  problems:
 
  Warning:
 
fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
  - Permission denied in
  /home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9
 
  Warning: Unable to find file identifier 0 in
  /home/venus/public_html/qa/doccon/doc_distribution/New.php on line 10
 
  Warning: Unable to find file identifier 0 in
  /home/venus/public_html/qa/doccon/doc_distribution/New.php on line 11
 
 
  
 
  Thanks
 
  from: Wendy
 


 --
--
 


  --
  PHP General Mailing List (http://www.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] test

2001-04-10 Thread Ralph Guzman

...



-- 
PHP General Mailing List (http://www.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] while loop

2001-04-10 Thread Jack Dempsey

Zeus wrote:
 
 That was detailed :)
 
 Thanks Jack, it fixed my misconception of the = and == operators.
 
 BUT ...
 
  mysql_fetch_array keeps track of where it is in the array.
  after each while loop it moves a 'step ahead' in the result
 
 the mysql_fetch_array fetches the results in an array but should it be an
 one time affair ?

hey,

i'm not sure i follow the 'should it be an one time affair' question...
if should be a X time affair, where X is the amount of rows returned
from mysql.
if you're wondering about the = and it being a 'one time' thing...well,
it is, but since its stuck in a while loop, it used 'once' again and
again...if that's not TOO confusing...
i think of it the same way as something like this:
$count=0;
while($count++10){
echo "count is $count";
}
the increment operater is a 'one time' operation, but used in a loop,
it'll keep going...
same if you had this...
while(($count+=1)10){
echo "count is $count";
}
(except of course the second loop cuts off before 10...)

this help?

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




Re: [PHP] page counter

2001-04-10 Thread Chris Aitken

At 12:28 PM 10/04/2001, you wrote:
Hi wen,

Make sure that the counter file is readable by the user apache or user
nobody which ever is your default webserver user. If it is not then just
chown it to nobody or chmod it to 777 and you are done.


The catch 22 is..

If you want security then its best to change the ownership to be the same 
as the webserver. But the problem is, if you dont have root permissions on 
the box, you cant change the ownership (or if you can, you cant change it 
back once its done).

I have root access on the machines I work on so its not a problem, but a 
regular user may not have this ability to change it.


Chris



--
   Chris Aitken - Webmaster/Database Designer - IDEAL Internet
email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
 

   Unix -- because a computer's a terrible thing to waste!


-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Jack Dempsey

yes yes, bad habit i know ;-) but tis only a counter file...
sometimes it probably is just better to explain the SLIGHTLY more
complex solution in favor of starting a bad habit :-)

all the best,
jack

Brian Clark wrote:
 
 Hi Jack,
 
 @ 2:44:51 AM on 4/10/2001, Jack Dempsey wrote:
 
 ...
  Check your permissions on the file. If its just a counter file, the
  easiest thing to do would be to make it world writeable. chmod 777
  count.txt. you should then have the perms to write to it.
 
 777 is world writable. Bad idea. Maybe not for a simple counter file,
 but I wouldn't get into the habit of doing that.
 
 -Brian
 --
  PGP is spoken here: 0xE4D0C7C8
  Please do not carbon copy me on list replies.
 
 --
 PHP General Mailing List (http://www.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] what could cause the maximum execution time exceeded?

2001-04-10 Thread B. van Ouwerkerk

At 11:02 10-4-01 -0500, Jacky wrote:
Hi people
I ran a PHP page and there was an error said below:
Fatal error  Maximum execution time of 30 seconds exceeded in 
include/getRoomDesc.php4
What could cause this??

The rain??!! HOW should we know without some code.. You can post it or 
put it in a .txt file and give us a link..

Uhm.. The problem might be caused by a slow response from the 
databaseserver.. seems to happen if an ISP's server is crowded.
Could also happen if you try to connect to a remote source..

Bye,


B.


-- 
PHP General Mailing List (http://www.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] Finer points of debugging: vardump vs. print_r

2001-04-10 Thread John

Hi Morgan,

You tip is fantastic. Will post it (with your permission) at my weblog,
http://php.weblogs.com/ tomorrow.

Regards, John

"Morgan Curley" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I generally include the following function:
  function dump( $label, $input ){
  echo( "PRE" );
  echo( "H2$label/H2\n" );
  print_r( $input );
  echo( "/PRE" );
  return 1;
  }

 or if you like javascript this pops up an alert wherever you insert the
 dump call in your page
  function dump( $label, $input ){
  ob_start();
  print_r( $input );
  $gc = ob_get_contents();
  ob_end_clean();

  $gc = preg_replace( "/'/", "\\'", $gc );
  $gc = preg_replace( '/\n/', '\\n', $gc );
  echo( "scriptalert( '$label\\n".$gc."' );/script" );
  return 1;
  }

 then for simple debugging I call
 dump( "My Label", $my_var );

 With the javascript you can do some cool things like having divs generated
 per $label.

 morgan



 At 02:26 PM 4/9/2001, you wrote:
 Just a question that has been besetting me for a while:
 
 which is better for debugging -- vardump( ) or print( ) ?
 
 Does anyone have a preference? Why? Is one better than the other?
 Thanks for answering this prickly question!
 
 John Lim
 
 
 
 --
 PHP General Mailing List (http://www.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] while loop

2001-04-10 Thread Philip Olson

What does this do :

?php

  error_reporting(E_ALL);

  $q = "SELECT * 
FROM MiniOffers 
WHERE hotel_id = '$hotelID' 
ORDER BY start_date ASC";

  $r = mysql_query($q);

  if ($r == true) {

while ($row = mysql_fetch_array($r)) {
echo $row['start_date'] .'br';
}

  } else {

  echo ' no result '. mysql_error();
  }  

?

Regards,
Philip


On Tue, 10 Apr 2001, Jacky@lilst wrote:

 Here I got this script:
 
 $queryoffers = "SELECT * FROM MiniOffers WHERE hotel_id = '$hotelID' ORDER
 BY start_date ASC";
 $resultofrs  = mysql_query($queryoffers, $connection) or die(mysql_error());
 
   while($row = mysql_fetch_array($resultofrs))
 
 
  $IsAva = $row[6];
  }
 
 and it keep saying "maximum execution time exceeded 30 secs", am I doing
 something time consuming here? There are only 2 records in the table.
 cheers
 Jack
 [EMAIL PROTECTED]
 "There is nothing more rewarding than reaching the goal you set for
 yourself"
 - Original Message -
 From: Zeus [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; Michael Hall [EMAIL PROTECTED];
 Jacky [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, April 10, 2001 12:58 AM
 Subject: Re: [PHP] while loop
 
 
  Isn't the '=' operator suppose to be used for assigning and not for
  evaluation.
 
  I thought '==' should be used in this context?
 
  Zeus
  - Original Message -
  From: David Robley [EMAIL PROTECTED]
  To: Zeus [EMAIL PROTECTED]; Michael Hall [EMAIL PROTECTED];
 Jacky
  [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Tuesday, 10 April, 2001 1:53 PM
  Subject: Re: [PHP] while loop
 
 
   On Tue, 10 Apr 2001 15:16, Zeus wrote:
 $query = mysql_query("some SQL here");
 while ($row = mysql_fetch_array($query)) {
 do stuff;
 }
   
Isn't this suppose to be an infinite loop?
   
while ($row is assigned to mysql_fetch_array($query)) {
do stuffs;
}
   
someone correct me if I'm wrong?
   
Zeus
  
   Consider yourself corrected :-) mysql_fetch-array returns an array
   corresponding to the fetched row, or _false if there are no more rows_
  
   So as soon as there are no more rows, $row = mysql_fetch_array($query)
   evaluates to false and the while exits.
  
   --
   David Robley| WEBMASTER  Mail List Admin
   RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
   AusEinet| http://auseinet.flinders.edu.au/
   Flinders University, ADELAIDE, SOUTH AUSTRALIA
 
 
  --
  PHP General Mailing List (http://www.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] Supplied argument is not a valid MySQL result resource

2001-04-10 Thread Plutarck

That means that your mysql_query probably returned an error.

It should do that only when you screw up your syntax.

echo/print out the syntax used in your query, and post it here. That is
probably the problem you are having.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Nathan Roberts"" [EMAIL PROTECTED] wrote in message
9atdps$kgv$[EMAIL PROTECTED]">news:9atdps$kgv$[EMAIL PROTECTED]...
 I am trying to get to grips with managing data in mysql, am am currentky
 working on deleting records

 I have worked through a turorial - no problems, but now I am trying to
apply
 it to my own database, I am getting the error
 Warning: Supplied argument is not a valid MySQL result resource in  on
 line 14

 I cannot see what is causing it - if anyone can it would be much
 appreciated.

 thanks

 Nathan

 For clarity/brevity I have cut the page back to what i beleive to be the
 relivant part. Code for page is:-

 html

 body

 ?php

 $db = mysql_connect("localhost", "username", "pasword");

 mysql_select_db("catalogue",$db);


 $result = mysql_query("SELECT * FROM SECTIONS",$db);

 while ($myrow = mysql_fetch_array($result)) {

   printf("a href=\"%s?section_id=%s\"%s %s/a \n", $PHP_SELF,
 $myrow["section_id"], $myrow["section_name"], $myrow["section"]);

printf("a href=\"%s?id=%sdelete=yes\"(DELETE)/abr", $PHP_SELF,
 $myrow["section_id"]);

 }


   ?



 /body

 /html


 SQL for the table is

 CREATE TABLE SECTIONS (
section_name varchar(25) NOT NULL,
section_id tinyint(3) unsigned DEFAULT '0' NOT NULL auto_increment,
section char(1) NOT NULL,
PRIMARY KEY (section_id),
UNIQUE section (section_name, section_id, section)




 --
 PHP General Mailing List (http://www.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] huge PHP file, hardcore processing

2001-04-10 Thread Plutarck

Note: if you hit the stop button and php doesn't stop, that probably means
it's either in the middle of a query and can't stop, or more likely it means
that "ignore.user.abort" has been set to true.

Turn off ignore user abort in your php.ini, and that should solve your
problem.


As for accessing any database on any system configuration, yes PHP can do
it. You can have a DB running on a Super Nintendo accessed by PHP on a
FreeBSD box, and it should work fine. ;)

In other words it doesn't matter what platform it's running on...in a
perfect world.


--
Plutarck
Should be working on something...
...but forgot what it was.


"Christian Dechery" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have a huge (at least I think, for a script anyway) PHP script... it is
 over 1.000 lines of code.
 And it updates (do an entire DELETE-ALL / LOAD-ALL) an SQL Server database
 (over 35MB). It runs for over an hour (sometimes 2hs)... and I divided it
 into steps... so each step is a function in the script that when is over
 calls a javascript function that reloads the script to the next step.

 I was wondering if this is enough to get a good 'memory-cleaning'. Or it
 would be better to have lots of files (in total, there are 27 separate
 steps). I began noticing some processing slowness after the first 35
 mins... it get's 'tired'. The script starts running and with
 ob_implicit_flush() on, the output is flushed almost at real time... but
 after 10 or 12 steps it starts to get slow and do NO FLUSHING at all...
 only showing the entire output at once after the whole step has ended.
 Should I split it into files? Is because it's running on (eek!) IIS? Maybe
 the size of the file is getting in the way?

 Can someone help me out?

 Ah... one other thing. Has anybody experienced very weird behaviours of
PHP
 with IIS? Sometimes I press 'stop' at the browser but PHP is still
running.
 I can see it eating up memory in the TaskManager. And it won't stop until
I
 kill it. And the most weird part is, as soon as I call a script (any
 script) PHP returns to the TaskManager with the same amount of memory it
 had when it was running tha massive script mentioned above. Does IIS
really
 suck, or is there something very wrong with my config?
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer


 --
 PHP General Mailing List (http://www.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] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread \[Intent A/S\] Tais M. Hansen

Hi,

Well... I don't know if this is any help but I ran your code under PHP/4.0b4
and got:

"brbrInside2 brInside2 brInside2 "

Seems right to me?


--
--
Intent A/S

Tais M. Hansen
Web Developer

""Plutarck"" [EMAIL PROTECTED] wrote in message
9asamr$865$[EMAIL PROTECTED]">news:9asamr$865$[EMAIL PROTECTED]...
 If I were any more confused my head would split open. This just plain
makes
 no sense, and I'm wondering if it's just a bug in PHP.
 Consider the following code:
 ...




-- 
PHP General Mailing List (http://www.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] Back Button Dilemma's

2001-04-10 Thread Plutarck

If you know javascript, you might try something like history.go(20) on each
page.

It _should_ cause the user to catapult forward in their history list each
time they load the page. If they haven't used their back button, then having
javascript "push" their forward button should do nothing.

That keeps them from going back and changing a selection.

The other way is when someone submits the page, save that data so that if
the person resubmits the page not only are the changes ignored, but they are
redirected to the page they should be on.

Or ideally you can just make the whole thing in one php page. When someone
submits their info, save it and give them the next form. (the best way to do
it)

Or you could just use the good ole fashion flash applet, which breaks most
people's back buttons :) (that can be gotten around, of course, and only
happens on some peoples systems)


--
Plutarck
Should be working on something...
...but forgot what it was.


""RealGM"" [EMAIL PROTECTED] wrote in message
009901c0c17f$ed066300$9d14c9cb@m3g7o5">news:009901c0c17f$ed066300$9d14c9cb@m3g7o5...
Hi Guys,

I know everywhere it says that it is not possible to actually disable the
back button, and people have offered some solutions that have not worked for
me, this is why I am emailing this list.

I have a form which displays the same page with new content (controlled by a
counter) in a loop until an exit point is reached.  When the user clicks
back on the browser the counter still increments and the screen continues
like the user pressed the continue button (which is the process I want the
user to take).  The problem is the user did not make a selection and this is
where the problem lies (it takes the default, which throws the whole process
out of whack).

The question I am asking is how can I prevent the user trying to go back?
Is there any code out there which can counter this action (and not cause my
counter to increment, thus moving the user to the next screen)?  Is there
any way to detect that the back button/option has been selected and display
a "warning" type page before going back to where the user is?  The forward
counter action does not really fix my problem.

Thanks,
Michael.

Chief Information Officer,
RealGM, Inc.
http://www.realgm.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] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread Plutarck

Odd...well I still don't have a clue how to do what I wanted, but I recoded
it and now it works.

I just run HTTP_POST_VARS, HTTP_GET_VARS, and HTTP_COOKIE_VARS through a
special function that refines all the data. No errors, no bugs, no problem
:)

Thanks anway...maybe I'll figure out what's going on some day, lol.


--
Plutarck
Should be working on something...
...but forgot what it was.


""[Intent A/S] Tais M. Hansen"" [EMAIL PROTECTED] wrote in message
9auc2k$e5c$[EMAIL PROTECTED]">news:9auc2k$e5c$[EMAIL PROTECTED]...
 Hi,

 Well... I don't know if this is any help but I ran your code under
PHP/4.0b4
 and got:

 "brbrInside2 brInside2 brInside2 "

 Seems right to me?


 --
 --
 Intent A/S

 Tais M. Hansen
 Web Developer

 ""Plutarck"" [EMAIL PROTECTED] wrote in message
 9asamr$865$[EMAIL PROTECTED]">news:9asamr$865$[EMAIL PROTECTED]...
  If I were any more confused my head would split open. This just plain
 makes
  no sense, and I'm wondering if it's just a bug in PHP.
  Consider the following code:
  ...




 --
 PHP General Mailing List (http://www.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] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread \[Intent A/S\] Tais M. Hansen

Actually I ran it under PHP/4.0.4pl1! Forgot which server I were using! ;)

But great that you got it working! I too hate seemingly illogical errors! :)

--
--
Intent A/S

Tais M. Hansen
Web Developer

""Plutarck"" [EMAIL PROTECTED] wrote in message
9auchs$jku$[EMAIL PROTECTED]">news:9auchs$jku$[EMAIL PROTECTED]...
 Odd...well I still don't have a clue how to do what I wanted, but I
recoded
 it and now it works.

 I just run HTTP_POST_VARS, HTTP_GET_VARS, and HTTP_COOKIE_VARS through a
 special function that refines all the data. No errors, no bugs, no problem
 :)

 Thanks anway...maybe I'll figure out what's going on some day, lol.




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




[PHP-CVS] cvs: php4 /pear/DB common.php

2001-04-10 Thread Martin Jansen

mj  Tue Apr 10 01:03:47 2001 EDT

  Modified files:  
/php4/pear/DB   common.php 
  Log:
  fixed typo in inline docs
  
  
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.42 php4/pear/DB/common.php:1.43
--- php4/pear/DB/common.php:1.42Mon Mar 26 16:57:24 2001
+++ php4/pear/DB/common.php Tue Apr 10 01:03:46 2001
@@ -671,7 +671,7 @@
  * '3' = 'three',
  *  )
  *
- * ...while the call getAssoc('SELECT id,text,date FROM mydate') returns:
+ * ...while the call getAssoc('SELECT id,text,date FROM mytable') returns:
  *   array(
  * '1' = array('one', '944679408'),
  * '2' = array('two', '944679408'),



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




Re: [PHP] while loop

2001-04-10 Thread Yasuo Ohgaki

  On Tue, 10 Apr 2001 15:16, Zeus wrote:
$query = mysql_query("some SQL here");
while ($row = mysql_fetch_array($query)) {

This line is the same as do

while( ($row = mysql_fetch_array($query)) == TRUE) {

Common coding style in C/C++ and PHP :)

Regards,
--
Yasuo Ohgaki

""Zeus"" [EMAIL PROTECTED] wrote in message
00b601c0c183$55647f60$4f7618d2@zeus">news:00b601c0c183$55647f60$4f7618d2@zeus...
 Isn't the '=' operator suppose to be used for assigning and not for
 evaluation.

 I thought '==' should be used in this context?

 Zeus
 - Original Message -
 From: David Robley [EMAIL PROTECTED]
 To: Zeus [EMAIL PROTECTED]; Michael Hall [EMAIL PROTECTED]; Jacky
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, 10 April, 2001 1:53 PM
 Subject: Re: [PHP] while loop


  On Tue, 10 Apr 2001 15:16, Zeus wrote:
$query = mysql_query("some SQL here");
while ($row = mysql_fetch_array($query)) {
do stuff;
}
  
   Isn't this suppose to be an infinite loop?
  
   while ($row is assigned to mysql_fetch_array($query)) {
   do stuffs;
   }
  
   someone correct me if I'm wrong?
  
   Zeus
 
  Consider yourself corrected :-) mysql_fetch-array returns an array
  corresponding to the fetched row, or _false if there are no more rows_
 
  So as soon as there are no more rows, $row = mysql_fetch_array($query)
  evaluates to false and the while exits.
 
  --
  David Robley| WEBMASTER  Mail List Admin
  RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
  AusEinet| http://auseinet.flinders.edu.au/
  Flinders University, ADELAIDE, SOUTH AUSTRALIA


 --
 PHP General Mailing List (http://www.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] what could cause the maximum execution time exceeded?

2001-04-10 Thread Rahul Bhide

Just wondering ---if your question means . Where is the time limit set ?
then the answer is ---php.ini file (usually sitting in the /usr/local/lib
directory) .

please ignore if I interpreted the question wrong !!.
bye,
~Rahul

"B. van Ouwerkerk" wrote:

 At 11:02 10-4-01 -0500, Jacky wrote:
 Hi people
 I ran a PHP page and there was an error said below:
 Fatal error  Maximum execution time of 30 seconds exceeded in
 include/getRoomDesc.php4
 What could cause this??

 The rain??!! HOW should we know without some code.. You can post it or
 put it in a .txt file and give us a link..

 Uhm.. The problem might be caused by a slow response from the
 databaseserver.. seems to happen if an ISP's server is crowded.
 Could also happen if you try to connect to a remote source..

 Bye,

 B.

 --
 PHP General Mailing List (http://www.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] $8/mo php hosting on 24/7, OC3+ web server

2001-04-10 Thread Jeffrey Greer

Hello,

I am offering php hosting with features at a price no one else has, as
far as I know.  I'm not going to create a giant web hosting service.
I'm doing this to pay for my web portal.

- This web portal has been operated by the same person (my partner)
for over four years. I have been a co-administrator for about six
months.
- this is on a dedicated server with OC3+ connection, bandwidth is
guaranteed
- 24/7 uptime is guaranteed, last reboot was 2/12/01. This site will
not be down for more than one hour per year.
- The computer running this site is at a web server farm in a
protected building. Any hardware that fails is replaced immediately.
- no bandwidth sucking sites are allowed, e.g. porno, fileserver,
video, etc.
- php 4.02 is installed
- perl 5.0x and DBI are installed
- MySQL 3.23.32 and PostgreSQL 7.0.3 are set up
- You get a total of two databases
- You get five email addresses, telnet, ssh, and ftp access
- I will set up your domain name for an extra $15 or you can put your
site at www.singlesconnection.org/your username
- you get 40MB of hd space
- webserver is Apache 1.3.12 and Red Hat Linux with kernel 2.2.18
- hardware - Pentium II with 128MB ram, scsi hard drive


My name is Jeffrey Greer. You can mail me at
[EMAIL PROTECTED]
You can view more info at
http://www.singlesconnection.org/services/php_hosting.php

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
PHP General Mailing List (http://www.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] Why my php page will reply session expire when the use press back button?

2001-04-10 Thread Carfield Yim

  Why my php page will reply "session expire" when the use press back
  button? And then all the information in the form that user fill is lost,
  how can I fix this? thx
 

 Set your session.cache_limitter to private and set some reasonable expration
 time for session.cache_expire.


The above solution solve my "session expire" problem long ago, but recent I
discover there is another problem.
If I set the session.cache_limitter to "private" or "public", I find that IE will
cache the login message of each page incorrectly.
i.e.: In every page of my site, I will put a message like: "Hi, user XXX" in the
heading. But even the user is logout or login with other username like "YYY",
there is still message "Hi, user XXX" is SOME of the pages. There is no such
problem in Netscape, and the problem persist even if I set "check if there is
newer version of page every time visit" in IE. How can I fix this problem?


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




Re: [PHP] Sorry - Way OT but I need help

2001-04-10 Thread Andy Woolley

RE: [PHP] Sorry - Way OT but I need helpIf you place something like:

ErrorDocument 404 /errors/404.php

inside your .htaccess file and then create a file called 404.php in the
errors directory it should work.

You can also echo plain text to he screen using

ErrorDocument 404 "Error Message Goes Here."

HTH

Andy Woolley
www.databasewatch.com


- Original Message -
From: Boget, Chris
To: 'Andy Woolley' ; [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 7:57 PM
Subject: RE: [PHP] Sorry - Way OT but I need help


 I know this has nowt to do with PHP so I'll keep it as short
 as possible.
 My problem is, I'd like to get 404 error redirecting to work
 in IE under Apache. I've set the ErrorDocument in apache.conf
 and in .htaccess. It works in Netscape et al but not in IE.
 IE seems to be issuing it's own error page. I know there must
 be a config somewhere other than the client side "Show friendly
 error messages", but can't seem to find it. I have RTFM and
 scanned the Web but still not found it. Hope you can help.
 Once again I apologize for being Off Topic.

Does someone have an example of how to do this within .htaccess?
I've tried everything and all I ever get is an Internal Server Error
when the .htaccess file is in place... :/

Chris


-- 
PHP General Mailing List (http://www.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 - html

2001-04-10 Thread ewoong

Hello.. ^^

I am trying to save results for php files.

for example..

I create abc.php3 following as..

 # abc.php3

 ?
 echo ("hello");
 ?

If I run abc.php3 , the results is ..

   hello.


 So..

 How can I this results to save file.

 # abc.html

   hello



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




Re: [PHP-CVS] cvs: php4 /ext/mcrypt mcrypt.c

2001-04-10 Thread Derick Rethans

Hello Guys,

do you think this should be merged to the 4.0.5 branch? Otherwise Blowfish
(and others) encrypted get initialised with a too long key. That caused
them to be not compatible with encryptions/decryptions made by other
programs.

The second fix fixes a vulnarability in the assembly of the minfo lines.

Derick

On Tue, 10 Apr 2001, Derick Rethans wrote:

 /php4/ext/mcrypt  mcrypt.c
   Log:
   - Fix for bug #8839
   - MINFO updated to use smart_str's


Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-
JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED]
 Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
-


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




Re: [PHP] Back Button Dilemma's

2001-04-10 Thread Robert Vetter



RealGM wrote:
 
 Hi Guys,
 
 I know everywhere it says that it is not possible to actually disable the back 
button, and people have offered some solutions that have not worked for me, this is 
why I am emailing this list.
 
 I have a form which displays the same page with new content (controlled by a 
counter) in a loop until an exit point is reached.  When the user clicks back on the 
browser the counter still increments and the screen continues like the user pressed 
the continue button (which is the process I want the user to take).  The problem is 
the user did not make a selection and this is where the problem lies (it takes the 
default, which throws the whole process out of whack).

Before I can help you:
How did you programm the counter? Do you forward it in a HTML-form to
the PHP script? Or do you use the counter only server-side?
Please attach the code.

Robert

-- 
PHP General Mailing List (http://www.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 - html

2001-04-10 Thread Renze Munnik

ewoong wrote:
 
 Hello.. ^^
 
 I am trying to save results for php files.
 
 for example..
 
 I create abc.php3 following as..
 
  # abc.php3
 
  ?
  echo ("hello");
  ?
 
 If I run abc.php3 , the results is ..
 
hello.
 
  So..
 
  How can I this results to save file.
 
  # abc.html
 
hello
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


Check the manual!

"Filesystem functions"

-- 

* RzE:

***
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***

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




[PHP] can't restart apache, help needed

2001-04-10 Thread Thomas Angst

Hello to all,

I have SuSE 7.1 installed and PHP4 source downloaded from www.php.net
after
./configure --with-axps=/usr/sbin/apxs
make
make install and
/etc/init.d/apache restart
is the http server no more starteable.
what's going wrong here, I didn't have any problems with the older version
of the suse linux and PHP4, if anyone has an idea how to rerun the apache
without a completly new compilation of it please tell me

thanks and
best regards
Thomas


-- 
PHP General Mailing List (http://www.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] page counter

2001-04-10 Thread Jean-Arthur Silve

In addition of all people said, I would add a lock to the file :
$cf = fopen($counter_file,"w");

flock($cf,LOCK_EX);

fputs($cf, "$counter_file_line[0]");
fclose($cf);

This to avoid another script attempt to read the file while you update it...
I had the problem, so sometimes the counter return to zero...

jean-arthur



At 13:38 10/04/01 +0800, Wen Ni wrote:
I got an example from the internet about the PHP page counter.  However
after several testing on the coding, I still met the problem which I
don't understand.  Please help me.

?
$counter_file =
"/home/venus/public_html/qa/doccon/doc_distribution/count.txt";

$counter_file_line = file($counter_file);

$counter_file_line[0]++;

print "counter=$counter_file_line\n";
$cf = fopen($counter_file,"w");
fputs($cf, "$counter_file_line[0]");
fclose($cf);

echo $counter_file_line[0];

?

problems:

Warning:
fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
- Permission denied in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 10

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 11




Thanks

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


EuroVox
4, place Flix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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




Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Felix Kronlage

On Tue, Apr 10, 2001 at 12:02:45PM +0200, Thomas Angst wrote:

 /etc/init.d/apache restart
 is the http server no more starteable.
 what's going wrong here, I didn't have any problems with the older version
 of the suse linux and PHP4, if anyone has an idea how to rerun the apache
 without a completly new compilation of it please tell me

what do the logs say? (error-log of apache)
what does 'httpd -X' do?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


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




Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Alexander Wagner

Thomas Angst wrote:
 ./configure --with-axps=/usr/sbin/apxs
 make
 make install and
 /etc/init.d/apache restart
 is the http server no more starteable.

What is the exact error-message? What does 
/sbin/init.d/apache configtest
say?

regards
Wagner

-- 
Assumption is the mother of all fuck-ups.

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




Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jani Taskinen


Have you tested it on Linux, FreeBSD, OpenBSD... ? :)
If you know for sure it will work on these, go ahead.

--Jani

On Mon, 9 Apr 2001, Jason Greene wrote:

Everyone,

Can I merge this into the current RC? This should not cause
any problems.

-Jason

- Original Message -
From: "Jason Greene" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 10:16 PM
Subject: [PHP-CVS] cvs: php4 /ext/sockets sockets.c


 jason Mon Apr  9 20:16:06 2001 EDT

   Modified files:
 /php4/ext/sockets sockets.c
   Log:
   Fix for PR #9729, 9664, 9656, 8667.
   All compilers on Solaris should build this extension correctly now.
   It turns out the SUN CC, by default, enables a define that enables the use of
   #pragma redefine extname in sun header files. This is why cc would work,
   and gcc wouldn't.

   -Jason


 Index: php4/ext/sockets/sockets.c
 diff -u php4/ext/sockets/sockets.c:1.33 php4/ext/sockets/sockets.c:1.34
 --- php4/ext/sockets/sockets.c:1.33 Thu Mar 22 05:16:58 2001
 +++ php4/ext/sockets/sockets.c Mon Apr  9 20:16:05 2001
 @@ -17,7 +17,7 @@
 +--+
   */

 -/* $Id: sockets.c,v 1.33 2001/03/22 13:16:58 sniper Exp $ */
 +/* $Id: sockets.c,v 1.34 2001/04/10 03:16:05 jason Exp $ */

  #include "php.h"

 @@ -34,6 +34,10 @@
  #define _XOPEN_SOURCE_EXTENDED
  #define _XPG4_2
  #define __EXTENSIONS__
 +
 +#ifndef __PRAGMA_REDEFINE_EXTNAME
 +#define __PRAGMA_REDEFINE_EXTNAME
 +#endif

  #include "ext/standard/info.h"
  #include "php_sockets.h"



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




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




[PHP] what does this error means?

2001-04-10 Thread [EMAIL PROTECTED]

When Itried to insert a record into a table, It looks like the record was
never inserted into table so I use mysql_error() and the error message show
up:
"Duplicate entry '10' for key 1"
What does that tell me?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"


-- 
PHP General Mailing List (http://www.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.ini

2001-04-10 Thread Michael Hall


Is it possible to override the maximum script execution time as set in
php.ini using an Apache directive like this in an .htaccess file?:

php_value max_execution_time = 60

Thanks

Mick


-- 
PHP General Mailing List (http://www.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] Controlling just size with regular expressions

2001-04-10 Thread Christian Reiniger

On Monday 09 April 2001 23:37, you wrote:
 Hi there,

 I need a regular expression that accepts *anything* without
 restrictions, only that the size of the string should be between (for
 instance) 0 and 9 characters. I know the {0,9} trick, but how do I
 accept *anything* in a form field?

"anything" = '.'

= /^.{0,9}$/  will do the trick

strlen () will be faster though

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

A - American Association Against Acronym Abuse

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




Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Thomas Angst

I didn't get any further errors as this in /ver/log/httpd/error_log:
PHP Warning:  Function registration failed - duplicate name - define in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - defined in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - each in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - strlen in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - strcmp in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - strcasecmp in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
error_reporting in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - leak in
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name -
function_exists in Unknown on line 0
PHP Warning:  Basic Functions:  Unable to register functions, unable to load
in Unknown on line 0

and /sbin/init.d does no more exist

Thomas



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




Re: [PHP] what does this error means?

2001-04-10 Thread Keyur Kalaria

Hi Jacky,

This means that your key 1 i,e the first field in the table is a primary key
and the table contains a record which has a value 10 in the first field.

Hope this is clear.

Keyur
$$$


- Original Message -
From: "Jacky@lilst" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 3:55 AM
Subject: [PHP] what does this error means?


 When Itried to insert a record into a table, It looks like the record was
 never inserted into table so I use mysql_error() and the error message
show
 up:
 "Duplicate entry '10' for key 1"
 What does that tell me?
 Jack
 [EMAIL PROTECTED]
 "There is nothing more rewarding than reaching the goal you set for
 yourself"


 --
 PHP General Mailing List (http://www.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] Empting all variables

2001-04-10 Thread Christian Reiniger

On Tuesday 10 April 2001 04:28, you wrote:
 Is there a quick way to 'empty' all the variables I have set on a page?
 I need to clear everything before re-loading the page.

If you reload the page everything is cleared anyway (aside from session 
data)

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

A - American Association Against Acronym Abuse

--
PHP General Mailing List (http://www.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 site down?

2001-04-10 Thread Michael Hall

I've been trying to get to the annotated manual all afternoon but can't
get through to www.php.net. Anyone else have the same problem?

Mick


-- 
PHP General Mailing List (http://www.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] Upload file from my local C:

2001-04-10 Thread Christian Reiniger

On Monday 09 April 2001 18:35, you wrote:
 Christian

 Below is my script.

 ?
 if (!copy($file,"1.dat")) {
 echo "error"; }
 else {
 echo "successful";
 }
 ?

 NOTE: where $file is passed by other html using form.

how? using a input type='file' ?
Then re-read the file uploading chapter in the manual

  I use a command "copy" to upload a file from my local win machine to
  webserver. However, it is not successful. It prompts that "Warning:
  Unable to open 'D:\\PHP\\upload1.php' for reading:". I would like to
  know what is the problem

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

A - American Association Against Acronym Abuse

--
PHP General Mailing List (http://www.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 site down?

2001-04-10 Thread Nick Davies


There seems to be some routing problem at ALTER.NET (from the uk anyway).

Nick.

On Tue, 10 Apr 2001, Michael Hall wrote:

 I've been trying to get to the annotated manual all afternoon but can't
 get through to www.php.net. Anyone else have the same problem?
 
 Mick
 
 
 


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




RE: [PHP] what does this error means?

2001-04-10 Thread Taylor, Stewart

You are trying to add a record whose primary key/unique index already exists
in the database.

-Stewart

-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 23:25
To: [EMAIL PROTECTED]
Subject: [PHP] what does this error means?


When Itried to insert a record into a table, It looks like the record was
never inserted into table so I use mysql_error() and the error message show
up:
"Duplicate entry '10' for key 1"
What does that tell me?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"


-- 
PHP General Mailing List (http://www.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] Upload file from my local C:

2001-04-10 Thread Keyur Kalaria

Hi Reiniger,

try this : copy(addslashes($file),"1.dat")

hope it is clear.

keyur



- Original Message - 
From: "Christian Reiniger" [EMAIL PROTECTED]
To: "HK Woo" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 4:15 PM
Subject: Re: [PHP] Upload file from my local C:


On Monday 09 April 2001 18:35, you wrote:
 Christian

 Below is my script.

 ?
 if (!copy($file,"1.dat")) {
 echo "error"; }
 else {
 echo "successful";
 }
 ?

 NOTE: where $file is passed by other html using form.

how? using a input type='file' ?
Then re-read the file uploading chapter in the manual

  I use a command "copy" to upload a file from my local win machine to
  webserver. However, it is not successful. It prompts that "Warning:
  Unable to open 'D:\\PHP\\upload1.php' for reading:". I would like to
  know what is the problem

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

A - American Association Against Acronym Abuse

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




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




RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread James Moore



 Everyone,

 Can I merge this into the current RC? This should not cause
 any problems.

What are we doing with the current release right now?
who is having problems and which problems are outstanding??

We have two possible MFH's that people want to do which shouldnt really be
included at this later stage but both are quite important.

We really need to get 4.0.5 out the door so please send a list of any
problems you are aware of or any fixes you feel should be in there so that
they can be reviewed and put in the branch if needed. Today is Tuesday lets
try and get a List by tomorrow and then an RC with any fixes tomorrow night
then two days testing and release on Friday, otherwise release on monday if
there are still unresolved issues.

-James


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




Re: [PHP] php - html

2001-04-10 Thread Yasuo Ohgaki
It's not simple with PHP3. (I don't know better way to do this with PHP3. You
can make a wrapper function for output functions and store output to files. If
you must use PHP3)

If you need to do this a lot, upgrade to PHP4. It's easy with PHP4, since PHP4
supports output buffering functions. ob_start(), ob_get_contents(), etc. Much
easier, much faster.

Regards,
--
Yasuo Ohgaki


""ewoong"" [EMAIL PROTECTED] wrote in message
9auilj$9st$[EMAIL PROTECTED]">news:9auilj$9st$[EMAIL PROTECTED]...
 Hello.. ^^

 I am trying to save results for php files.

 for example..

 I create abc.php3 following as..

  # abc.php3

  ?
  echo ("hello");
  ?

 If I run abc.php3 , the results is ..

hello.


  So..

  How can I this results to save file.

  # abc.html

hello



 --
 PHP General Mailing List (http://www.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] Turn display_errors on and off

2001-04-10 Thread Greig, Euan

I would like to be able to turn on-screen errors on and off selectively within 
scripts. I have tried using the error_reporting() function but this stops error 
messages going to the log file, which I want always to happen. It seems to me that I 
want to set the display_errors configuration option within my scripts. Is this 
possible, or is there an other way to do what I want?

TIA

Euan Greig
Technical Consultant
BRANN DATA
[EMAIL PROTECTED]
01285 645997





**
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**

-- 
PHP General Mailing List (http://www.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] huge PHP file, hardcore processing

2001-04-10 Thread Christian Dechery

At 12:06 10/4/2001 +0900, you wrote:
You should be able to use ODBC under UNIX. I guess.

Source code for  MS SQL Server modules seems it does not compile under UNIX. I
guess it may work with Apache under Windows.

 From mssql_win32_howto.txt in PHP source.

24 Start Visual Studio, load php_modules.dsw, select the MSSQL projects,
  25 configuration and build it.
  26
  27 This module requires ntwdblib.dll and one or more of the following dll's
  28
  29 dbmsadsn.dll
  30 dbmsrpcn.dll
  31 dbmsshrn.dll
  32 dbmssocn.dllfor tcp/ip connections
  33 dbmsspxn.dllfor ipx/spx connections
  34 dbmsvinn.dll
  35 dbnmpntw.dllfor netbios connections

Sorry I don't use MS SQL Server.

well... I don't have Visual Studio here... so I guess I'm stuck with 
shitty-old IIS... :(

. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
PHP General Mailing List (http://www.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] register_shutdown_function - uses for

2001-04-10 Thread Greig, Euan

I was hoping that I could use this function to enable me to finish scripts tidily when 
they time out or are aborted by the user. eg display the message "script timed out". 
However this will not work as no output is allowed in the shutdown function. I can see 
other ways to do what I want (but suggestions would always be welcome) but the real 
point of this email is this: what sort of thing would you use 
register_shutdown_function to achieve?

Euan Greig
Technical Consultant
BRANN DATA
[EMAIL PROTECTED]
01285 645997





**
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**

-- 
PHP General Mailing List (http://www.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] Turn display_errors on and off

2001-04-10 Thread elias

Try this alt solution:
whenever you don't want onscreen solution call your functions as:

@function_name('adadasd');
and if you want warning call them normally.

-elias
http://www.kameelah.org/eassoft

""Greig, Euan"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I would like to be able to turn on-screen errors on and off selectively
within scripts. I have tried using the error_reporting() function but this
stops error messages going to the log file, which I want always to happen.
It seems to me that I want to set the display_errors configuration option
within my scripts. Is this possible, or is there an other way to do what I
want?

 TIA

 Euan Greig
 Technical Consultant
 BRANN DATA
 [EMAIL PROTECTED]
 01285 645997





 **
 Any opinions expressed in this email are those of the individual and
 not necessarily the Company. This email and any files transmitted with
 it, including replies and forwarded copies (which may contain alterations)
 subsequently transmitted from the Company, are confidential and solely for
 the use of the intended recipient. If you are not the intended recipient
 or the person responsible for delivering to the intended recipient, be
 advised that you have received this email in error and that any use is
 strictly prohibited.

 **

 --
 PHP General Mailing List (http://www.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] Inserting time + date entry into mySQL DB

2001-04-10 Thread Zeus

Hi,

I know this has been brought up repeatedly but I couldn't find the archives website.

I'm doing a news publishing script (something like newsphp \ php-nuke) but uses mySQL 
to store all the data instead of flat files.

I would like to make it such that everytime I submit an news entry, the time\date will 
automatically be inserted in that row.

Could someone give me some suggestions?

-
David Chua aka. Zeus
-



Re: [PHP] L?

2001-04-10 Thread bill

I think L is 50.

bill

Kurth Bemis wrote:

 what does the roman numeral L mean?

 can someone point me to a page that has all of the roman numerals and their
 English equivlents?

 i forgot?

 ~kurth

 --
 PHP General Mailing List (http://www.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] Inserting time + date entry into mySQL DB

2001-04-10 Thread Michael Hall



Create a field in your table called something like 'date' and make its
data type TIMESTAMP. MySQL will automatically add a timestamp with each
new entry ... assuming you're using UNIX, I don't know about windows.

Mick

 I know this has been brought up repeatedly but I couldn't find the archives website.
 I'm doing a news publishing script (something like newsphp \ php-nuke) but uses 
mySQL to store all the data instead of flat files.
 I would like to make it such that everytime I submit an news entry, the time\date 
will automatically be inserted in that row.
 Could someone give me some suggestions?


-- 
PHP General Mailing List (http://www.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] huge PHP file, hardcore processing

2001-04-10 Thread Michael Kimsal

Yes - look at freetds.org.




 sorry... I did not make myself clear. I don't intend to switch from IIS to
 Apache, cuz I can't. The server runs a whole site in ASP... this is the
 only PHP script that runs on it, I was thinking more of running it in
 Linux... can I access a MS SQL server from within Apache/PHP under Linux???
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer



-- 
PHP General Mailing List (http://www.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 site down?

2001-04-10 Thread Zeus

If you want to view it now, you can try going to

http://php.intermedia.com.sg - Its a mirror.

- Original Message - 
From: Nick Davies [EMAIL PROTECTED]
To: Michael Hall [EMAIL PROTECTED]
Cc: PHP List [EMAIL PROTECTED]
Sent: Tuesday, 10 April, 2001 6:46 PM
Subject: Re: [PHP] php site down?


 
 There seems to be some routing problem at ALTER.NET (from the uk anyway).
 
 Nick.
 
 On Tue, 10 Apr 2001, Michael Hall wrote:
 
  I've been trying to get to the annotated manual all afternoon but can't
  get through to www.php.net. Anyone else have the same problem?
  
  Mick
  
  
  
 
 
 -- 
 PHP General Mailing List (http://www.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] L?

2001-04-10 Thread Michael Hall

Yep ...

I unit
V 5
X 10
L 50
C 100
D 500
M 1000

no zero ... try doing maths with this system.

Mick

 I think L is 50.
 
 bill
 
 Kurth Bemis wrote:
 
  what does the roman numeral L mean?


-- 
PHP General Mailing List (http://www.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] register_shutdown_function - uses for

2001-04-10 Thread elias

Hmm so you can't print?!
can you redirect?

Header("Location: mymessage.html");

-elias
http://www.kameelah.org/eassoft

""Greig, Euan"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I was hoping that I could use this function to enable me to finish scripts
tidily when they time out or are aborted by the user. eg display the message
"script timed out". However this will not work as no output is allowed in
the shutdown function. I can see other ways to do what I want (but
suggestions would always be welcome) but the real point of this email is
this: what sort of thing would you use register_shutdown_function to
achieve?

 Euan Greig
 Technical Consultant
 BRANN DATA
 [EMAIL PROTECTED]
 01285 645997





 **
 Any opinions expressed in this email are those of the individual and
 not necessarily the Company. This email and any files transmitted with
 it, including replies and forwarded copies (which may contain alterations)
 subsequently transmitted from the Company, are confidential and solely for
 the use of the intended recipient. If you are not the intended recipient
 or the person responsible for delivering to the intended recipient, be
 advised that you have received this email in error and that any use is
 strictly prohibited.

 **

 --
 PHP General Mailing List (http://www.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] Parse error

2001-04-10 Thread Mike

Im getting a "missing )" error on line 77 but cant seem to find it.Am I
missing something else thats causing it?

for  ($i =1;$i=15;$i++)
  {
   if(!(isset(${'R'.$i.'P'};)))// line 77
{
${'R'.$i.'P'};="NULL";
}
  }

Thanks
Mike
[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] Inserting time + date entry into mySQL DB

2001-04-10 Thread elias

No under windows doesn't work.
you have to enter a value in that field with value NOW()

-elias
http://www.kameelah.org/eassoft

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


 Create a field in your table called something like 'date' and make its
 data type TIMESTAMP. MySQL will automatically add a timestamp with each
 new entry ... assuming you're using UNIX, I don't know about windows.

 Mick

  I know this has been brought up repeatedly but I couldn't find the
archives website.
  I'm doing a news publishing script (something like newsphp \ php-nuke)
but uses mySQL to store all the data instead of flat files.
  I would like to make it such that everytime I submit an news entry, the
time\date will automatically be inserted in that row.
  Could someone give me some suggestions?


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




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




[PHP] MySql: Default values

2001-04-10 Thread elias

Can a default field value in MySql be a function?

Like default value of a date field should be the built-in function NOW()?

anything like what i'm asking for?

-elias
http://www.kameelah.org/eassoft




-- 
PHP General Mailing List (http://www.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] Parse error

2001-04-10 Thread elias

I think it is because you put a ';' in the isset() after the '}'
i believe if you remove it it will work.

-elias
http://www.kameelah.org/eassoft

""Mike"" [EMAIL PROTECTED] wrote in message
9av0j6$h2k$[EMAIL PROTECTED]">news:9av0j6$h2k$[EMAIL PROTECTED]...
 Im getting a "missing )" error on line 77 but cant seem to find it.Am I
 missing something else thats causing it?

 for  ($i =1;$i=15;$i++)
   {
if(!(isset(${'R'.$i.'P'};)))// line 77
 {
 ${'R'.$i.'P'};="NULL";
 }
   }

 Thanks
 Mike
 [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] Inserting time + date entry into mySQL DB

2001-04-10 Thread Zeus

I want it such that when a user reads the news, he sees something like

---
Saturday 25th March 2001
New mirror up on PHP - posted by Zeus @ 00:00 GMT +8

news news news news news news news news news news news news news
---

That sort of thing, how can I go about?




- Original Message -
From: elias [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 7:23 AM
Subject: Re: [PHP] Inserting time + date entry into mySQL DB


 No under windows doesn't work.
 you have to enter a value in that field with value NOW()

 -elias
 http://www.kameelah.org/eassoft

 "Michael Hall" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
 
  Create a field in your table called something like 'date' and make its
  data type TIMESTAMP. MySQL will automatically add a timestamp with each
  new entry ... assuming you're using UNIX, I don't know about windows.
 
  Mick
 
   I know this has been brought up repeatedly but I couldn't find the
 archives website.
   I'm doing a news publishing script (something like newsphp \ php-nuke)
 but uses mySQL to store all the data instead of flat files.
   I would like to make it such that everytime I submit an news entry,
the
 time\date will automatically be inserted in that row.
   Could someone give me some suggestions?
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 



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



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




php-general Digest 10 Apr 2001 13:20:50 -0000 Issue 619

2001-04-10 Thread php-general-digest-help


php-general Digest 10 Apr 2001 13:20:50 - Issue 619

Topics (messages 47911 through 48019):

Re: huge PHP file, hardcore processing
47911 by: Yasuo Ohgaki
47912 by: Christian Dechery
47915 by: Lindsay Adams
47916 by: Christian Dechery
47974 by: Plutarck
48004 by: Christian Dechery
48005 by: Christian Dechery
48011 by: Michael Kimsal

Re: populating dropdown list problems
47913 by: David Robley

while loop
47914 by: Jacky
47917 by: Lindsay Adams
47919 by: David Robley
47920 by: Michael Hall
47947 by: Zeus
47949 by: Jason Murray
47951 by: David Robley
47952 by: Zeus
47953 by: Jacky
47955 by: Brian Clark
47956 by: Brian Clark
47957 by: Jack Dempsey
47958 by: Jacky
47959 by: Brian Clark
47961 by: Zeus
47967 by: Jack Dempsey
47972 by: Philip Olson
47979 by: Yasuo Ohgaki

Re: ?xml version="1.0"?  PHP
47918 by: Brian Clark
47930 by: trogers

Re: Controlling just size with regular expressions
47921 by: CC Zona
47993 by: Christian Reiniger

WHAT IF I DONT WANT TO USE ZEND..(help)
47922 by: Dallas K.

Empting all variables
47923 by: Nathan Roberts
47996 by: Christian Reiniger

last three characters of a string
47924 by: Joseph Bannon
47926 by: Brian Clark
47927 by: David Robley
47928 by: Jack Dempsey

Re: Array Sort?
47925 by: Chris Anderson

Libcurl problems
47929 by: Jason Murray

Edit crontab to set schedule..
47931 by: E K L
47932 by: Lewis Bergman
47935 by: E K L
47945 by: Brian Clark

Re: HELP...Installation of PHP on Debian Linux!
47933 by: Wayne Topa

Re:HTML front end for building page logic online
47934 by: Dennis Gearon

what could cause the maximum execution time exceeded?
47936 by: Jacky
47937 by: trogers
47939 by: David Robley
47970 by: B. van Ouwerkerk
47980 by: Rahul Bhide

Re: Why a javascript have problem if it is dynamic load?
47938 by: Carfield Yim

Another Select question
47940 by: Peter Houchin
47941 by: Alvin Tan
47942 by: Jason Murray
47943 by: Peter Houchin

Back Button Dilemma's
47944 by: RealGM
47976 by: Plutarck
47985 by: Robert Vetter

Re: login  security
47946 by: David Minor

Re: Adding GD for win PHP
47948 by: elias

Re: Supplied argument is not a valid MySQL result resource
47950 by: elias
47973 by: Plutarck

Zend IDE 1.10 and Debugger Mini-review
47954 by: John

page counter
47960 by: Wen Ni
47962 by: Jack Dempsey
47963 by: Brian Clark
47964 by: Brian Clark
47965 by: Keyur Kalaria
47968 by: Chris Aitken
47969 by: Jack Dempsey
47988 by: Jean-Arthur Silve

test
47966 by: Ralph Guzman

Re: Finer points of debugging: vardump vs. print_r
47971 by: John

Re: I am SO confused (help with references!) (could be a bug?)
47975 by: \[Intent A/S\] Tais M. Hansen
47977 by: Plutarck
47978 by: \[Intent A/S\] Tais M. Hansen

$8/mo php hosting on 24/7, OC3+ web server
47981 by: Jeffrey Greer

Re: Why my php page will reply "session expire" when the use press back  button?
47982 by: Carfield Yim

Re: Sorry - Way OT but I need help
47983 by: Andy Woolley

php - html
47984 by: ewoong
47986 by: Renze Munnik
48002 by: Yasuo Ohgaki

can't restart apache, help needed
47987 by: Thomas Angst
47989 by: Felix Kronlage
47990 by: Alexander Wagner
47994 by: Thomas Angst

what does this error means?
47991 by: Jacky
47995 by: Keyur Kalaria
48000 by: Taylor, Stewart

php.ini
47992 by: Michael Hall

php site down?
47997 by: Michael Hall
47999 by: Nick Davies
48012 by: Zeus

Re: Upload file from my local C:
47998 by: Christian Reiniger
48001 by: Keyur Kalaria

Turn display_errors on and off
48003 by: Greig, Euan
48007 by: elias

register_shutdown_function - uses for
48006 by: Greig, Euan
48014 by: elias

Inserting time + date entry into mySQL DB
48008 by: Zeus
48010 by: Michael Hall
48016 by: elias
48019 by: Zeus

Re: L?
48009 by: bill
48013 by: Michael Hall

Parse error
48015 by: Mike
48018 by: elias

MySql: Default values
48017 by: elias

Administrivia:

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

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

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


--



IIS ISAPI(PHP4.0.4pl1 and PHP4.0.5RC1) 

Re: [PHP] MySql: Default values

2001-04-10 Thread Michael Hall


Mumkin ya elias, ana ma afhamsh su'aalak mnih!

Not exactly sure what you mean elias.
TIMESTAMP in MySQL is a datatype more than a function, but I'm not
absolutely sure about that.

Mick


On Tue, 10 Apr 2001, elias wrote:

 Can a default field value in MySql be a function?
 
 Like default value of a date field should be the built-in function NOW()?
 
 anything like what i'm asking for?
 
 -elias
 http://www.kameelah.org/eassoft
 
 
 
 
 -- 
 PHP General Mailing List (http://www.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] Inserting time + date entry into mySQL DB

2001-04-10 Thread Michael Hall


This is all explained in the PHP manual under dates.
Assuming you have a field called 'date' with a timestamp in it,
you can format the date like this:

$date = date("l jS F Y", $date);

But there are a lot of options so read the manual.

Mick

 I want it such that when a user reads the news, he sees something like
 
 ---
 Saturday 25th March 2001
 New mirror up on PHP - posted by Zeus @ 00:00 GMT +8
 
 news news news news news news news news news news news news news
 ---
 
 That sort of thing, how can I go about?
 
 
 
 
 - Original Message -
 From: elias [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, 11 April, 2001 7:23 AM
 Subject: Re: [PHP] Inserting time + date entry into mySQL DB
 
 
  No under windows doesn't work.
  you have to enter a value in that field with value NOW()
 
  -elias
  http://www.kameelah.org/eassoft
 
  "Michael Hall" [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
  
   Create a field in your table called something like 'date' and make its
   data type TIMESTAMP. MySQL will automatically add a timestamp with each
   new entry ... assuming you're using UNIX, I don't know about windows.
  
   Mick
  
I know this has been brought up repeatedly but I couldn't find the
  archives website.
I'm doing a news publishing script (something like newsphp \ php-nuke)
  but uses mySQL to store all the data instead of flat files.
I would like to make it such that everytime I submit an news entry,
 the
  time\date will automatically be inserted in that row.
Could someone give me some suggestions?
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




Re: [PHP] L? Roman function

2001-04-10 Thread Knut H. Hassel Nielsen


Hi there. I picked up this function several years ago. See if this can help you
see what the roman value for an arabic number is.


//Calculates the Roman numerals for the given Arabic number.
// Returns '' on error.
function to_roman($num) {
  // There is no '0' or negative numbers in Roman numerals.
  // Also, anything not in [0-9] is bad input.
  if (!ereg('^[0-9]+$', $num) || ((int)$num == 0)) {
return('');
  }
  // Do some setup
  $num = (int)$num;
  $letter[10] = array('X', 'C', 'M');
  $letter[5] = array('V', 'L', 'D');
  $letter[1] = array('I', 'X', 'C');
  $roman = '';
  // Numbers  1000 are a special case.
  // (No letters  'M')
  $digit = (int)($num / 1000);
  $num -= ($digit * 1000);
  while ($digit  0) {
$roman .= 'M';
$digit--;
  }
  // Do the work
  for ($i=2; $i=0; $i--) {
$power = pow(10, $i);
$digit = (int)($num / $power);
$num -= ($digit * $power);
if (($digit == 9) || ($digit == 4)) {
  $roman .= $letter[1][$i] . $letter[$digit+1][$i];
} else {
  if ($digit = 5) {
$roman .= $letter[5][$i];
$digit -= 5;
  }
  while ($digit  0) {
$roman .= $letter[1][$i];
$digit--;
  }
}
  }
  // If we didn't use up $num, something broke.
  if ($num  0){
return('');
  }
  return($roman);
}


On Tue, 10 Apr 2001, bill wrote:

 I think L is 50.

 bill

 Kurth Bemis wrote:

  what does the roman numeral L mean?
 
  can someone point me to a page that has all of the roman numerals and their
  English equivlents?
 
  i forgot?
 
  ~kurth
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
Knut
--
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingenir
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax   Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon  :   91 59 86 06


--
PHP General Mailing List (http://www.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: list files in a diretory

2001-04-10 Thread Tim Ward

function sitemap($ddPath)
{   $dhandle = opendir($ddPath);
echo("ul");
while ($ddFile = readdir($dhandle))
{   if ($ddFile == "." or $ddFile == "..") continue; // trap .
and ..
echo("li".$ddFile . "/li");
if (is_dir($ddPath . $ddFile)) sitemap($ddPath . $ddFile .
"/");
};
closedir($dhandle);
echo("/ul");
};

just call it by passing in the path to the directory you want to list and
it'll give you a full listing below that point

Tim Ward
Senior Systems Engineer

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


 -Original Message-
 From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
 Sent: 09 April 2001 17:06
 To: [EMAIL PROTECTED]
 Subject: list files in a diretory
 
 
 How can I list the files in a diretory?
 
 Something like, get the files name in an array...
 
 thanks,
 
 Augusto Cesar Castoldi
 
 

-- 
PHP General Mailing List (http://www.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: Back Button Dilemma's

2001-04-10 Thread Daniel B I

You may use a hidden field wich tells you what current
step is. If it is lower that your current page expects to be,
you may take the proper action (here the most simple, die() )
Look at this simple script:

==SCRIPT BEGINS HERE
?

if ( isset( $step ) )
  if ( $step == 2 )// =here you can put "=2" , as you need..
die ( "Error, we've been already here!" ) ;

?


FORM
INPUT TYPE=HIDDEN NAME="step" VALUE=1
..
/FORM

===SCRIPT ENDS HERE

Hi Guys,

I know everywhere it says that it is not possible to actually disable =
the back button, and people have offered some solutions that have not =
worked for me, this is why I am emailing this list.
I have a form which displays the same page with new content (controlled =
by a counter) in a loop until an exit point is reached.  When the user =
clicks back on the browser the counter still increments and the screen =
continues like the user pressed the continue button (which is the =
process I want the user to take).  The problem is the user did not make =
a selection and this is where the problem lies (it takes the default, =
which throws the whole process out of whack).

The question I am asking is how can I prevent the user trying to go =
back?  Is there any code out there which can counter this action (and =
not cause my counter to increment, thus moving the user to the next =
screen)?  Is there any way to detect that the back button/option has =
been selected and display a "warning" type page before going back to =
where the user is?  The forward counter action does not really fix my =
problem.

Thanks,
Michael.

Chief Information Officer,
RealGM, Inc.
http://www.realgm.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] Commercial sites that use PHP

2001-04-10 Thread Phil Labonte

Can anyone send me a list of large commercial web sites that use PHP?

I am trying to move to PHP here at work but I need some examples to impress
the boss!!!

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] MySql: Default values

2001-04-10 Thread elias

hehe ;)
where you from? :)


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

 Mumkin ya elias, ana ma afhamsh su'aalak mnih!

 Not exactly sure what you mean elias.
 TIMESTAMP in MySQL is a datatype more than a function, but I'm not
 absolutely sure about that.

 Mick


 On Tue, 10 Apr 2001, elias wrote:

  Can a default field value in MySql be a function?
 
  Like default value of a date field should be the built-in function
NOW()?
 
  anything like what i'm asking for?
 
  -elias
  http://www.kameelah.org/eassoft
 
 
 
 
  --
  PHP General Mailing List (http://www.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] Commercial sites that use PHP

2001-04-10 Thread Dominick Vansevenant

http://www.zend.com/zend/cs/

Regards,

Dominick

-Original Message-
From: Phil Labonte [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 10 april 2001 15:52
To: [EMAIL PROTECTED]
Subject: [PHP] Commercial sites that use PHP


Can anyone send me a list of large commercial web sites that use PHP?

I am trying to move to PHP here at work but I need some examples to impress
the boss!!!

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] @Listing - causing pasre error

2001-04-10 Thread Wilbert Enserink

Hi everybody,

I want to write to a given file  using the code below. Somehow I get the
parse error. I thnk it has something to do with --- @Listing 
Is this a setting in my php.ini which is wrong or is the code maybe wrong (I
copied it out of a php text book.)

Thanx

Wilbert

body
?php
if (IsSet($submitted))
 {
 $fd = fopen($filename, "w+") or die("can't open the file $filename");
 @Listing: $fout = fwrite($fd, $newstring);
 @Listing: fclose($fd);
 }
$fd = fopen($filename, "r") or die("can't open file $filename");
$initstring = fread($fd, filesize($filename));
fclose($fd);

echo "FORM METHOD = 'POST' ACTION=\"$PHP_SELF\"";
echo "INPUT TYPE = 'text' SIZE = 50 NAME = 'newstring' VALUE =
\"$initstring\"";
echo "INPUT TYPE ='HIDDEN' NAME = 'submitted' VALUE = 1";
echo "INPUT TYPE = 'SUBMIT'";
echo "/FORM";

?
/body

-
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] Inserting time + date entry into mySQL DB

2001-04-10 Thread elias

I believe there is some misunderstandings...

I believe Zeus just doesn't know how to insert current date in his database:
ie: INSERT INTO MyTable(other_field, date_field) VALUES('adasd', NOW())
this will insert in your date field the current datetime.

-elias
http://www.kameelah.org/eassoft

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

 This is all explained in the PHP manual under dates.
 Assuming you have a field called 'date' with a timestamp in it,
 you can format the date like this:

 $date = date("l jS F Y", $date);

 But there are a lot of options so read the manual.

 Mick

  I want it such that when a user reads the news, he sees something like
 
  ---
  Saturday 25th March 2001
  New mirror up on PHP - posted by Zeus @ 00:00 GMT +8
 
  news news news news news news news news news news news news news
  ---
 
  That sort of thing, how can I go about?
 
 
 
 
  - Original Message -
  From: elias [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, 11 April, 2001 7:23 AM
  Subject: Re: [PHP] Inserting time + date entry into mySQL DB
 
 
   No under windows doesn't work.
   you have to enter a value in that field with value NOW()
  
   -elias
   http://www.kameelah.org/eassoft
  
   "Michael Hall" [EMAIL PROTECTED] wrote in message
  
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   
   
Create a field in your table called something like 'date' and make
its
data type TIMESTAMP. MySQL will automatically add a timestamp with
each
new entry ... assuming you're using UNIX, I don't know about
windows.
   
Mick
   
 I know this has been brought up repeatedly but I couldn't find the
   archives website.
 I'm doing a news publishing script (something like newsphp \
php-nuke)
   but uses mySQL to store all the data instead of flat files.
 I would like to make it such that everytime I submit an news
entry,
  the
   time\date will automatically be inserted in that row.
 Could someone give me some suggestions?
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
   
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




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




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Clayton Dukes

I don't know if he'll be impressed, but I am :-)

http://www.gdd.net


Offers free Cisco Training as well as High School and College level essays.

Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881

- Original Message -
From: "Phil Labonte" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 9:52 AM
Subject: [PHP] Commercial sites that use PHP


 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to
impress
 the boss!!!

 Thanks

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


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




Re: [PHP] @Listing - causing pasre error

2001-04-10 Thread Rasmus Lerdorf

 I want to write to a given file  using the code below. Somehow I get the
 parse error. I thnk it has something to do with --- @Listing 
 Is this a setting in my php.ini which is wrong or is the code maybe wrong (I
 copied it out of a php text book.)

What is this @Listing thing supposed to do?  The @ character is used to
swallow errors/warnings from a function call.  The way you are using it is
completely invalid.

It is documented here:

http://www.php.net/manual/en/language.operators.errorcontrol.php

-Rasmus


-- 
PHP General Mailing List (http://www.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] Commercial sites that use PHP

2001-04-10 Thread Keyur Kalaria

this is a commercial site.

site :  http://www.goodlookingindia.com

pl. send me your complete reviews on it . it will be very very helpful to
me.

-
keyur
$$$


- Original Message -
From: "Phil Labonte" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 7:22 PM
Subject: [PHP] Commercial sites that use PHP


 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to
impress
 the boss!!!

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

2001-04-10 Thread Keyur Kalaria

Hello everybody,

I recently developed this site :  http://www.goodlookingindia.com  .
I am adding many more sections in it. 

Pl. let me know how can i improve the performance of this site.
Your reviews will be very helpful to me.

Thanks in advance.

Keyur
$$$





-- 
PHP General Mailing List (http://www.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] Commercial sites that use PHP

2001-04-10 Thread Andy Woolley

www.businessmeetings.com is another commercial site that I ported from ASP
to PHP 12 months ago.

Andy Woolley.
www.databasewatch.com


 - Original Message -
 From: "Phil Labonte" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 10, 2001 7:22 PM
 Subject: [PHP] Commercial sites that use PHP


  Can anyone send me a list of large commercial web sites that use PHP?
 
  I am trying to move to PHP here at work but I need some examples to
 impress
  the boss!!!
 
  Thanks
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 




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




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Michael Hall


GoEureka, one of Australia's biggest search engines, uses php on at least
part of its site:

see http://www.goeureka.com.au

Mick

On Tue, 10 Apr 2001, Phil Labonte wrote:

 Can anyone send me a list of large commercial web sites that use PHP?
 
 I am trying to move to PHP here at work but I need some examples to impress
 the boss!!!
 
 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] user login

2001-04-10 Thread george

 I know it is possible, I'm just not sure how, but I want a user to log into
the site  then if they enter information into a form the database not only
stores the form info but also who entered it, so I would have a field called
user and it would either get theinformation from a cookie,which I have
already tried but am not having much luck with or is there a way of avoiding
cookies altogether and using the database on it's own,  which would suit me
better.

 Thanks in Advance

George



-- 
PHP General Mailing List (http://www.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] user login

2001-04-10 Thread Keyur Kalaria

You can use session management

keyur


- Original Message -
From: "george" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 8:19 PM
Subject: [PHP] user login


 I know it is possible, I'm just not sure how, but I want a user to log
into
 the site  then if they enter information into a form the database not only
 stores the form info but also who entered it, so I would have a field
called
 user and it would either get theinformation from a cookie,which I have
 already tried but am not having much luck with or is there a way of
avoiding
 cookies altogether and using the database on it's own,  which would suit
me
 better.

  Thanks in Advance

 George



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




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




[PHP] Fwd:

2001-04-10 Thread Kurth Bemis

can the moderator please boot this person from the list?

~kurth


Delivered-To: [EMAIL PROTECTED]

Date: Tue, 10 Apr 2001  09:56:07 +0300
From:
To: [EMAIL PROTECTED]
Message-Id: 0104100956074836@parkntsrv

This is a description of the listmanager commands recognized by the
XtraMail SMTP/POP3 service.



JOIN or SUBSCRIBE
-
The join or subscribe commands are used by users, where want to join the 
list.
This commands are only accepted if allowed. Otherwise, the owner gets a 
messages
about the user request.

Usage:
join listname, [mail address], [full name]
or
subscribe listname, [mail address], [full name]

The values inside the braces are optional. If no mail address is given, the
known values will be used.



LEAVE or UNSUBSCRIBE

Users can leave the list automatically using the leave or unsubscribe command.

Usage:
leave listname, [mail address]
or
unsubscribe listname, [mail address]

The values inside the braces are optional. If no mail address is given, the
known values will be used.


LISTS
-
Use this command to get a list of all local public mailing lists that are
served by this server.

Usage:  lists

This command has no arguments



WHICH
-
This command gives you listing of all mailing lists to which you have 
subscribed.

Usage:   which [mail address]

The values inside the braces are optional. If no mail address is given, the
known values will be used.



RECIPIENTS or REVIEW

Get a listing of all members of the specified mailing list.

Usage:
recipients list
or
review list



HELP

Use this command to get a description of all listmanager commands (This file).

Usage:   help

This command has no arguments.


-- 
PHP General Mailing List (http://www.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] Commercial sites that use PHP

2001-04-10 Thread Philip Olson

This looks like an old copy of sites.php :

  http://www.phpinfo.com/sites.php

Btw, why has the following been removed?

  http://www.php.net/sites.php

To difficult to maintain I suppose.  At any rate, you'll find some good
examples.

Regards,
Philip


On Tue, 10 Apr 2001, Phil Labonte wrote:

 Can anyone send me a list of large commercial web sites that use PHP?
 
 I am trying to move to PHP here at work but I need some examples to impress
 the boss!!!
 
 Thanks
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Michael Kimsal



Phil Labonte wrote:

 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to impress
 the boss!!!

 Thanks

We are working on compiling a list of these - anyone with information, please
email me as
well, and we'll include you.

On to the topic at hand - what will impress your boss?

Size of the site in pages? pageviews? number of servers?  concurrent users?
dollars
the site cost to product?  how many people it takes to run it?


NUMBERS
--
We migrated a site from NT/ASP to Linux/PHP.  It used to require 5-6 machines -

we
*could* run it on one now, but keep 3 balanced for redundancy.  (same exact
hardware).
People impressed with how large your server farm is would be disappointed in
our PHP
solution.  We handle up to a few hundred simultaenous users at any one time,
often doing a number with a lot of zeros after it in a single day of commerce
(can't give
exact figures here).

Our local store - affordablecomputers.com, is pushing about 7 million page
views/month
(all dynamic PHP stuff) from one machine.

neopets.com is pushing 40+ million page views per day in PHP.

OTHER NAMES

IPOFinancial.com is a client of ours - not necessarily a huge site, but it's
extremely important
to his business, and it runs on Linux/PHP.

Also in the financial realm, my.zacks.com appears to run PHP.  Zacks is a
pretty big name.

livebid.amazon.com was running PHP at one point.  I think it still is.

aspsourcecode.com runs PHP.  :)



Those are just a few of what I know.  As I wrote before, we're putting together

a collection of this type of info for future reference.  Anyone with more info,

please
contact me.  Thanks.  :)

Michael Kimsal
mailto:[EMAIL PROTECTED]




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




[PHP] Oracle Connection

2001-04-10 Thread Dunaway, Brian

Greetings,

I need to access a remote oracle database. What I mean is that the machine
that is allowed access to the oracle database is not running php...I have
access to the machine with the oracle access from my machine which is
running php. Boy that sounds confusing.

anyway I am setting my environment with putenv(oracle_home=/something) and
putenv(oracle_sid=database)...what can I do? any ideas?

Brian D.

Running PHP 4  

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




Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jason Greene

Out of those platforms you listed, I have tested this on Linux. I will test FreeBSD 
today.
However, I do not have an OpenBSD box, does anyone out there want to try and
build the latest cvs with --enable-sockets on OpenBSD?

Thanks,
-Jason


- Original Message - 
From: "Jani Taskinen" [EMAIL PROTECTED]
To: "Jason Greene" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 5:01 AM
Subject: Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c 


 
 Have you tested it on Linux, FreeBSD, OpenBSD... ? :)
 If you know for sure it will work on these, go ahead.
 
 --Jani
 
 On Mon, 9 Apr 2001, Jason Greene wrote:
 
 Everyone,
 
 Can I merge this into the current RC? This should not cause
 any problems.
 
 -Jason
 
 - Original Message -
 From: "Jason Greene" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 09, 2001 10:16 PM
 Subject: [PHP-CVS] cvs: php4 /ext/sockets sockets.c
 
 
  jason Mon Apr  9 20:16:06 2001 EDT
 
Modified files:
  /php4/ext/sockets sockets.c
Log:
Fix for PR #9729, 9664, 9656, 8667.
All compilers on Solaris should build this extension correctly now.
It turns out the SUN CC, by default, enables a define that enables the use of
#pragma redefine extname in sun header files. This is why cc would work,
and gcc wouldn't.
 
-Jason
 
 
  Index: php4/ext/sockets/sockets.c
  diff -u php4/ext/sockets/sockets.c:1.33 php4/ext/sockets/sockets.c:1.34
  --- php4/ext/sockets/sockets.c:1.33 Thu Mar 22 05:16:58 2001
  +++ php4/ext/sockets/sockets.c Mon Apr  9 20:16:05 2001
  @@ -17,7 +17,7 @@
  +--+
*/
 
  -/* $Id: sockets.c,v 1.33 2001/03/22 13:16:58 sniper Exp $ */
  +/* $Id: sockets.c,v 1.34 2001/04/10 03:16:05 jason Exp $ */
 
   #include "php.h"
 
  @@ -34,6 +34,10 @@
   #define _XOPEN_SOURCE_EXTENDED
   #define _XPG4_2
   #define __EXTENSIONS__
  +
  +#ifndef __PRAGMA_REDEFINE_EXTNAME
  +#define __PRAGMA_REDEFINE_EXTNAME
  +#endif
 
   #include "ext/standard/info.h"
   #include "php_sockets.h"
 
 
 
  --
  PHP CVS Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 


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




Re: [PHP] Oracle Connection

2001-04-10 Thread Brian S. Dunworth

At 08:42 AM 4/10/01 -0700, Dunaway, Brian wrote:

I need to access a remote oracle database. What I mean is that the machine 
that is allowed access to the oracle database is not running php...I have 
access to the machine with the oracle access from my machine which is 
running php. Boy that sounds confusing.

   No, not really.

anyway I am setting my environment with putenv(oracle_home=/something) and 
putenv(oracle_sid=database)...what can I do? any ideas?

   I'm assuming that this isn't working for you.  Make sure you set 
NLS_LANG etc, as well in your environment, as specified in the PHP 
documentation.

   Do you have an Oracle client installed on the machine that has PHP 
installed on it?  Did you compile PHP with oci8 support?

   Here, our web server (Linux) has Apache/PHP and Oracle Net8 client 
installed.  The Net8 client talks to our Sun box with Oracle 8i 
installed.  Works with PHP with no hitches.

Brian D.

   yeah, me too.  :)

Running PHP 4

   yeah, me too.  :)

  - Brian

  -
Brian S. Dunworth
Sr. Software Development Engineer
Oracle Database Administrator
The Printing House, Ltd.

(850) 875-1500  x225
[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] Commercial sites that use PHP

2001-04-10 Thread Chris Adams

On 10 Apr 2001 06:52:07 -0700, Phil Labonte [EMAIL PROTECTED] wrote:
Can anyone send me a list of large commercial web sites that use PHP?

Cribbed mercilessly from a number of sources: 

http://gateway.digitaria.com/~chris/php/sites.html

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




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Phillip Bow

Well since nobody else has chimed in(barring the fact it may be in one of
the already recommended lists) sourceforge is made with php, and is a pretty
noteworthy site.
--
phill

"Phil Labonte" [EMAIL PROTECTED] wrote in message
1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE...
 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to
impress
 the boss!!!

 Thanks

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



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




Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Michael Stearne

Along with VaLinux.com and all new VA sites.  Penguin Computing dies too.

Michael

On Tuesday, April 10, 2001, at 12:20 PM, Phillip Bow wrote:

 Well since nobody else has chimed in(barring the fact it may be in one 
 of
 the already recommended lists) sourceforge is made with php, and is a 
 pretty
 noteworthy site.
 --
 phill

 "Phil Labonte" [EMAIL PROTECTED] wrote in message
 1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE...
 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to
 impress
 the boss!!!

 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: php-list-
 [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] ezpublish installation

2001-04-10 Thread Peter Van Dijck

Hi,
I think I finally found a cms that does most of what I want it to: 
ezpublish (http://developer.ez.no/article/archive/4/)
I'm trying to install it, I'm on a apache server, a few questions:

1. how do I install Imagemagick? Seems I need to recompile PHP and do 
--with-imagick=DIR, is that correct? Do I need to install Imagemagick 
before I do that, or just download it and untar it in the right directory?

2. Where can I get libXml2 version  2.2.9 and libQdom? Same question as 
above: how do I install them? Thanks!

Finally: I can't find a readme to install this ezpublish, which is really 
weird. It must be there?
Thanks for any tips
Peter
~~
http://liga1.com: building multiple language/culture websites


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




Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Lindsay Adams

do you have php3 installed still?
if so, your mime types might be conflicting or something



On 4/10/01 3:35 AM, "Thomas Angst" [EMAIL PROTECTED] wrote:

 I didn't get any further errors as this in /ver/log/httpd/error_log:
 PHP Warning:  Function registration failed - duplicate name - define in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - defined in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - each in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - strlen in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - strcmp in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - strcasecmp in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name -
 error_reporting in Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name - leak in
 Unknown on line 0
 PHP Warning:  Function registration failed - duplicate name -
 function_exists in Unknown on line 0
 PHP Warning:  Basic Functions:  Unable to register functions, unable to load
 in Unknown on line 0
 
 and /sbin/init.d does no more exist
 
 Thomas
 
 


-- 
PHP General Mailing List (http://www.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] Commercial sites that use PHP

2001-04-10 Thread Michael Kimsal



Brent Langston wrote:

 Does anyone know what Yahoo uses?  It's obviously some form of scripting...
 especially at http://my.yahoo.com.  I've always been curious about what they
 are using as their parser... it appears to spit out pure HTML, so it acts
 like PHP...

 Any thoughts?

No offense here, but EVERYTHING does that.  ASP, JSP, CF, Perl, Frontier, etc.
I think it's pretty impossible to tell what someone's using unless they announce

via file extensions or something, and even then you can't always tell.





-- 
PHP General Mailing List (http://www.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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Jon Haworth

Yes, we know, you've told us three times now.


-Original Message-
From: Jeffrey Greer [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 17:45
To: [EMAIL PROTECTED]
Subject: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___


Hello,

I am offering php hosting with features at a price no one else has, as
far as I know.  I'm not going to create a giant web hosting service.
I'm doing this to pay for my web portal.

snip



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

**

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




Re: [PHP-CVS] cvs: php4 /ext/mcrypt mcrypt.c

2001-04-10 Thread Colin Viebrock

 Hello Guys,

 do you think this should be merged to the 4.0.5 branch? Otherwise Blowfish
 (and others) encrypted get initialised with a too long key. That caused
 them to be not compatible with encryptions/decryptions made by other
 programs.

As the poster of the original bug report, I strongly suggest this be merged
into 4.0.5.  As it stands, PHP's blowfish encryption isn't compatible with
any other blowfish-encrypted programs, and should be fixed sooner rather
than later.

Of course, it will require a big note in the NEWS file ... :)

- Colin

P.S. Thank you Derick for figuring this out! :)


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




RE: [PHP] Commercial sites that use PHP

2001-04-10 Thread Benjamin Munoz


Yahoo uses a lot of Python.  Yahoo Mail pages have extensions of .py,
indicating Python.  Yahoo acquired eGroups and Google this past year, both
of which openly use Python to generate pages.  They most likely use Python
in conjunction with other scripting and compiled languages.

-Ben

-Original Message-
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 9:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Commercial sites that use PHP




Brent Langston wrote:

 Does anyone know what Yahoo uses?  It's obviously some form of
scripting...
 especially at http://my.yahoo.com.  I've always been curious about what
they
 are using as their parser... it appears to spit out pure HTML, so it acts
 like PHP...

 Any thoughts?

No offense here, but EVERYTHING does that.  ASP, JSP, CF, Perl, Frontier,
etc.
I think it's pretty impossible to tell what someone's using unless they
announce

via file extensions or something, and even then you can't always tell.





-- 
PHP General Mailing List (http://www.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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-04-10 Thread Rasmus Lerdorf

rasmus  Tue Apr 10 09:00:19 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Fix Kevin's password and add some karma
  
  

Index: CVSROOT/avail
diff -u CVSROOT/avail:1.142 CVSROOT/avail:1.143
--- CVSROOT/avail:1.142 Mon Apr  9 13:32:31 2001
+++ CVSROOT/avail   Tue Apr 10 09:00:18 2001
@@ -2,12 +2,12 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto,dams|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren,fireclaw,jmcastagnetto|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,hholzgra|functable
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,kevin,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren,fireclaw,jmcastagnetto|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,kevin|php4,php3,php31,phpfi
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,dbenson,bmcadams,swm,zhang,kevin,hholzgra|functable
 avail|rasmus,sterling,jimw,ssb|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb

[PHP-CVS] cvs: CVSROOT / cvsusers

2001-04-10 Thread Rasmus Lerdorf

rasmus  Tue Apr 10 09:16:17 2001 EDT

  Modified files:  
/CVSROOTcvsusers 
  Log:
  Fix email address
  
  
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.253 CVSROOT/cvsusers:1.254
--- CVSROOT/cvsusers:1.253  Mon Apr  9 13:32:31 2001
+++ CVSROOT/cvsusersTue Apr 10 09:16:16 2001
@@ -177,7 +177,7 @@
 eriksson  David Eriksson  [EMAIL PROTECTED] Corba 
extension
 troelsTroels Arvin[EMAIL PROTECTED] 
Documentation, PEAR
 wez   Wez Furlong [EMAIL PROTECTED]OpenSSL 
Support
-kevin Kevin N Shallow [EMAIL PROTECTED]  Velocis
+kevin Kevin N Shallow [EMAIL PROTECTED]   Velocis
 mkong Martin Kong [EMAIL PROTECTED]  
Character set conversion routines
 mhoh  MyungHwan Oh[EMAIL PROTECTED] UniSQL
 sasha Alexander Feldman   [EMAIL PROTECTED]   Bug 
fixes



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




  1   2   >