[PHP] Wizard based Content Manager help

2001-06-22 Thread John Harding



Hi,

Im currently working on a Content Manager. The way 
we wish to add new content is throught a wizard with about 5-7 steps. I was 
wondering if anybody could suggest some methodsthat would be best for what 
I am trying to do. The main issue for example, is if a user is adding new 
content and they are at step 5, and want to go back to step 2. How could I get 
it to store the data inputed on steps 3,4 etc. Session Vars? Hidden form text 
fields?

Any help gratly appreciated.


John Harding


Re: [PHP] Forum script

2001-06-22 Thread David Robley

On Thu, 21 Jun 2001 22:19, Morgan Curley wrote:
 In what timezone is it September?

 At 02:49 AM 6/21/2001, Chris \TunkeyMicket\ Watford wrote:
 Timezones :)
 - Original Message -

 From: mailto:[EMAIL PROTECTED]Morgan Curley

 To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 10:16 PM
 Subject: RE: [PHP] Forum script
 
 Is it just me or does anyone else get a lot of messages on this list
  with dates in the future ( note the date below ) that then end up
  pinned to the bottom ( or top ) of the email listing. Is there some
  way to set the listserv to normalize the dates or is the just a
  Eudora4+ problem?
 
 At 03:41 PM 9/20/2001, Andrew Hill wrote:
 www.phorum.org
 
 Best regards,
 Andrew

It's eternal September on Usenet :-)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   He who sitteth on an upturned tack shall surely rise.

-- 
PHP General Mailing List (http://www.php.net/)
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 vs Cookies?

2001-06-22 Thread Jason Murray

 I am about to write a new admin system for a website I do and 
 it will have many different logins. I was wondering overall which 
 most of you thought would be better for such a thing? Wants really 
 a pro about sessions over cookies?

If it's for an admin section, then you may as well use cookies. If
the client doesn't want to use cookies they can't use their admin
interface. :) I doubt they would have privacy issues with themselves
anyway.

If you're going to use cookies, hopefully you'll have a database 
system available (you said you'd have lots of different logins).

So, create a session table:

 ID int
 username text
 password text (if required, maybe you won't need it again)
 logintime int
 expirytime int
 magickey text

Generate a magic key as such:

?
   $randomseed = intval(ereg_replace([^0-9], ,
substr(Date(U).microtime(), 4, 10)));
   srand($randomseed);
   $newid = rand(1, 9);
 
   $magickey = md5($newid.$REMOTE_ADDR.time());
? 

This should give you sufficient entropy as to make the magickey unguessable
(except by sheer fluke). Send the magic key as the cookie and log it in the
table (sessiontime = session time in seconds):

  INSERT INTO sessions 
 (username, (password if needed,) logintime, expirytime, magickey)
 VALUES
 ('$uname', ('$pass',) Date(U), Date(U)+$sessiontime, '$magickey')

Every page in the admin area should check the cookie:

  SELECT * FROM sessions WHERE magickey = '$yourcookievalue'
  Ensure that epxirytime is not less than date(U)

If those checks fail, redirect them to the login page and Exit().

If the user logs out and you're storing passwords, ensure you delete the 
password with an UPDATE command or else someone breaking into your system
will have just found all your admin passwords. You might want to run a 
script on a crontab to do that as well.

As a slightly more kludgy alternative, take the md5() of the last
modification time of a file somewhere:

?
   $lastmod = filemtime(/path/to/your/admin/page/index.php);
   $checkvalue = md5($lastmod);
?

And set $checkvalue as your cookie. Every subsequent page should then
perform the same check and if it fails, redirect as above and Exit().

Hope this helps somewhat.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
What'll Scorpy use wormhole technology for?
'Faster pizza delivery.'

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




[PHP] how to pass PhP variables thru HREF command

2001-06-22 Thread David Yen

Hi.

am using SQL Server.
I wrote a php page that displays the NFL game schedule after query the 
database.
I want to create link to a game prediction page (written in php) for each 
game.  There will be two variables that will be passed thru the Href 
command.

Would the code look something like this?

a href=prediction.php?hometeam=?echo $hometeam?awayteam=?echo 
$awayteam?
/a

Thank you for your help.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] OT Re: http 1.0 1.1 info

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 03:24, rm wrote:
 Anyone know of a url.

 Need a simple introduction to the concepts of http1.0
 and 1.1 protocols, how they work etc etc.  Preferably
 something with nice pretty pictures and something that
 does not require more than a first or second grading
 reading level.

 Everything I find at the various search engines seems
 to require a masters in computer science and a minor
 in gobbly gobb.

 kb

http://www.w3.org/Protocols/ is probably the definitive source, although 
it's not the equivalent of 'HTTP for Dummies' :-)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   This tagline was Shirley MacLaine in a previous life.

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




Re: [PHP] starting Apache: unable to find OpenLDAP library path

2001-06-22 Thread Rasmus Lerdorf

 I have a problem when running Apache (1.3.19) using PHP (4.0.4) and
 OpenLDAP .  The following error occurs when starting up Apache (PHP run
 internally as a shared module in Apache):

   Cannot load /usr/web/server/apache/libexec/libphp4.so into server:
 libldap.so.2:
   cannot  open shared object file: No such file or directory

Which OS?  If Linux, edit your /etc/ld.so.conf file and add the directory
libldap.so.2 is in to that file, then run ldconfig.

If some other OS, figure out how to change the default LD_LIBRARY_PATH for
your system.  We don't do all the -R's that we should in PHP, so you need
to help it along a bit.

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

2001-06-22 Thread Chris \TunkeyMicket\ Watford



His date is wrong, not your client's fault. I 
just thought the time was off, didn't see the date too.

  - Original Message - 
  From: 
  Morgan 
  Curley 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 21, 2001 8:49 
  AM
  Subject: Re: [PHP] Forum script
  In what timezone is it September?At 02:49 
  AM 6/21/2001, Chris \"TunkeyMicket\" Watford wrote:
  Timezones 
:) 

  - Original Message - 
  From: Morgan Curley 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 20, 2001 10:16 PM 
  Subject: RE: [PHP] Forum script
  Is it just me or does anyone else get a lot of messages on this list 
  with dates in the future ( note the date below ) that then end up pinned 
  to the bottom ( or top ) of the email listing. Is there some way to set 
  the listserv to normalize the dates or is the just a Eudora4+ 
  problem?
  At 03:41 PM 9/20/2001, Andrew Hill wrote:
  
www.phorum.org
Best regards, 
Andrew


[PHP] fgetc()

2001-06-22 Thread Greg Donald

Is it possible to read in binary data as the client side of a stream using
fgetc()?

In particular, is it possible to delimate string separation using \0 as a
delimiter? All attempts to recognize and or read the \0 character fails.

Thanks,
Greg


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




[PHP] NaN

2001-06-22 Thread Jeff Orrok

I was wondering how I would test to see if a number was NaN.  When I
assign log(-1) to a constant, it does not seem to equal another variable
that is NaN.
--
:-J
--

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




Re: [PHP] session question

2001-06-22 Thread Moax Tech List

I have the load balancing all setup, which is why i didn't want to use
normal file sessions.   I have one more question though, I read that
tutorial and got it to work perfect, it is too easy. I am just wondering, is
using a library like phplib more efficient or is this very efficient itself
(i mean are the built in functions pretty effieicnt)? That is my primary
concern because of the # of usersthanks again!

-derick
- Original Message -
From: Peter Dudley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 8:47 AM
Subject: Re: [PHP] session question


 There is a useful article here:
 http://phpbuilder.com/columns/ying2602.php3?page=1

 As to up to a million users logged in at once... don't you wantto have
 multiple redundant web servers running under a load balancer?  If the rest
 of your system can handle that many concurrent users, then I doubt PHP
 sessions will be much more of a strain on your system... unless you're
 storing some huge amount of data in each session.

 Pete.

  Moax Tech List [EMAIL PROTECTED] wrote in message
 00b101c0fa15$e47c4320$9865fea9@moax01">news:00b101c0fa15$e47c4320$9865fea9@moax01...
  I am setting up a website with a need to use some sort of
  session management for a large amount of users. I cannot
  use typical file based session managment because at any
  given time there could be up to a million users logged in
  at once. (It is a LAMP linux/apache/php4/mysql system).
  I am a bit confused though as how to go about this. The
  user will be authenticated by verifying a username/password
  combo in a database, and then a session created.
  My question is this:
  After authentication, which type of session managment
  should I use? I mean, just do the standard php stuff with
  the session_ functions? (wo'nt this be bad with the # of
  simoltaneous users i need to support, because of the # of
  files on the server?) Or, shall I use something more complex
  like PHPLIB or create my own scheme using mysql? Is
  there any exisiting code/functions that can make creating
  my own scheme easier in order to support mysql or am i
  way off with this question? I just need a bit of direction
  here and any help is appreciated. Thanks!



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




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




[PHP] toronto developers?

2001-06-22 Thread nicole


apologies for being not quite on topic..

i just moved to toronto, canada.. i'm trying to settle in (and look for
work) and was wondering if there is a developer community there.. ? or
even individuals who don't mind sharing a bit of local knowledge..

any contact appreciated :)
nicole

