[PHP] javascript group

2001-05-18 Thread Jacky

Hi people
Does anyone outthere know any javascript mail list that I can subscribe to? And also, 
just in case, does anyone know how can I validate a form that has radio button to see 
if the radio button is checked before submit?
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you set for yourself



[PHP] Problem with PHP_SELF

2001-05-18 Thread Richard Kurth

  I am having a problem with this script. It works perfect if I just do
  a Query like (SELECT * FROM customers) but if I call it from
  another script with a form to set the search criteria for this Query
   (SELECT * FROM customers WHERE $metode LIKE '%$search%') It will
   show the first page but it gives me a error for any other page the
   problem is it does not pass the $metode $search on to the next page with
   PHP_SELF (look at bottom of script) How can I make it retain the
   variables to the next page?

// Number of entries per page
$per_page = 3; 
$sql_text = (SELECT * FROM customers WHERE $metode LIKE '%$search%');


// Set page #, if no page is specified, assume page 1
if (!$page) { 
   $page = 1; 
} 
$prev_page = $page - 1; 
$next_page = $page + 1; 

$query = mysql_query($sql_text);

// Set up specified page 
$page_start = ($per_page * $page) - $per_page; 
$num_rows = mysql_num_rows($query);


if ($num_rows = $per_page) { 
   $num_pages = 1; 
} else if (($num_rows % $per_page) == 0) { 
   $num_pages = ($num_rows / $per_page); 
} else { 
   $num_pages = ($num_rows / $per_page) + 1; 
} 
$num_pages = (int) $num_pages; 

if (($page  $num_pages) || ($page  0)) { 

} 
// 
// Now the pages are set right, we can 
// perform the actual displaying... 
$sql_text = $sql_text .  LIMIT $page_start, $per_page; 
$query = mysql_query($sql_text); 
?
table border=1 align=center
tr align=center valign=top bgcolor=#86B3E3
tdh3Plan/h3/td
tdh3Domain/h3/td
tdh3First Name/h3/td
tdh3Last Name/h3/td
tdh3Company/h3/td
tdh3Email/h3/td
tdh3User Name/h3/td
tdh3Password/h3/td
/tr
?
//$query = mysql_query(SELECT * FROM customersWHERE $metode LIKE '%$search%' LIMIT 0, 
30 ); 
while ($row  =  mysql_fetch_array($query)) 
   {$plan=$row[plan]; 
$domaname=$row[domaname]; 
$fname=$row[fname]; 
$lname=$row[lname]; 
$company=$row[company]; 
$email=$row[email]; 
$cusername=$row[cusername]; 
$cpassword=$row[cpassword]; 
echo tr align='center';
print 
(tdstrong$plan/strong/tdtdstrong$domaname/strong/tdtdstrong$fname/strong/td
 
tdstrong$lname/strong/tdtdstrong$company/strong/tdtdstrong$email/strong/tdtdstrong$cusername/strong/tdtdstrong$cpassword/strong/tdbr);
  
echo /tr;
   } 
echo /table;
// Previous
if ($prev_page)  {
   echo a href=\$PHP_SELF?page=$prev_page\Prev/a; 
}

// Page # direct links 
for ($i = 1; $i = $num_pages; $i++) {
   if ($i != $page) {   
   echo a href=\$PHP_SELF?page=$i\$i/a; 
   } else { 
  echo  $i ; 
   } 
} 

// Next 
if ($page != $num_pages) { 
   echo a href=\$PHP_SELF?page=$next_page\Next/a; 
}













Best regards,
 Richard  
mailto:[EMAIL PROTECTED]


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




Re: [PHP] Finding if a number is in the range

2001-05-18 Thread Christian Reiniger

On Friday 18 May 2001 06:16, MaD dUCK wrote:
 also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600):
  Or just use a simple chain of if statements :)

 yeah, but that's so O(n) !
 i can do in O(lg n)
 or, given n CREW processors, in O(1) time!

 yes, i have just finished my computational theory and computer
 algorithms honors exam.

Well, then you *do* know that O(log n) can be slower than O(n), right? :)
For a small number of ranges the chained ifs are most likely faster...

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

(A)bort (R)etry (P)retend this never happened ...

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




Re: [PHP] Problem with PHP_SELF

2001-05-18 Thread James Holloway

Hi Richard.

Two methods, POST and GET:  Post for forms and best works with hidden
elements.

Get can be put across URL's:

echo a href=\$PHP_SELF?page=$next_page$metode=$search\Next/a;

Or

FORM ACTION=? echo $PHP_SELF; ? METHOD=POST
INPUT TYPE=hidden NAME=? echo $metode; ? VALUE=? echo $search;
?
INPUT TYPE=Submit NAME=Submit VALUE=Next
/FORM

Of course form buttons look dreadful, so if you use that method, create a
graphic to use, or do a javscript work around for text links. Hope that
helps :)

James.

Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I am having a problem with this script. It works perfect if I just do
   a Query like (SELECT * FROM customers) but if I call it from
   another script with a form to set the search criteria for this Query
(SELECT * FROM customers WHERE $metode LIKE '%$search%') It will
show the first page but it gives me a error for any other page the
problem is it does not pass the $metode $search on to the next page
with
PHP_SELF (look at bottom of script) How can I make it retain the
variables to the next page?

 // Number of entries per page
 $per_page = 3;
 $sql_text = (SELECT * FROM customers WHERE $metode LIKE '%$search%');


 // Set page #, if no page is specified, assume page 1
 if (!$page) {
$page = 1;
 }
 $prev_page = $page - 1;
 $next_page = $page + 1;

 $query = mysql_query($sql_text);

 // Set up specified page
 $page_start = ($per_page * $page) - $per_page;
 $num_rows = mysql_num_rows($query);


 if ($num_rows = $per_page) {
$num_pages = 1;
 } else if (($num_rows % $per_page) == 0) {
$num_pages = ($num_rows / $per_page);
 } else {
$num_pages = ($num_rows / $per_page) + 1;
 }
 $num_pages = (int) $num_pages;

 if (($page  $num_pages) || ($page  0)) {

 }
 //
 // Now the pages are set right, we can
 // perform the actual displaying...
 $sql_text = $sql_text .  LIMIT $page_start, $per_page;
 $query = mysql_query($sql_text);
 ?
 table border=1 align=center
 tr align=center valign=top bgcolor=#86B3E3
 tdh3Plan/h3/td
 tdh3Domain/h3/td
 tdh3First Name/h3/td
 tdh3Last Name/h3/td
 tdh3Company/h3/td
 tdh3Email/h3/td
 tdh3User Name/h3/td
 tdh3Password/h3/td
 /tr
 ?
 //$query = mysql_query(SELECT * FROM customersWHERE $metode LIKE
'%$search%' LIMIT 0, 30 );
 while ($row  =  mysql_fetch_array($query))
{$plan=$row[plan];
 $domaname=$row[domaname];
 $fname=$row[fname];
 $lname=$row[lname];
 $company=$row[company];
 $email=$row[email];
 $cusername=$row[cusername];
 $cpassword=$row[cpassword];
 echo tr align='center';
 print
(tdstrong$plan/strong/tdtdstrong$domaname/strong/tdtdstr
ong$fname/strong/td
tdstrong$lname/strong/tdtdstrong$company/strong/tdtdstron
g$email/strong/tdtdstrong$cusername/strong/tdtdstrong$cpass
word/strong/tdbr);
 echo /tr;
}
 echo /table;
 // Previous
 if ($prev_page)  {
echo a href=\$PHP_SELF?page=$prev_page\Prev/a;
 }

 // Page # direct links
 for ($i = 1; $i = $num_pages; $i++) {
if ($i != $page) {
echo a href=\$PHP_SELF?page=$i\$i/a;
} else {
   echo  $i ;
}
 }

 // Next
 if ($page != $num_pages) {
echo a href=\$PHP_SELF?page=$next_page\Next/a;
 }













 Best regards,
  Richard
 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Problem with PHP_SELF

2001-05-18 Thread James Holloway

Gah!  Forgot an element for that form:  Page element.

INPUT TYPE=hidden NAME=page VALUE=? echo $next_page; ?

:)


 Hi Richard.

 Two methods, POST and GET:  Post for forms and best works with hidden
 elements.

 Get can be put across URL's:

 echo a href=\$PHP_SELF?page=$next_page$metode=$search\Next/a;

 Or

 FORM ACTION=? echo $PHP_SELF; ? METHOD=POST
 INPUT TYPE=hidden NAME=? echo $metode; ? VALUE=? echo