-- 
PHP General Mailing List (http://www.php.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 authenticating and session management

2001-06-22 Thread Arash Dejkam

Hi,

I want to use PHP session manager but I have some problems,

I want the session start in a login page so I do this for example:

after authenticating...
session_start();
session_register(username);

then I want the user to be able to see his own pages, what do I have to do
in those pages?

simply check $username and bring up the user's page ? but this makes it
possible for any hacker to send a cookie with username and see that page. I
know that PHP stores a unique random number for each session but how can I
check that it matches with the number in the cookie.

help me please I'm really confused !

Thanks

Arash Dejkam





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




Re: [PHP] mcrypt_cbc()

2001-06-22 Thread Christopher Ostmo

Tyler Longren pressed the little lettered thingies in this order...

 Hello list,
 
 Is there a special tirgger to enable the mcrypt_cbc() function when you
 ./configure PHP?  Or how do I get that function to work?  I get the error:
 call to undefined function.
 
 Thanks,
 Tyler
 

--with-mcrypt = [DIR]

You must have libmcrypt installed on your system (not the entire 
mcrypt program, just the libraries) prior to compiling PHP.

Get it here:
http://mcrypt.hellug.gr/

Good luck...

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.com/

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




Re: [PHP] PHP timer

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 06:41, george wrote:
   My back is aganist the wall with this one, I have to create a timer .

  What happens is  admin will enter a time say 2 hours in the future
 this time will be stored in a db as a time stamp
 then the current time and the timestamp from the db are subtracted from
 one another and the result is shown as hours minutes and seconds.
   but I cant get it to work at all
 any suggestions would be great


 TIA
  George

This might be the direction you want?

?php
$now = time();  //Get current timestamp
$then = mktime(0,0,0,7,12,2001);
$diff = $then - $now;
$ary = getdate($diff);
while(list($key, $val) = each($ary)){
echo $key == $valBR;
}
?

Outputs

seconds == 46
minutes == 16
hours == 19
mday == 20
wday == 2
mon == 1
year == 1970
yday == 19
weekday == Tuesday
month == January
0 == 1676806

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I prefer unlined gloves, Tom deferred.

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




[PHP] Developer mailing list

2001-06-22 Thread Julia A. Case

Hi, I'm trying to write a module for PHP and need a little help, I went to 
http://lists.php.net to see if there was a developer list, but only found the 
defualt Apache web page...  Can someone direct me in the proper direction?

Thanks,
Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

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




Re: [PHP] passing values to a javascript variable

2001-06-22 Thread TunkeyMicket

echo script language='javascript'
.\n\tvar ndata = '.addslashes($data_data).';
.\n\tPutCode(ndata);
.\n/script;

Try that.

Chris TunkeyMicket Watford

TunkeyMicket Productions
www.tunkeymicket.com

- Original Message - 
From: Romulo Roberto Pereira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 3:38 PM
Subject: [PHP] passing values to a javascript variable


 Hello!
 
 The following give me: unterminated string constant (this is a javascript
 error)
 
 when I execute the following:
 
while ($row = mysql_fetch_array ($data_query_action)) {
 $data_data = $row[data_data];
}
 echo script language=\javascript\\n var
 ndata=\.addslashes($data_data).\;\nPutCode (ndata);\n/script;
 
 Ideas? Please I need help.
 
 Thank you,
 
 Rom
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




[PHP] Re: Lists are back up

2001-06-22 Thread Morgan Curley

This is something I had been meaning to ask for a
while.
Can message dates be normalized at the list server?
It seems like a lot of people out there don't know how to set their
clocks or want lots of attention by setting their clocks months + years
ahead so their messages are always pinned to the top of message
lists.

the perfect example is a message with the subject '[PHP]
Hurray!'
it was sent 6/19
it has no technical value whatsoever ( subjective :)
It is pinned to the bottom of my message list in Eudora as the newest
message

I am no mailserver admin so I don't know what is involved in trying to
fix this at the server, but for a list that is so helpful this is really
annoying.

Thanks,
Morgan

At 03:15 PM 6/18/2001, Rasmus Lerdorf wrote:
We have re-enabled the PHP mailing
lists. They are now running from a
temporary machine sitting on the floor of my spare bedroom. A
more
permanent home is in the works.

-Rasmus 


[PHP] totals from a mysql query

2001-06-22 Thread Andras Kende

Hello,

I have a php page which pull data from myusql database...
I'm new to php so I looking for some advice ...
I have a field which contains numbers and needed to have them totaled after
the query below the table...

Database:
|text1|text2|total|
|some|tfdfd|100|
|string|adfa|250|
|made|tofd|150|

total should be : 100+250+150

Query:
{$aresult=mysql_query(select * from testdb  ,$db);}
while($amyrow = mysql_fetch_array($aresult))
{
echo Trtd;
{echo $amyrow[text1];}
echo /tdtd;
{echo $amyrow[text2];}
echo /td;
}
echo /td/tr/table;
echo all together : total;

total is : 500


Thanks,

Andras Kende


-- 
PHP General Mailing List (http://www.php.net/)
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 + Oracle + OCIPLogon

2001-06-22 Thread Rouvas Stathis

Thank you for your prompt reply.
I read your suggestion about MaxClients in Apache conf.
Since this is something I haven't thought before, I'll take it into
consideration first and then I will supply you a test case as you
requested.
I will do so in the forthcoming weekend.
Please, read below for my comments on your other points.

"Thies C. Arntzen" wrote:
 
 On Thu, Jun 21, 2001 at 09:32:31PM +0300, Rouvas Stathis wrote:
  "Thies C. Arntzen" wrote:
  
   On Thu, Jun 21, 2001 at 03:19:09PM +0300, Rouvas Stathis wrote:
   
Unfortunately, you are not doing anything wrong.
Persistent connections and PHP/Ora do not play well with each other.
  
   ??? - please elaborate.
 
  PHP/Ora without persistent connections are fine and rock solid even
  under heavy load.
  PHP/Ora with persitent connections does not work.
  Explanation.
  Using OciPlogon you connect to Ora and everything is fine.
 
 yep.
 
  Then you issue an OciLogout and you terminate your connection as fas as
  PHP is concerned.
 
 wrong
 
Unfortunately, the connection to Oracle is not closed,
  as a "ps -ef | grep oracle" can tell you.
 
 yes - cause PHP will reuse it!
 
  Next time PHP is called, OciPlogon requests (and gets) a new connection
 
 nope. that would be a bug.

I am not aware of the internals, but the displayed behaviour when using
OciPLogon is exactly the same with the one displayed when you "forget"
to OciLogout.
I assume that a new connection is made, since I cannot find another
explanation for the number of open connections to increase.
I measure open connections doing "ps -elf | grep oracle | grep tnslsnr".

 
  to Oracle without using the old one or closing it. Then OciLogout is
  called and you are now left with two open connections to Oracle.
 
 please send me a "minimal" testcase that shows this
 behaviour! i'll look into that then.

OK, I will do so. Expect it some time in Monday.

 
  The connections PHP opens will timeout eventually and close "by
  themselves".
 
 nope - that would be bug.

I don't think so. All connections to Oracle will close if left by
themselves. Oracle will kill them...I think.

 
  Now, if you are testing on a personal machine or your machine has enough
  resources, this problem (that I call "lingering connections") may pass
  unnoticed.
  The moment you get more than about 10 hits, those "lingering
  connections" will add up and pretty soon you will (a) run out of Ora
  cursors or (b) run out of resources.
  When that moment comes you will not be able to connect to Ora anymore,
  untill some of those connections die, which of course is dependant on
  the timeout.
  Now in development server with 1GB of RAM
  (Solaris/Ora.8.0.4.EE/PHP.4.0.3.pl1) the "lingering connections"
  phenomenon rarely manifestated itself. In fact it was so rare that I
  almost always suspected my code doing something nasty.
  When it was moved into production (in a Suse
  Linux.2.2.14/PHP.4.0.3.pl1/Ora.8.0.5.EE) with only 128MB of RAM, upon
  the first test run it blew into my face.
  After changing all OciPlogon into plain OciLogon, all problems
  dissapeared.
 
  This has happened with other applications that I have experimented with.
  The "lingering connections" problem is with us at least since PHP.3.0.12
  (which the first version of PHP I tried).
 
  That's why I say that PHP/Ora with *persistent* connection do not play
  well with each other.
 
 i'm the author of this module and more than willing to help.
 i do tests using the ab tool and have never found any
 irregularities in the plogon mode. if you can show me how to
 reproduce this i'm (mostly) sure i can fix it!

Thanks for the cooperation.

 
 tc
 
 
  I hoped I cleared the issue.
  I really hope that this problem is resolved, since I expect an increase
  in performance when the penalty for making a new connection is avoided.
 
  -Stathis.
 
 
  
   tc
-Stathis.

-- 
PHP General Mailing List (http://www.php.net/)
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 vs Cookies?

2001-06-22 Thread Christopher Ostmo

Chris Anderson pressed the little lettered thingies in this order...

 I am about to write a new admin system for a website I do and it will have
 many different logins. I was wondering overall which most of you thought
 would be better for such a thing? Wants really a pro about sessions over
 cookies?
 

PHP sessions actually are cookies in most cases, but will revert to 
sending an ID tag in the URL if the user has cookies disabled (the ID 
tag does not need to be programmed into the URL, the PHP engine 
inserts it automatically).

Use sessions. Period.

If you design your own cookie solution, it won't work for people who have 
disabled cookies.  If you design your own ID tag in the URL system, 
you will have A LOT of extra typing to get the ID tag in every URL. If you 
design one that works for both, you've wasted a lot of time.

If you use PHP's sessions, you let PHP do the work for you.

Check out:
http://www.php.net/manual/en/ref.session.php

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.com/

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




Re: [PHP] PHP timer

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 06:41, george wrote:
   My back is aganist the wall with this one, I have to create a timer .

  What happens is  admin will enter a time say 2 hours in the future
 this time will be stored in a db as a time stamp
 then the current time and the timestamp from the db are subtracted from
 one another and the result is shown as hours minutes and seconds.
   but I cant get it to work at all
 any suggestions would be great


 TIA
  George

Better than my previous effort :-):

?php
$now = time();  //Get current timestamp
$then = mktime(0,0,0,6,23,2001); // What you get from the DB
$diff = $then - $now;
echo Starting with $diff seconds. Check daysBR;
$days = floor($diff / 86400);
$seconds_left = $diff % 86400;
echo Days: $daysBR;
echo Seconds remaining: $seconds_leftBR;
$hours = floor($seconds_left / 3600);
$seconds_left = $seconds_left % 3600;
echo Hours: $hoursBR;
echo Seconds remaining: $seconds_leftBR;
$minutes = floor($seconds_left / 60);
$seconds_left = $seconds_left % 60;
echo Minutes: $minutesBR;
echo Seconds remaining: $seconds_leftBR;
?

You might want to add a check on wheter $now is earlier or later that he 
value in the DB, and act accordingly.


-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   If you're not confused, you're not paying attention.

-- 
PHP General Mailing List (http://www.php.net/)
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_???_VARS[] always populated?

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 08:02, Matthew M. Boulter wrote:
 Quick question crew,

 ATM we're trying to convert all of our existing scripts t conform to
 register_globals being OFF, i.e., accessing everything through the
 $HTTP_???_VARS[] arrays.

 What I was wondering is, when register_globals in ON, do all of the
 $HTTP_???_VARS[] arrays * still * get populated?

 I.e., if we convert all our scripts to use these arrays and then decide
 to turn register_globals on again, will all our changed scripts still
 work?

 Thanx, Matty.

I've got register_globals on and the following script
?php
while(list($key, $val) = each($HTTP_GET_VARS)){
echo $key == $valBR;
}
?

called with test.php?a=asb=bs

returns
a == as
b == bs

So looks like you would be OK.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   A good pun is its own reword.

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




Re: [PHP] mcrypt_cbc()

2001-06-22 Thread Tyler Longren

I ended up getting everything installed.  But now when I go to the page,  I
get this:
Warning: mcrypt module initialization failed in
/home2/golfballs.net/www/includes/crypt_lib.php on line 35

any ideas why I get that?
- Original Message -
From: Christopher Ostmo [EMAIL PROTECTED]
To: Tyler Longren [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 4:47 PM
Subject: Re: [PHP] mcrypt_cbc()


 Tyler Longren pressed the little lettered thingies in this order...

  Hello list,
 
  Is there a special tirgger to enable the mcrypt_cbc() function when you
  ./configure PHP?  Or how do I get that function to work?  I get the
error:
  call to undefined function.
 
  Thanks,
  Tyler
 

 --with-mcrypt = [DIR]

 You must have libmcrypt installed on your system (not the entire
 mcrypt program, just the libraries) prior to compiling PHP.

 Get it here:
 http://mcrypt.hellug.gr/

 Good luck...

 Christopher Ostmo
 a.k.a. [EMAIL PROTECTED]
 AppIdeas.com
 Meeting cutting edge dynamic
 web site needs

 For a good time,
 http://www.AppIdeas.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] BUGS.PHP.NET

2001-06-22 Thread Chris Kay

HAHAHAHAHAHAHAHAHA 
At 07:58 AM 6/22/01 +0800, you wrote:
Hello,
I visited bugs.php.net and I noticed
that you are not listed on some search engines. I am sure you can
increase the number of people who visit
bugs.php.net . Do you know
TrafficMagnet? TrafficMagnet is a unique technology that instantly
submits your web site to over 300,000+ search engines and directories
every month. This is a very low-cost and effective way of advertising
your site. 
To check our prices and submit
bugs.php.net to 300,000+ search
engines, go to I would love to hear from you. 
Best Regards,
Christine Hall
Sales  Marketing
.button { BACKGROUND-COLOR: #cc; COLOR: #ff; FONT-WEIGHT: bold }



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




Chris
Kay - Tech Support - IDEAL
Internet
email: [EMAIL PROTECTED] phone: +61 2 4628  fax: +61 2 4628 8890





RE: [PHP] BUGS.PHP.NET

2001-06-22 Thread Jason Murray

 I visited bugs.php.net and I noticed that you are not listed on some
search engines. 

I have only one thing to say about this email.

- ROFL! -

If this Christine is actually reading this mail - you've given me a 
big laugh, thanks.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
What'll Scorpy use wormhole technology for?
'Faster pizza delivery.'

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




[PHP] Multiple JavaScript Windows

2001-06-22 Thread Carlos Fernando Scheidecker Antunes



Hello All,

I need to have multiple JavaScripts windows with my 
database PHP script.

The idea is to have a main Page and links to pop-up 
JavaScript Windows to enter information on the database. Once these windows are 
closed the main PHP page need to be automaticaly updated.

The Database is a Report system that depends on 4 
tables.One main table and 3 other tables that contain information for that 
report such as part number, procedures taken and repairs made. Each report can 
have none to several parts, none to several procedures and one to several 
repairs.

Once the user starts a new report a lot od stuff is 
add to the main table such as CustomerNo, ReportNo, ReportDate, etc. Then, the 
other three tables lists parts, procedures and repairs for a Report using the 
ReportNo as common field.

The helpand adviceI need consist of 
beeing able to call pop up windows with JavaScript from the main page to add 
Parts, Repairs and Procedures. Once the user finish adding stuff on a Pop Up 
window he would close it by clicking a link and the main Page of the Report 
would be reloaded to reflect the changes he did.

Can anyone help me with this task?

Thank you very much,

Carlos Fernando [EMAIL PROTECTED]




Re: [PHP] Sessions vs Cookies?

2001-06-22 Thread Michael Hall


As I understand it, PHP's session management uses cookies anyway unless
they are turned off by the browser, in which case session info is attached
to the URL.

So I'd use sessions rather than cookies alone.

Mick

 On Thu, 21 Jun 2001, Chris Anderson wrote:

 I am about to write a new admin system for a website I do and it will have many 
different logins. I was wondering overall which most of you thought would be better 
for such a thing? Wants really a pro about sessions over cookies?
 


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




Re: [PHP] re: time

2001-06-22 Thread [EMAIL PROTECTED]

Dear Jason
got problem that make me not able to email direct to the list, they keep
bounce me back. Anyway, apologise in advance that I have to email you
directly, I used PHP_AUTH_USER for login method, no cookies or session used,
how could I do the logout that will completely get rid of the log in details
without having user to close the browser?
Jack
[EMAIL PROTECTED]
Love your enemies, it will drive them nuts
- Original Message -
From: Jason Murray [EMAIL PROTECTED]
To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 11:52 PM
Subject: RE: [PHP] re: time


  actually i believe if you date() it gives you users system time
 
  it is the problem i have run into in the script i am trying to
  modify. the original person used date() and it clear shows my time.
  As much as i admit the possibility of their server being in Siberia
  but I doubt it.

 PHP would have no idea what the time is on the user's system.

 Date() returns the current system time in the format you specify.

 Of course, if the time on their system is stuffed, it could look
 like they're in Siberia...

 Jason

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

2001-06-22 Thread Dallas K.

Check out the ADODB.. They support 9 (maybe 11) different db's the
code is easy and it works


http://php.weblogs.com/ADODB

We use their script .works well.


- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Robert Mena [EMAIL PROTECTED]; php mailing list
[EMAIL PROTECTED]
Sent: Friday, September 21, 2001 7:08 AM
Subject: RE: [PHP] Which DB abstraction ?


 Robert,

 Whichever you choose, using ODBC will further insulate you from the 'pain'
 of adopting other databases.  Also, ODBC by itself will give you a great
 deal of db abstraction.

 There are HOWTO's on setting up PHP with the iODBC Driver Manager (needed
to
 use ODBC drivers) at www.iodbc.org

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

  -Original Message-
  From: Robert Mena [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 20, 2001 11:47 PM
  To: php mailing list
  Subject: [PHP] Which DB abstraction ?
 
 
  Hi,
 
  I am in a middle of the process of chosing which DB
  will be used for future projects.  I've been using
  Mysql for almost 5 years (coupled with php of course)
  but it seems to have reached it's limits (actually the
  lack of some features).
 
  The other options include some traditional comercial
  dbs and postgresql.  I am about to choose postgresql
  because it seems to support the features I need
  (foreign key, transaction, triggers, stored
  procedures) and is open source with active
  development.
 
  Even tough I'd like to receive (perhaps in private)
  personal thought about this decision I would not like
  to start a war...so my focus here is : which db
  abstraction layer is ready for use ? disavantages ?
 
  I am considering : Manuel Lemos' Metabase, Phplib and
  Pear.
 
  So far I've played a little bit with pear, and read
  about metabase and phplib with no real experience in
  both.
 
  The ideia is to start using it right away so the
  adption of other DB would be painless (almost).
 
  Thanks,
  RT
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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



-- 
PHP General Mailing List (http://www.php.net/)
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 + Oracle + OCIPLogon

2001-06-22 Thread Thies C. Arntzen

On Fri, Jun 22, 2001 at 02:47:39AM +0300, Rouvas Stathis wrote:
 Thies C. Arntzen wrote:
  please send me a minimal testcase that shows this
  behaviour! i'll look into that then.
 
 I said that I'll have it on Monday, but curiosity got the better of
 me:-)
 
 So, I ran my test case and these are my findings, alogn with the test.
 
 Machine Configuration
 Software:
  - Apache.1.3.12:httpd.conf:MaxClients 150
  - OS:SuSE.Linux.6.4 (2.2.14)
  - Ora:Oracle.8.1.6.ee (default install)
I believe that by default you have 50 cursors per connection

without even looking at the rest:

if MaxClients is higher than the number of sessions oracle
allows - you are toasted! 

you have to expect _one_ persistent connection to each
oracle-instance you connect to per running apache child! in
your case expect up to 150 single connection. if you cannot
support 150 single connection to your oracle-server - a)
decrease MacClients -or- b) up your oracle-session limit!

please get back to me if this is indeed your problem - i'll
investigate further after that!

(i'll look thru the rest of your mail when i find some time -
sorry, just getting up)

tc


  - PHP:php.4.0.3.pl1 build as module for Apache
 Hardware:
  - AMD:Athlon:500
  - RAM:384MB
  - HD:IDE
 
 Test case (PHP script)
 This code is typical of the way I handle connections to Oracle (except
 that I use OciLogon instead of OciPLogon)
 code
 ?php
   $oraconnections[0] = '';
   $orastatements[0] = '';
   
 function newOracleConnection() {
   global $oraconnections;
   $c = ociplogon(scott,tiger,oracle);
   $oraconnections[] = $c;
   return $c;
 }
 
 function newOracleStmt($connection, $select, $execute) {
   global $orastatements;
   $c = ociparse($connection, $select);
   $orastatements[] = $c;
   if (strtoupper($execute)=='EXECUTE') { ociexecute($c); }
   return $c;
 }
 
 function cleanup() {
   global $orastatements, $oraconnections;
   reset($orastatements);
   while (list($key,$val)=each($orastatements)) @OciFreeStatement($val); 
   reset($oraconnections);
   while (list($key,$val)=each($oraconnections)) @OCILogoff($val); 
 }
 
 $cone = NewOracleConnection();
 $cone2 = NewOracleConnection();
 $cone3 = NewOracleConnection();
 
 $s = select table_name t from user_tables;
 $stmt = NewOracleStmt($cone,$s,'');
 OciDefineByName($stmt,strtoupper('t'),$t);
 OciExecute($stmt);
 while (OciFetch($stmt))  echo \n table_name=$t;
 OciFreeStatement($stmt);
 
 // -- in case we forget
 cleanup();
 
 echo \n;
 ?
 /code
 The above code runs in a separate window (test-w) using the following
 command:
 ab -n 1000 -c 50 http://aspasia.mm.di.uoa.gr/~rouvas/testora.php
 
 In another window (lets call it monitor) the following runs in bash:
 bash
 while [ -f afiedt.buf ]; do 
   echo -n httpd: `ps -elf | grep httpd | wc -l`;
   echo -en  oracle: `ps -elf | grep oracle | wc -l`;
   uptime;
 done
 /bash
 At the beginning, monitor displays something like:
 
 httpd: 6 oracle: 15  1:50am  up 8 days,  5:38,  8 users,  load average:
 1.33, 1.95, 3.49
 
 From now on, I will refer to httpd: 6 and oracle: 17 parts of the
 above message as httpd-counter and oracle-counter respectively.
 
 Let the test begin!
 
 Everything is happening on the same machine.
 Since I have not recorded all number I will show only significant ones,
 that is those that caused troubles. The rest will be displayed as dashes
 (-).
 
 ab -n n1   -c n2 url  httpd-counter oracle-counter  Failed requests
   500 10-  -   0
   500 20-  -   0
   900 50- ~52  0 
 The last did not cause any troubles, but... it took a long time for
 these oracle processes to die.
 So, I rerun the last invocation (900,50) three times serially, i.e. I
 waited for the previous one to finish before I fired the next one.
   900 50- ~48  0
   900 50  ~67 many
   900 50  ~65 many
 Next I fired up the following from three different windows
 simultaneously (almost)
 
 ab -n 1000 -c 50 url
 
 In the first run: http-counter: -
   oracle-counter  : (below 50)
   failed requests : (none)
 
 I waited until http-counter:7 and oracle-counter:17 and rerun the three
 simultaneous invocations.
 
 httpd-counter   : -
 oracle-counter  : 52
 failed-requests : (none)
 
 Without waiting, I fired the three invocations again.
 httpd-counter  : 75 (max)
 oracle-counter : 82 (max)
 failed-requests: 550 (test-w-1), 544 (test-w-2) and 493 9 9(test-w-3)
 
 After more runs (and to make a long story short), I observed that no
 matter what the concurrency level or the number of requests to the ab
 were, if oracle-counter reached about 55, no more requests would be
 served.
 That, of course, is consistent with the number of Oracle 

Re: [PHP] how to pass PhP variables thru HREF command

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 10:15, David Yen wrote:
 Hi.

 am using SQL Server.
 I wrote a php page that displays the NFL game schedule after query the
 database.
 I want to create link to a game prediction page (written in php) for
 each game.  There will be two variables that will be passed thru the
 Href command.

 Would the code look something like this?

 a href=prediction.php?hometeam=?echo $hometeam?awayteam=?echo
 $awayteam?
 /a

 Thank you for your help.

If you are going to pass values as part of the URL you should urlencode() 
them to avoid problems with spaces and other interesting characters. So

a href=prediction.php?hometeam=?echo urlencode($hometeam) 
?awayteam=? echo urlencode($awayteam) ?


-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm wearing my wedding ring, said Tom with abandon.

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




[PHP] RE: passing values to a javascript variable

2001-06-22 Thread Tim Ward

have you viewed the source? - could be something to do with the semi-colons
or, more likely, what addslashes($data_data) evaluates to. 

Tim Ward
Senior Systems Engineer

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


 -Original Message-
 From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
 Sent: 21 June 2001 20:39
 To: [EMAIL PROTECTED]
 Subject: passing values to a javascript variable
 
 
 Hello!
 
 The following give me: unterminated string constant (this is 
 a javascript
 error)
 
 when I execute the following:
 
while ($row = mysql_fetch_array ($data_query_action)) {
 $data_data = $row[data_data];
}
echo script language=\javascript\\n var
 ndata=\.addslashes($data_data).\;\nPutCode (ndata);\n/script;
 
 Ideas? Please I need help.
 
 Thank you,
 
 Rom
 
 

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




[PHP] LDAP

2001-06-22 Thread Derek

I'm doing some R  D with PHP and OpenLDAP

I managed to get the php function ldap_add to work and I've been using PHP
to add form-submitted information to a directory.

However I decided to include another objectclass (uidObject) and now it
returns with:
error - Object class violation
error number - 65

I can use the ldapadd client and load an ldif file containing exactly the
same info into the directory.

Why won't it work from within PHP

I've included an excerpt from my code, below.  Thanks in advance for any
help.

Derek



$ds=ldap_connect(localhost);
if ($ds) {
$r=ldap_bind($ds, cn=admin,dc=domain,dc=com,mypassword);
$rdn = o=$username,ou=suppliers,ou=customers,dc=domain,dc=com;

$info[userPassword]=$password;
$info[o]=$organisation;
$info[uid]=$username;
$info[objectclass]=organization;
$info[objectclass]=uidObject;

$add=ldap_add($ds, $rdn, $info);
$error = ldap_error($ds);
$errno = ldap_errno($ds);
echo error is $error number $errno;

ldap_close($ds);
} else {
echo could not connect to directoryBR;
}





-- 
PHP General Mailing List (http://www.php.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 equivalent for Oracle ORA_FFI

2001-06-22 Thread Euan Greig

We have a data load program written in Oracle Reports 2.5 (yes, I know, it
wasn't me!). This uses ORA_FFI to interface with a .dll to validate and
reformat addresses. I would like to perform the same interface in PHP if
possible, without needing to do any development work on or around the .dll.
Can anyone point me in the right direction?

Some sample code below. The key points are, I think.
1. Oracle seems to be able, using Ora_FFI, to directly access a function in
a .dll, passing it parameters, and receiving its return output.
2. In the package initialization, at the end of the page, the .dll
'TBIF100.dll', referrred to as a library, is first loaded and opened, and
then the function 'PAS988V659' within the library is registered along with
its in/out parameters.
3. As a result of this, the dll and the function are assigned handles. The
function handle is used in the function i_obm988 to actually execute the
function.It's a rather strange looking bit of PL/SQL but it works!

PACKAGE BODY call_cbm988_pas IS
 lh_obm988 ora_ffi.libHandleType;
 fh_obm988 ora_ffi.funcHandleType;

   FUNCTION i_obm988(
funcHandle IN ora_ffi.funcHandleType
   ,cons_name  IN OUT VARCHAR2
   -- other parameters
   )
   RETURN PLS_INTEGER;
   PRAGMA INTERFACE(C,i_obm988,11265);

BEGIN -- Package Initialization
 BEGIN
 lh_obm988 := ora_ffi.find_library('TBIF100.dll');
 EXCEPTION WHEN ora_ffi.FFI_ERROR THEN
 lh_obm988 := ora_ffi.load_library(NULL,'TBIF100.dll');
 END ;
 fh_obm988 :=
ora_ffi.register_function(lh_obm988,'PAS988V659',ora_ffi.PASCAL_STD);
 ora_ffi.register_parameter(fh_obm988,ORA_FFI.C_CHAR_PTR);
 ora_ffi.register_parameter(fh_obm988,ORA_FFI.C_CHAR_PTR);
 -- register other parameters
END call_cbm988_pas;

Thanks

Euan



-- 
PHP General Mailing List (http://www.php.net/)
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 as cron

2001-06-22 Thread AJDIN BRANDIC

Hi again,

this is what I have done, as adviced by you guys (thanks)

created a file called pop which contains
#! /bin/sh
lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3  /dev/null
clear

If I execute this from the shell ./pop it works OK.
But as a cron job I get an error message sent to my mail box
Your terminal lacks the ability to clear the screen or position the 
cursor.,
hence this 'clear' bit in my script to try to sort the problem but no joy.

Any ideas?

Ajdin



On Thu, 21 Jun 2001, Joseph Tate wrote:

 Have you tried 'php FILENAME'?  Now, I don't know how you would pass
 parameters to it...
 
  -Original Message-
  From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 8:09 AM
  To: AJDIN BRANDIC
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] php as cron
 
 
  try etc.
 
  00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
 
  Regards
 
  Johan
 
  
   Hi
  
   I have PHP installed as Apache module but I want to run a cron job.  I
   have .php script that works OK when executed through browser
  but is there
   any way I could execute it through a cron job.
  
   Ajdin
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

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




Re: [PHP] Developer mailing list

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 06:21, Julia A. Case wrote:
 Hi, I'm trying to write a module for PHP and need a little help, I went
 to http://lists.php.net to see if there was a developer list, but only
 found the defualt Apache web page...  Can someone direct me in the
 proper direction?

 Thanks,
 Julia

Heh - I think that is still just looking after the lists and it's sitting 
in someones bedroom :-).

There is information on the various mailing lists, including the 
developer list, at http://au2.php.net/support.php or your favourite 
mirror.

Not sure if you've seen it but there is a file in the distribution 
/ext/ext_skel which might be relevant.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   CD-WOM, Wead Onwy Memowy.

-- 
PHP General Mailing List (http://www.php.net/)
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 authenticating and session management

2001-06-22 Thread Style|warrioR

I'm not quite sure if this is the perfect way cause I'm pretty new to this
session stuff, too.
but my version looks like this:

[login.php]
a form with username and password field.
submit -- auth.php


[auth.php]
check if username and password are ok (from a text file or your mysql
database) [yes|no]
[no] - echo bad login or password.; exit;
[yes] - start a session, save username and password in session vars,
redirect to userpage


lets say your userpages look like aUsername_blah.php


[aUsername_blah.php]
include a script on every userpage that checks if login and password are
correct [yes|no]
[no] - redirect to login.php
[yes] - display page


comments appreciated :)
.andi






Arash Dejkam [EMAIL PROTECTED] schrieb in im Newsbeitrag:
9guhbf$msi$[EMAIL PROTECTED]
 Hi,

 I want to use PHP session manager but I have some problems,

 I want the session start in a login page so I do this for example:

 after authenticating...
 session_start();
 session_register(username);

 then I want the user to be able to see his own pages, what do I have to do
 in those pages?

 simply check $username and bring up the user's page ? but this makes it
 possible for any hacker to send a cookie with username and see that page.
I
 know that PHP stores a unique random number for each session but how can I
 check that it matches with the number in the cookie.

 help me please I'm really confused !

 Thanks

 Arash Dejkam





 --
 PHP General Mailing List (http://www.php.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] zend optimizer on php4.07-dev

2001-06-22 Thread idban secandri

anyone has try 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]




[PHP] gabung miling list php.

2001-06-22 Thread Ai Rosita

salam,
mohon saya diikutkan  bergabung ke miling list PHP.
demikian, atas perhatiaanya diucapkan banyak terima kasih.
w.w.w.
rosita


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




Re: [PHP] CGI Error when processing form

2001-06-22 Thread Markus Kühni

We've got the same problem.
Did you find a resolution?

Thanks, MarkMirco


seth [EMAIL PROTECTED] wrote in message
9ej8pq$i1n$[EMAIL PROTECTED]">news:9ej8pq$i1n$[EMAIL PROTECTED]...
 Hi,
 I'm really new to PHP and i'm not too smart!...,  I pulled some from code
 out of scripts.com for processing forms just to test.

 this is on an IIS server 4.0 server

 this is the error I get after clicking on the tell us button...

 CGI Error
 The specified CGI application misbehaved by not returning a complete set
of
 HTTP headers. The headers it did return are:

 Any ideas

..



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




[PHP] end optimizer on php4.07-dev

2001-06-22 Thread idban secandri

anyone has try it? its compatible?

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




[PHP] Re: PHP authenticating and session management

2001-06-22 Thread Stephen Yau

Hi,

 You can use $HTTP_SESSION_VARS[username] to make sure that this variable 
is from the user session, not from the cookie. 

 When you do a session_register(username);, the $username is store in the 
server side, not on the client. The client side only have a Session ID store 
in the cookie. Each time when a client side request a php page, PHP will see 
if a specific Session ID has been sent with the request. If this is the 
case, the prior saved environment is recreated. 

 -Stephen Yau 

Arash Dejkam writes: 

 Hi, 
 
 I want to use PHP session manager but I have some problems, 
 
 I want the session start in a login page so I do this for example: 
 
 after authenticating...
 session_start();
 session_register(username); 
 
 then I want the user to be able to see his own pages, what do I have to do
 in those pages? 
 
 simply check $username and bring up the user's page ? but this makes it
 possible for any hacker to send a cookie with username and see that page. I
 know that PHP stores a unique random number for each session but how can I
 check that it matches with the number in the cookie. 
 
 help me please I'm really confused ! 
 
 Thanks 
 
 Arash Dejkam 
 
  
 
  
 
 -- 
 PHP General Mailing List (http://www.php.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] SMTP/mail question

2001-06-22 Thread mailing_list

Hi!

I did it!
once again what I wanted to do:
I wanted to send a mail, but use MAIL FROM: and RCPT TO: from the
SMTP-Protocol and check, if the domain is accepted (nslookup MX)!
I had a perl script, that does this trick.  Unfortunately the php-mail()
can't do a RCPT TO: and MAIL FROM: explicitly (would be great in a future
release!!!) !

for them who don't know:
--
telnet mymailserver 25
HELO localhost
MAIL FROM: [EMAIL PROTECTED]
RCPT TO: [EMAIL PROTECTED]
DATA
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: TESTMAIL

This is the Body ...
.
--
the result:
.) if address is correct: mail will be delivered to [EMAIL PROTECTED],
though in the To: header is written something else.
.) if there is no user realrecipient at you.com, the mail will be resent to
[EMAIL PROTECTED] (Delivery-Error), though in the From: header is written
something else.
.) if the domain you.com doesn't exist or doesn't have a valid MX-entry,
then the RCPT TO: isn't accepted and the mail won't be sent!!!

what I did (my sendmail.pl handles 1.RCPT TO, MAIL FROM;2.Mail
Headers;3.Mail Body - all stored in $message):
$fh=popen(scripts/sendmail.pl,w);
fwrite($fh,$message);
if (pclose($fh)==0){
  echo Mail was sent successful!;
}else{
  echo Couldn't deliver mail (none or wrong MX-entry)!;
}

michi

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Der zweitgrößte Lotto-Jackpot aller Zeiten: 36 Mio. DM suchen einen
Gewinner!
Jetzt online tippen und nebenbei noch eine Reise nach Las Vegas gewinnen!
http://www.get1.de/gmx-gewinnspiel2


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




[PHP] MySQL - get_lock() / release_lock()

2001-06-22 Thread Carsten H. Pedersen

Does anyone know the status on implementing
MySQL's client functions get_lock() and release_lock()
in PHP?

The functions have been around since MySQL 
3.21.27 was released in March 1998. Maybe it's about time
to get it into PHP as well?

/ Carsten


--
PHP General Mailing List (http://www.php.net/)
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 + Oracle + OCIPLogon

2001-06-22 Thread Rouvas Stathis

"Thies C. Arntzen" wrote:
 
 On Fri, Jun 22, 2001 at 02:47:39AM +0300, Rouvas Stathis wrote:
  "Thies C. Arntzen" wrote:
   please send me a "minimal" testcase that shows this
   behaviour! i'll look into that then.
 
  I said that I'll have it on Monday, but curiosity got the better of
  me:-)
 
  So, I ran my test case and these are my findings, alogn with the test.
 
  Machine Configuration
  Software:
   - Apache.1.3.12:httpd.conf:MaxClients 150
   - OS:SuSE.Linux.6.4 (2.2.14)
   - Ora:Oracle.8.1.6.ee (default install)
 I believe that by default you have 50 cursors per connection
 
 without even looking at the rest:
 
 if MaxClients is higher than the number of sessions oracle
 allows - you are toasted!