$search;
 ?
 INPUT TYPE=Submit NAME=Submit VALUE=Next
 /FORM

 Of course form buttons look dreadful, so if you use that method, create a
 graphic to use, or do a javscript work around for text links. Hope that
 helps :)

 James.

 Richard Kurth [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am having a problem with this script. It works perfect if I just do
a Query like (SELECT * FROM customers) but if I call it from
another script with a form to set the search criteria for this Query
 (SELECT * FROM customers WHERE $metode LIKE '%$search%') It will
 show the first page but it gives me a error for any other page the
 problem is it does not pass the $metode $search on to the next page
 with
 PHP_SELF (look at bottom of script) How can I make it retain the
 variables to the next page?
 
  // Number of entries per page
  $per_page = 3;
  $sql_text = (SELECT * FROM customers WHERE $metode LIKE '%$search%');
 
 
  // Set page #, if no page is specified, assume page 1
  if (!$page) {
 $page = 1;
  }
  $prev_page = $page - 1;
  $next_page = $page + 1;
 
  $query = mysql_query($sql_text);
 
  // Set up specified page
  $page_start = ($per_page * $page) - $per_page;
  $num_rows = mysql_num_rows($query);
 
 
  if ($num_rows = $per_page) {
 $num_pages = 1;
  } else if (($num_rows % $per_page) == 0) {
 $num_pages = ($num_rows / $per_page);
  } else {
 $num_pages = ($num_rows / $per_page) + 1;
  }
  $num_pages = (int) $num_pages;
 
  if (($page  $num_pages) || ($page  0)) {
 
  }
  //
  // Now the pages are set right, we can
  // perform the actual displaying...
  $sql_text = $sql_text .  LIMIT $page_start, $per_page;
  $query = mysql_query($sql_text);
  ?
  table border=1 align=center
  tr align=center valign=top bgcolor=#86B3E3
  tdh3Plan/h3/td
  tdh3Domain/h3/td
  tdh3First Name/h3/td
  tdh3Last Name/h3/td
  tdh3Company/h3/td
  tdh3Email/h3/td
  tdh3User Name/h3/td
  tdh3Password/h3/td
  /tr
  ?
  //$query = mysql_query(SELECT * FROM customersWHERE $metode LIKE
 '%$search%' LIMIT 0, 30 );
  while ($row  =  mysql_fetch_array($query))
 {$plan=$row[plan];
  $domaname=$row[domaname];
  $fname=$row[fname];
  $lname=$row[lname];
  $company=$row[company];
  $email=$row[email];
  $cusername=$row[cusername];
  $cpassword=$row[cpassword];
  echo tr align='center';
  print

(tdstrong$plan/strong/tdtdstrong$domaname/strong/tdtdstr
 ong$fname/strong/td

tdstrong$lname/strong/tdtdstrong$company/strong/tdtdstron

g$email/strong/tdtdstrong$cusername/strong/tdtdstrong$cpass
 word/strong/tdbr);
  echo /tr;
 }
  echo /table;
  // Previous
  if ($prev_page)  {
 echo a href=\$PHP_SELF?page=$prev_page\Prev/a;
  }
 
  // Page # direct links
  for ($i = 1; $i = $num_pages; $i++) {
 if ($i != $page) {
 echo a href=\$PHP_SELF?page=$i\$i/a;
 } else {
echo  $i ;
 }
  }
 
  // Next
  if ($page != $num_pages) {
 echo a href=\$PHP_SELF?page=$next_page\Next/a;
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
  Best regards,
   Richard
  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 General Mailing List (http://www.php.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] Please help!!!! HTTP problem...

2001-05-18 Thread Romulo Pereira

Hello!

I am in an server with Apache and PHP. I want PHP to authenticate in other
server (Novell with Netscape). Like this:

SSL (PAGE 1 SERVER 1)  SSL (PAGE 2 SERVER 2)

SERVER 1: Apache and PHP
SERVER 2: Novell with Netscape

PAGE 1: PHP script page
PAGE 2: PHP script page

Without asking again the username and password (I would be passing them in
the authentication time behind the scenes).

Please help!

Rom

P.S.: In my stupidity I try to do the following:

header (Location: https://USERNAME:PASSWORD@SERVER_ADDRESS/DIR/PAGE2.PHP;);

--
PHP General Mailing List (http://www.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] Finding if a number is in the range

2001-05-18 Thread MaD dUCK

also sprach Joseph Blythe (on Fri, 18 May 2001 02:29:40PM +0930):
 I give these ideas a go unfortunately the ranges are not contiguous, 
 they are all over the place.

so you make new ranges to fill spaces and associate a bool with
each... or you check them linearly...

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; net@madduck
-- 
for art to exist,
 for any sort of aesthetic activity or perception to exist,
 a certain physiological precondition is indispensable: intoxication. 
-- friedrich nietzsche

-- 
PHP General Mailing List (http://www.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] Finding if a number is in the range

2001-05-18 Thread MaD dUCK

also sprach Zak Greant (on Thu, 17 May 2001 11:50:35PM -0600):
 Do you really need a chainsaw to cut a piece of cake? ;)

hehe. depends.
and come on, i simultaneously have a point and am joking...

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; net@madduck
-- 
fermentation fault.
coors dumped.

-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-18 Thread Lucas Persona

All,

Billy Harvey wrote:
   2.   If I copy the html outputted to the browser and past it into an html file
   it loads good.  When I say I suspect this to be something wrong with PHP I
   mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)
 Neither Netscape nor any other browser has any clue that PHP is being
 used on the server.  All broswers simply interpret the html,
 javascript, java, etc.that gets sent to them.  PHP is not a factor in
 whatever is causing a browser to misbehave.  For Netscape it's often

  I was used to think on that way...
  Some time ago I have problems with Netscape 6 and PHP. It was not a
HTML error 
but something related to PHP/Netscape 6. 
  The problem was in showing correctly the source code.
  I had a page that includes another one, like a header/menu/footer main
that includes 
a data area.
  If I just put the include (or require code) following the page
sequence, that's ok,
the Netscape 6 shows correctly the source.
  If I add something like (if (isSet($var)  $var == 10) {}) before the
include 
(or require) and $var exists and has value 10, the parser will process
the include, show 
the page, but Netscape don't show the source code of this part.
  This is not a big deal when dealing with simple pages, but, if you
have a form on this 
page, it will not work right since after the page comes to the browser
and is shown, it 
doesn't recognize it anymore.
  It's very strange but I tested it and it happened that way...changing
something on PHP 
code, changes the behaviour of the browser..
  Testing on Netscape 4 or IE, just return the same source code for both
implementations 
(with and without the new 'if').

Any comments on this?
-- 
Lucas Persona

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




[PHP] Sessions - new window

2001-05-18 Thread jarek

Hi,

Is it posibble to have more than one session for one user?

I have a page with forms(report_select.php) and result
page(show_report.php),
when someone has two windowa opened with differents data postet from
(report_select.php),
old data are replaced by new and the effect is that there is one report
in both windows.

Is there any solutions to have multiple windows opened with differents
data posted from one page.

JArek

PS. Sorry for my english.

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




[PHP] a slight newbie question

2001-05-18 Thread Johan Vikerskog (ECS)

?php
/* Search for the criteria in $search
*/
 mysql_connect('localhost', 'root', 'qwerty') ;
 mysql_select_db('support') ;
 
 $result = mysql_query (SELECT * FROM records 
   WHERE MATCH (title,body) AGAINST ('$search'));


 ?


in this simple script(not for me).

What should i do to print out $result?


//Johan



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




[PHP] Problem with exec, shell_exec

2001-05-18 Thread Charles Williams \(CEO\)

below you'll see a bit of code that is not working for me.  I have tried
exec, shell_exec, passthru, system.  nothing works.  If I copy the echoed
copy of the command and paste it in an SSH session it works 100%.  all of
the exec, and such use the 'sh' shell.  So I changed to that shell to verfy
that it is working and it still works great in SSH but only halfway in the
script.  The command will create the needed directories but then it quits.
It doesn't finish the job.

$pass_string = caddvsite -i .$IP. -n www -d .$domain;
if($email==y)$pass_string .=  -e;
if($web==y)$pass_string .=  -w;
$pass_string .=  -q .$Quota. -u .$Users;
if($cgi==y)$pass_string .=  -c;
if($ssi==y)$pass_string .=  -s;
if($frontp==y)$pass_string .=  -x;
if($ssl==y)$pass_string .=  -l;
if($apop==y)$pass_string .=  -o;
if($ftp==y)$pass_string .=  -f;
if($telnet==y)$pass_string .=  -t;
#$pass_string .=  ;
echo$pass_string;
# system(touch /forbidden 21);
#printf(%s,system($pass_string));
exec( EscapeShellArg($pass_string) );

Any ideas appreciated.

chuck



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

2001-05-18 Thread Jason Stechschulte

On Wed, May 16, 2001 at 05:13:16PM -0400, jtjohnston wrote:
 I am parsing the contents of a text file.
Congratualtions.

 I have certain lines that start with 4; I would like to attach these
 lines to the previous line as follows. But I don't know how. I figure I
 have to search and replace for \n4; but ... ?

You could try something like this:

?php
$file = file(file);
for($i = 0, $k = 0; $i  sizeof($file); $i++) {
   if(substr($file[$i], 0, 4) == 4;) {
  $newfile[$k - 1] .= $file[$i];
   }
   else {
  $newfile[$k++] = $file[$i];
   }
}
?

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
Perl programming is an *empirical* science!
 -- Larry Wall in [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] url_rewriter.tags PHPSESSID automaticly added to URLS

2001-05-18 Thread Jason Stechschulte

On Thu, May 17, 2001 at 04:49:43PM -0700, Chris Cowan wrote:
 Does anyone know why the $PHPSESSID would be automaticly added to the url on
 PWS on Win2000 but not on IIS 4 on WinNT 4.0? Is this a feature dependent on
 the web server of is there something wrong on my server?

Most likely they are configured differently.  In Linux, you can
configure with:

--enable-trans-sid   

There is probably an equivalent way to do it in the .ini file.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
'Course, I haven't weighed in yet.  :-)
 -- Larry Wall in [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] a slight newbie question

2001-05-18 Thread elias

continue then like:

while ($r = mysql_fetch_array($result))
{
  echo title=$title, body=$body;
}

-elias

Johan Vikerskog (ECS) [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
 ?php
 /* Search for the criteria in $search
 */
  mysql_connect('localhost', 'root', 'qwerty') ;
  mysql_select_db('support') ;

  $result = mysql_query (SELECT * FROM records
WHERE MATCH (title,body) AGAINST ('$search'));


  ?


 in this simple script(not for me).

 What should i do to print out $result?


 //Johan



 --
 PHP General Mailing List (http://www.php.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] A universal Database Class

2001-05-18 Thread Andrew Hill

Brandon,

You may wish to try ODBC.  Counter to some misconceptions expressed, ODBC is
neither slow nor necessarily an 'additional' layer, and will provide you the
abstraction you mention.

ODBC requires a Driver Manager to work, there are HOWTO's on compiling PHP
with the iODBC Driver Manager at www.iodbc.org.

Please let me know if you require assistance.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access  Data Integration Technology Providers

 -Original Message-
 From: Brandon Orther [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 17, 2001 3:22 PM
 To: PHP User Group
 Subject: [PHP] A universal Database Class


 Hello,

 I am making a suite of online tools.  Right Now I am connecting
 to a MS SQL
 2000 database.  Is there any class out there that will let you
 send a query
 to more than just one type of databases?  Like someone could run it off a
 MSSQL server and another could run it off a MySQL database.

 thanks
 Brandon


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




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




[PHP] file()

2001-05-18 Thread elias

hello,

i have my file which reads like:
dir3/dir3-3/
dir2/
dir1/
s


now when i run this script:
  $a = file(exclude_dir.txt);
  $t = dir3/dir3-3/;
  $temp = in_array($t, $a) ? yes : no;
  echo \$a=;
  var_dump($a);
  echo br;
  echo in_array(\$t=$t, \$a)=$temp;


 i have this output:
$a=array(4) { [0]= string(13) dir3/dir3-3/  [1]= string(6) dir2/ 
[2]= string(6) dir1/  [3]= string(1) s }
in_array($t=dir3/dir3-3/, $a)=no


as you noticed that in each element of the array $a a space is appended
for an unknown reason!
that's why my in_array() call returns no

any ideas other than doing: $a = split(;, join('', file(myfile))); or
something?

-elias



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




Re: [PHP] javascript group

2001-05-18 Thread elias

Jacky!

form name=f1 action=
input type=radio name=sex value=maleder Manbr
input type=radio name=sex value=femaledie Fraubr
input type=submit onclick=if (!f1.sex[0].checked  !f1.sex[1].checked)
{alert('put something!');return false} alert('submitting now'); return
true;
/form

and group:

www.ozoneasylum.com

-elias

- Original Message -
From: Jacky [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Friday, May 18, 2001 12:30 AM
Subject: [PHP] javascript group


Hi people
Does anyone outthere know any javascript mail list that I can subscribe to?
And also, just in case, does anyone know how can I validate a form that has
radio button to see if the radio button is checked before submit?
cheers
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] Problem with talnet

2001-05-18 Thread khuram latif

Hi Dears,
Please tell me the alternate software of Telnet, because i've problem
with talnet.

Regards,
khuram


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




Re: [PHP] Problem with talnet

2001-05-18 Thread Kurth Bemis

At 09:31 AM 5/18/2001, khuram latif wrote:

http://www.openssh.org

you want SSH (Secure Shell) why anyone uses telnet anymore is beyond me.

~kurth

Hi Dears,
Please tell me the alternate software of Telnet, because i've problem
with talnet.

Regards,
khuram


--
PHP General Mailing List (http://www.php.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] Why is this not working

2001-05-18 Thread bill

I use php as a CGI from a secure location to do it all.

To add a user to .htpasswd on Apache:

  $thefile=fopen($pathtofile/.htpasswd, a);
  $newuserline=$username: . crypt($pass) . \n;
  fwrite($thefile, $newuserline);

kind regards,

bill hollett


YoBro wrote:

 After much investigation through many newsgroups and websites, I found out
 that this is the way you can execute a unix apache command to add a user to
 the htpasswd list with PHP.

 Problem is, it doesn't add any information to the htpasswd file.
 Note: The example below is...
 domain = my user name
 abc = user name to add to htpasswd list
 pass = password to add to htpasswd list

 ?php
 passthru (htpasswd -b /users/domain/.htpasswd abc pass);
 ?

 Please Help if you can.

 Cheers,
 YoBro

 --
 PHP General Mailing List (http://www.php.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] Problem with exec, shell_exec

2001-05-18 Thread Charles Williams \(CEO\)

Have located ( I think ) the problem.

I have been calling 'super' from the php script and when I call 'cadduser'
it works perfect but when I call 'caddvsite' I get an 'Unable to setgid=0'
error.  Any idea why this would happen?  Both executables are owned by
root.root and permission of both are set to 4700. the exec() call uses the
'sh' shell on both script calls.

The only differance is that one works and the other doesn't.   Any ideas?

Thanks,

Chuck

- Original Message -
From: Charles Williams (CEO)
[EMAIL PROTECTED]
To: Php-General (E-mail) [EMAIL PROTECTED]
Sent: Friday, May 18, 2001 2:38 PM
Subject: [PHP] Problem with exec, shell_exec


 below you'll see a bit of code that is not working for me.  I have tried
 exec, shell_exec, passthru, system.  nothing works.  If I copy the echoed
 copy of the command and paste it in an SSH session it works 100%.  all of
 the exec, and such use the 'sh' shell.  So I changed to that shell to
verfy
 that it is working and it still works great in SSH but only halfway in the
 script.  The command will create the needed directories but then it quits.
 It doesn't finish the job.

 $pass_string = caddvsite -i .$IP. -n www -d .$domain;
 if($email==y)$pass_string .=  -e;
 if($web==y)$pass_string .=  -w;
 $pass_string .=  -q .$Quota. -u .$Users;
 if($cgi==y)$pass_string .=  -c;
 if($ssi==y)$pass_string .=  -s;
 if($frontp==y)$pass_string .=  -x;
 if($ssl==y)$pass_string .=  -l;
 if($apop==y)$pass_string .=  -o;
 if($ftp==y)$pass_string .=  -f;
 if($telnet==y)$pass_string .=  -t;
 #$pass_string .=  ;
 echo$pass_string;
 # system(touch /forbidden 21);
 #printf(%s,system($pass_string));
 exec( EscapeShellArg($pass_string) );

 Any ideas appreciated.

 chuck



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

2001-05-18 Thread Taline Makssabo

This is a program i wrote to get some information at keep track with some
stats. I am very new at this so bare with meI keep on getting this
Warning:

Warning: Supplied argument is not a valid MySQL result resource in
/home/virtual/ppcu/home/httpd/html/php2/stat.php on line 13

Warning: Supplied argument is not a valid MySQL-Link resource in
/home/virtual/ppcu/home/httpd/html/php2/stat.php on line 17

Whats wrong Is it my code? Please help.

?

global $dblink,$PHP_SELF;
$ip = getenv(REMOTE_ADDR);
$host = getenv(HTTP_HOST);
$browser = getenv(HTTP_USER_AGENT);
$referer = getenv(HTTP_REFERER);
$sql = SELECT ipaddress FROM stat WHERE ipaddress = '$ip';
$connection = @mysql_connect(localhost, username, password) or
die(Couldn't connect.);
$db_name = contact;
$table_name = stat;
$result = @mysql_query($sql, $dblink);
$num = mysql_num_rows($result);
if( $num == 0 )
{
$sql =INSERT INTO stat(ipaddress,host,browser,referer,filename)
VALUES('$ip', '$host', '$browser', '$referer','$PHP_SELF');
$result=mysql_query($sql,$dblink);
$sql1=INSERT INTO hits(ipaddress,count) VALUES('$ip',1);
$result1=@mysql_query($sql1,$dblink);
$text=you had a new visitor from IP: $ip, Host: $host Browser:
$browser Referer: $referer;
 if ($result)
{
mail([EMAIL PROTECTED], You had a new visitor,$text, FROM:
[EMAIL PROTECTED]);
}
}else{
$sql = UPDATE hits SET count = count + 1 where ipaddress='$ip';
$result =@mysql_query($sql, $dblink) ;
$sql2 = UPDATE stat SET filename ='$PHP_SELF' where ipaddress='$ip';
$result2 =@mysql_query($sql2, $dblink) ;
}
?


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

2001-05-18 Thread Taline Makssabo

Here is another error i keep on getting, this is suppose to send me an email
each time someone enters in my website but i keep on gettong this error
message:



Parse error: parse error in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
I don't see anything wrong, please help.



?

SetLogging(1);

Function AccessHit
(

$NL = (\n);


$H = getLastHost();


$R = getLastRef();

$To = [EMAIL PROTECTED];


$Sub = Page Accessed;


$D = Date(D d M y h:ia,time());

$Msg = $H + $NL + $R + $NL + $D;

mail($To,$Sub,$Msg);
);
AccessHit();

?




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

2001-05-18 Thread elias

You forgot to select the database!

mysql_select_db($db_name);

-elias
http://www.eassoft.cjb.net

Taline Makssabo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 This is a program i wrote to get some information at keep track with some
 stats. I am very new at this so bare with meI keep on getting this
 Warning:

 Warning: Supplied argument is not a valid MySQL result resource in
 /home/virtual/ppcu/home/httpd/html/php2/stat.php on line 13

 Warning: Supplied argument is not a valid MySQL-Link resource in
 /home/virtual/ppcu/home/httpd/html/php2/stat.php on line 17

 Whats wrong Is it my code? Please help.

 ?

 global $dblink,$PHP_SELF;
 $ip = getenv(REMOTE_ADDR);
 $host = getenv(HTTP_HOST);
 $browser = getenv(HTTP_USER_AGENT);
 $referer = getenv(HTTP_REFERER);
 $sql = SELECT ipaddress FROM stat WHERE ipaddress = '$ip';
 $connection = @mysql_connect(localhost, username, password) or
 die(Couldn't connect.);
 $db_name = contact;
 $table_name = stat;
 $result = @mysql_query($sql, $dblink);
 $num = mysql_num_rows($result);
 if( $num == 0 )
 {
 $sql =INSERT INTO stat(ipaddress,host,browser,referer,filename)
 VALUES('$ip', '$host', '$browser', '$referer','$PHP_SELF');
 $result=mysql_query($sql,$dblink);
 $sql1=INSERT INTO hits(ipaddress,count) VALUES('$ip',1);
 $result1=@mysql_query($sql1,$dblink);
 $text=you had a new visitor from IP: $ip, Host: $host Browser:
 $browser Referer: $referer;
 if ($result)
 {
 mail([EMAIL PROTECTED], You had a new visitor,$text, FROM:
 [EMAIL PROTECTED]);
 }
 }else{
 $sql = UPDATE hits SET count = count + 1 where ipaddress='$ip';
 $result =@mysql_query($sql, $dblink) ;
 $sql2 = UPDATE stat SET filename ='$PHP_SELF' where ipaddress='$ip';
 $result2 =@mysql_query($sql2, $dblink) ;
 }
 ?


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

2001-05-18 Thread Rasmus Lerdorf

 Here is another error i keep on getting, this is suppose to send me an email
 each time someone enters in my website but i keep on gettong this error
 message:

 Parse error: parse error in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
 I don't see anything wrong, please help.

 ?

 SetLogging(1);

 Function AccessHit
 (

That's not how you define a function.  Use:

  function AccessHit() {
  ...
  }

-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] Parse error..help!

2001-05-18 Thread Keith Ng

In reply to [EMAIL PROTECTED]:

 Return-Path: [EMAIL PROTECTED]
 Received: from toye.php.net (va.php.net [198.186.203.51])
 by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638
 for [EMAIL PROTECTED]; Fri, 18 May 2001 21:44:39 +0800
 Received: (qmail 23365 invoked by uid 1013); 18 May 2001 13:47:20 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 23359 invoked from network); 18 May 2001 13:47:20 -
 Reply-To: [EMAIL PROTECTED]
 From: Taline Makssabo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Fri, 18 May 2001 09:49:35 -0400
 Message-ID: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain;
 charset=iso-8859-1
 Content-Transfer-Encoding: 7bit
 X-Priority: 3 (Normal)
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
 Importance: Normal
 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
 Subject: [PHP] Parse error..help!
 X-UIDL: #l6!fL$#!:Bj!n1f!!

 Here is another error i keep on getting, this is suppose to send me an email
 each time someone enters in my website but i keep on gettong this error
 message:



 Parse error: parse error in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
 I don't see anything wrong, please help.



 ?

 SetLogging(1);

 Function AccessHit
 (

 $NL = (\n);


 $H = getLastHost();


 $R = getLastRef();

 $To = [EMAIL PROTECTED];


 $Sub = Page Accessed;


 $D = Date(D d M y h:ia,time());

 $Msg = $H + $NL + $R + $NL + $D;

 mail($To,$Sub,$Msg);
 );
 AccessHit();

?

$NL = (\n)?

It should be $NL = \n;


Regards,
Keith Ng
___
Co-founder
K-Designs Incorporated
[EMAIL PROTECTED]

http://www.k-designs.com.sg/


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

2001-05-18 Thread Don Read


On 18-May-01 Taline Makssabo wrote:
 This is a program i wrote to get some information at keep track with some
 stats. I am very new at this so bare with meI keep on getting this
 Warning:
 
 Warning: Supplied argument is not a valid MySQL result resource in
 /home/virtual/ppcu/home/httpd/html/php2/stat.php on line 13
 
 Warning: Supplied argument is not a valid MySQL-Link resource in
 /home/virtual/ppcu/home/httpd/html/php2/stat.php on line 17
 
 Whats wrong Is it my code? Please help.
 
 ?
 
 global $dblink,$PHP_SELF;
 $ip = getenv(REMOTE_ADDR);
 $host = getenv(HTTP_HOST);
 $browser = getenv(HTTP_USER_AGENT);
 $referer = getenv(HTTP_REFERER);
 $sql = SELECT ipaddress FROM stat WHERE ipaddress = '$ip';
   $connection = @mysql_connect(localhost, username, password) or
 die(Couldn't connect.);

Not too informative:
  die ('pproblems ' .mysql_errno() .'BR'.mysql_error().BR\n);

but anyhow, ok, you're connected.

   $db_name = contact;
   $table_name = stat;

What are these ?
are you missing mysql_select_db($db_name); ?

   $result = @mysql_query($sql, $dblink);
  
Test your queries !

if ($result) {

 $num = mysql_num_rows($result);
   if( $num == 0 )
 {
   $sql =INSERT INTO stat(ipaddress,host,browser,referer,filename)
 VALUES('$ip', '$host', '$browser', '$referer','$PHP_SELF');
   $result=mysql_query($sql,$dblink);
   $sql1=INSERT INTO hits(ipaddress,count) VALUES('$ip',1);
   $result1=@mysql_query($sql1,$dblink);
   $text=you had a new visitor from IP: $ip, Host: $host Browser:
 $browser Referer: $referer;
if ($result)
   {
   mail([EMAIL PROTECTED], You had a new visitor,$text,
FROM:
 [EMAIL PROTECTED]);
   }
   }else{
   $sql = UPDATE hits SET count = count + 1 where ipaddress='$ip';
   $result =@mysql_query($sql, $dblink) ;
   $sql2 = UPDATE stat SET filename ='$PHP_SELF' where ipaddress='$ip';
   $result2 =@mysql_query($sql2, $dblink) ;
 }
 ?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

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

2001-05-18 Thread Keith Ng

In reply to [EMAIL PROTECTED]:

 Return-Path: [EMAIL PROTECTED]
 Received: from toye.php.net (va.php.net [198.186.203.51])
 by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638
 for [EMAIL PROTECTED]; Fri, 18 May 2001 21:44:39 +0800
 Received: (qmail 23365 invoked by uid 1013); 18 May 2001 13:47:20 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 23359 invoked from network); 18 May 2001 13:47:20 -
 Reply-To: [EMAIL PROTECTED]
 From: Taline Makssabo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Fri, 18 May 2001 09:49:35 -0400
 Message-ID: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain;
 charset=iso-8859-1
 Content-Transfer-Encoding: 7bit
 X-Priority: 3 (Normal)
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
 Importance: Normal
 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
 Subject: [PHP] Parse error..help!
 X-UIDL: #l6!fL$#!:Bj!n1f!!

 Here is another error i keep on getting, this is suppose to send me an email
 each time someone enters in my website but i keep on gettong this error
 message:



 Parse error: parse error in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
 I don't see anything wrong, please help.



 ?

 SetLogging(1);

 Function AccessHit
 (

 $NL = (\n);


 $H = getLastHost();


 $R = getLastRef();

 $To = [EMAIL PROTECTED];


 $Sub = Page Accessed;


 $D = Date(D d M y h:ia,time());

 $Msg = $H + $NL + $R + $NL + $D;

 mail($To,$Sub,$Msg);
 );
 AccessHit();

?

Right... so all in all the code should be:

---
?

SetLogging(1);

function AccessHit() {

$NL = \n;


$H = getLastHost();


$R = getLastRef();

$To = [EMAIL PROTECTED];


$Sub = Page Accessed;


$D = Date(D d M y h:ia,time());

$Msg = $H + $NL + $R + $NL + $D;

mail($To,$Sub,$Msg);

}
AccessHit();

?
---

Regards,
Keith Ng
___
Co-founder
K-Designs Incorporated
[EMAIL PROTECTED]

http://www.k-designs.com.sg/


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

2001-05-18 Thread infoz

It should be something like:

function AccessHit()
{
 ...
}



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

2001-05-18 Thread elias

Were you a LISP programmer or something?



Taline Makssabo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Here is another error i keep on getting, this is suppose to send me an
email
 each time someone enters in my website but i keep on gettong this error
 message:



 Parse error: parse error in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
 I don't see anything wrong, please help.



 ?

 SetLogging(1);

 Function AccessHit
 (

 $NL = (\n);


 $H = getLastHost();


 $R = getLastRef();

 $To = [EMAIL PROTECTED];


 $Sub = Page Accessed;


 $D = Date(D d M y h:ia,time());

 $Msg = $H + $NL + $R + $NL + $D;

 mail($To,$Sub,$Msg);
 );
 AccessHit();

 ?




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




RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT

2001-05-18 Thread Felipe Moreno

Hi list members,

   I'm trying to develop a script that work like the MS jscript function
called RSexec () (Remote Script execute). During this develop, I'm having a
doubt regarding the use of that function RSexec(), cause I was reading about
it, and every reference points do use it with ASP (active server pages). My
doubt is: Anyone ever used it with PHP? Is it possible? Anyone know any
alternative function in Javascript or another solution to archive the same
effect as the RSexec() ? The scene is something like:

I have two select dropdown list boxes, the first one is MARK and the other
one is MODELS. The first contain all the MARKS...and the second is
EMPTY...waiting for the MARK to be select to query a Database and get the
results. So, when I select the MARK, the MODELS box value became WAIT... and
the query start...So, after the results arrive, the models box get all the
respective values. So, everything happen without refreshing the screen. It's
a very powerfull function...and don't work in Netscape...

Thanks for your attention! Thanks for any ideas!

Best Regards,

Felipe Moreno


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

2001-05-18 Thread Matt Davis

Until recently I have been using php3 on a linux webserver. Most of my sites
uses php_track_vars at some point.

I have just set up PHP 4 on my NT webserver in house to use a development
machine rather than uploading everything to test it. This has been great and
has been saving me a lot of time, however php_track_vars does not work and I
get the following error message.

Warning: ?php_track_vars? is no longer supported - please use the
track_vars INI directive instead in
e:\intranet\www\in_progress\pdq\php_version\admin\dealers\do_add.php on line
1

Couldn't execute query.

I have checked the PHP.INI file and it says that track_vars is always on as
default. I have also looked in the PHP manual but it does not say what to
change to make ?php_track_vars? work.

I think I must be missing something really simple.

Can anybody help.

Matt.


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

2001-05-18 Thread Chris Lee

I dont think there are ways of doing that. can you give some code snippits ? what data 
are you storing in the session ? sessions are great for storeing unique id's etc, you 
can use them to store your entire db, but you shouldnt IMHO...

-- 

 Chris Lee
 [EMAIL PROTECTED]




jarek [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

Is it posibble to have more than one session for one user?

I have a page with forms(report_select.php) and result
page(show_report.php),
when someone has two windowa opened with differents data postet from
(report_select.php),
old data are replaced by new and the effect is that there is one report
in both windows.

Is there any solutions to have multiple windows opened with differents
data posted from one page.

JArek

PS. Sorry for my english.

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



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




Re: [PHP] php_track_vars

2001-05-18 Thread Rasmus Lerdorf

 Until recently I have been using php3 on a linux webserver. Most of my sites
 uses php_track_vars at some point.

 I have just set up PHP 4 on my NT webserver in house to use a development
 machine rather than uploading everything to test it. This has been great and
 has been saving me a lot of time, however php_track_vars does not work and I
 get the following error message.

 Warning: ?php_track_vars? is no longer supported - please use the
 track_vars INI directive instead in
 e:\intranet\www\in_progress\pdq\php_version\admin\dealers\do_add.php on line
 1

 Couldn't execute query.

 I have checked the PHP.INI file and it says that track_vars is always on as
 default. I have also looked in the PHP manual but it does not say what to
 change to make ?php_track_vars? work.

 I think I must be missing something really simple.

Given that it says that track_vars is always on now, simply remove that
line from your scripts and everything will work fine.

-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] REMOTE SCRIPTING - RSexec() DOUBT

2001-05-18 Thread Jon Haworth

Two things:

1. You might want to read the Zend article on chained selectors:
http://www.zend.com/zend/tut/drop-down.php
2. If it's a site to do with cars, it's marques, not marks.

Cheers
Jon


-Original Message-
From: Felipe Moreno [mailto:[EMAIL PROTECTED]]
Sent: 18 May 2001 15:10
To: [EMAIL PROTECTED]
Subject: RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT
Importance: High


Hi list members,

   I'm trying to develop a script that work like the MS jscript function
called RSexec () (Remote Script execute). During this develop, I'm having a
doubt regarding the use of that function RSexec(), cause I was reading about
it, and every reference points do use it with ASP (active server pages). My
doubt is: Anyone ever used it with PHP? Is it possible? Anyone know any
alternative function in Javascript or another solution to archive the same
effect as the RSexec() ? The scene is something like:

I have two select dropdown list boxes, the first one is MARK and the other
one is MODELS. The first contain all the MARKS...and the second is
EMPTY...waiting for the MARK to be select to query a Database and get the
results. So, when I select the MARK, the MODELS box value became WAIT... and
the query start...So, after the results arrive, the models box get all the
respective values. So, everything happen without refreshing the screen. It's
a very powerfull function...and don't work in Netscape...

Thanks for your attention! Thanks for any ideas!

Best Regards,

Felipe Moreno


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



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

**

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




Re: [PHP] Please help!!!! HTTP problem...

2001-05-18 Thread Chris Lee

that should work, if you dont want the username and password seen in the url bar the 
once your at that page, see if the username:password@ are in the url, if so 
header_redrect to the same page minus the username/passwd. once a browser has the 
username/passwd it remembers it and sends it on every page it needs to. one comment is 
opera will give the user a warning with this http://username:[EMAIL PROTECTED]/ 
method, stating they are going to a 'possibly' misjeaveous site.

-- 

 Chris Lee
 [EMAIL PROTECTED]




Romulo Pereira [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello!

I am in an server with Apache and PHP. I want PHP to authenticate in other
server (Novell with Netscape). Like this:

SSL (PAGE 1 SERVER 1)  SSL (PAGE 2 SERVER 2)

SERVER 1: Apache and PHP
SERVER 2: Novell with Netscape

PAGE 1: PHP script page
PAGE 2: PHP script page

Without asking again the username and password (I would be passing them in
the authentication time behind the scenes).

Please help!

Rom

P.S.: In my stupidity I try to do the following:

header (Location: https://USERNAME:PASSWORD@SERVER_ADDRESS/DIR/PAGE2.PHP;);

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



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




[PHP] Need more help please!

2001-05-18 Thread Taline Makssabo

Thanks for the reply but now i have problems with my pop up! Here is the
message in getting. Whats the problem now

Warning: Supplied argument is not a valid MySQL result resource in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 29

Warning: Cannot add header information - headers already sent by (output
started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 9

Warning: Cannot add header information - headers already sent by (output
started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 10

Warning: Cannot add header information - headers already sent by (output
started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 4

Warning: Cannot add header information - headers already sent by (output
started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
/home/virtual/ppcu/home/httpd/html/php2/login.php on line 5






?php

function access_denied()

Header(WWW-Authenticate: Basic realm=\$title\);
Header(HTTP/1.0 401 Unauthorized);
}

function auth_headers($title)

Header(WWW-Authenticate: Basic realm=\$title\);
Header(HTTP/1.0 401 Unauthorized);
}

if(!isset($PHP_AUTH_USER))

auth_headers(Members Area);
access_denied();
exit;
}
else


$db_hostname = localhost; // database host, usually localhost
$db_username = contact; // username for the database
$db_password = cdi986; // password that cooresponds to DB USERNAME
$db_database = contact; // what database is your member info stored in?


$query = SELECT username,password FROM contact_informations WHERE
username='$PHP_AUTH_USER' AND password='$PHP_AUTH_PW';
$link = mysql_connect($db_hostname, $db_username, $db_password) or
die(Unable to connect to database server);

if (mysql_num_rows(mysql_db_query($db_database, $query)) == 0)

auth_headers(Members Area);
access_denied();
exit;
}

mysql_close($link);
}

?

?

SetLogging(1);

Function AccessHit()
{

$NL = \n;


$H = getLastHost();


$R = getLastRef();

$To = [EMAIL PROTECTED];


$Sub = Page Accessed;


$D = Date(D d M y h:ia,time());

$Msg = $H + $NL + $R + $NL + $D;

mail($To,$Sub,$Msg);
}


?



-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-18 Thread Lucas Persona

Jason,

I've Replyed also to the lsit, because someone could help us on this...

Jason Lotito wrote:
 Lucas Persona wrote:
I was used to think on that way...
Some time ago I have problems with Netscape 6 and PHP. It
  was not a HTML error
  but something related to PHP/Netscape 6.
The problem was in showing correctly the source code.
I had a page that includes another one, like a
  header/menu/footer main that includes
  a data area.
If I just put the include (or require code) following the
  page sequence, that's ok, the Netscape 6 shows correctly the source.
If I add something like (if (isSet($var)  $var == 10) {})
  before the include
  (or require) and $var exists and has value 10, the parser
  will process the include, show
  the page, but Netscape don't show the source code of this part.
 
 Unfortunately, I have a very hard time believing this.  Now, I can
 imagine a few instances where this might come into play, but then you
 would have to actually design for this to happen, but you didn't.  I
 would have to imagine that something was wrong with your actual code
 logic, as PHP is only as good as the HTML you code, and the logic you
 use.  If the if statement was failing, of course it would not include
 the file.  At the same time, why you used both isset() and $var == 10
 when $var == 10 would have worked fine also makes me wonder about the
 underlying code.

  Yeah I know...I can say that I still don't believe..but it happens! :)
  If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try 
the following codes:

File: netscape6.php
?php
echo HTMLBODY\n;
echo this is a test...this is the first partBR\n;
echo this is a test...this is the second partBR\n;
echo form method=\POST\ action=\netscape6.1.php\
name=\netscape\\n;
echo input type=hidden name=var value=10\n;
echo input type=submit name=go value=\Test\\n;
echo /form\n;
echo /BODY/HTML\n;
?

File: netscape6.1.php
?php
echo HTMLBODY\n;
echo 1) this is a test...this is the first partBR\n;
echo this is a test...this is the second partBR\n;
if ( $var == 10)
{
  include ('netscape6.2.php');
}
echo this is a test...this is the last partbr\n;
echo /BODY/HTML\n;
?

File: netscape6.2.php
?php
echo h1this is the other file.../h1\n;
?



Ok, now that you have all the three sample files you can check for 
HTML errors...
How I did the test:
1. Run Netscape 6
2. Access file netscape6.php
3. Press the 'Test' button that POST to netscape6.1.php
4. See the page and compare with the source code (View Page Source)
5. Surprise! They are different...the netscape6.2.php file is not in the
source.

6. Change the netscape6.1.php file on the following lines:
3: echo 2) this is a test...this is the first partBR\n;
5: // if ( $var == 10)
6: //{
8: //}
7. Great! Now that you just take the if statement out, clear the
Netscape 
Cache (Edit - Preferences - Advanced - Cache - Clear Memory Cache
and 
Clear Disk Cache)
8. Access file netscape6.php again..
9. Press the 'Test' button that POST to netscape6.1.php
10. The result is the same that you've get before but now, when you view 
the source code, the result of netscape6.2.php is there too..
11. Be sure to see the '2)' on the Page Source. If the '1)' is still
there 
you need to clean your cache.

Anyone did this test? How Netscape know that there is an if statment
there??
Any point that I'm missing on this test?
 
This is not a big deal when dealing with simple pages, but,
  if you have a form on this
  page, it will not work right since after the page comes to
  the browser and is shown, it
  doesn't recognize it anymore.
It's very strange but I tested it and it happened that
  way...changing something on PHP
  code, changes the behaviour of the browser..
 
 No.  PHP does what you tell it to do, and by all accounts, I can only
 see that you were telling PHP NOT to display the code.

Try the test above.. It shows the code but netscape doesn't know that.

See you,
Lucas Persona

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




Re: [PHP] Parse error..help!

2001-05-18 Thread Greg K

Also take off the semicolon of the closing of the function }
Taline Makssabo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Here is another error i keep on getting, this is suppose to send me an
email
 each time someone enters in my website but i keep on gettong this error
 message:



 Parse error: parse error in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
 I don't see anything wrong, please help.



 ?

 SetLogging(1);

 Function AccessHit
 (

 $NL = (\n);


 $H = getLastHost();


 $R = getLastRef();

 $To = [EMAIL PROTECTED];


 $Sub = Page Accessed;


 $D = Date(D d M y h:ia,time());

 $Msg = $H + $NL + $R + $NL + $D;

 mail($To,$Sub,$Msg);
 );
 AccessHit();

 ?




 --
 PHP General Mailing List (http://www.php.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] Problem with talnet

2001-05-18 Thread John Monfort



   Try SSH (Secure Shell)



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-

On Fri, 18 May 2001, khuram latif wrote:

 Hi Dears,
 Please tell me the alternate software of Telnet, because i've problem
 with talnet.

 Regards,
 khuram


 --
 PHP General Mailing List (http://www.php.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] exit in function

2001-05-18 Thread Jakob Kruse

Hi

I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an
Apache module.

If I use the exit construct from within a function Apache crashes. I made a
small test-page like this:

?php
function foo() {
  echo foo1;
  exit;
  echo foo2;
}
foo();
echo bar;
?

I would expect it to print foo1 and then nothing more. But instead Apache
crashes. Why?

Regards,
Jakob Kruse

PS: I know it isn't very nice to use exit that way, but I'm trying to run
some PHP software that uses it extensively.



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




[PHP] Where the hell did my session vars go?!?

2001-05-18 Thread John Wells


I'm having serious issues with session management in PHP and am trying
to
determine if it's a problem with my hosting company or a problem in my
code.

The flow of my site is:

login_page - session_start_page - form_page - display_results_page

Upon login a POST is made to session_start_page.  This page checks that
the user
exists in the database and then creates a session and populates a
session
variable ($session_id) to 123456.  session_start_page then calls
header(location) to forward to the form_page.  I output the $session_id
for
debugging purposes on every page following the session_start_page

The problem occurs as such:

Upon initial login, when the user reaches the form_page the $session_id
is
populated and prints 123456.  However, when a user submits the form
and a GET
is made to display_results_page, the $session_id has been deleted (i.e.,
prints
no value).  Since my code relies on the $session_id variable for
security, this
causes the user to be forwarded to an intermediate error page and then
back to
the login_page.

Upon the second login, everything functions as I would expect it
to...the
session_id variable is populated on every screen and no error occurs.

At first I thought the problem might be the version of PHP my hoster was
using.
Up until a week ago, the version was 4.0.4pl1.  However, the server was
upgraded
to PHP 4.0.5 last week.  Now, the problem seems to be fixed in Netscape
4.07 but
still occurs when using IE 4.

I'm at a loss. I've done quite a bit of research in to this problem and
haven't
found an answer.  Any help anyone could provide would be much
appreciated.  The
code is as follows:

---

host.php (configuration file)
---

?
$base_href=http://x/membership/;;
$dbuser=user;
$dbpass=pass;
$dbhost=localhost;
$database=members;
$member_table=MEMBERS;
$login_table=LOGIN;
?
---

login_page.php
---

HTML
HEADTITLELogin/TITLE
/HEAD
BODY BGCOLOR=white
h4Please login to view the member database:/h4
FORM name=login ACTION=session_start_page.php METHOD=POST
TABLE name=login_table
TRTDUsername: /TDTDINPUT NAME=username
TYPE=text/INPUT/TD/TR
TRTDPassword: /TDTDINPUT NAME=password
TYPE=password/INPUT/TD/TR
TRTD COLSPAN=2INPUT TYPE=submit value=login/INPUT/TD/TR
/TABLE
/FORM
/BODY
/HTML
---

session_start_page.php
---

?
include(host.php);

mysql_pconnect($dbhost, $dbuser, $dbpass);

$db= $database;

$table = $member_table;

$result = mysql_db_query($db, select username, password from
$login_table);

while ($row=mysql_fetch_row($result))
{
 if (($username==$row[0])($password==$row[1]))
{
$logged=true;
}
}
if ($logged==true)
{

 session_start();

session_register('session_id');

$session_id = 123456;

header(location:form_page.php);
}
else
{
print Invalid login!;
}
?
---

form_page.php
---

?
include(host.php);

session_start();

if($session_id)
{
?
HTML
HEADTITLEMember Information/TITLE
BASE HREF=?=$base_href?
/HEAD
BODY BGCOLOR=WHITE
? print SESSION: $session_idBR; ?
FORM NAME=SEARCH_MEMBERS METHOD=POST
ACTION=display_results_page.php
TABLE
TR
TDLast Name: /TDTDINPUT TYPE=TEXT NAME=LASTNAME/INPUT/TD
/TR
TR
TDFirst Name: /TDTDINPUT TYPE=TEXT NAME=FIRSTNAME/INPUT/TD
/TR
TR
TDStreet: /TDTDINPUT TYPE=TEXT NAME=STREET/INPUT/TD
/TR
TR
TDCity: /TDTDINPUT TYPE=TEXT NAME=CITY/INPUT/TD
/TR
TR
TDState: /TDTDINPUT TYPE=TEXT NAME=STATE/INPUT/TD
/TR
TR
TDZip: /TDTDINPUT TYPE=TEXT NAME=ZIP/INPUT/TD
/TR
TR
TDPhone: /TDTDINPUT TYPE=TEXT NAME=PHONE/INPUT/TD
/TR
TR
TD COLSPAN=2INPUT TYPE=SUBMIT VALUE=SEARCH/INPUT/TD
/TR
/TABLE
/FORM
/BODY
/HTML
? }
   else
   {
?
HTML
BODY onLoad=location.href='error.html'
/BODY
/HTML
? } ?
---

display_results_page.php
---

?
include(host.php);

session_start();

if(session_is_registered(session_id))
{
?
HTML
HEADTITLERESULTS/TITLE
BASE HREF=?=$base_href?
/HEAD
BODY BGCOLOR=white
?
 print Session_id: $session_idBR;

if ($COMMAND==0)
{
 $dbh = mysql_connect($dbhost, $dbuser, $dbpass);

 mysql_select_db($database);

 $stmt = SELECT * FROM $member_table ;

 if ($LASTNAME)
 {
 $TEMP .= (($TEMP) ?  AND  :  WHERE ) . LAST_NAME LIKE

[PHP] Flash SQL Component Kit

2001-05-18 Thread Mike Chambers

I have just release the Flash / SQL component kit. This makes it simple to
execute SQL queries from within Flash (and then manipulate the results from
Flash).

I am posting this here because it includes PHP server components (for
connections to ODBC and MySQL).

Basically, the kit makes it easy to work with database data within Flash.

here is the url:

http://www.markme.com/as/flashsql/

mike chambers


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

2001-05-18 Thread Taline Makssabo

Thanks for all the help guys but one more minor issue, i am not receiving
the email that someone accessed my page...why??



?
Function AccessHit()
{

$NL = \n;


$H = getLastHost();


$R = getLastRef();

$To = [EMAIL PROTECTED];


$Sub = Page Accessed;


$D = Date(D d M y h:ia,time());

$Msg = $H + $NL + $R + $NL + $D;

mail($To,$Sub,$Msg);
}


?


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

2001-05-18 Thread PHPBeginner.com

it happens quite often on Win2k. Don't know why, but in my case it happened
with some loopy-loops containing SQL in it. Sometimes it works sometimes it
doesn't. Try also renaming files. I know it sounds ridiculous, but happened
to work for me.

m

-Original Message-
From: Jakob Kruse [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 11:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] exit in function


Hi

I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an
Apache module.

If I use the exit construct from within a function Apache crashes. I made a
small test-page like this:

?php
function foo() {
  echo foo1;
  exit;
  echo foo2;
}
foo();
echo bar;
?

I would expect it to print foo1 and then nothing more. But instead Apache
crashes. Why?

Regards,
Jakob Kruse

PS: I know it isn't very nice to use exit that way, but I'm trying to run
some PHP software that uses it extensively.



--
PHP General Mailing List (http://www.php.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] Where the hell did my session vars go?!?

2001-05-18 Thread John Wells

Here's the server config if it's more help.  Thanks!!!
John

PHP Version 4.0.5

System Linux xxx 2.2.16-3 #1 Mon Jun 19 18:10:14 EDT 2000 i686
unknown
Build Date May 17 2001
Configure Command './configure' '--with-mysql' '--with-apache=../apache_1.3.19'
'--enable-track-vars' '--with-xml' '--enable-memory-limit=yes' '--enable-bcmath'
'--with-gd=/usr/local/' '--with-gdbm=/usr/include' '--with-zlib=/usr/include'
'--with-ttf' '--with-jpeg-dir=/usr/local/lib' '--with-mcrypt' '--with-sablot='
'/usr/local/lib' '--enable-sablot-errors-descriptive'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
ZEND_DEBUG disabled
Thread Safety disabled

 This program makes use of the Zend scripting language engine:
Zend Engine v1.0.5, Copyright (c) 1998-2001 Zend Technologies



PHP 4.0 Credits

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference
 On On
allow_url_fopen
 1 1
arg_separator
  
arg_separator.input
  
arg_separator.output
  
asp_tags
 On On
auto_append_file
 no value no value
auto_prepend_file
 no value no value
browscap
 no value no value
default_charset
 no value no value
default_mimetype
 text/html text/html
define_syslog_variables
 Off Off
disable_functions
 no value no value
display_errors
 On On
display_startup_errors
 Off Off
doc_root
 no value no value
enable_dl
 On On
error_append_string
 Off Off
error_log
 no value no value
error_prepend_string
 Off Off
error_reporting
 2039 2039
expose_php
 On On
extension_dir
 ./ ./
file_uploads
 1 1
gpc_order
 GPC GPC
highlight.bg
 #FF #FF
highlight.comment
 #FF8000 #FF8000
highlight.default
 #BB #BB
highlight.html
 #00 #00
highlight.keyword
 #007700 #007700
highlight.string
 #DD #DD
html_errors
 On On
ignore_user_abort
 Off Off
implicit_flush
 Off Off
include_path
 .:/usr/local/lib/php .:/usr/local/lib/php
log_errors
 Off Off
magic_quotes_gpc
 On On
magic_quotes_runtime
 Off Off
magic_quotes_sybase
 Off Off
max_execution_time
 30 30
memory_limit
 8M 8M
open_basedir
 no value no value
output_buffering
 Off Off
output_handler
 no value no value
post_max_size
 8M 8M
precision
 14 14
register_argc_argv
 On On
register_globals
 On On
safe_mode
 Off Off
safe_mode_exec_dir
 no value no value
sendmail_from
 [EMAIL PROTECTED] [EMAIL PROTECTED]
sendmail_path
 /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i
short_open_tag
 On On
SMTP
 localhost localhost
sql.safe_mode
 Off Off
track_errors
 Off Off
upload_max_filesize
 1M 1M
upload_tmp_dir
 /tmp /tmp
user_dir
 no value no value
variables_order
 EGPCS EGPCS
y2k_compliance
 Off Off
zlib
ZLib Support enabled
'zlib:' fopen wrapper enabled
Compiled Version 1.1.3
Linked Version 1.1.3
xml
XML Support active
XML Namespace Support active
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active
 1 1
assert.bail
 0 0
assert.callback
 no value no value
assert.quiet_eval
 0 0
assert.warning
 1 1
safe_mode_allowed_env_vars
 PHP_ PHP_
safe_mode_protected_env_vars
 LD_LIBRARY_PATH LD_LIBRARY_PATH
session.use_trans_sid
 1 1
session
Session Support enabled

Directive Local Value Master Value
session.auto_start
 Off Off
session.cache_expire
 180 180
session.cache_limiter
 nocache nocache
session.cookie_domain
 no value no value
session.cookie_lifetime
 0 0
session.cookie_path
 / /
session.cookie_secure
 Off Off
session.entropy_file
 no value no value
session.entropy_length
 0 0
session.gc_maxlifetime
 1440 1440
session.gc_probability
 1 1
session.name
 PHPSESSID PHPSESSID
session.referer_check
 no value no value
session.save_handler
 files files
session.save_path
 /tmp /tmp
session.serialize_handler
 php php
session.use_cookies
 On On
sablot
Sablotron XSLT support enabled
posix
Revision $Revision: 1.27 $
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.4 22-Aug-2000
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.32
MYSQL_INCLUDE
MYSQL_LFLAGS
MYSQL_LIBS

Directive Local Value Master Value
mysql.allow_persistent
 Off Off
mysql.default_host
 no value no value
mysql.default_password
 no value no value
mysql.default_port
 no value no value
mysql.default_socket
 /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock
mysql.default_user
 no value no value
mysql.max_links
 Unlimited Unlimited
mysql.max_persistent
 5 5
mcrypt
mcrypt support enabled
version 2.4.x
Supported ciphers twofish rijndael-128 rijndael-192 rijndael-256 saferplus rc2 xtea
serpent safer-sk64 safer-sk128 cast-256 loki97 gost threeway cast-128 des tripledes
enigma arcfour panama wake
Supported modes ofb cfb nofb cbc ecb stream

Directive Local Value Master Value
mcrypt.algorithms_dir
 no value no value
mcrypt.modes_dir
 no value no value
gd
GD Support enabled
GD Version 1.6.2 or higher
JPG Support enabled
PNG Support enabled
WBMP Support enabled

RE: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-18 Thread PHPBeginner.com

Try this:


File: netscape6.php
?php
echo HTMLBODY\n;
echo this is a test...this is the first partBR\n;
echo this is a test...this is the second partBR\n;
echo form method=\POST\ action=\netscape6.1.php\
name=\netscape\\n;
echo input type=\hidden\ name=\var\ value=\10\\n; // here
echo input type=\submit\ name=\go\ value=\Test\\n;// and here
echo /form\n;
echo /BODY/HTML\n;
?


these quotes are the only thing I can believe Netscape might be guilty in.

Even if it was exactly Netscape's 3 HTML parser to invent a (no quotes are
necessary as long as there's at least one blank character)

Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

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




-Original Message-
From: Lucas Persona [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 11:50 PM
To: Jason Lotito; [EMAIL PROTECTED]
Subject: Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had
problems with php and Netscape 6?


Jason,

I've Replyed also to the lsit, because someone could help us on this...

Jason Lotito wrote:
 Lucas Persona wrote:
I was used to think on that way...
Some time ago I have problems with Netscape 6 and PHP. It
  was not a HTML error
  but something related to PHP/Netscape 6.
The problem was in showing correctly the source code.
I had a page that includes another one, like a
  header/menu/footer main that includes
  a data area.
If I just put the include (or require code) following the
  page sequence, that's ok, the Netscape 6 shows correctly the source.
If I add something like (if (isSet($var)  $var == 10) {})
  before the include
  (or require) and $var exists and has value 10, the parser
  will process the include, show
  the page, but Netscape don't show the source code of this part.

 Unfortunately, I have a very hard time believing this.  Now, I can
 imagine a few instances where this might come into play, but then you
 would have to actually design for this to happen, but you didn't.  I
 would have to imagine that something was wrong with your actual code
 logic, as PHP is only as good as the HTML you code, and the logic you
 use.  If the if statement was failing, of course it would not include
 the file.  At the same time, why you used both isset() and $var == 10
 when $var == 10 would have worked fine also makes me wonder about the
 underlying code.

  Yeah I know...I can say that I still don't believe..but it happens! :)
  If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try
the following codes:

File: netscape6.php
?php
echo HTMLBODY\n;
echo this is a test...this is the first partBR\n;
echo this is a test...this is the second partBR\n;
echo form method=\POST\ action=\netscape6.1.php\
name=\netscape\\n;
echo input type=hidden name=var value=10\n;
echo input type=submit name=go value=\Test\\n;
echo /form\n;
echo /BODY/HTML\n;
?

File: netscape6.1.php
?php
echo HTMLBODY\n;
echo 1) this is a test...this is the first partBR\n;
echo this is a test...this is the second partBR\n;
if ( $var == 10)
{
  include ('netscape6.2.php');
}
echo this is a test...this is the last partbr\n;
echo /BODY/HTML\n;
?

File: netscape6.2.php
?php
echo h1this is the other file.../h1\n;
?



Ok, now that you have all the three sample files you can check for
HTML errors...
How I did the test:
1. Run Netscape 6
2. Access file netscape6.php
3. Press the 'Test' button that POST to netscape6.1.php
4. See the page and compare with the source code (View Page Source)
5. Surprise! They are different...the netscape6.2.php file is not in the
source.

6. Change the netscape6.1.php file on the following lines:
3: echo 2) this is a test...this is the first partBR\n;
5: // if ( $var == 10)
6: //{
8: //}
7. Great! Now that you just take the if statement out, clear the
Netscape
Cache (Edit - Preferences - Advanced - Cache - Clear Memory Cache
and
Clear Disk Cache)
8. Access file netscape6.php again..
9. Press the 'Test' button that POST to netscape6.1.php
10. The result is the same that you've get before but now, when you view
the source code, the result of netscape6.2.php is there too..
11. Be sure to see the '2)' on the Page Source. If the '1)' is still
there
you need to clean your cache.

Anyone did this test? How Netscape know that there is an if statment
there??
Any point that I'm missing on this test?

This is not a big deal when dealing with simple pages, but,
  if you have a form on this
  page, it will not work right since after the page comes to
  the browser and is shown, it
  doesn't recognize it anymore.
It's very strange but I tested it and it happened that
  

[PHP] IIS5.0/PHP4.03 killing all sessions. HELP!!!!

2001-05-18 Thread Diego Fulgueira

Hi!. I have the following problem (we are going crazy about it!!) and i
think there's many people out there that have experienced the same thing:

A session created in one page is killed on the next one. Check an example:
PAGE 1:
session_start();
session_register(myvar);
$myvar=hello;
PAGE 2:
session_start();//A new session_id is generated...!!
//...Instead of using the already created one...!
//...Even when PHPSESSID is passed on as a 
get-variable!!.
echo $myvar;  //$myvar does not exist!!!.
echo $HTTP_SESSION_VARS[myvar]; //$HTTP_SESSION_VARS[myvar] does not
exist either!!!.

Here are some configuration parameters I am using:

session.use_cookies ON (I tried OFF also without success).
session.auto_start  OFF (I tried ON also without success).
session.use_trans_sid ON (I tried OFF also without success).
register_globals ON
track_vars ON

HERE ARE SOME CLUES:
1.The session files in the server are being written fine, their contents
look fine MOST of the time, although sometimes not all session vars or
values are being written or files are empty. Read and write permissions in
the directory have been double checked.

2.Sometimes sessions last trough one or two pages after the first
session_start(), but then they are killed on each and every page.


HELP PLEASE!!
Any ideas will be greatly appreciated since I've tried almost all that has
come to my mind.

THANKS A LOT IN ADVANCE.
Cheers to everyone,
Diego.


-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-18 Thread scott [gts]

yes.  netscape is incredibly anal about tables.
if you miss even one tag, the entire table
will not show... and netscape handles table background
images weird too, so keep that in mind if the table
shows up, but looks like someone vomited all over it.

per your subject header: 
1) it's a netscape problem -- it affects 4.x, not just 6
2) PHP is server-side.  it's not repsonsible for the rendering
  of HTML by each individual browser.  if something looks ok
  in IE and breaks in Netscape, then it's most likely the
  browser's fault, not PHP.  the browser doesn't ever *see*
  the PHP code...  so there's no way that a browser could
  ever have problems *just* with PHP.  

  think about PHP in the same way you'd think about a binary
  CGI application that returned HTML code to the browser,
  or a server-side perl script.  the browser only sees what
  you return to it...


 -Original Message-
 From: Jeff Pearson [mailto:[EMAIL PROTECTED]]
 
 Brandon,
 
 The tr tag at the end of the Billing row is not closed. Ive seen NS choke
 because of that.
 
 Jeff Pearson


-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread DAve Goodrich

Have you tried this test with your code?

http://www.php.net/FAQ.php#7.8

The FAQ does not give a solution, but the problem is known to have affected
only select users. The problem is no-one seems to know what the selection
criteria is! Some people have the problem, some do not.

DAve


on 5/18/01 7:49 AM, Lucas Persona at [EMAIL PROTECTED] wrote:

 Jason,
 
 I've Replyed also to the lsit, because someone could help us on this...
 
 Jason Lotito wrote:
 Lucas Persona wrote:
 I was used to think on that way...
 Some time ago I have problems with Netscape 6 and PHP. It
 was not a HTML error
 but something related to PHP/Netscape 6.
 The problem was in showing correctly the source code.
 I had a page that includes another one, like a
 header/menu/footer main that includes
 a data area.
 If I just put the include (or require code) following the
 page sequence, that's ok, the Netscape 6 shows correctly the source.
 If I add something like (if (isSet($var)  $var == 10) {})
 before the include
 (or require) and $var exists and has value 10, the parser
 will process the include, show
 the page, but Netscape don't show the source code of this part.
 
 Unfortunately, I have a very hard time believing this.  Now, I can
 imagine a few instances where this might come into play, but then you
 would have to actually design for this to happen, but you didn't.  I
 would have to imagine that something was wrong with your actual code
 logic, as PHP is only as good as the HTML you code, and the logic you
 use.  If the if statement was failing, of course it would not include
 the file.  At the same time, why you used both isset() and $var == 10
 when $var == 10 would have worked fine also makes me wonder about the
 underlying code.
 
 Yeah I know...I can say that I still don't believe..but it happens! :)
 If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try
 the following codes:
 
 File: netscape6.php
 ?php
 echo HTMLBODY\n;
 echo this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\n;
 echo form method=\POST\ action=\netscape6.1.php\
 name=\netscape\\n;
 echo input type=hidden name=var value=10\n;
 echo input type=submit name=go value=\Test\\n;
 echo /form\n;
 echo /BODY/HTML\n;
 ?
 
 File: netscape6.1.php
 ?php
 echo HTMLBODY\n;
 echo 1) this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\n;
 if ( $var == 10)
 {
 include ('netscape6.2.php');
 }
 echo this is a test...this is the last partbr\n;
 echo /BODY/HTML\n;
 ?
 
 File: netscape6.2.php
 ?php
 echo h1this is the other file.../h1\n;
 ?
 
 
 
 Ok, now that you have all the three sample files you can check for
 HTML errors...
 How I did the test:
 1. Run Netscape 6
 2. Access file netscape6.php
 3. Press the 'Test' button that POST to netscape6.1.php
 4. See the page and compare with the source code (View Page Source)
 5. Surprise! They are different...the netscape6.2.php file is not in the
 source.
 
 6. Change the netscape6.1.php file on the following lines:
 3: echo 2) this is a test...this is the first partBR\n;
 5: // if ( $var == 10)
 6: //{
 8: //}
 7. Great! Now that you just take the if statement out, clear the
 Netscape 
 Cache (Edit - Preferences - Advanced - Cache - Clear Memory Cache
 and 
 Clear Disk Cache)
 8. Access file netscape6.php again..
 9. Press the 'Test' button that POST to netscape6.1.php
 10. The result is the same that you've get before but now, when you view
 the source code, the result of netscape6.2.php is there too..
 11. Be sure to see the '2)' on the Page Source. If the '1)' is still
 there 
 you need to clean your cache.
 
 Anyone did this test? How Netscape know that there is an if statment
 there??
 Any point that I'm missing on this test?
 
 This is not a big deal when dealing with simple pages, but,
 if you have a form on this
 page, it will not work right since after the page comes to
 the browser and is shown, it
 doesn't recognize it anymore.
 It's very strange but I tested it and it happened that
 way...changing something on PHP
 code, changes the behaviour of the browser..
 
 No.  PHP does what you tell it to do, and by all accounts, I can only
 see that you were telling PHP NOT to display the code.
 
 Try the test above.. It shows the code but netscape doesn't know that.
 
 See you,
 Lucas Persona

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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: 

Re: [PHP] IIS5.0/PHP4.03 killing all sessions. HELP!!!!

2001-05-18 Thread John Wells

I have this problem as well (see Where the hell did my session vars go?).

We were using 4.0.4pl1 and it was occuring under both Netscape 4.74 and IE 5.5.

We upgraded PHP to version 4.0.5 and everything works nicely under Netscape, but IE 
5.5 is
still screwing up.

Just for info...

Thanks,
John

Diego Fulgueira wrote:

 Hi!. I have the following problem (we are going crazy about it!!) and i
 think there's many people out there that have experienced the same thing:

 A session created in one page is killed on the next one. Check an example:
 PAGE 1:
 session_start();
 session_register(myvar);
 $myvar=hello;
 PAGE 2:
 session_start();//A new session_id is generated...!!
 //...Instead of using the already created one...!
 //...Even when PHPSESSID is passed on as a 
get-variable!!.
 echo $myvar;  //$myvar does not exist!!!.
 echo $HTTP_SESSION_VARS[myvar]; //$HTTP_SESSION_VARS[myvar] does not
 exist either!!!.

 Here are some configuration parameters I am using:

 session.use_cookies ON (I tried OFF also without success).
 session.auto_start  OFF (I tried ON also without success).
 session.use_trans_sid ON (I tried OFF also without success).
 register_globals ON
 track_vars ON

 HERE ARE SOME CLUES:
 1.The session files in the server are being written fine, their contents
 look fine MOST of the time, although sometimes not all session vars or
 values are being written or files are empty. Read and write permissions in
 the directory have been double checked.

 2.Sometimes sessions last trough one or two pages after the first
 session_start(), but then they are killed on each and every page.

 HELP PLEASE!!
 Any ideas will be greatly appreciated since I've tried almost all that has
 come to my mind.

 THANKS A LOT IN ADVANCE.
 Cheers to everyone,
 Diego.

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

2001-05-18 Thread DAve Goodrich

According to the w3c validation program;

A URL for a CGI program that uses `' as a separator, such as
http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
didn't think things through very carefully when they decided to use the ''
character as a separator between CGI arguments, because '' has special
status in HTML. One way to get around this is for the author of the CGI
program to use a different value between arguments, like ';' or '|', which
would allow the link to be coded as img
src=http://site/cgi?opt1=val1;opt2=val2; or whatever.

I know that php 4.0.5 has a new ini directive for this, is there any way to
change this on older versions of PHP?

Thanks,

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Arg seperators

2001-05-18 Thread Rasmus Lerdorf

 According to the w3c validation program;

 A URL for a CGI program that uses `' as a separator, such as
 http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
 didn't think things through very carefully when they decided to use the ''
 character as a separator between CGI arguments, because '' has special
 status in HTML. One way to get around this is for the author of the CGI
 program to use a different value between arguments, like ';' or '|', which
 would allow the link to be coded as img
 src=http://site/cgi?opt1=val1;opt2=val2; or whatever.

 I know that php 4.0.5 has a new ini directive for this, is there any way to
 change this on older versions of PHP?

That directive has been there for a long time.

-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] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-18 Thread Brian S. Dunworth

At 11:37 AM 5/18/01 -0400, scott [gts] wrote:
yes.  netscape is incredibly anal about tables.

   Actually, it's incredibly anal about following the HTML 
specification(s).  An incomplete tag pair (ie: TABLE /TABLE) is to be 
_ignored_ ...similarly, unrecognized parameters inside certain tags are 
ignored and the parameters that *are* recognized are utilized.  This is all 
according to the ideal specification.  Internet Explorer, which will 
attempt to ascertain what the (bad) HTML programmer meant by inserting 
missing tags, etc, is the program that is not doing things correctly.

   All that is to say that Netscape, at least in this instance, is doing 
exactly what it is supposed to do.  Internet Explorer should not display 
anything within malformed or missing tag pairs.

if you miss even one tag, the entire table
will not show...

   this is not necessarily true, unless the one tag you're missing is the 
TABLE or /TABLE tag...


per your subject header:
1) it's a netscape problem -- it affects 4.x, not just 6

   No, it's an Internet Explorer problem.  The HTML specification clearly 
indicates that unrecognized and/or incomplete tags should be IGNORED.   Not 
_interpreted_ or _guessed_at_, but ignored.

2) PHP is server-side.  it's not repsonsible for the rendering
   of HTML by each individual browser.

this part is correct...

   if something looks ok in IE and breaks in Netscape, then it's most
   likely the browser's fault, not PHP.

I think you may mean, if something looks okay in IE and doesn't appear 
in Netscape, then it's most likely the HTML programmers fault for not 
writing clean, legitimate HTML within their PHP program.

   the browser doesn't ever *see* the PHP code...  so there's no way
   that a browser could ever have problems *just* with PHP.

   Agreed...


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

2001-05-18 Thread scott [gts]

from the shell, you can use the mysql program 
./mysql -uUser -pPass dbname

from PHP, why dont you just use: mysql_connect(...);

it seems that you might be confused about mysql, trying to
access it via PHP from the unix shell.  if you want to
set a unix shell enviornment variable and access it from 
PHP, you can do this, but i dont know how ;) becuase 
i've never had to do it.

beware of any security risks that this might open you
up for... storing passwords as env. vars

 -Original Message-
 From: Jack Sasportas [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] MYSQL Password
 
 
 pass the parameter -p and it will ask you for the password
 
 Andreas Pucko wrote:
 
  Hello,
 
  I am trying to get mysql running and connect via php to it.
 
  how can I set the password in a unixshell to get access to it?
 
  When I try to access the db I get:
 
  Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
  (Using password: NO) in /psr/mysqladmin/lib.inc.php on line 255
  Error
 
  Andy suggestions?
 
  Cheers
 
  Andy


-- 
PHP General Mailing List (http://www.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] running a stand-alone PHP program

2001-05-18 Thread scott [gts]

do you have a ScriptAlias
directive in the apache conf's?

 -Original Message-
 From: midget2000x [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 17, 2001 5:16 PM
 To: Nathan Cook; [EMAIL PROTECTED]
 Subject: Re: [PHP] running a stand-alone PHP program
 
 
 Excellent.  I got this working.  From a command line the standalone PHP
 scripts work well, but if I hit them via http, it renders the path to PHP at the
 top of the page (but does execute the code).  Any fix for that?
 
 Thanks,
 
 Rory

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




RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT

2001-05-18 Thread Felipe Moreno

Jon,

Thank you for your help, but unfortunately, this won't help me, cause I
tested the script you told me in ZEND, and it is different of what I'm
trying to reach, cause it generate the javascript inside the file...but,
imagine if I have about 2000 models and 100 Maquees (now I got it!
hehehehehe! I must train my english often!!)...I will have a very heavy
file...So, the only solution I can see, is using the RSexec () for remoting
scripting...I'm trying to make it using hidden frames...but I'm having a
real problem, cause I can't have a FORM inside another FORM...So, I'm trying
to make something to jump this barrier!
A very good example of what I'm trying to make, is in the brazilian site
called www.automovel.com.br , you can go to the 0Km cars (Carros 0KM) and
you gonna find the dropdown I'm trying to make WITHOUT the use of the
RSexec(), cause in this site, they use this MS function...But, when you try
to enter with Netscape, it just don't work!...Any ideas?

Thanks for everything,

Best Regards,

Felipe Moreno

-Mensagem original-
De: Jon Haworth [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 18 de maio de 2001 11:35
Para: 'Felipe Moreno'; '[EMAIL PROTECTED]'
Assunto: RE: [PHP] REMOTE SCRIPTING - RSexec() DOUBT


Two things:

1. You might want to read the Zend article on chained selectors:
http://www.zend.com/zend/tut/drop-down.php
2. If it's a site to do with cars, it's marques, not marks.

Cheers
Jon


-Original Message-
From: Felipe Moreno [mailto:[EMAIL PROTECTED]]
Sent: 18 May 2001 15:10
To: [EMAIL PROTECTED]
Subject: RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT
Importance: High


Hi list members,

   I'm trying to develop a script that work like the MS jscript function
called RSexec () (Remote Script execute). During this develop, I'm having a
doubt regarding the use of that function RSexec(), cause I was reading about
it, and every reference points do use it with ASP (active server pages). My
doubt is: Anyone ever used it with PHP? Is it possible? Anyone know any
alternative function in Javascript or another solution to archive the same
effect as the RSexec() ? The scene is something like:

I have two select dropdown list boxes, the first one is MARK and the other
one is MODELS. The first contain all the MARKS...and the second is
EMPTY...waiting for the MARK to be select to query a Database and get the
results. So, when I select the MARK, the MODELS box value became WAIT... and
the query start...So, after the results arrive, the models box get all the
respective values. So, everything happen without refreshing the screen. It's
a very powerfull function...and don't work in Netscape...

Thanks for your attention! Thanks for any ideas!

Best Regards,

Felipe Moreno


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



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

**

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



-- 
PHP General Mailing List (http://www.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 Pros/Cons, Case Examples, PHP vs Servlets

2001-05-18 Thread Bass???

I've a web programmer ( just beginner ) using PHP .
And I also learn / write java at my university since I'm a student .

As I know , developing a page using PHP is much faster than java .
Not just 1 / 2 hrs , but maybe one day to a week .

Learning Java including servlet takes times , but you can learn php within 1
to 2 days .

updating and managing the PHP script is more easlier and faster than servlet
.


The sercuity of java is better and the network controlling features is
better too .

The loading time of servlet is faster since the server just need to run the
servlet one times
and the servlet will leave inside server's memory for further use , but PHP
script will be
run every times

you can control synchronization in servlet but you can't in PHP



I suggest you need not to use PHP or servlet on whole site ,
You can depend on the function of the page



PS : I hope can help you . Maybe you know it before but I just want to share
it .
   If I have wrong concept , welcome experts correct it and I can learn
from it . THX




Scott A Winkle [EMAIL PROTECTED] ?
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 Im currently running many scripts myself and other staff members wrote in
 PHP for the university. Certain others want to eliminate PHP and make
 everything Java based. It is now in the 'debate meeting' stage, so I need
 some help. I have done a handful of research already, but im looking for
 more info.

 Specifically:

 Pros/Cons of PHP (in general) ...from your experiences
 Pros/Cons of PHP in a university environment ...for those working at/with
 universities/educational institutions
 Case Examples of PHP use in universities, would be especially helpful for
 anyone with examples of using PHP with a datatel product.
 Any info on using PHP with a UniData database, even if its through ODBC.
 Any cases where you found PHP was better at the task than Java, or
 vice-versa. Specific examples, etc, would be even better.

 The meeting is scheduled for May 22, so any info prior would be great

 Thanks for the help,
 Scott


 Scott Winkle
 Web Developer
 Phone: (937) 327-7478
 [EMAIL PROTECTED]
 Web Team / Wittenberg University Computing Center




-- 
PHP General Mailing List (http://www.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] REMOTE SCRIPTING - RSexec() DOUBT

2001-05-18 Thread Jon Haworth

Hm, the function that loads the models uses /cotizar/mmv/getdata.asp with
RSExec, I see what you mean.

Don't know how to deal with this really (sorry), I'm no good with ASP, and
apart from using include() or require() in PHP, I'm not sure how else you
could run another file.

If you don't get any joy on this list, you could try asking on a more
general list like evolt.org's thelist or wdvl.com's wdvltalk.

HTH
Jon


-Original Message-
From: Felipe Moreno [mailto:[EMAIL PROTECTED]]
Sent: 18 May 2001 17:12
To: Jon Haworth; [EMAIL PROTECTED]
Subject: RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT
Importance: High


Jon,

Thank you for your help, but unfortunately, this won't help me, cause I
tested the script you told me in ZEND, and it is different of what I'm
trying to reach, cause it generate the javascript inside the file...but,
imagine if I have about 2000 models and 100 Maquees (now I got it!
hehehehehe! I must train my english often!!)...I will have a very heavy
file...So, the only solution I can see, is using the RSexec () for remoting
scripting...I'm trying to make it using hidden frames...but I'm having a
real problem, cause I can't have a FORM inside another FORM...So, I'm trying
to make something to jump this barrier!
A very good example of what I'm trying to make, is in the brazilian site
called www.automovel.com.br , you can go to the 0Km cars (Carros 0KM) and
you gonna find the dropdown I'm trying to make WITHOUT the use of the
RSexec(), cause in this site, they use this MS function...But, when you try
to enter with Netscape, it just don't work!...Any ideas?

Thanks for everything,

Best Regards,

Felipe Moreno

-Mensagem original-
De: Jon Haworth [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 18 de maio de 2001 11:35
Para: 'Felipe Moreno'; '[EMAIL PROTECTED]'
Assunto: RE: [PHP] REMOTE SCRIPTING - RSexec() DOUBT


Two things:

1. You might want to read the Zend article on chained selectors:
http://www.zend.com/zend/tut/drop-down.php
2. If it's a site to do with cars, it's marques, not marks.

Cheers
Jon


-Original Message-
From: Felipe Moreno [mailto:[EMAIL PROTECTED]]
Sent: 18 May 2001 15:10
To: [EMAIL PROTECTED]
Subject: RES: [PHP] REMOTE SCRIPTING - RSexec() DOUBT
Importance: High


Hi list members,

   I'm trying to develop a script that work like the MS jscript function
called RSexec () (Remote Script execute). During this develop, I'm having a
doubt regarding the use of that function RSexec(), cause I was reading about
it, and every reference points do use it with ASP (active server pages). My
doubt is: Anyone ever used it with PHP? Is it possible? Anyone know any
alternative function in Javascript or another solution to archive the same
effect as the RSexec() ? The scene is something like:

I have two select dropdown list boxes, the first one is MARK and the other
one is MODELS. The first contain all the MARKS...and the second is
EMPTY...waiting for the MARK to be select to query a Database and get the
results. So, when I select the MARK, the MODELS box value became WAIT... and
the query start...So, after the results arrive, the models box get all the
respective values. So, everything happen without refreshing the screen. It's
a very powerfull function...and don't work in Netscape...

Thanks for your attention! Thanks for any ideas!

Best Regards,

Felipe Moreno


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



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

**

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



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

2001-05-18 Thread nick

How can I store a large number, value over 8 billion for bitwise 
comparison?  I have a large set of switchs, getting up to 2 pow 34, and 
it goes outside the size of an int, can't set a type that will work.

Nicholas Burke
Strategic Profits Inc.


-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-18 Thread Brandon Orther

You should be appointed to the head of all HTML.  For you are the master and
can see through the ignorance of us all.  I bow below you and thank you for
letting me grace your presence.  You truly are the HTML messiah

8/

-Original Message-
From: Brian S. Dunworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 8:59 AM
To: scott [gts]; php
Subject: RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had
problems with php and Netscape 6?


At 11:37 AM 5/18/01 -0400, scott [gts] wrote:
yes.  netscape is incredibly anal about tables.

   Actually, it's incredibly anal about following the HTML
specification(s).  An incomplete tag pair (ie: TABLE /TABLE) is to be
_ignored_ ...similarly, unrecognized parameters inside certain tags are
ignored and the parameters that *are* recognized are utilized.  This is all
according to the ideal specification.  Internet Explorer, which will
attempt to ascertain what the (bad) HTML programmer meant by inserting
missing tags, etc, is the program that is not doing things correctly.

   All that is to say that Netscape, at least in this instance, is doing
exactly what it is supposed to do.  Internet Explorer should not display
anything within malformed or missing tag pairs.

if you miss even one tag, the entire table
will not show...

   this is not necessarily true, unless the one tag you're missing is the
TABLE or /TABLE tag...


per your subject header:
1) it's a netscape problem -- it affects 4.x, not just 6

   No, it's an Internet Explorer problem.  The HTML specification clearly
indicates that unrecognized and/or incomplete tags should be IGNORED.   Not
_interpreted_ or _guessed_at_, but ignored.

2) PHP is server-side.  it's not repsonsible for the rendering
   of HTML by each individual browser.

this part is correct...

   if something looks ok in IE and breaks in Netscape, then it's most
   likely the browser's fault, not PHP.

I think you may mean, if something looks okay in IE and doesn't appear
in Netscape, then it's most likely the HTML programmers fault for not
writing clean, legitimate HTML within their PHP program.

   the browser doesn't ever *see* the PHP code...  so there's no way
   that a browser could ever have problems *just* with PHP.

   Agreed...


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


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

2001-05-18 Thread Sam Masiello


Perhaps you want something like this:

$Msg = $H.$NL.$R.$NL.$D;

HTH

Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

 -Original Message-
From:   Taline Makssabo [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, May 18, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject:[PHP] Parse error help!

Thanks for all the help guys but one more minor issue, i am not receiving
the email that someone accessed my page...why??



?
Function AccessHit()
{

$NL = \n;


$H = getLastHost();


$R = getLastRef();

$To = [EMAIL PROTECTED];


$Sub = Page Accessed;


$D = Date(D d M y h:ia,time());

$Msg = $H + $NL + $R + $NL + $D;

mail($To,$Sub,$Msg);
}


?


-- 
PHP General Mailing List (http://www.php.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] bscub() under tru64 UNIX (64bit)

2001-05-18 Thread Olav Hjertaker

I get : Fatal error: Call to undefined function: bcsub() in ..  when using
bcsub().
Could there be a problem running PHP on a 64-bit system?

Cheers,
Olav



-- 
PHP General Mailing List (http://www.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 Pros/Cons, Case Examples, PHP vs Servlets

2001-05-18 Thread Mark Maggelet

The sercuity of java is better and the network controlling features
is better too .

The loading time of servlet is faster since the server just need to
run the servlet one times

You probably mean that it needs to load the jvm one time, the servlet
gets run with every request (unless you cache).

and the servlet will leave inside server's memory for further use,

I'm guessing you meant to say either 'leak' or 'live', probably both.

but PHP script will be run every times

Unless you cache. I've never seen a benchmark where java ran faster
than php

you can control synchronization in servlet but you can't in PHP

Synchronization of what, threads? Php doesn't have threads.




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

2001-05-18 Thread scott [gts]

i had to do that once with a perl script i was writing
because there were a variable number of options that
could be passed in, yet i needed to have a fixed number
of paramaters going into the script.

i used: ./prog.cgi?opts=x:1,y:2,z:3

sort-of like a primitive form of php's ability to pass
arrays on the command line.  i was using PHP before it
was even written ;)

 -Original Message-
 From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
 Subject: [PHP] Arg seperators
 
 
 According to the w3c validation program;
 
 A URL for a CGI program that uses `' as a separator, such as
 http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
 didn't think things through very carefully when they decided to use the ''
 character as a separator between CGI arguments, because '' has special
 status in HTML. One way to get around this is for the author of the CGI
 program to use a different value between arguments, like ';' or '|', which
 would allow the link to be coded as img
 src=http://site/cgi?opt1=val1;opt2=val2; or whatever.
 
 I know that php 4.0.5 has a new ini directive for this, is there any way to
 change this on older versions of PHP?
 
 Thanks,
 
 DAve
 --
 Dave Goodrich
 Director of Interface Development
 Reality Based Learning Company
 9521 NE Willows Road, Suite 100
 Redmond, WA 98052 
 Toll Free 1-877-869-6603 ext. 237
 Fax (425) 558-5655 
 [EMAIL PROTECTED] 
 http://www.rblc.com
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

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




RE: [PHP] Need more help please!

2001-05-18 Thread scott [gts]

and adding to what Miles says:

make sure to go thru any files that might be
require()'d or include()'d, becuase any stuff outside
the ? ? tags will be considered output also.

that error is like a rite of passage  ;)

 -Original Message-
 From: Miles Thompson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 12:26 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Need more help please!
 
 
 Taline,
 
 You cannot have ANY OUTPUT before sending a header. Strip out every blank 
 line and try again. Tighten it up. A space at the top of the page before 
 ? is considered output by the browser. Trust me, I've been there.
 
 Check the PHP manual on how functions are defined...
 function_name( arg1, arg2, arg_n)
 {
 statement;
 statement;
  to;
  end;
  of;
  function;
 }
 
 There's an article in the devshed archives , written by Rasmus Lerdorf on 
 doing exactly what you are trying. (I think it's devshed.) In any case, 
 there are lots of them around.
 
 Regards - Miles Thompson
 
 At 10:47 AM 5/18/01 -0400, Taline Makssabo wrote:
 Thanks for the reply but now i have problems with my pop up! Here is the
 message in getting. Whats the problem now
 
 Warning: Supplied argument is not a valid MySQL result resource in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 29
 
 Warning: Cannot add header information - headers already sent by (output
 started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 9
 
 Warning: Cannot add header information - headers already sent by (output
 started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 10
 
 Warning: Cannot add header information - headers already sent by (output
 started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 4
 
 Warning: Cannot add header information - headers already sent by (output
 started at /home/virtual/ppcu/home/httpd/html/php2/login.php:29) in
 /home/virtual/ppcu/home/httpd/html/php2/login.php on line 5
 
 
 
 
 
 
 ?php
 
 function access_denied()
 
 Header(WWW-Authenticate: Basic realm=\$title\);
 Header(HTTP/1.0 401 Unauthorized);
 }
 
 function auth_headers($title)
 
 Header(WWW-Authenticate: Basic realm=\$title\);
 Header(HTTP/1.0 401 Unauthorized);
 }
 
 if(!isset($PHP_AUTH_USER))
 
 auth_headers(Members Area);
 access_denied();
 exit;
 }
 else
 
 
 $db_hostname = localhost; // database host, usually localhost
 $db_username = contact; // username for the database
 $db_password = cdi986; // password that cooresponds to DB USERNAME
 $db_database = contact; // what database is your member info stored in?
 
 
 $query = SELECT username,password FROM contact_informations WHERE
 username='$PHP_AUTH_USER' AND password='$PHP_AUTH_PW';
 $link = mysql_connect($db_hostname, $db_username, $db_password) or
 die(Unable to connect to database server);
 
 if (mysql_num_rows(mysql_db_query($db_database, $query)) == 0)
 
 auth_headers(Members Area);
 access_denied();
 exit;
 }
 
 mysql_close($link);
 }
 
 ?
 
 ?
 
 SetLogging(1);
 
 Function AccessHit()
 {
 
  $NL = \n;
 
 
  $H = getLastHost();
 
 
  $R = getLastRef();
 
  $To = [EMAIL PROTECTED];
 
 
  $Sub = Page Accessed;
 
 
  $D = Date(D d M y h:ia,time());
 
  $Msg = $H + $NL + $R + $NL + $D;
 
  mail($To,$Sub,$Msg);
 }
 
 
 ?
 
 
 
 --
 PHP General Mailing List (http://www.php.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] Arg seperators

2001-05-18 Thread DAve Goodrich

on 5/18/01 8:58 AM, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:

 According to the w3c validation program;
 
 A URL for a CGI program that uses `' as a separator, such as
 http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
 didn't think things through very carefully when they decided to use the ''
 character as a separator between CGI arguments, because '' has special
 status in HTML. One way to get around this is for the author of the CGI
 program to use a different value between arguments, like ';' or '|', which
 would allow the link to be coded as img
 src=http://site/cgi?opt1=val1;opt2=val2; or whatever.
 
 I know that php 4.0.5 has a new ini directive for this, is there any way to
 change this on older versions of PHP?
 
 That directive has been there for a long time.
 
 -Rasmus
 

Ahhh  you are right! I appologise.

I am confused now because arg_seperator...

is not in the php.ini sample (php.ini_dist),

but it is in http://www.php.net/manual/en/ref.info.php,

but it's not in http://www.php.net/manual/en/configuration.php,

But it is in the output of php.info(),

Is there a *single* source of the options and their values that can be
set/unset using php.ini, or http.conf? When/where these can be set?

Would I be able to get this info into a matrix for everyones benefit?
Something like the table at
http://www.php.net/manual/en/function.ini-set.php

Thanks,

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Blank Field Values

2001-05-18 Thread Jeff Pearson

OK. Ive been beating my head over this code for a bit. I would appreciate it
if a fresh set of eyes would take a look at this for me. I have the
following code;

SCRIPT language=PHP
$connection = odbc_pconnect(XXX,X,XXX);
$SQL = SELECT * FROM Bios WHERE CharacterName = ';
$SQL .= $CharacterName;
$SQL .= ';
$QueryResult = odbc_do($connection, $SQL);
$NumberofRows = odbc_num_rows($QueryResult);
$ID = odbc_result($QueryResult, ID);
$NumberofFields = odbc_num_fields($QueryResult);
if ($NumberofRows != 0)
{
$counter = 1;
do
{
$CurrentFieldName = odbc_field_name($QueryResult, $counter);
$CurrentFieldValue = odbc_result($QueryResult, $CurrentFieldName);
echo $CurrentFieldName;
echo =;
echo $CurrentFieldValue;
echo ,;
$counter = $counter + 1;
}
while ($counter = $NumberofFields);
echo endoffields=end;
}
else
{
echo No records for that character;
}
/SCRIPT









It results in the following output;

ID=,CharacterName=,RealName=,FormerAlias=,CurrentAlias=,FormerOccupations=,C
urrentOccupation=,MilitaryExperience=,Education=,LegalStatus=,Identity=,Plac
eofOrigin=,MaritalStatus=,KnownRelatives=,KnownConfidants=,Pets=,KnownAllies
=,MajorEnemies=,BaseofOperations=,Transportation=,PastGroupAffiliates=,Curre
ntGroupAffiliates=,Income=,Height=,Weight=,EyeColor=,HairColor=,OtherFeature
s=,IntelligenceLevel=,Strength=,SpeedReactions=,Stamina=,Agility=,FightingSk
ills=,SpecialSkills=,Handicaps=,OtherPowersandSkills=,Background=,endoffield
s=end



If I run the query with Access, it comes up with the expected row of
information I'm looking for. Can anyone see why Im getting empty values
back?


Any help would be GREATLY appreciated.

Jeff Pearson


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




[PHP] HTTP socket connection

2001-05-18 Thread Todd Cary

For my http socket connection, I am using

   POST $abs_url HTTP/1.0\r\n.
   Accept-Language: en-us\r\n.
   Host: $host:$port\r\n.
   Connection: close\r\n.
   Content-type: application/x-www-form-urlencoded\r\n.

which works great.

What do I need to change for a SSL connection?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



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




Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread Lucas Persona

Hy there!

DAve Goodrich wrote:
 Have you tried this test with your code?
 http://www.php.net/FAQ.php#7.8
 The FAQ does not give a solution, but the problem is known to have affected
 only select users. The problem is no-one seems to know what the selection
 criteria is! Some people have the problem, some do not.

  Yeah..I did it and no '\0' was returned. Then I traced everything to 
find out what was happening.
  The final briefing: :) 
  
  Netscape 6.x handles in a different way some actions.
  The reason that Netscape doesn't show a correct Source is because 
Netscape don't use the currently showed page to get the source. It does 
another GET to get (get-get oops :)) the source.
  This way the 'View Source' option do another server access and this
time 
don't send the POST variables needed.

The browser request:
X.X.X.X - - [18/May/2001:13:58:44 -0300] POST /netscape6.1.php
HTTP/1.1 200 208 http:
//server.com/netscape6.php Mozilla/5.0 Gecko/20010131 Netscape6/6.01

The 'View Source' request:
X.X.X.X - - [18/May/2001:13:59:17 -0300] GET /netscape6.1.php HTTP/1.1
200 173 - Mo
zilla/5.0 Gecko/20010131 Netscape6/6.01

  Another problem on this subject is when creating a FORM that, via a
POST 
method will define a download.
  Netscape 6.x do the POST and ALSO DO A GET, so the result for the
download 
is wrong.
  Netscape X.xx or IE X.xx do just one POST and then download the file.

  I don't know if there is a way to change this Netscape behaviour... or
change 
everything to GET style ;)

Well..I think this is the answer for that 'strange behaviou'...
Thanks for everyone that helped on that...
See you,
-- 
Lucas PersonaICQ #17635618
[EMAIL PROTECTED]   +55 19 451 6300
---
Widesoft Sistemas Ltda  http://www.widesoft.com.br

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

2001-05-18 Thread Sam Masiello


Did you echo out $CharacterName before your SQL statement to ensure that it
is being set?   Or your $SQL variable before calling odbc_do?  This might
provide you with some insight as to why the query doesn't return anything.

HTH

Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

 -Original Message-
From:   Jeff Pearson [mailto:[EMAIL PROTECTED]]
Sent:   Friday, May 18, 2001 1:05 PM
To: php
Subject:[PHP] Blank Field Values

OK. Ive been beating my head over this code for a bit. I would appreciate it
if a fresh set of eyes would take a look at this for me. I have the
following code;

SCRIPT language=PHP
$connection = odbc_pconnect(XXX,X,XXX);
$SQL = SELECT * FROM Bios WHERE CharacterName = ';
$SQL .= $CharacterName;
$SQL .= ';
$QueryResult = odbc_do($connection, $SQL);
$NumberofRows = odbc_num_rows($QueryResult);
$ID = odbc_result($QueryResult, ID);
$NumberofFields = odbc_num_fields($QueryResult);
if ($NumberofRows != 0)
{
$counter = 1;
do
{
$CurrentFieldName = odbc_field_name($QueryResult, $counter);
$CurrentFieldValue = odbc_result($QueryResult, $CurrentFieldName);
echo $CurrentFieldName;
echo =;
echo $CurrentFieldValue;
echo ,;
$counter = $counter + 1;
}
while ($counter = $NumberofFields);
echo endoffields=end;
}
else
{
echo No records for that character;
}
/SCRIPT









It results in the following output;

ID=,CharacterName=,RealName=,FormerAlias=,CurrentAlias=,FormerOccupations=,C
urrentOccupation=,MilitaryExperience=,Education=,LegalStatus=,Identity=,Plac
eofOrigin=,MaritalStatus=,KnownRelatives=,KnownConfidants=,Pets=,KnownAllies
=,MajorEnemies=,BaseofOperations=,Transportation=,PastGroupAffiliates=,Curre
ntGroupAffiliates=,Income=,Height=,Weight=,EyeColor=,HairColor=,OtherFeature
s=,IntelligenceLevel=,Strength=,SpeedReactions=,Stamina=,Agility=,FightingSk
ills=,SpecialSkills=,Handicaps=,OtherPowersandSkills=,Background=,endoffield
s=end



If I run the query with Access, it comes up with the expected row of
information I'm looking for. Can anyone see why Im getting empty values
back?


Any help would be GREATLY appreciated.

Jeff Pearson


--
PHP General Mailing List (http://www.php.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] HTTP socket connection

2001-05-18 Thread Tolga \thorr\ Orhon

As far as I know you cant do that with standard socket connection as SSL
needs more than that. One solution that I am currently using is using Curl
extensions of PHP which is working just fine. But you may need to recompile
PHP with curl support. For more info:

http://www.php.net/manual/en/ref.curl.php
http://curl.haxx.se/

Tolga 'thorr' Orhon

Todd Cary [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 For my http socket connection, I am using

POST $abs_url HTTP/1.0\r\n.
Accept-Language: en-us\r\n.
Host: $host:$port\r\n.
Connection: close\r\n.
Content-type: application/x-www-form-urlencoded\r\n.

 which works great.

 What do I need to change for a SSL connection?

 Todd

 --
 Todd Cary
 Ariste Software
 [EMAIL PROTECTED]



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




-- 
PHP General Mailing List (http://www.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] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread Johnson, Kirk

Good call, Lucas! Netscape has bitten me before on this one, and I had
forgotten about it- sorry. I was doing a View Source, but all the dynamic
elements that got updated on each request were changing, because Netscape
does another request for the View Source. So, the View Source code is not
the code that produced the page I was looking at. Drove me nuts until I
figured it out. Thanks for the reminder.

Kirk 

 -Original Message-
 From: Lucas Persona [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 11:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else
 hadproblems with php and Netscape 6?

   The reason that Netscape doesn't show a correct Source is because 
 Netscape don't use the currently showed page to get the 
 source. It does 
 another GET to get (get-get oops :)) the source.
   This way the 'View Source' option do another server access and this
 time 
 don't send the POST variables needed.

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




[PHP] Who has PHP4 and FTP experience?

2001-05-18 Thread Gunter Ohrner

Hi!

I'm looking for some hints for the PHP ftp module as I have some problems 
using it - if anyone has experience in using the PHP ftp module it would be 
very cool someone could send me an email... g

Greetinx,

  Gunter Ohrner

-- 
Tourist, Rincewind decided, meant idiot.-- (Terry Pratchett, The 
Colour of Magic)
+-+-+-+-+ http://www.scheibenwelt.de +-+-+ http://www.lspace.org +-+-+-+-+

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




[PHP] Got OO error after upgraded php3.0.8 to php4.05

2001-05-18 Thread Jeffrey Wang

Hi,
I got error on OO programming after upgraded php3.0.8 to php4.05. I am
using apache 1.3.14, phplib 7.2c and MYSQL 3.23.36. The program was working
fine under PHP 3.0.8.  Error  is showing all html code on browser as
following.
{FONT FORM Method=post ACTIONLIGN=CENTERE=verdana, helvetica, arial
size=1} COLOR=#00 {FONT FORM Method=post
ACTIONLIGN=CENTERE=verdana, helvetica, arial size=1}{Ann Street
Elementary}, {126 E Bloom St}, {Los Angeles}, {CA} {90012}, {UNITED STATES}
Anybody got same problem? I searched all mailing lists and didn't find any
answer.  I did down grade to different versions (4.01, 4.04) of php4 and
doesn't help. Thank you.
Jeff.


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




[PHP] No more connection??

2001-05-18 Thread Miguel Loureiro

Hello , since may 15 I dont receive your mail , why I lost the connection???



[PHP] shutted down!!!!!

2001-05-18 Thread Miguel Loureiro

Hello all,
but since 15 of May I dont receive mail from php-general-digest, and even from 
php-db-digest, there is any problem, or its my problem...

Best Regards
mailto:[EMAIL PROTECTED]



[PHP] how to have a print button on a PHP generated page

2001-05-18 Thread Carlos Fernando Scheidecker Antunes

Hello All!

I have a page that was generated by PHP4 and is the result of a query.

I would like to enable a button to have the page printed.

Does anyone knows how to do it with either PHP or javascript?

Thanks,

C.F.



Re: [PHP] how to have a print button on a PHP generated page

2001-05-18 Thread jarek

maybe this helps
:

html
HTML
HEAD

script language=JavaScript
!--
function custom_print() {
if (document.all) {
if (navigator.appVersion.indexOf(5.0) == -1) {
var OLECMDID_PRINT = 6;
var OLECMDEXECOPT_DONTPROMPTUSER = 2;
var OLECMDEXECOPT_PROMPTUSER = 1;
var WebBrowser = OBJECT ID=\WebBrowser1\ WIDTH=0
HEIGHT=0
CLASSID=\CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\/OBJECT;
document.body.insertAdjacentHTML(beforeEnd, WebBrowser);
WebBrowser1.ExecWB(6, 2);
WebBrowser1.outerHTML = ;
} else {
self.print();
}
} else {
self.print();
}
}
//--
/script
/HEAD
BODY
div align=center
input type=submit name=Submit value=Print
onClick=custom_print()
  /div
/html

Carlos Fernando Scheidecker Antunes wrote:
 
 Hello All!
 
 I have a page that was generated by PHP4 and is the result of a query.
 
 I would like to enable a button to have the page printed.
 
 Does anyone knows how to do it with either PHP or javascript?
 
 Thanks,
 
 C.F.

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

2001-05-18 Thread Mike Gifford

Hello,

In looking for a good script to parse XML files I stumbled across the following 
tutorial (which looks very good):
http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html

I have set this script up here:
http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php

and I keep getting the following error (even after making a number of changes):
XML error: not well-formed at line 16

And I'm not sure how to troubleshoot this problem.

I'm assuming that it is referring to line 16 on the XML file, in this case:
http://cupe.ca/xml/cupenews.rdf

My parsing definitions are as follows
   $itemTitleKey = ^rdf^item^title;
   $itemLinkKey = ^rdf^item^link;
   $itemDescKey = ^rdf^item^description;

Any help would be appreciated.

Mike
-- 
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Featured Client: http://halifaxinitiative.org
A good life is one inspired by love and guided by knowledge - B. Russell


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




[PHP] Random number

2001-05-18 Thread Daniel Coronel

Hi!
I need to really generate a random number in a function but not like doing it. 
Somebody could help me. Thanks. 

Daniel Coronel.



[PHP] Not losing variables in forms w/ checkboxes

2001-05-18 Thread Andrew V. Romero

I am working on creating some html forms (that are parsed by PHP) and
need to use checkboxes, and was wondering how would you go about
creating the checkboxes so that once the user hits the submit button,
all of the checkbox variables are included?  Right now I have:
echo input TYPE =\checkbox\NAME=\suspendingAgent\
VALUE=\$availSuspendingAgentNames[$i]\ 
$availSuspendingAgentNames[$i];
In my understanding with how it is now, if the user chooses more than
one suspending agent, only one suspending agent will be sent to the php
file once the submit button is hit.  The problem is that the program is
pulling the names of an unknown number of suspendingAgents from a file
so I can not just pick say two different names for the check boxes.  The
only solution that I have thought of is to create a NAME array then each
checkbox would have its own name such as suspendingAgent[0], but this
seems rather cumbersome seeing as I would then have to write more code
to figure out which check box names were checked.  So I was wondering if
there was an easier way to go about this?  It would be excellent if
there was someway to have the script combine all the values of the
checked check boxes into one value seperated by commas and have it still
with the name of suspendingAgent.
Thanks for any ideas,
Andrew V. Romero
To reply personally, remove all numbers from my address.


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

2001-05-18 Thread Miles Thompson

Come on - you haven't even bothered to check the manual. Search for this at 
php.net
Miles

At 03:09 PM 5/18/01 -0400, Daniel Coronel wrote:
Hi!
I need to really generate a random number in a function but not like doing 
it.
Somebody could help me. Thanks.

Daniel Coronel.


-- 
PHP General Mailing List (http://www.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] Not losing variables in forms w/ checkboxes

2001-05-18 Thread Johnson, Kirk

Just append a pair of brackets to the NAME in the FORM: suspendingAgent[].
This will create an array for the boxes that get checked.

To get the array to a comma separated list on the processing page, try:

$string = implode (,, $suspendingAgent);

Kirk

 -Original Message-
 From: Andrew V. Romero [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 1:15 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Not losing variables in forms w/ checkboxes
 
 
 I am working on creating some html forms (that are parsed by PHP) and
 need to use checkboxes, and was wondering how would you go about
 creating the checkboxes so that once the user hits the submit button,
 all of the checkbox variables are included?  Right now I have:
 echo input TYPE =\checkbox\NAME=\suspendingAgent\
 VALUE=\$availSuspendingAgentNames[$i]\ 
 $availSuspendingAgentNames[$i];
 In my understanding with how it is now, if the user chooses more than
 one suspending agent, only one suspending agent will be sent 
 to the php
 file once the submit button is hit.  The problem is that the 
 program is
 pulling the names of an unknown number of suspendingAgents from a file
 so I can not just pick say two different names for the check 
 boxes.  The
 only solution that I have thought of is to create a NAME 
 array then each
 checkbox would have its own name such as suspendingAgent[0], but this
 seems rather cumbersome seeing as I would then have to write more code
 to figure out which check box names were checked.  So I was 
 wondering if
 there was an easier way to go about this?  It would be excellent if
 there was someway to have the script combine all the values of the
 checked check boxes into one value seperated by commas and 
 have it still
 with the name of suspendingAgent.
 Thanks for any ideas,
 Andrew V. Romero
 To reply personally, remove all numbers from my address.
 
 
 -- 
 PHP General Mailing List (http://www.php.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] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma

Hello !

I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with
Apache. Alle works greate, but I get a lot of warnings:

Warning: Undefined variable: MyVariable in filename

The warnings weren't there in the earlier version. How can I turn of
these warnings ?

Regards

Martin



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




RE: [PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Johnson, Kirk

If you have access to php.ini, see the Error handling and logging section.
Else, see http://www.php.net/manual/en/ref.errorfunc.php

Kirk

 -Original Message-
 From: Martin Thoma [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 1:36 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Undefined Variables / PHP 4.0.4pl1
 
 
 Hello !
 
 I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with
 Apache. Alle works greate, but I get a lot of warnings:
 
 Warning: Undefined variable: MyVariable in filename
 
 The warnings weren't there in the earlier version. How can I turn of
 these warnings ?
 
 Regards
 
 Martin
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.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] Who has PHP4 and FTP experience?

2001-05-18 Thread Martin Thoma

Whats the problem ? ;-)

Gunter Ohrner schrieb:

 Hi!

 I'm looking for some hints for the PHP ftp module as I have some problems
 using it - if anyone has experience in using the PHP ftp module it would be
 very cool someone could send me an email... g

 Greetinx,

   Gunter Ohrner

 --
 Tourist, Rincewind decided, meant idiot.-- (Terry Pratchett, The
 Colour of Magic)
 +-+-+-+-+ http://www.scheibenwelt.de +-+-+ http://www.lspace.org +-+-+-+-+

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


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

2001-05-18 Thread scott [gts]

i love when newbies ask for help and i'm able to help,
but when it comes to people being just plain lazy,
i agree with Miles... 

** please read the docs before asking questions **

 -Original Message-
 From: Miles Thompson [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] Random number
 
 Come on - you haven't even bothered to check the manual. Search for this at 
 php.net
 Miles
 

-- 
PHP General Mailing List (http://www.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] Got OO error after upgraded php3.0.8 to php4.05

2001-05-18 Thread scott [gts]

please send a code snippet... 
a lot of things changed from 3.x to 4.x

 -Original Message-
 From: Jeffrey Wang [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 2:37 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Got OO error after upgraded php3.0.8 to php4.05
 
 
 Hi,
   I got error on OO programming after upgraded php3.0.8 to php4.05. I am
 using apache 1.3.14, phplib 7.2c and MYSQL 3.23.36. The program was working
 fine under PHP 3.0.8.  Error  is showing all html code on browser as
 following.
 {FONT FORM Method=post ACTIONLIGN=CENTERE=verdana, helvetica, arial
 size=1} COLOR=#00 {FONT FORM Method=post
 ACTIONLIGN=CENTERE=verdana, helvetica, arial size=1}{Ann Street
 Elementary}, {126 E Bloom St}, {Los Angeles}, {CA} {90012}, {UNITED STATES}
   Anybody got same problem? I searched all mailing lists and didn't find any
 answer.  I did down grade to different versions (4.01, 4.04) of php4 and
 doesn't help. Thank you.
 Jeff.
 
 
 -- 
 PHP General Mailing List (http://www.php.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] Not losing variables in forms w/ checkboxes

2001-05-18 Thread scott [gts]

you need to specify those extra braces for any
multi-select HTMl object

i had the same problem with a:
SELECT NAME=... MULTIPLE 



 -Original Message-
 From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
 Subject: RE: [PHP] Not losing variables in forms w/ checkboxes
 
 Just append a pair of brackets to the NAME in the FORM: suspendingAgent[].
 This will create an array for the boxes that get checked.
 
 To get the array to a comma separated list on the processing page, try:
 
 $string = implode (,, $suspendingAgent);
 
 Kirk

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

2001-05-18 Thread Tolga \thorr\ Orhon

If you need just plain random number generator check manual. If you want a
true pseudo-random number generator you may want to check:
http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookcpdf.html

Those generators used in scientific calculations where true reproducible and
low correlated random numbers needed. Although book is for C you can easily
port them to PHP.

But for daily life, rand() in PHP is more than sufficient.

--
Tolga 'thorr' Orhon
Daniel Coronel [EMAIL PROTECTED] wrote in message
003401c0dfce$14f60b60$[EMAIL PROTECTED]">news:003401c0dfce$14f60b60$[EMAIL PROTECTED]...
Hi!
I need to really generate a random number in a function but not like doing
it.
Somebody could help me. Thanks.

Daniel Coronel.




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




Re: [PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma

Thanx a lot, I found it in php.ini !

Johnson, Kirk schrieb:

 If you have access to php.ini, see the Error handling and logging section.
 Else, see http://www.php.net/manual/en/ref.errorfunc.php

 Kirk

  -Original Message-
  From: Martin Thoma [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 18, 2001 1:36 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Undefined Variables / PHP 4.0.4pl1
 
 
  Hello !
 
  I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with
  Apache. Alle works greate, but I get a lot of warnings:
 
  Warning: Undefined variable: MyVariable in filename
 
  The warnings weren't there in the earlier version. How can I turn of
  these warnings ?
 
  Regards
 
  Martin
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 

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


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




Re: [PHP] PHP XML Parsing

2001-05-18 Thread Peter Dudley

The problem is in your link URL, where you pass CGI parameters.  When XML
sees the  character, it assumes it's a special character thing such as
amp; or quot;, so it's expecting a semicolon.

linkhttp://cupe.ca/news/cupenews/showitem.asp?ID=2823cl=1/link

Just yesterday I discovered a program called XML Spy which you can get on a
30-day eval from www.tucows.com.  This was what pointed out the error to me
in your file.

When I was using XSL last year for the first time, I had a devil of a time
figuring out how to get URLs, particularly with query strings attached,
through the XML parsers.  Try using the %codes in your URLs instead of  and
other special characters; that should help, if I remember correctly.
(Similarly, building HREF tags using XSL stylesheets seemed pretty awkward,
but I'm sure I was missing some crucial tidbit of information.)

Pete.

Mike Gifford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 In looking for a good script to parse XML files I stumbled across the
following
 tutorial (which looks very good):
 http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html

 I have set this script up here:
 http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php

 and I keep getting the following error (even after making a number of
changes):
 XML error: not well-formed at line 16

 And I'm not sure how to troubleshoot this problem.

 I'm assuming that it is referring to line 16 on the XML file, in this
case:
 http://cupe.ca/xml/cupenews.rdf

 My parsing definitions are as follows
$itemTitleKey = ^rdf^item^title;
$itemLinkKey = ^rdf^item^link;
$itemDescKey = ^rdf^item^description;

 Any help would be appreciated.

 Mike




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




[PHP] Function Question

2001-05-18 Thread Michael O'Neal

Hi.  I'm hoping you folks can help me with a function problem I have.  
Take a look at the following code:

?

?php 
function fill_page($title) {

?



html
head
title?php echo $title; ?/title


?php

}
?

I have a page divided into 3 sections.  A header include, the content, 
and a footer include.
I have a function (fill_page) that lives in the header include that has 
it's variable defined in the content page.  As you can see, the function 
above will fill $title with whatever is defined in the content page.  
i.e.  fill_page(This is the title)

What I want to do is use that $title variable *outside the function, a 
little further down the page.  I've played around with the ampersand 
before the dollar sign, and using a global variable, all with no success. 
 

It seems to me that this should be simple, and I think I'm 
overcomplicating it.  Here's what I'm trying to do:

1. Get a string of text from the individual content pages.
2. Use that string in the Title of the html page
3. Use the same string as the header of the content page.

I'm sorry I'm being stupid about it...but I've made it harder than it 
probably is.

Please respond to [EMAIL PROTECTED] as I am on the digest.

Thanks in advance.

mto


Michael O'Neal
Web Producer/ Autocrosser
ST 28 '89 Civic Si
-
 M   A   N   G   O
B  O  U  L  D  E  R 
-
http://www.thinkmango.com
[EMAIL PROTECTED]
p-303.442.1821
f-303.938.8507



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




[PHP] Server limits/recommendations

2001-05-18 Thread Ian Evans

I'd really like to move our site to a dedicated server, but I'm not 
ready to lay down the monthly cash for a multi-SCSI drived 1gig ram 
beast -- yet.

Right now we're hosted by the oxymoronically named HostPro. We're on a 
shared NT server with a SQL Server ODBC connection and we use PHP to do 
a lot of the stuff on the site.

There's stuff that just doesn't work. For example, I have better odds 
rolling the dice than hoping that my databse insert form for our 
entertainment news will work. Sometimes it does, sometimes it doesn't 
and Support (they had to name it something I guess) has never been 
able to figure out why.

Covering the world of entertainment, we can average 10,000 pageviews a 
day but will swing up to 200,000+ on days like the Oscars. We've seen 
our bandwidth usage swing from 80meg a day to 3gig.

I'd just like to get into an entry-level dedicated linux server, running 
apache, PHP and MySQL. I've looked at Rackspace as other contacts have 
recommended them and their entry level system consists of:

750 Mhz Processor
256MB RAM
20GB EIDE Drive
10GB/Month Burstable Bandwidth

I'm looking for input on that configuration. The way I see it, if we're 
surviving on a shared server now, we'll still be able to stretch our 
feet and grow a bit (as well as being able to do things that we can't in 
our shared NT server) before we need to add memory and go to SCSI, etc.

Do you concur?

Thanks!
-- 
Ian Evans
Digital Hit Entertainment - News and Information
http://www.digitalhit.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] which dir

2001-05-18 Thread Dennis Gearon

If I open a file with fopen using the include director[y|ies], is there
any way using the file handle to query and find out which directory it
came from?

I suppose I could search each directory until I came to the first
version of it, just like the function fopen had to do, but .

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

2001-05-18 Thread scott [gts]

the words shared NT server make a chill run up my spine.

apache will beat any MS webserver hands down, and
overall, linux is more stable (and usually a lot 
faster and easier to configure) than NT.

MS makes great user-interfaces and office software,
*not* great server software... i'd go with linux
for such a popular website that can see huge spikes
in bandwith.


 -Original Message-
 From: Ian Evans [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Server limits/recommendations
 
 
 I'd really like to move our site to a dedicated server, but I'm not 
 ready to lay down the monthly cash for a multi-SCSI drived 1gig ram 
 beast -- yet.
 
 Right now we're hosted by the oxymoronically named HostPro. We're on a 
 shared NT server with a SQL Server ODBC connection and we use PHP to do 
 a lot of the stuff on the site.
 
 There's stuff that just doesn't work. For example, I have better odds 
 rolling the dice than hoping that my databse insert form for our 
 entertainment news will work. Sometimes it does, sometimes it doesn't 
 and Support (they had to name it something I guess) has never been 
 able to figure out why.
 
 Covering the world of entertainment, we can average 10,000 pageviews a 
 day but will swing up to 200,000+ on days like the Oscars. We've seen 
 our bandwidth usage swing from 80meg a day to 3gig.
 
 I'd just like to get into an entry-level dedicated linux server, running 
 apache, PHP and MySQL. I've looked at Rackspace as other contacts have 
 recommended them and their entry level system consists of:
 
 750 Mhz Processor
 256MB RAM
 20GB EIDE Drive
 10GB/Month Burstable Bandwidth
 
 I'm looking for input on that configuration. The way I see it, if we're 
 surviving on a shared server now, we'll still be able to stretch our 
 feet and grow a bit (as well as being able to do things that we can't in 
 our shared NT server) before we need to add memory and go to SCSI, etc.
 
 Do you concur?
 
 Thanks!
 -- 
 Ian Evans
 Digital Hit Entertainment - News and Information
 http://www.digitalhit.com
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

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




Re: [PHP] Blank Field Values

2001-05-18 Thread Bass???

Sam Masiello [EMAIL PROTECTED] ?
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Did you echo out $CharacterName before your SQL statement to ensure that
it
 is being set?   Or your $SQL variable before calling odbc_do?  This might
 provide you with some insight as to why the query doesn't return anything.

 HTH

 Sam Masiello
 Systems Analyst
 Chek.Com
 (716) 853-1362 x289
 [EMAIL PROTECTED]

  -Original Message-
 From: Jeff Pearson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 1:05 PM
 To: php
 Subject: [PHP] Blank Field Values

 OK. Ive been beating my head over this code for a bit. I would appreciate
it
 if a fresh set of eyes would take a look at this for me. I have the
 following code;

 SCRIPT language=PHP
 $connection = odbc_pconnect(XXX,X,XXX);
 $SQL = SELECT * FROM Bios WHERE CharacterName = ';
 $SQL .= $CharacterName;
 $SQL .= ';
 $QueryResult = odbc_do($connection, $SQL);
 $NumberofRows = odbc_num_rows($QueryResult);
 $ID = odbc_result($QueryResult, ID);
 $NumberofFields = odbc_num_fields($QueryResult);
 if ($NumberofRows != 0)
 {
 $counter = 1;
 do
 {
 $CurrentFieldName = odbc_field_name($QueryResult, $counter);
 $CurrentFieldValue = odbc_result($QueryResult, $CurrentFieldName);

I don't know the exact solution , but I think it's the problem of the above
line since only
var $CurrentFieldValue  can't be displayed .
Have you try
$CurrentFieldValue = odbc_result($QueryResult, $counter);
and see if it works . ^_^


 echo $CurrentFieldName;
 echo =;
 echo $CurrentFieldValue;
 echo ,;
 $counter = $counter + 1;
 }
 while ($counter = $NumberofFields);
 echo endoffields=end;
 }
 else
 {
 echo No records for that character;
 }
 /SCRIPT









 It results in the following output;


ID=,CharacterName=,RealName=,FormerAlias=,CurrentAlias=,FormerOccupations=,C

urrentOccupation=,MilitaryExperience=,Education=,LegalStatus=,Identity=,Plac

eofOrigin=,MaritalStatus=,KnownRelatives=,KnownConfidants=,Pets=,KnownAllies

=,MajorEnemies=,BaseofOperations=,Transportation=,PastGroupAffiliates=,Curre

ntGroupAffiliates=,Income=,Height=,Weight=,EyeColor=,HairColor=,OtherFeature

s=,IntelligenceLevel=,Strength=,SpeedReactions=,Stamina=,Agility=,FightingSk

ills=,SpecialSkills=,Handicaps=,OtherPowersandSkills=,Background=,endoffield
 s=end



 If I run the query with Access, it comes up with the expected row of
 information I'm looking for. Can anyone see why Im getting empty values
 back?


 Any help would be GREATLY appreciated.

 Jeff Pearson


 --
 PHP General Mailing List (http://www.php.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] Is there any sleep function?

2001-05-18 Thread BlackLord

Is there any sleep function in PHP like in Perl?

For example, you will define the time in seconds and system will wait for
that time to continue running the script?

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]




  1   2   >