Yes, I understand this.
But in my test case below, I never requested more than 50 connections to
oracle.
The problem is there even if you request 20 connections, provided that
you run the test script in quick succession and do not wait for the
oracle connections to die.

That is, if you:

bash
while [-f file]; do
  ab -n 100 -c 20 url
done
/bash

after a while you will get failed requests.

MaxClients 150, ensures that I do not run out of Apache childs and that
the failed requests are indeed due to ora conditions.
 
 you have to expect _one_ persistent connection to each
 oracle-instance you connect to per running apache child! in
 your case expect up to 150 single connection. if you cannot
 support 150 single connection to your oracle-server - a)
 decrease MacClients -or- b) up your oracle-session limit!
 
 please get back to me if this is indeed your problem - i'll
 investigate further after that!
 
 (i'll look thru the rest of your mail when i find some time -
 sorry, just getting up)

No problem, I can wait.

-Stathis.

 
 tc
 
   - PHP:php.4.0.3.pl1 build as module for Apache
  Hardware:
   - AMD:Athlon:500
   - RAM:384MB
   - HD:IDE
 
  Test case (PHP script)
  This code is typical of the way I handle connections to Oracle (except
  that I use OciLogon instead of OciPLogon)
  code
  ?php
$oraconnections[0] = '';
$orastatements[0] = '';
 
  function newOracleConnection() {
global $oraconnections;
$c = ociplogon("scott","tiger","oracle");
$oraconnections[] = $c;
return $c;
  }
 
  function newOracleStmt($connection, $select, $execute) {
global $orastatements;
$c = ociparse($connection, $select);
$orastatements[] = $c;
if (strtoupper($execute)=='EXECUTE') { ociexecute($c); }
return $c;
  }
 
  function cleanup() {
global $orastatements, $oraconnections;
reset($orastatements);
while (list($key,$val)=each($orastatements)) @OciFreeStatement($val);
reset($oraconnections);
while (list($key,$val)=each($oraconnections)) @OCILogoff($val);
  }
 
  $cone = NewOracleConnection();
  $cone2 = NewOracleConnection();
  $cone3 = NewOracleConnection();
 
  $s = "select table_name t from user_tables";
  $stmt = NewOracleStmt($cone,$s,'');
  OciDefineByName($stmt,strtoupper('t'),$t);
  OciExecute($stmt);
  while (OciFetch($stmt))  echo "\n table_name=$t";
  OciFreeStatement($stmt);
 
  // -- in case we forget
  cleanup();
 
  echo "\n";
  ?
  /code
  The above code runs in a separate window ("test-w") using the following
  command:
  ab -n 1000 -c 50 http://aspasia.mm.di.uoa.gr/~rouvas/testora.php
 
  In another window (lets call it "monitor") the following runs in bash:
  bash
  while [ -f afiedt.buf ]; do
echo -n httpd: `ps -elf | grep httpd | wc -l`;
echo -en " "oracle: `ps -elf | grep oracle | wc -l`;
uptime;
  done
  /bash
  At the beginning, monitor displays something like:
 
  httpd: 6 oracle: 15  1:50am  up 8 days,  5:38,  8 users,  load average:
  1.33, 1.95, 3.49
 
  From now on, I will refer to "httpd: 6" and "oracle: 17" parts of the
  above message as "httpd-counter" and "oracle-counter" respectively.
 
  Let the test begin!
 
  Everything is happening on the same machine.
  Since I have not recorded all number I will show only significant ones,
  that is those that caused troubles. The rest will be displayed as dashes
  ("-").
 
  ab -n n1   -c n2 url  httpd-counter oracle-counter  Failed requests
500 10-  -   0
500 20-  -   0
900 50- ~52  0
  The last did not cause any troubles, but... it took a long time for
  these oracle processes to die.
  So, I rerun the last invocation (900,50) three times serially, i.e. I
  waited for the previous one to finish before I fired the next one.
900 50- ~48  0
900 50  ~67 many
900 50  ~65 many
  Next I fired up the following from three different windows
  simultaneously (almost)
 
  ab -n 1000 -c 50 url
 
  In the first run: http-counter: -
   

[PHP] OCIExecute hangs with invalid sql statement

2001-06-22 Thread Euan Greig

The following code works fine if passed a valid sql statement in $sql, but
if not it hangs.

$this-conn=OCIPLogon($orauser,$orapwd,$tns) or
   die (Could not log on to database);
$this-stmnt = OCIParse($this-conn, $sql) or
   die (Could not initialize database query (parse));
$result = OCIExecute($this-stmnt) or
   die (Could not perform database query (exec));

I have tried to identify an error at the OCIParse stage, using OCIError, but
without success. It seems OCIParse does not return or generate an error for
an invalid statement. Instead it returns a statement ID which apparently
sends OCIExecute into a coma.

Any ideas?

Thanks

Euan





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




[PHP] confused with sessions

2001-06-22 Thread kaab kaoutar

Hi!
I'm confused with these sessions :(
well here is what i want to do!
I have a web site whos pages are all composed of frames(4)!
and in the top frame i have the loggin button!
i want , once the user logged, the fees that are in pages (frames) become 
visible and once logged out, the fees likns disappear...
i have  atable that in mysql dbs that stores users login!
enable_transit_id is enabled in php! the os is unix and wS is apache!

Any ideas?
What i've done so far is to start sessions in each page register the logged 
boolean once logged and destroy it once logged out!
also i had to phpsessid to each url in frames otherwise it does not work! i 
also added the session_name but if i don't add phpsessid to urls it creates 
new sessions each time !
i don't want to use cookies, they are enabled ! maybe that's why 
session_name does not work ?

Please help me !

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Re: PHP authenticating and session management

2001-06-22 Thread Arash Dejkam

Hi,

Thank you very much, you gave me the lines I was looking for in the 7-8
tutorials I read in last 48 hour to find and I didn't :)

Dejkam
http://www.dejkam.f2s.com

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

  You can use $HTTP_SESSION_VARS[username] to make sure that this
variable
 is from the user session, not from the cookie.

  When you do a session_register(username);, the $username is store in
the
 server side, not on the client. The client side only have a Session ID
store
 in the cookie. Each time when a client side request a php page, PHP will
see
 if a specific Session ID has been sent with the request. If this is the
 case, the prior saved environment is recreated.

  -Stephen Yau

 Arash Dejkam writes:

  Hi,
 
  I want to use PHP session manager but I have some problems,
 
  I want the session start in a login page so I do this for example:
 
  after authenticating...
  session_start();
  session_register(username);
...



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




RE: [PHP] how to pass PhP variables thru HREF command

2001-06-22 Thread Andrew Kirilenko

Hello!

Yes, you are right. And ou can get passed values in the predication.php via:
global $HTTP_GET_VARS;
$hometeam = $HTTP_GET_VARS[hometeam];
$awayteam = $HTTP_GET_VARS[awayteam];

Best regards,
Andrew Kirilenko,
Seniour Programmer / System Administrator,
Internet Service.

-Original Message-
From: David Yen [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to pass PhP variables thru HREF command


Hi.

am using SQL Server.
I wrote a php page that displays the NFL game schedule after query the
database.
I want to create link to a game prediction page (written in php) for each
game.  There will be two variables that will be passed thru the Href
command.

Would the code look something like this?

a href=prediction.php?hometeam=?echo $hometeam?awayteam=?echo
$awayteam?
/a

Thank you for your help.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



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




[PHP] informations

2001-06-22 Thread Mihailescu Emil


Sir/Madame

 Please allow me to introduce myself. My name is Mihailescu Emi. I am sales 
manager at
Romcomp SRL and I am contacting you in behalf of the firm. We are a computer 
sellers
company from Romania and we are interested to buy Intel Pentium III @ 933 
MHz processors 
not boxed(tray) and 128 Mb PC 133 memories. If do not have any of this 
item please send us
your price list (item/price).
We are interested to get from your company your prices list, including 
any other products 
and your payments and shipping  methods.

 Please advise,
 
 Mihailescu Emil,
 sales Manager,
 Romcomp SRL.


 P.S. If this e-mail is send to you by mistake please accept our deepest 
apology for any 
 disturbement.
  If you have alredy recived this message please ignore it.   







E-Mail sent using the Free Trial Version of WorldMerge, the fastest
and easiest way to send personalized e-mail messages. More
information at http://www.coloradosoft.com/worldmrg

199642



-- 
PHP General Mailing List (http://www.php.net/)
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 + Oracle + OCIPLogon

2001-06-22 Thread Lucas Persona

Greetings!

Thies C. Arntzen wrote:
 On Thu, Jun 21, 2001 at 09:32:31PM +0300, Rouvas Stathis wrote:
  This has happened with other applications that I have experimented with.
  The lingering connections problem is with us at least since PHP.3.0.12
  (which the first version of PHP I tried).
  That's why I say that PHP/Ora with *persistent* connection do not play
  well with each other.
 i'm the author of this module and more than willing to help.
 i do tests using the ab tool and have never found any
 irregularities in the plogon mode. if you can show me how to
 reproduce this i'm (mostly) sure i can fix it!

  I had the same problem some time ago on TWO different machines running
their 
own Oracle database and the same PHP application.
  The problem makes me to always restart Apache so the open connections
would die.
  The application was doing both a normal and a persistent connection on
two 
different database tablespaces (differents users). One was always using
OciPLogon 
and the other, OCILogon.
  The strange thing was that both connections were hold by Oracle as an
open 
connection so I supposed that the OCIPLogon was holding the other
connection, even 
if it was a normal one (non-persistent).
  One machine had to be restarted to hardware upgrade and after that it
didn't 
show the problem anymore...and the PHP application was still THE SAME!
  Then I had two machines, with the same configuration (OS, DB Version,
PHP App.)
but one had this connection problems, and the other was just fine.
  Some time ago we decided to shut down the Oracle Server on the 'buggy
machine' 
and start it again. The PHP application was still the same. No more
problems.
  I could not say exactly what was going on but this is how it worked
for me.
  I saw some 'bug reports' on Oracle, saying that some kind of changes
on database 
layout, running together with a PHP application could cause Oracle to
hold 
PHP db persistent connections.

Hope this helps,
--
Lucas PersonaICQ #17635618
[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] SQL statement for clearing a table

2001-06-22 Thread Wilbert Enserink

Hi all,

anybody knows the mysql statement for clearing the contents of a table and
lieving the table itself intact?

Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[EMAIL PROTECTED]
-

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




Re: [PHP] PHP authenticating and session management

2001-06-22 Thread Jason Stechschulte

On Fri, Jun 22, 2001 at 08:59:54AM +0430, Arash Dejkam wrote:
 simply check $username and bring up the user's page ? but this makes it
 possible for any hacker to send a cookie with username and see that page. I
 know that PHP stores a unique random number for each session but how can I
 check that it matches with the number in the cookie.


Why not just check for username this way:

?php
if(session_is_registered(username)) {
   // Do stuff
}
?

Then username has to be registered as a session variable so any hacker
(sic) can't just send a username to see that page.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
echo Your stdio isn't very std.
 -- Larry Wall in Configure from the perl distribution

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

2001-06-22 Thread James Moore

Hi all,

Just a note for those in the UK about the next PHP UK meeting. 

Information can be found here: http://www.phpuk.org/meetings.php

The day promises to be interesting, as well as a good chance to meet
other PHP users in the UK and most of all enjoy yourselves. If you are
interested in coming please get your tickets as soon as possible so we
can cater for the correct number of people.

Hope to hear from you soon.

- James
--  
James Moore 
[EMAIL PROTECTED]
http://www.perl.com/search/index.php - we must be doing something right
 


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




Re[2]: [PHP] php as cron

2001-06-22 Thread Gianluca Baldo


AB If I execute this from the shell ./pop it works OK.
AB But as a cron job I get an error message sent to my mail box
AB Your terminal lacks the ability to clear the screen or position the 
AB cursor.,
AB hence this 'clear' bit in my script to try to sort the problem but no joy.
I have had the same problem in some debian installations.
As far as I investigaed, it possibly has to deal with the TERM
parameter but finally I did solve the problem installing also a
copiled version of PHP an calling it like:

* * * * * php /var/www/path/to/script.php

Cheers,
   Gianluca
   
AB Any ideas?

AB Ajdin



AB On Thu, 21 Jun 2001, Joseph Tate wrote:

 Have you tried 'php FILENAME'?  Now, I don't know how you would pass
 parameters to it...
 
  -Original Message-
  From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 8:09 AM
  To: AJDIN BRANDIC
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] php as cron
 
 
  try etc.
 
  00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
 
  Regards
 
  Johan
 
  
   Hi
  
   I have PHP installed as Apache module but I want to run a cron job.  I
   have .php script that works OK when executed through browser
  but is there
   any way I could execute it through a cron job.
  
   Ajdin
  
  
   --
   PHP General Mailing List (http://www.php.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]
 
 



[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


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




Re: [PHP] SQL statement for clearing a table

2001-06-22 Thread lenar

DELETE FROM tablename

or

TRUNCATE TABLE tablename

lenar.

Wilbert Enserink [EMAIL PROTECTED] wrote in message 
001101c0fb15$5daa49e0$[EMAIL PROTECTED]">news:001101c0fb15$5daa49e0$[EMAIL PROTECTED]...
 Hi all,
 
 anybody knows the mysql statement for clearing the contents of a table and
 lieving the table itself intact?
 
 Wilbert
 
 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: Re[2]: [PHP] php as cron

2001-06-22 Thread lenar

 I have had the same problem in some debian installations.
 As far as I investigaed, it possibly has to deal with the TERM
 parameter but finally I did solve the problem installing also a
 copiled version of PHP an calling it like:
 
 * * * * * php /var/www/path/to/script.php

This might be more useful:
* * * * * php -q /var/www/path/to/script.php

It surpresses those HTML headers that you propably don't want in shell mode.

lenar.


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




[PHP] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Taylor, Stewart

Hello,
 
Just in case anyones got any ideas.
 
I've been testing an application for a few weeks on a test server without
any problems.
After releasing it onto the live server, which is - according to the
administrator - setup exactly the same as the test server I've been running
into problems.
 
Apparently the database seems to be disconnecting randomly see log file
extract below.
 
I already had a application on the live server which has been working
perfectly for a year or so.  Now the new application is live it is having
the same problem as well.
 
The test version of the already live application is also on the same test
server and both databases on live and test are setup exactly the same way.
 
 
My administrator tells me that we have a license for unlimited connections
to the database etc..
 
My setup us
OCI8 Revision 1.96
Oracle Version 8.1
Apache Apache/1.3.11
Redhat Linux 6.2
php 4.0.2
I'm also using phplib 7.2c to manage authentication/sessions and database
access.
 
 
I would be very grateful if anyone has got any suggestions
 
 
Regards,
 
-Stewart
 
 
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in Unknown on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/session.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
 
 

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




[PHP] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Taylor, Stewart

Hello,
 
Just in case anyones got any ideas.
 
I've been testing an application for a few weeks on a test server without
any problems.
After releasing it onto the live server, which is - according to the
administrator - setup exactly the same as the test server I've been running
into problems.
 
Apparently the database seems to be disconnecting randomly see log file
extract below.
 
I already had a application on the live server which has been working
perfectly for a year or so.  Now the new application is live it is having
the same problem as well.
 
The test version of the already live application is also on the same test
server and both databases on live and test are setup exactly the same way.
 
 
My administrator tells me that we have a license for unlimited connections
to the database etc..
 
My setup us
OCI8 Revision 1.96
Oracle Version 8.1
Apache Apache/1.3.11
Redhat Linux 6.2
php 4.0.2
I'm also using phplib 7.2c to manage authentication/sessions and database
access.
 addition I have modified the phplib db class so that it does not use
peristant connections.
 
I would be very grateful if anyone has got any suggestions
 
 
Regards,
 
-Stewart
 
 
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in Unknown on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/session.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
logged on
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-24324:
service handle not initialized
 in /usr/local/apache/phplib/auth.inc on line 0
PHP Warning:  failed to rollback outstanding transactions!: ORA-01012: not
 
 

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




[PHP] Error messages

2001-06-22 Thread Coughlan, Andy-HQ
Title: Error messages





Hi Guys and Gals,


Whilst developing various php pages I noticed that occasionally when I get an error in a page the parser won't tell me which line the error is on, and just shows error on line 1 even if the error is on line 93. It isn't every page that does it, although I've tried saving an offending file as a different name and this symptoms still occur. Has anyone else had a similar experience, and, if so, do they know if there's a fix for it?

Andy


Andy Coughlan
Marketing Communications Assistant
a.coughlan@portex.com


Smiths Group plc Registered in England under No:137013
Registered office: 765 Finchley Road, London NW11 8DS, UK


This E-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
This E-mail does not constitute a commitment by Smiths Group plc or any of its subsidiary companies





RE: [PHP] PHP authenticating and session management

2001-06-22 Thread Jaxon

Does this depend on cookies?

regards,
jaxon


 -Original Message-
 From: Style|warrioR [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 22, 2001 5:09 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP authenticating and session management


 I'm not quite sure if this is the perfect way cause I'm pretty new to this
 session stuff, too.
 but my version looks like this:

 [login.php]
 a form with username and password field.
 submit -- auth.php


 [auth.php]
 check if username and password are ok (from a text file or your mysql
 database) [yes|no]
 [no] - echo bad login or password.; exit;
 [yes] - start a session, save username and password in session vars,
 redirect to userpage


 lets say your userpages look like aUsername_blah.php


 [aUsername_blah.php]
 include a script on every userpage that checks if login and password are
 correct [yes|no]
 [no] - redirect to login.php
 [yes] - display page


 comments appreciated :)
 .andi






 Arash Dejkam [EMAIL PROTECTED] schrieb in im Newsbeitrag:
 9guhbf$msi$[EMAIL PROTECTED]
  Hi,
 
  I want to use PHP session manager but I have some problems,
 
  I want the session start in a login page so I do this for example:
 
  after authenticating...
  session_start();
  session_register(username);
 
  then I want the user to be able to see his own pages, what do I
 have to do
  in those pages?
 
  simply check $username and bring up the user's page ? but this makes it
  possible for any hacker to send a cookie with username and see
 that page.
 I
  know that PHP stores a unique random number for each session
 but how can I
  check that it matches with the number in the cookie.
 
  help me please I'm really confused !
 
  Thanks
 
  Arash Dejkam
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.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] apache and php ate up all my memory :-[

2001-06-22 Thread Sebastian Stadtlich

Hi all

Probably some Apache/mysql/php-Admin gurus can give me a hint :
i just moved a website to it's own server ( my first one).
now apache had eaten up all physical and virtual memory
some httpd had allocated 45MB of RAM, memory ran out myqsl crashed...

php is compiled in to apache 
Apache/1.3.19 (Unix) PHP/4.0.4pl1 
these are the relevant entries is my  httpd.conf
Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 20
MaxClients 150
MaxRequestsPerChild 500

in the php.ini

memory_limit = 8M 
( but i think that has nothing to do with it)

i can't find anything in the logfiles exept that some httpd were already
killed by itself, because
there was no memory left that they could eat
needless to say that my site does NOT get that much traffic that the
server was at the edge
of it's capacity.
HELP...

Sebastian 

--
PHP General Mailing List (http://www.php.net/)
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 as cron

2001-06-22 Thread Jean-Arthur Silve

Why don't you put directly this line in your cron file ?

i.e :

00 03 * * * lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3

for daily 3.00 AM

jean-arthur



At 09:28 22/06/01 +0100, AJDIN BRANDIC wrote:
Hi again,

this is what I have done, as adviced by you guys (thanks)

created a file called pop which contains
#! /bin/sh
lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3  /dev/null
clear

If I execute this from the shell ./pop it works OK.
But as a cron job I get an error message sent to my mail box
Your terminal lacks the ability to clear the screen or position the
cursor.,
hence this 'clear' bit in my script to try to sort the problem but no joy.

Any ideas?

Ajdin



On Thu, 21 Jun 2001, Joseph Tate wrote:

  Have you tried 'php FILENAME'?  Now, I don't know how you would pass
  parameters to it...
 
   -Original Message-
   From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 21, 2001 8:09 AM
   To: AJDIN BRANDIC
   Cc: [EMAIL PROTECTED]
   Subject: RE: [PHP] php as cron
  
  
   try etc.
  
   00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
  
   Regards
  
   Johan
  
   
Hi
   
I have PHP installed as Apache module but I want to run a cron job.  I
have .php script that works OK when executed through browser
   but is there
any way I could execute it through a cron job.
   
Ajdin
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

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


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



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




Re: [PHP] php as cron

2001-06-22 Thread infoz

If you're partial to the approach of using a web-based program to do this
(often a bad idea, for security reasons) then look at 'curl' or 'wget'
instead of 'lynx'. (you can find them on Freshmeat.net)

Much better is to build the CGI version of PHP, and use PHP as a script
processor just like Perl, Korn, BASH, etc., i.e.

#!/path/to/php.cgi -q
...script goes here...


- Tim
  http://www.phptemplates.org

- Original Message -
From: AJDIN BRANDIC [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 4:28 AM
Subject: RE: [PHP] php as cron


 Hi again,

 this is what I have done, as adviced by you guys (thanks)

 created a file called pop which contains
 #! /bin/sh
 lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3  /dev/null
 clear

 If I execute this from the shell ./pop it works OK.
 But as a cron job I get an error message sent to my mail box
 Your terminal lacks the ability to clear the screen or position the
 cursor.,
 hence this 'clear' bit in my script to try to sort the problem but no joy.

 Any ideas?

 Ajdin



 On Thu, 21 Jun 2001, Joseph Tate wrote:

  Have you tried 'php FILENAME'?  Now, I don't know how you would pass
  parameters to it...
 
   -Original Message-
   From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 21, 2001 8:09 AM
   To: AJDIN BRANDIC
   Cc: [EMAIL PROTECTED]
   Subject: RE: [PHP] php as cron
  
  
   try etc.
  
   00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
  
   Regards
  
   Johan
  
   
Hi
   
I have PHP installed as Apache module but I want to run a cron job.
I
have .php script that works OK when executed through browser
   but is there
any way I could execute it through a cron job.
   
Ajdin
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

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



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




[PHP] protected Images without using htaccess

2001-06-22 Thread Arash Dejkam

Hi,

I'm going to make a page in which users (being authenticated by PHP session
management) upload pictures and specify which other users can see those
pictures, and I want all the process be automated, and I don't want to use
Apache protection on directories, now I have a problem: if I store images in
a directory which is in root directory
of  HTTP server, then any user can access any image by sending a direct
query from his browser like :
www.mysite.com/members/images/img023.jpg even if he is not allowed. and also
I can not save image out of HTTP root directory because then http can not
serve them.
I found a very foolish solution for this :) I can store the images out of
HTTP root dir and then use a PHP script which first checks the session ID
and then sends the images with ImageCreateFromJPEG() and ImageJPEG()
functions.

Can anybody give me a better way to solve this problem ?

Thanks
Arash Dejkam






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




Re: [PHP] confused with sessions

2001-06-22 Thread Chris Lee

trans_sid is only enabled when cookies are not supported. php.ini has
session.use_cookies = 0; this will disable cookies and force trans-sid. you
should also verify trans-sid with phpinfo(), make sure it really did get
compiled in.

trans-sid will only re-write urls that are not full urls. ie.

index.php is ok
http://www.e-tankless.com/index.php is not. you will have to re-write it
yourself.

if cookies are disabled and the phpsessid is not in the url then php has
absolutly no way of knowing its the same customer, therfore it creates a new
phpsessid.

--

  Chris Lee
  [EMAIL PROTECTED]




kaab kaoutar [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi!
 I'm confused with these sessions :(
 well here is what i want to do!
 I have a web site whos pages are all composed of frames(4)!
 and in the top frame i have the loggin button!
 i want , once the user logged, the fees that are in pages (frames) become
 visible and once logged out, the fees likns disappear...
 i have  atable that in mysql dbs that stores users login!
 enable_transit_id is enabled in php! the os is unix and wS is apache!

 Any ideas?
 What i've done so far is to start sessions in each page register the
logged
 boolean once logged and destroy it once logged out!
 also i had to phpsessid to each url in frames otherwise it does not work!
i
 also added the session_name but if i don't add phpsessid to urls it
creates
 new sessions each time !
 i don't want to use cookies, they are enabled ! maybe that's why
 session_name does not work ?

 Please help me !

 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] protected Images without using htaccess

2001-06-22 Thread Fredrik Arild Takle

1. Authenticate user
2. Put the pictures in a secret folder or outside http_root
3. Do this:

?php
  header(Content-Type: application/download\n);
  header(Content-Disposition: filename=\$file\);
  $fn = fopen($file , r);
  fpassthru($fn);
?

I hope this helps!

Fredrik A. Takle
[EMAIL PROTECTED]
www.iportal1.com


Arash Dejkam [EMAIL PROTECTED] wrote in message
9gvk5g$8o0$[EMAIL PROTECTED]">news:9gvk5g$8o0$[EMAIL PROTECTED]...
 Hi,

 I'm going to make a page in which users (being authenticated by PHP
session
 management) upload pictures and specify which other users can see those
 pictures, and I want all the process be automated, and I don't want to use
 Apache protection on directories, now I have a problem: if I store images
in
 a directory which is in root directory
 of  HTTP server, then any user can access any image by sending a direct
 query from his browser like :
 www.mysite.com/members/images/img023.jpg even if he is not allowed. and
also
 I can not save image out of HTTP root directory because then http can not
 serve them.
 I found a very foolish solution for this :) I can store the images out of
 HTTP root dir and then use a PHP script which first checks the session ID
 and then sends the images with ImageCreateFromJPEG() and ImageJPEG()
 functions.

 Can anybody give me a better way to solve this problem ?

 Thanks
 Arash Dejkam






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

2001-06-22 Thread enygma

A lot of times, it will tell you what kind of error it isif it's a
parse error, the first thing to look for is a missing semi-colon or
something. Other than that, braces and parens are the ones that I miss
the most. It's just a limitation of the PHP debugger right now. It might
be fixed in later versions, but until then I'd just suggest an editor
that does syntax highlighting. It's helped me not miss as many little
things like that.

-enygma

Coughlan, Andy-HQ wrote:



 Hi Guys and Gals,

 Whilst developing various php pages I noticed that occasionally when I
 get an error in a page the parser won't tell me which line the error
 is on, and just shows error on line 1 even if the error is on line
 93.  It isn't every page that does it, although I've tried saving an
 offending file as a different name and this symptoms still occur.  Has
 anyone else had a similar experience, and, if so, do they know if
 there's a fix for it?

 Andy

 Andy Coughlan
 Marketing Communications Assistant
 [EMAIL PROTECTED]

 Smiths Group plcRegistered in England under No:137013
 Registered office: 765 Finchley Road, London NW11 8DS, UK

 This E-mail and any files transmitted with it are confidential and
 intended
 solely for the use of the individual or entity to whom they are
 addressed.
 This E-mail does not constitute a commitment by Smiths Group plc or
 any of its subsidiary companies

--
[EMAIL PROTECTED]
--
PHPDeveloper.org - News, tuorials and forums all for you
http://www.phpdeveloper.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] Is this a joke?!

2001-06-22 Thread Fredrik Arild Takle

Is this a joke?
http://www.perl.com/search/index.php

*hehe*



-- 
PHP General Mailing List (http://www.php.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 it possible to have the parameters fo a function be exited HTML?

2001-06-22 Thread Jason Lustig

Is it possible to break up the parameters of a function with ? and ?php ??

What I mean by this, for example, is this:


snip

?php

strtoupper(

?

table
tr
td
a href=http://www.php.net;php.net/a
/td
/tr
/table

?php

);

?

/snip

With this example, will it output the following HTML?


snip


TABLE
TR
TD
A HREF=HTTP://WWW.PHP.NET;PHP.NET/A
/TD
/TR
/TABLE


/snip

I know it's not a very useful use of strtoupper()... :) But I am curious
about whether it is possible to have the parameters to a function in exited
HTML. Is it possible?

--Jason


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




Re: [PHP] protected Images without using htaccess

2001-06-22 Thread Chris Lee

you are so close .. store the images outside the http root. have a php page
verify the user and use

header('content-type: image.jpeg');
readfile('/tmp/image.jpg');

there ya go. its the only way i can see.
--

  Chris Lee
  [EMAIL PROTECTED]



Arash Dejkam [EMAIL PROTECTED] wrote in message
9gvk5g$8o0$[EMAIL PROTECTED]">news:9gvk5g$8o0$[EMAIL PROTECTED]...
 Hi,

 I'm going to make a page in which users (being authenticated by PHP
session
 management) upload pictures and specify which other users can see those
 pictures, and I want all the process be automated, and I don't want to use
 Apache protection on directories, now I have a problem: if I store images
in
 a directory which is in root directory
 of  HTTP server, then any user can access any image by sending a direct
 query from his browser like :
 www.mysite.com/members/images/img023.jpg even if he is not allowed. and
also
 I can not save image out of HTTP root directory because then http can not
 serve them.
 I found a very foolish solution for this :) I can store the images out of
 HTTP root dir and then use a PHP script which first checks the session ID
 and then sends the images with ImageCreateFromJPEG() and ImageJPEG()
 functions.

 Can anybody give me a better way to solve this problem ?

 Thanks
 Arash Dejkam






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

2001-06-22 Thread kaab kaoutar


Hi!

1- is there a way with which i can verify that a session variable is 
registered or exists  without using start_session cause if it's not 
registered and there is no session it'll create the session !
i tried isset() but if it's set i have to use start_session so as to get the 
values and as we know start_session should be at the beginning!

2- if i create a session in a page can it be used in all the site pages and 
rames without adding any $phpsessid to all urls?
in my php.ini the enable-transit-id is enabled !
byt the way what do u mean by compilin php? i just save the php.ini!

3-with IE and netscape as i add the phpsessid to urls , sometimes it 
remmbers an old session and displays it to me ! how can i avoid these?
please help i'm confused!

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] compiling with the gd library

2001-06-22 Thread Julia A. Case

I have a client that wants to have the gd library compiled into php, I got a modern 
version of the gd lib (1.8.4 and 2.0.1) and both state that they dropped support for 
gifs...  but the ext/gd/gd.c tries to use gif calls...  I'm confused.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

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




Re: [PHP] toronto developers?

2001-06-22 Thread J Smith

I don't know if there's a PHP developer community here, but I'm an
individual
who doesn't mind sharing a bit of knowledge.

I started working in TO back in March. I'm working for a tiny company as
their
sole coder, doing stuff all over the board -- C, C++, Perl, PHP. Most of it
is
PHP, but I've written some extensions to PHP itself in C++ and C, and some
of the
stuff surrounding our database (like our search engine indexer) is in Perl.
The
company is basically a web-based ASP, and since we didn't have a ton of
money to
start with, going the PHP/Apache/Linux/free software route was a natural
choice.

Anyways, I guess that's it.

Welcome to Toronto.

J


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

 apologies for being not quite on topic..

 i just moved to toronto, canada.. i'm trying to settle in (and look for
 work) and was wondering if there is a developer community there.. ? or
 even individuals who don't mind sharing a bit of local knowledge..

 any contact appreciated :)
 nicole

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

2001-06-22 Thread Fredrik Arild Takle

added the wrong script... arghh...

?php
  Header(Content-type: image/gif);
  $fp = @fopen($img,rb);
  fpassthru($fp);
  fclose($fp);
?

Fredrik Arild Takle [EMAIL PROTECTED] wrote in message
9gvl19$er6$[EMAIL PROTECTED]">news:9gvl19$er6$[EMAIL PROTECTED]...
 1. Authenticate user
 2. Put the pictures in a secret folder or outside http_root
 3. Do this:

 ?php
   header(Content-Type: application/download\n);
   header(Content-Disposition: filename=\$file\);
   $fn = fopen($file , r);
   fpassthru($fn);
 ?

 I hope this helps!

 Fredrik A. Takle
 [EMAIL PROTECTED]
 www.iportal1.com


 Arash Dejkam [EMAIL PROTECTED] wrote in message
 9gvk5g$8o0$[EMAIL PROTECTED]">news:9gvk5g$8o0$[EMAIL PROTECTED]...
  Hi,
 
  I'm going to make a page in which users (being authenticated by PHP
 session
  management) upload pictures and specify which other users can see those
  pictures, and I want all the process be automated, and I don't want to
use
  Apache protection on directories, now I have a problem: if I store
images
 in
  a directory which is in root directory
  of  HTTP server, then any user can access any image by sending a direct
  query from his browser like :
  www.mysite.com/members/images/img023.jpg even if he is not allowed. and
 also
  I can not save image out of HTTP root directory because then http can
not
  serve them.
  I found a very foolish solution for this :) I can store the images out
of
  HTTP root dir and then use a PHP script which first checks the session
ID
  and then sends the images with ImageCreateFromJPEG() and ImageJPEG()
  functions.
 
  Can anybody give me a better way to solve this problem ?
 
  Thanks
  Arash Dejkam
 
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.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] Safe_mode in certain directories

2001-06-22 Thread Egan

On Thu, 21 Jun 2001 14:35:50 -0700 (PDT), Rasmus Lerdorf
[EMAIL PROTECTED] wrote:

If you are using Apache you can set any PHP directive in Directory ...
or VirtualHost ... block by doing something like:

  php_admin_flag safe_mode On

Do those directives work in .htaccess files too?





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




Re: [PHP] OT Re: http 1.0 1.1 info

2001-06-22 Thread rm

 it's not the equivalent of 'HTTP for Dummies' :-)

funny thing...after your message, I went to a search
engine ran a search for http protocol dummies...found
what I needed g

ken



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




RE: [PHP] informations

2001-06-22 Thread Jamie Thompson

i think you be sendering this to the wrongs peepel.

-Original Message-
From: Mihailescu Emil [mailto:[EMAIL PROTECTED]]
Sent: 21 June 2001 04:52
To: [EMAIL PROTECTED]
Subject: [PHP] informations



Sir/Madame

 Please allow me to introduce myself. My name is Mihailescu Emi. I am sales
manager at
Romcomp SRL and I am contacting you in behalf of the firm. We are a computer
sellers
company from Romania and we are interested to buy Intel Pentium III @ 933
MHz processors
not boxed(tray) and 128 Mb PC 133 memories. If do not have any of this
item please send us
your price list (item/price).
We are interested to get from your company your prices list, including
any other products
and your payments and shipping  methods.

 Please advise,

 Mihailescu Emil,
 sales Manager,
 Romcomp SRL.


 P.S. If this e-mail is send to you by mistake please accept our deepest
apology for any
 disturbement.
  If you have alredy recived this message please ignore it.







E-Mail sent using the Free Trial Version of WorldMerge, the fastest
and easiest way to send personalized e-mail messages. More
information at http://www.coloradosoft.com/worldmrg

199642



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

2001-06-22 Thread Tyler Longren

Hello,

I recompiled php/apache/openssl/mod_ssl yesterday on a server (exact same as
I had done it before).  Before apache started up with SSL with no problem.
Now when I start (./apachectl startssl), I get this warning:
[Fri Jun 22 10:59:03 2001] [warn] Loaded DSO libexec/libphp4.so uses plain
Apache 1.3 API, this module might crash under EAPI! (please recompile it
with -DEAPI)

Can I just recompile libphp4.a with DEAPI somehow and not have to recompile
apache?  Here is the ./configure for php:
'./configure' '--with-apache=../apache_1.3.20' '--with-mysql'
'--with-msql=/usr/local/Hughes' '--with-mcrypt' '--with-xml'
'--disable-debug' '--enable-track-vars'

Here was the ./configure from Apache:
SSL_BASE=../openssl-0.9.6a
./configure --enable-module=ssl --enable-shared=ssl   --activate-module=src/
modules/php4/libphp4.a --enable-module=php4 --enable-module=rewrite   --enab
le-shared=rewrite --enable-module=cgi --enable-shared=cgi --enable-module=in
clude  --enable-shared=include --prefix=/usr/local/apache

Thanks everyone,
Tyler


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




Re: [PHP] SQL statement for clearing a table

2001-06-22 Thread Adam Wright

DELETE FROM table_name;

adamw

- Original Message -
From: Wilbert Enserink [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 1:17 PM
Subject: [PHP] SQL statement for clearing a table


 Hi all,

 anybody knows the mysql statement for clearing the contents of a table and
 lieving the table itself intact?

 Wilbert

 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -

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




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




RE: [PHP] Sessions vs Cookies?

2001-06-22 Thread Christopher Ostmo

Jason Murray pressed the little lettered thingies in this order...

  I am about to write a new admin system for a website I do and 
  it will have many different logins. I was wondering overall which 
  most of you thought would be better for such a thing? Wants really 
  a pro about sessions over cookies?
 
 If it's for an admin section, then you may as well use cookies. If
 the client doesn't want to use cookies they can't use their admin
 interface. :) I doubt they would have privacy issues with themselves
 anyway.
 
 If you're going to use cookies, hopefully you'll have a database 
 system available (you said you'd have lots of different logins).
 
 So, create a session table:
 
  ID int
  username text
  password text (if required, maybe you won't need it again)
  logintime int
  expirytime int
  magickey text
 
 Generate a magic key as such:
 
 ?
$randomseed = intval(ereg_replace([^0-9], ,
 substr(Date(U).microtime(), 4, 10)));
srand($randomseed);
$newid = rand(1, 9);
 
$magickey = md5($newid.$REMOTE_ADDR.time());
 ? 
 

That's really a lot of coding to do when you consider that PHP does this 
(or something very similar) for you when it initializes your user session.

It really would be foolish to attempt to create new session tracking code 
if you use PHP4.

Allow PHP to initialize the session, assign the variable, attempt to set 
the cookie and place the session ID onto the URL tag if it can't read the 
cookie.  All that you have to do as the programmer is insert the session 
ID (which PHP has generated) into a database and possibly match it up 
with a valid login in that database entry.

Doing the session coding yourself is a waste of time. You're not likely to 
find a more reliable session tracking solution than what's built into 
PHP4 as long as HTTP connections remain stateless.

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.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] SQL statement for clearing a table

2001-06-22 Thread Julia A. Case

try 

delete from table;

Julia

Quoting Wilbert Enserink ([EMAIL PROTECTED]):
 Hi all,
 
 anybody knows the mysql statement for clearing the contents of a table and
 lieving the table itself intact?
 
 Wilbert
 
 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

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




RE: [PHP] SQL statement for clearing a table

2001-06-22 Thread Jason Lustig

This SQL statement:

DELETE FROM myTable;

That should work... pretty much, unless you give a WHERE statement, it will
do whatever you want (UPDATE, SELECT, DELETE, etc) to every record in the
table.

--Jason


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




[PHP] isset($x) fails !

2001-06-22 Thread kaab kaoutar

Hi!
isset() fails :(
i peeferd using it so as not to use session_start() when the guy is not 
logged !


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




[PHP] Re: [phplib] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Thies C. Arntzen

On Fri, Jun 22, 2001 at 02:26:43PM +0100, Taylor, Stewart wrote:
 Hello,
  
 Just in case anyones got any ideas.
  
 I've been testing an application for a few weeks on a test server without
 any problems.
 After releasing it onto the live server, which is - according to the
 administrator - setup exactly the same as the test server I've been running
 into problems.
  
 Apparently the database seems to be disconnecting randomly see log file
 extract below.
  
 I already had a application on the live server which has been working
 perfectly for a year or so.  Now the new application is live it is having
 the same problem as well.
  
 The test version of the already live application is also on the same test
 server and both databases on live and test are setup exactly the same way.
  
  
 My administrator tells me that we have a license for unlimited connections
 to the database etc..
  
 My setup us
 OCI8 Revision 1.96
 Oracle Version 8.1
 Apache Apache/1.3.11
 Redhat Linux 6.2
 php 4.0.2
 I'm also using phplib 7.2c to manage authentication/sessions and database
 access.
  addition I have modified the phplib db class so that it does not use
 peristant connections.
  
 I would be very grateful if anyone has got any suggestions
  

do you think you can isolate your problem to a few lines
(without using phplib)? if you send a reproducable testcase
to me i _will_ have a look at it!

tc

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




Re: [PHP] SQL statement for clearing a table

2001-06-22 Thread py

if you have a numbered primary key,
delete from table where primary_key  0 ?
(to be handled with care)
py

- Original Message -
From: Wilbert Enserink [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 1:17 PM
Subject: [PHP] SQL statement for clearing a table


 Hi all,

 anybody knows the mysql statement for clearing the contents of a table and
 lieving the table itself intact?

 Wilbert

 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -

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




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




[PHP] MySQL Dump In PHP

2001-06-22 Thread Chris Anderson



I've been reading through the MySQL manual about 
backing up my database using mysql dump. I tried passing it as a Query in PHP 
but that doesn't seem to work. Does anyone know how to do this? Also does the 
dump back up the files into a directory I specify? I am on a virtual host and 
need to create the files in my own directories. Any help would be 
appreciated


Re: [PHP] toronto developers?

2001-06-22 Thread Mindy Wallen


J Smith [EMAIL PROTECTED] wrote in message
9gvnfr$ukj$[EMAIL PROTECTED]">news:9gvnfr$ukj$[EMAIL PROTECTED]...
 I don't know if there's a PHP developer community here, but I'm an
 individual
 who doesn't mind sharing a bit of knowledge.


J

There is a PHP dev newsgroup.  You can find it at the following link.

http://www.php.net/support.php


Mindy


 I started working in TO back in March. I'm working for a tiny company as
 their
 sole coder, doing stuff all over the board -- C, C++, Perl, PHP. Most of
it
 is
 PHP, but I've written some extensions to PHP itself in C++ and C, and some
 of the
 stuff surrounding our database (like our search engine indexer) is in
Perl.
 The
 company is basically a web-based ASP, and since we didn't have a ton of
 money to
 start with, going the PHP/Apache/Linux/free software route was a natural
 choice.

 Anyways, I guess that's it.

 Welcome to Toronto.

 J


 nicole [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  apologies for being not quite on topic..
 
  i just moved to toronto, canada.. i'm trying to settle in (and look for
  work) and was wondering if there is a developer community there.. ? or
  even individuals who don't mind sharing a bit of local knowledge..
 
  any contact appreciated :)
  nicole
 
  --
  PHP General Mailing List (http://www.php.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] un-official miror of php.net

2001-06-22 Thread Reuben D Budiardja


Hi, 
Is it allowed to be an un-official mirror of php.net? I mean, I want to have 
php.net site on my local webserver, but it's mainly for the use of our own 
development group (intranet), ie. not publicly available, and not to be 
listed in the list of php.net mirror.

I'm mostly interested to have all the functionality of function reference / 
search, and not the whole site, eg. I don't need the download part since I 
can always download from the real www.php.net. Any help on how the easiest 
way to set this up would be appreciated

Please let me know if this is OK or not.

Thanks
Reuben D. Budiardja



--
PHP General Mailing List (http://www.php.net/)
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 authenticating and session management

2001-06-22 Thread Bass???

I have a Q.
will the Session ID be stolen by hacker when the ID tranfer bewteen client
and server ?
Then can the hacker send the ID to server and veiw the user's page ?


Jason Stechschulte [EMAIL PROTECTED] ?
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, Jun 22, 2001 at 08:59:54AM +0430, Arash Dejkam wrote:
  simply check $username and bring up the user's page ? but this makes it
  possible for any hacker to send a cookie with username and see that
page. I
  know that PHP stores a unique random number for each session but how can
I
  check that it matches with the number in the cookie.


 Why not just check for username this way:

 ?php
 if(session_is_registered(username)) {
// Do stuff
 }
 ?

 Then username has to be registered as a session variable so any hacker
 (sic) can't just send a username to see that page.

 --
 Jason Stechschulte
 [EMAIL PROTECTED]
 --
 echo Your stdio isn't very std.
  -- Larry Wall in Configure from the perl distribution

 --
 PHP General Mailing List (http://www.php.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] SQL statement for clearing a table

2001-06-22 Thread Balak, Frank

delete from tablename

-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 07:18
To: [EMAIL PROTECTED]
Subject: [PHP] SQL statement for clearing a table


Hi all,

anybody knows the mysql statement for clearing the contents of a table and
lieving the table itself intact?

Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[EMAIL PROTECTED]
-

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

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




Re: [PHP] General Coding Question

2001-06-22 Thread George Whiffen

And what about the third option using single quotes on the
outside i.e.  

print  'INPUT TYPE=TEXT VALUE='. $hash[var2] .'..

or even better

print '
   INPUT TYPE=TEXT
 VALUE='.$hash[var2].'
  SIZE=
..

This should be better than an outer double quote since it
stops any php parsing, so it's a bit faster and you don't
have to
worry if you have any dollar signs in the HTML. It does mean
that you can't just embed the variables but then that
doesn't work for  array variables anyway yet, so it's no
great loss.

I must say I'm tempted by being able to write 
?
   INPUT TYPE=TEXT
  SIZE=? if ($length20){print '40';} else {print
'20';}?
 VALUE=
etc..

rather than my normal style which would be : 

print '
   INPUT TYPE=TEXT
  SIZE=';
if ($length20)
{
   print '40';
} else {
   print '20';
}
print '
 VALUE=
etc..

I'd be very interested to hear other's views on what they
find easiest.  After all, style is 
mostly about making it easy for other people (especially the
inexperienced) to maintain our code, 
not to suit our ideas of elegance. 

My own gut feeling is that consistency is probably the most
important thing, i.e. pick any of the 
styles and then stick to it.  

What do you think?

George Whiffen


Chris Lee wrote:
 
 im here to start a flamewar.
 
 dont use  then. why not use ' ?
 
   echo 
   input type=\text\ name=\name\ value=\$name\

 
   echo 
   input type='text' name='name' value='$name'

 I like the second. it is proper html check it with w3.org.
 
 --
 
   Chris Lee
   [EMAIL PROTECTED]
 
 scott [gts] [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  on pages with mostly HTML code, the second style is much
  prefereable, but on pages with mostly PHP code, the first
  style is usually OK.
 
  overall, i tend towards the second, becuase it's a pain
  in the ass to esape all the double-quotes in my HTML,
  my echo statements usulaly end up looking like thi
  (which, to me, is terrible form)
 
  echo INPUT TYPE=\TEXT\ VALUE=\. $hash['var'] .\..
 
  so i usually use this format, which to my eyes
  is much prettier :)
  ?
  INPUT TYPE=TEXT VALUE=?= $hash['var'] ?
  ?
 
   -Original Message-
   From: James Stevens [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, June 20, 2001 12:23 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] General Coding Question
  
  
   Does it have any effect on performance in either case if a file is
   completely done in PHP(1) or interspersed with PHP(2).
  
   (1)
   ?php
   echo html;
   ...
   ?
  
   (2)
   html
   ...
   ?php echo $forminput; ?
   ...
  
   Also, and this is personal preference, which is easier to read/debug?
  
   James
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




RE: [PHP] SQL statement for clearing a table

2001-06-22 Thread Merio, Quinn


isn't it,


DELETE FROM tablename;

q.

-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 6:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL statement for clearing a table


Hi all,

anybody knows the mysql statement for clearing the contents of a table and
lieving the table itself intact?

Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[EMAIL PROTECTED]
-

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

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




[PHP] Is there a user group in Colorado?

2001-06-22 Thread Unni

Is there a user group in Colorado?

Thanks


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




Re: [PHP] PHP authenticating and session management

2001-06-22 Thread stylewarrior

no, it works also if your user has cookies disabled.




Jaxon [EMAIL PROTECTED] schrieb in im Newsbeitrag:
[EMAIL PROTECTED]
 Does this depend on cookies?

 regards,
 jaxon


  -Original Message-
  From: Style|warrioR [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 22, 2001 5:09 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] PHP authenticating and session management
 
 
  I'm not quite sure if this is the perfect way cause I'm pretty new to
this
  session stuff, too.
  but my version looks like this:
 
  [login.php]
  a form with username and password field.
  submit -- auth.php
 
 
  [auth.php]
  check if username and password are ok (from a text file or your mysql
  database) [yes|no]
  [no] - echo bad login or password.; exit;
  [yes] - start a session, save username and password in session vars,
  redirect to userpage
 
 
  lets say your userpages look like aUsername_blah.php
 
 
  [aUsername_blah.php]
  include a script on every userpage that checks if login and password are
  correct [yes|no]
  [no] - redirect to login.php
  [yes] - display page
 
 
  comments appreciated :)
  .andi
 
 
 
 
 
 
  Arash Dejkam [EMAIL PROTECTED] schrieb in im Newsbeitrag:
  9guhbf$msi$[EMAIL PROTECTED]
   Hi,
  
   I want to use PHP session manager but I have some problems,
  
   I want the session start in a login page so I do this for example:
  
   after authenticating...
   session_start();
   session_register(username);
  
   then I want the user to be able to see his own pages, what do I
  have to do
   in those pages?
  
   simply check $username and bring up the user's page ? but this makes
it
   possible for any hacker to send a cookie with username and see
  that page.
  I
   know that PHP stores a unique random number for each session
  but how can I
   check that it matches with the number in the cookie.
  
   help me please I'm really confused !
  
   Thanks
  
   Arash Dejkam
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




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




Re: [PHP] PHP authenticating and session management

2001-06-22 Thread Style|warrioR

interesting question! I'm also interested in it, cause I read somwhere
that its possible to kidnap sessions...




Bass??? [EMAIL PROTECTED] schrieb in im Newsbeitrag:
9gvt89$pi5$[EMAIL PROTECTED]
 I have a Q.
 will the Session ID be stolen by hacker when the ID tranfer bewteen client
 and server ?
 Then can the hacker send the ID to server and veiw the user's page ?


 Jason Stechschulte [EMAIL PROTECTED] ?
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Fri, Jun 22, 2001 at 08:59:54AM +0430, Arash Dejkam wrote:
   simply check $username and bring up the user's page ? but this makes
it
   possible for any hacker to send a cookie with username and see that
 page. I
   know that PHP stores a unique random number for each session but how
can
 I
   check that it matches with the number in the cookie.
 
 
  Why not just check for username this way:
 
  ?php
  if(session_is_registered(username)) {
 // Do stuff
  }
  ?
 
  Then username has to be registered as a session variable so any hacker
  (sic) can't just send a username to see that page.
 
  --
  Jason Stechschulte
  [EMAIL PROTECTED]
  --
  echo Your stdio isn't very std.
   -- Larry Wall in Configure from the perl distribution
 
  --
  PHP General Mailing List (http://www.php.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] gd library

2001-06-22 Thread Julia A. Case

This message never showed up on the list so I appologize if it shows up 2x.

I have a customer that wants to use the gd library with PHP, I got 2 different 
versions (1.3.8 and 2.0.1) and both say that they no longer support GIF formats...  
but when I try to compile the ext/gd/gd.c file I get errors on GIF function calls.

Is there a way around this?

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

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




Re: [PHP] How to connect to remote database server through PHP?

2001-06-22 Thread George Whiffen

Manisha,

For the Sybase network connections, you are probably best
off contacting Sybase 
specialists. php via the sybase_connect function is likely
to look like any other Sybase 
client on a remote box, so the question is mostly about how
do you get any Sybase client 
on your web server to communicate with the main database
server.

What about the administrator of the main database server? 
They should be able to help
you on the Sybase networking side.  In any case they are
likely to have
lots of opinions about the security implications of what you
are trying to do.

What you can tell your client is that you should have no
problem with
sending updates to the main database server from your side,
but you really
need their central database people to brief you on what is
acceptable/sensible
from their side.

Sorry I couldn't help more.


Manisha wrote:
 
 Hi,
 
 We are developing web application. The client wants it to get connected to
 their central database server in USA. Web server is in Singapore.
 
 Web server configuration  - Situated in Singapore, unix / php / mysql -
 this database is only for some special cases where application does not
 require  central database.
 
 Main central database server - Situated in USA, HP UX / sybase
 
 On web site we will be providing product listing and order form. After the
 order is confirmed and payment is made, client wants to update some fields
 on central database.
 
 Can anybody give me the details, how to do it? If I am using php, how to
 connect to remote server's database? What are the components require on
 both servers? How will be the network configuration? Any information
 source? Any mailing list for network connections ?
 
 Thanks in advance
 manisha
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




RE: [PHP] SQL statement for clearing a table

2001-06-22 Thread ckieninger

$query = delete * from table;

table is empty

mailto:[EMAIL PROTECTED]


-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 22. Juni 2001 14:18
To: [EMAIL PROTECTED]
Subject: [PHP] SQL statement for clearing a table


Hi all,

anybody knows the mysql statement for clearing the contents of a table and
lieving the table itself intact?

Wilbert

-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[EMAIL PROTECTED]
-

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


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




Re: [PHP] un-official miror of php.net

2001-06-22 Thread Chris Lee

download the manual from snaps.php.net ALLWAYS has the most current manual.
php.net/manual will never be more current then snaps.php.net. php.net/manual
will have the comments though. I dont know if php.net will like all those
hits of you updating your mirror, email them.

--

  Chris Lee
  [EMAIL PROTECTED]


Reuben D Budiardja [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Hi,
Is it allowed to be an un-official mirror of php.net? I mean, I want to have
php.net site on my local webserver, but it's mainly for the use of our own
development group (intranet), ie. not publicly available, and not to be
listed in the list of php.net mirror.

I'm mostly interested to have all the functionality of function reference /
search, and not the whole site, eg. I don't need the download part since I
can always download from the real www.php.net. Any help on how the easiest
way to set this up would be appreciated

Please let me know if this is OK or not.

Thanks
Reuben D. Budiardja



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




  1   2   >