[PHP] PHP manual - multiple HTML pages

2003-10-20 Thread wim
Does anyone still have the tarfile for the manual. On the website they 
announce that these manuals will be redeployed shortly but this message 
is already three weeks there and I need this (as always ) urgently.
Thanx in advance for sending it .

Wim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP within Frames

2003-10-20 Thread KB
OK...more specific...

I'm running Windows XP Professional with PHP and MySQL and IE6

What doesn't work:  Anything inside the PHP parameters when running in a
Frames environment.

Someone mentioned that I might not have the testing server set up correctly
and it may be running locally.  Bit of a novice so not too sure about this.
I have checked the settings for Testing Server in Dreamweaver and it seems
OK.  (Should I try a Dreamweaver NewsGroup?)

Thanks to all for their interest/help so far.

Kevin
Adam [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 This is really an browser interpretation of HTML issue than a straight
 PHP issue. A little more information would be helpful - such as
 browser, page content, etc.

 Regards,
 Adam

 On Sunday, October 19, 2003, at 05:45 PM, KB wrote:

  Hi,
 
  Does anyone know why my PHP pages won't work in Frames?  I have 5
  frames,
  each of which are displaying PHP pages.and none of the PHP code
  works.
 
  If I run the code outside of Frames it works fine!
 
  I've can't find any decent references for PHP in Frames.
 
  Your help would be appreciated.
 
  Thanks
 
  Kevin
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: What Is Scalability?

2003-10-20 Thread Alexandru COSTIN
Hi,
I think that software scalability is the measure on how an application
could accomodate a large number of simultaneous users without requiring
internal architecture refactoring.
It's not about speed, it's not about technology, it's about
architecture. I also think that maintenance and development time are not
attributes of scalability - but of the architecture.

We can even make a simple comparision between scalability and the law of
Demeter (low coupling) - the scalability of an architecture is reversely
proportional with the number of message pipelines between it's layers. That
means that a simple architecture (like PHP/Perl) will accomodate much
simpler a large number of users because it's messages can be very simply
mirrored horizontally - adding CPU power and RAM. An application built on
complex architecture (Java with RMI, direct memory access between threads,
etc) will require a very complex architecture refactoring to support
horizontal scaling.

Anyway - I am also supporting MVC software development in PHP from the
same reason - low coupling between layers that will lead to ease of
development and maintenance.

My 2c

Alexandru

-- 
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 PHP has been both heralded and criticized on a number of topics. This is
to be
 expected, considering the rate of growth of PHP's popularity. It has given
 people something to talk about.

 One topic that seems to come up a lot is scalability. ONJava.com has an
 interesting article entitled The PHP Scalability Myth:

 http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html

 Of particular interest to me is the variety of definitions for scalability
that
 I have noticed, both in this article and elsewhere. I wrote a brief
description
 of what scalability is to me in my blog (http://shiflett.org/).

 How do you define scalability? What factors do you consider when you
declare
 whether a particular technology is scalable? Do you think PHP is scalable?
Does
 Yahoo?

 Chris

 =
 My Blog
  http://shiflett.org/
 HTTP Developer's Handbook
  http://httphandbook.org/
 RAMP Training Courses
  http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP within Frames

2003-10-20 Thread David T-G
Kevin --

...and then KB said...
% 
% OK...more specific...
% 
% I'm running Windows XP Professional with PHP and MySQL and IE6

OK.  Two out of four ain't bad :-)


% 
% What doesn't work:  Anything inside the PHP parameters when running in a
% Frames environment.

Hmmm...  I appreciate your effort, and I bet that you're pulling your
hair out trying to figure out how to give so you can get, but I still
don't really know what you mean.  What is a PHP parameter?


% 
% Someone mentioned that I might not have the testing server set up correctly
% and it may be running locally.  Bit of a novice so not too sure about this.

If you can point to your php code and have it execute then you are
probably fine; php that has not been run by the server just looks like
code in your browser.  Your frameset could be pointing to

  file:///...

instead of

  http://...

though (but you should still get a code dump).


% I have checked the settings for Testing Server in Dreamweaver and it seems
% OK.  (Should I try a Dreamweaver NewsGroup?)

Since frames have no effect on PHP and you're swimming in deep water,
that might not be a bad idea.  You have, however, still not given us much
detail (the only thing I've seen so far is a pair of uuencoded files and,
frankly, I'm too lazy to rip 'em open just because Outhouse doesn't know
how to attach files).

Try saving these two snippets to a directory where your web server can
serve them:

  index.php:
  ?
print frameset border=1 rows=20%,*\n ;
print frame name='top' src='frame.php?f=topn=zero'\n ;
print frame name='bottom' src='frame.php?f=botc=black'\n ;
print /frameset\n ;
print noframesThis is not in the frameset/noframes\n ;
  ?

  frame.php:
  ?php
print Here we are in the frames.br\n ;
switch($_GET['f'])
{
  case 'top' :
print This is the top frame!br\n ;
print Pick a number:\n ;
foreach (array('one','two','three') as $n)
  { print a href='?f=topn=$n'$n/a  \n ; }
print (Your last pick was {$_GET['n']}.)br\n ;
break ;
  case 'bot' :
print This is the bottom frame *yawn*br\n ;
print Pick a color:\n ;
foreach (array('red','green','blue') as $c)
  { print a href='?f=botc=$c'$c/a  \n ; }
print (Your last pick was {$_GET['c']}.)br\n ;
break ;;
}
  ?

The should look like

  http://justpickone.org/davidtg/private/frames/index.phps
  http://justpickone.org/davidtg/private/frames/frame.phps

respectively.

Now point your web browser to the right place on your server and see if
you see the frameset like you do at

  http://justpickone.org/davidtg/private/frames/

from the examples above.  If you do, then your web server is serving
files and your php is being executed.  You can also probably kick
Dreamweaver in the head for making life hard.  Go and pick up a copy of
vim (it runs on just about any platform) and edit your code the Manly
(and OneTrue ;-) Way!

This could, in fact, be done entirely in one file with no problem...
Just add a default for the switch and print the frameset there.


% 
% Thanks to all for their interest/help so far.

That's why we're here :-)


% 
% Kevin


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] partial match on array_search?

2003-10-20 Thread Burhan Khalid
Ian Truelsen wrote:
I am trying to parse out a file using an array. I load each line into a
separate key in the array and then do transforms on the individual
lines.
What I am looking to do is to test each for a keyword so that I can know
which entry contains the data that I need and can get the data from the
correct line.
For example, I have the following line:

Wind: from the SW (230 degrees) at 3 MPH (3 KT):0

What I want to do is to identify the line by 'Wind'. However, using
array_search requires that I match the complete content of the line
exactly, which I can't do, as I don't know the exact data.
Is there any way to get array_search to find a partial match? Or is
there another command that I can use to do this?
You can use explode() and split the line into its parts (by using   as 
the delimiter). Then the first element will be Wind: and you can check 
for that.

You could also try any of the regex functions to do the same thing.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] DB's on seperate server

2003-10-20 Thread BENARD Jean-philippe
Hi,

With Oracle I'm sure the answer is YES. Once compiled, PHP needs
Oracle libs in order to use OCI. I don't know exactly which libs but I think
there's somewhere a list of all needed libs which you could copy on your web
server.

Cordialement,
Jean-Philippe BENARD
Consultant STERIA Infogérance
([EMAIL PROTECTED])
-Message d'origine-
De : Ryan Thompson [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 20 octobre 2003 05:50
À : [EMAIL PROTECTED]
Objet : [PHP] DB's on seperate server

Quick yes or no question. My db's are running on a different server then my 
Webserver. I've temporarily mounted the directories from the db server to
the 
webserver to compile db access. Once PHP/Apache are compiled can they be 
safely unmounted or will it give me problems somewhere down the line? 

I guess in short. Once compiled does PHP need anything from the database 
install
directories?
-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] $PHP_SELF

2003-10-20 Thread Boris Sagadin

I'm having problems with $PHP_SELF variable. Mostly it works, other
times (about 10% of tries) it's just empty. Is this a known issue with Apache
2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
like to know if this is a common bug or there's something wrong with
my configuration.

I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec, register_globals is on

Thanks,
Boris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Pictures stored in database and IE

2003-10-20 Thread Hanuska Ivo
Hi everyone,

The pitfall I am trying to solve is confusing and to be honest I have not as much 
experience with http to solve it right now.

My application is quite straightforward. Its purpouse is to load image off the MySQL 
and send it to client to render it. 

I have php script, which reads data together with file type off the table and sends it 
to client (of course after all necessary headers are sent).

On the client then some five pictures are animated one after another (all beeing read 
from table as described above), so it looks like a simple animation.

Under Mozilla this works fine, but under IE (6.0) the JavaScript OnLoad event on Body 
Tag just does not fire up. My suspicion is, that there is something in http protocol I 
missed/omitted/forgot to do, so IE still thinks that page is not finished loading and 
so the event handler does not gets executed.

Is there something I have to send on the end after data are transmitted? Or, do I have 
to send just headers and data and nothing else.

But anyway I think, problem is on PHP(?)/mine site, not on IEs side.

Looking forward for your ideas,

Ivo

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 18 October 2003 10:10, Wang Feng wrote:

 I can't uderstand why the number 18 is stored in the $third
 rather than
 $first. I tried to change the 18 to 18, that is, change it
 from a decimal
 number to a string and by that way, 18 is stored in the $first,
 which is what I expected. But why doesn't 18 work?
 
 My understanding is that the compiler checks the ascii set
 when it deals
 with sorting. So, why the number 18 is *greater* than string blue
 and large in the ascii?

This is all to do with how PHP handles comparison of different types to each other.

When that sort is run on

array(large, blue, 18.00)

the comparison of large to blue is fine, because both are strings so there's no 
type conversion involved.  However, the comparison of 18.00, a number, to either 
blue or large, both strings, necessarily involves a type conversion, and the rules 
PHP uses says that when comparing a number with a string, the string should be 
converted to a number and teh comparison performed using the two numbers -- and both 
blue and large, when converted to a number, are represented by 0, which sorts 
before 18, so bingo!

Now, if you make the array into

array(large, blue, 18.00)

then all the comparisons are string-ti-string, so there are no type conversions 
involved, so your sort proceeds exactly how you expect.

If you wish to sort an array containing values of more than one type, then you must 
either be fully aware of these type-conversion rules and accept the slightly odd 
results they will sometimes give you, or use one of the optional sort flags -- 
SORT_STRING or SORT_NUMERIC -- to force a more uniform comparison.  But don't forget 
that if you use SORT_STRING and have an array containing numbers, you will get a 
textual sort of those numbers -- for example: 1, 5, 33, 297 would sort as 1, 297, 
33, 5!!

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] best way to use session vars?

2003-10-20 Thread Ford, Mike [LSS]
On 19 October 2003 13:00, David T-G wrote:

 It seems to me that for a fast fix I could set $pw
 and other
 vars in my include file in place of registering them and then, later,
 take my time to correctly switch over to $_POST['pw'] and
 $_SESSION['pw'] everywhere.  Does that sound like a good two-step
 approach to 
 get all of
 my code back up and running the soonest?

Yes.  There's even a PHP function to help with this quick-and-dirty solution -- 
extract($_SESSION) should do what you want (see http://www.php.net/extract).

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sorting

2003-10-20 Thread Wang Feng
Mike,

So, in PHP, when a string is converted to a number to compare with the other
decimal input, the compiler doesn't look at the ascii set table *at all*?
Instead, it simply convert the string to 0?



cheers,

feng


- Original Message -
From: Ford, Mike [LSS] [EMAIL PROTECTED]
To: 'Wang Feng' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:18 PM
Subject: RE: [PHP] sorting


 On 18 October 2003 10:10, Wang Feng wrote:

  I can't uderstand why the number 18 is stored in the $third
  rather than
  $first. I tried to change the 18 to 18, that is, change it
  from a decimal
  number to a string and by that way, 18 is stored in the $first,
  which is what I expected. But why doesn't 18 work?
 
  My understanding is that the compiler checks the ascii set
  when it deals
  with sorting. So, why the number 18 is *greater* than string blue
  and large in the ascii?

 This is all to do with how PHP handles comparison of different types to
each other.

 When that sort is run on

 array(large, blue, 18.00)

 the comparison of large to blue is fine, because both are strings so
there's no type conversion involved.  However, the comparison of 18.00, a
number, to either blue or large, both strings, necessarily involves a
type conversion, and the rules PHP uses says that when comparing a number
with a string, the string should be converted to a number and teh comparison
performed using the two numbers -- and both blue and large, when
converted to a number, are represented by 0, which sorts before 18, so
bingo!

 Now, if you make the array into

 array(large, blue, 18.00)

 then all the comparisons are string-ti-string, so there are no type
conversions involved, so your sort proceeds exactly how you expect.

 If you wish to sort an array containing values of more than one type, then
you must either be fully aware of these type-conversion rules and accept the
slightly odd results they will sometimes give you, or use one of the
optional sort flags -- SORT_STRING or SORT_NUMERIC -- to force a more
uniform comparison.  But don't forget that if you use SORT_STRING and have
an array containing numbers, you will get a textual sort of those numbers --
for example: 1, 5, 33, 297 would sort as 1, 297, 33, 5!!

 Cheers!

 Mike

 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 20 October 2003 13:36, Wang Feng wrote:

 Mike,
 
 So, in PHP, when a string is converted to a number to compare
 with the other
 decimal input, the compiler doesn't look at the ascii set
 table *at all*?
 Instead, it simply convert the string to 0?

Yes, if it doesn't start with a valid string representation of a string --
see
http://uk2.php.net/manual/en/language.types.string.php#language.types.string
.conversion

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] best way to use session vars?

2003-10-20 Thread David T-G
Mike, et al --

...and then Ford, Mike   [LSS] said...
% 
% On 19 October 2003 13:00, David T-G wrote:
% 
%  It seems to me that for a fast fix I could set $pw
...
%  my code back up and running the soonest?
% 
% Yes.  There's even a PHP function to help with this quick-and-dirty solution -- 
extract($_SESSION) should do what you want (see http://www.php.net/extract).

Oooh!  Oh, cool; *now* I see how that function is useful!


% 
% Cheers!

*Very*.


% 
% Mike


Thanks!  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] Re: addslashes() vs. magic_quotes_gpc

2003-10-20 Thread Jon Kriek
Compare mysql_escape_string() to addslashes()
http://www.php.net/mysql_escape_string

-- 
Jon Kriek
http://phpfreaks.com

Jake McHenry [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
If you have magic_quotes_gpc = On in your php.ini file, which it is by
default, does one still need to have the addslashes function in their
coding?

When I'm inserting into my database, I have addslashes in place, and I
haven't change the default value of magic_quotes_qpc = On. I havn't
seen any side effects from this. It seems like it's doing this job
twice.

Would any speed difference be seen by using / not using either of
these? I currently have 3 databases, roughtly 25 tables each, with
roughly 500 entries in each (growing about 50 daily), and it's
starting to get sluggish when I do a select * from tablename. I need
to recover all the speed I can.

If anyone has any other little tweaks I can do to gain performance,
that would be helpful.

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: $PHP_SELF

2003-10-20 Thread Jon Kriek
This is expected behavior, always use the $_SERVER or $_ENV superglobal
arrays.

-- 
Jon Kriek
http://phpfreaks.com

Boris Sagadin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I'm having problems with $PHP_SELF variable. Mostly it works, other
 times (about 10% of tries) it's just empty. Is this a known issue with
Apache
 2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
 like to know if this is a common bug or there's something wrong with
 my configuration.

 I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec,
register_globals is on

 Thanks,
 Boris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-20 Thread John Black
Hey again David,

% Hey, that's a nice offer.
% Thanks, we aim to please :-) this offer is open to _anybody_ on the list,
% but please send us one file at time to example encode and not more.

Oops.  Sorry.  I figured you'd need both to have them work together.
Perhaps not; perhaps only the core engine need be encoded but anything
else could be plaintext.  That would be nice, too.

Not a problem, I really didn't mind but was just safeguarding myself from
extra work...:-) like if someone sent me 200 files :-D
I wouldn't be able to refuse as I didn't specify the number before


BTW, this is probably off-list traffic but if I'm asking common questions
feel free to put it back on the list.
Thanks, will cc this to the list.


% I've obvuscated them and attached them with this mail, but dont overwrite
% your present files because I have not included the key file to open
them.
% If you run them now you would get garbage output...if any.

Indeed.  So how does the key look and what do I do to my code to make my
server show the pages?

We sell our software with 2 keys, one key looks something like this oÜ??X?

(this changes according to the password you set when you are encoding)
 and the other key is just a normal php script (encoded of course)
To make your scripts work all you gotto do is add these two files to the
rest of your files
No making any code changes,
no settings changes etc.
Works with everything including variable variables($$someThing)


OK.  So I just bought index.php from someone and now I want to get it to
work and I have sent him payment.  Next the key file comes winging its
way to me from him(you) and then...  What do I do?  How do I make the
site look at it and/or my page to give the end result?

Just upload the key file/s with the other files.

Its pretty simple, if you want to set a password for your files or want them
to expire after a certain number of days/months/years then you generate your
.key file, if not you have to just add 1 file codeSecure.php and it will be
safe to distribute in a encrypted state.

We have also worked out a way of double encryption, so even if someone
breaks thru the first layer they will come up against another layer or
extremly hard to read stuff.

Cheers,
-JB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Using two XSLT stylesheets

2003-10-20 Thread Raditha Dissanayake
Hi,

Catching up with my list mails. As Ray has pointed out you can only do 
one transformation with one instance. That's because the underline 
parsers are good for one transformation only.

Maybe if you would post your xml and xsl we could give it a shot.
BTW: OT: if you are ok with perl, doing this with perl is a heck of a 
lot easier.



rich wrote:

OK,

This is my latest idea to try and do this:

$xh = xslt_create();

parse_str($_SERVER['QUERY_STRING']);
$params = array(keywords = $keywords);
$results = xslt_process($xh, 'library.xml', 'simple-search.xsl', NULL, NULL,
 --$params);
$f = fopen('results.xml','w');
fwrite($f, $results);
fclose($f);
$data = xslt_process($xh, 'results.xml', 'display-results.xsl', NULL, NULL,
 --NULL);
echo $data;
xslt_free($xh);

But, of course, it just throws up messages saying I can't write to 
results.xml!

See http://www.cursus.uea.ac.uk/cdlib/ for error messages in action (search 
terms which will find records include 'Boulez', 'Messiaen').

Does anyone know why:

xslt_process($xh, 'sample.xml', 'sample.xsl', 'result.xml')

doesn't work? (lifted straight from the manual)

Cheers,
Rich
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/  |  http://www.raditha/megaupload/
Lean and mean Secure FTP applet with  |  Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB  |  with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 20 October 2003 13:53, Ford, Mike [LSS] wrote:

 Yes, if it doesn't start with a valid string representation of a
 string -- see

Oops -- string representation of a *number*, of course... ;)

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



php-general Digest 20 Oct 2003 14:13:49 -0000 Issue 2366

2003-10-20 Thread php-general-digest-help

php-general Digest 20 Oct 2003 14:13:49 - Issue 2366

Topics (messages 166721 through 166750):

Re: Session hijacking
166721 by: daniel.electroteque.org
166722 by: Chris Shiflett
166723 by: John W. Holmes
166724 by: Chris Shiflett
166725 by: Radek Zajkowski

DB's on seperate server
166726 by: Ryan Thompson
166727 by: Ryan Thompson
166728 by: Becoming Digital
166738 by: BENARD  Jean-philippe

addslashes() vs. magic_quotes_gpc
166729 by: Jake McHenry
166730 by: Rasmus Lerdorf
166731 by: Adrian
166746 by: Jon Kriek

Re: Choosing a CMS?
166732 by: Colin Kettenacker

PHP manual - multiple HTML pages
166733 by: wim

Re: PHP within Frames
166734 by: KB
166736 by: David T-G

Re: What Is Scalability?
166735 by: Alexandru COSTIN

Re: partial match on array_search?
166737 by: Burhan Khalid

$PHP_SELF
166739 by: Boris Sagadin
166747 by: Jon Kriek

Pictures stored in database and IE
166740 by: Hanuska Ivo

Re: sorting
166741 by: Ford, Mike   [LSS]
166743 by: Wang Feng
166744 by: Ford, Mike   [LSS]
166750 by: Ford, Mike   [LSS]

Re: best way to use session vars?
166742 by: Ford, Mike   [LSS]
166745 by: David T-G

Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code
166748 by: John Black

Re: Using two XSLT stylesheets
166749 by: Raditha Dissanayake

Administrivia:

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

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

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


--
---BeginMessage---
i setup my sessions to be transparent, can it still be hacked ?

 --- Chris Wanstrath [EMAIL PROTECTED] wrote:
 Lots of great information in this thread as far as solutions go, but
 what I'm wondering is the concept behind how someone actually can
 hijack a session if register_globals is off.

 I proposed a talk on this at ApacheCon (in addition to my PHP Attacks
 and Defense talk), but it wasn't accepted. I can never tell if there is
 a lot of interest in the idea of securing sessions or not. I think most
 people think it is too narrow a topic.

 At any rate, there is too much information to write in an email, but
 there are many methods of impersonation, and almost all of them are
 independent of whether register_globals is enabled.

 For example, consider that a legitimate user clicks a link and goes to
 this URL:

 http://www.example.org/foo.php?PHPSESSID=12345

 Perhaps the user has cookies disabled, so PHP appends the session
 identifier to the URL, or perhaps the developer does it automatically.
 Either way, what if a bad guy visits this URL:

 http://www.example.org/foo.php?PHPSESSID=12345

 Will the application recognize the user as the same as the legitimate
 user? PHP certainly will, but it is up to the application to try and
 lessen the likelihood of such an attack.

 Hope that helps.

 Chris

 =
 My Blog
 http://shiflett.org/
 HTTP Developer's Handbook
 http://httphandbook.org/
 RAMP Training Courses
 http://www.nyphp.org/ramp

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
---End Message---
---BeginMessage---
--- [EMAIL PROTECTED] wrote:
 i setup my sessions to be transparent, can it still be hacked ?

Yes.

If you can be more specific, I will try to be more specific also. :-)

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp
---End Message---
---BeginMessage---
Chris Shiflett wrote:
For example, consider that a legitimate user clicks a link and goes to this
URL:
http://www.example.org/foo.php?PHPSESSID=12345

Perhaps the user has cookies disabled, so PHP appends the session identifier to
the URL, or perhaps the developer does it automatically. Either way, what if a
bad guy visits this URL:
http://www.example.org/foo.php?PHPSESSID=12345

Called session fixation. Here's good paper on this and how to deal with it.

http://www.acros.si/papers/session_fixation.pdf

The session_regenerate_id() function can come in handy here.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com
---End Message---
---BeginMessage---
--- John W. Holmes [EMAIL PROTECTED] wrote:
  Either way, what if a bad guy visits this URL:
  
  http://www.example.org/foo.php?PHPSESSID=12345
 
 Called session fixation. Here's good paper on this and how to deal
 with it.
 
 http://www.acros.si/papers/session_fixation.pdf

Actually, I didn't mean to reference session fixation (my example used an
existing session). However, this is another 

[PHP] N/A

2003-10-20 Thread Peter Flachbart
I'm trying to use this function to outpot the content of a file that I change 
time to time so I'd like to see the added text into file to appear in the 
browser window.

Could you help me? (stream_select doesn't work???)

?

$fh = fopen('debug.txt','r+');
stream_set_blocking($fh ,true);
while(true){  
  $text = fgets($fh,10);
  echo $text;

  flush();
  ob_flush();

}
fclose($fh);
?

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 09:11:37 -0400, you wrote:

Boris Sagadin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I'm having problems with $PHP_SELF variable. Mostly it works, other
 times (about 10% of tries) it's just empty. Is this a known issue with
Apache
 2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
 like to know if this is a common bug or there's something wrong with
 my configuration.

 I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec,
register_globals is on

This is expected behavior, always use the $_SERVER or $_ENV superglobal
arrays.

It's expected behaviour for a language feature to fail 10% of the time?!

Could you expand on your answer, or provide a link?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] N/A

2003-10-20 Thread Marco Tabini
Hey Peter--

If the file is always local and you're using a relatively recent version 
of PHP, you can use file_get_contents instead:

http://ca.php.net/file_get_contents

Cheers,

Marco

--

php|architect -- The magazine for PHP professionals
Try us free at http://www.phparch.com
Searchable PHP Mailing Archive at http://phparch.com/mailinglists

Peter Flachbart wrote:
I'm trying to use this function to outpot the content of a file that I change 
time to time so I'd like to see the added text into file to appear in the 
browser window.

Could you help me? (stream_select doesn't work???)

?

$fh = fopen('debug.txt','r+');
stream_set_blocking($fh ,true);
while(true){  
  $text = fgets($fh,10);
  echo $text;

  flush();
  ob_flush();
}
fclose($fh);
?
Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread Curt Zirzow
* Thus wrote David Otton ([EMAIL PROTECTED]):
 On Mon, 20 Oct 2003 09:11:37 -0400, you wrote:
 
 Boris Sagadin [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
  I'm having problems with $PHP_SELF variable. Mostly it works, other
  times (about 10% of tries) it's just empty. Is this a known issue with
 Apache
  2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
  like to know if this is a common bug or there's something wrong with
  my configuration.
 
  I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec,
 register_globals is on
 
 This is expected behavior, always use the $_SERVER or $_ENV superglobal
 arrays.
 
 It's expected behaviour for a language feature to fail 10% of the time?!
 
 Could you expand on your answer, or provide a link?

I believe the issue is where exactly is $PHP_SELF being used.
$PHP_SELF isn't available inside a function, without global'ing
it but $_SESSION is available all the time.



Curt
-- 
My PHP key is worn out

  PHP List stats since 1997: 
  http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread Jon Kriek
No, you seem to be misunderstanding the point.


http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server

David Otton [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Mon, 20 Oct 2003 09:11:37 -0400, you wrote:

 Boris Sagadin [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

  I'm having problems with $PHP_SELF variable. Mostly it works, other
  times (about 10% of tries) it's just empty. Is this a known issue with
 Apache
  2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
  like to know if this is a common bug or there's something wrong with
  my configuration.
 
  I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec,
 register_globals is on

 This is expected behavior, always use the $_SERVER or $_ENV superglobal
 arrays.

 It's expected behaviour for a language feature to fail 10% of the time?!

 Could you expand on your answer, or provide a link?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [cli] ^D

2003-10-20 Thread Decapode Azur
hi all,

Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ?
My cli php script runs a loop while(1) and I would like to find a way to 
stop it from a user action.
(Waiting a better solution I've made:  if(file_exists('./stop'))
and type the command stop to stop the script.
I can not use readline cause this would break the loop.)

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread chris . neale
Here's the problem. I have a php script which generates a Year-on-Year
change graph, works fine, does the job. I want to turn it into an object.
Unfortunately I have to rename all references to variables in the object to
$this-width for example. Is there a way I can just refer to them as before.
With plenty of complex formulas in it, having $this- everywhere makes it a
mess to look at and a nightmare to debug.

Any thoughts?

Chris
 
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield.  Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: What Is Scalability?

2003-10-20 Thread rush
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 How do you define scalability? What factors do you consider when you
declare
 whether a particular technology is scalable? Do you think PHP is scalable?
Does
 Yahoo?

Well, from I think that your approach is interesting, especially with 3
graphs with kinds of scalability. Anyway, I am not sure one can draw such
graphs for just technologies like java or php. Maybe for some specific app
it can be done. Even then one should be quite causios not to compare apples
and oranges, and also to measure scalability in really important matters.

Also there is one trivial kind of scalability that is often found: when some
solution does not scale at all. You can put as much servers, processors,
ram, you are still stuck. Notorious and overused example is delivering the
baby problem. You can engage as many women as you wish, it still takes a 9
months. Since people have often been caught in the situation with
technologies where no adding of resources can make difference, they are
content that there is at least some possibility to scale, so that they say
this technology can scale to differentiate it from complete dead ends.

rush
p.s. I really enjoyed your book :)
--
http://www.templatetamer.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 14:36:33 +, you wrote:

I believe the issue is where exactly is $PHP_SELF being used.
$PHP_SELF isn't available inside a function, without global'ing
it but $_SESSION is available all the time.

Then I would expect an E_NOTICE (though the default error reporting level is
lower, so probably not)... in any case, I read Mostly it works, other times
(about 10% of tries) it's just empty as implying randomness, not it
doesn't work at specific points.

I could be wrong of course, which is why I was hoping Jon would expound.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP manual - multiple HTML pages

2003-10-20 Thread John Nichel
wim wrote:
Does anyone still have the tarfile for the manual. On the website they 
announce that these manuals will be redeployed shortly but this message 
is already three weeks there and I need this (as always ) urgently.
Thanx in advance for sending it .

Wim

Best I have is a copy that was last updated on Dec 10, 2002...

http://www.by-tor.com/php_manual.tar.bz2

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] [cli] ^D

2003-10-20 Thread Marek Kilimajer
Take a look at pcntl functions, namely pcntl_signal. But this extension 
is not enabled by default.

Decapode Azur wrote:
hi all,

Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ?
My cli php script runs a loop while(1) and I would like to find a way to 
stop it from a user action.
(Waiting a better solution I've made:  if(file_exists('./stop'))
and type the command stop to stop the script.
I can not use readline cause this would break the loop.)

thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Data modelling software

2003-10-20 Thread Hardik Doshi
Hi Group,

Can anyone tell me which data modelling software is
good for the mysql database?

Thanks 

Hardik

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP manual - multiple HTML pages

2003-10-20 Thread Chris Boget
  Does anyone still have the tarfile for the manual. On the website they 
  announce that these manuals will be redeployed shortly but this message 
  is already three weeks there and I need this (as always ) urgently.
  Thanx in advance for sending it .
 Best I have is a copy that was last updated on Dec 10, 2002...
 http://www.by-tor.com/php_manual.tar.bz2

You can go here for a .chm file of the documentation.

http://www.php.net/download-docs.php

But that would only help if you are developing on a windows system...

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Data modelling software

2003-10-20 Thread CPT John W. Holmes
From: Hardik Doshi [EMAIL PROTECTED]

 Can anyone tell me which data modelling software is
 good for the mysql database?

I'm sure you're using PHP to access MySQL, but this question has nothing to
do with PHP and should be asked on a MySQL website/list or you should
research what Google has to say. If I had any recommendations, I'd offer
them, but I don't. :)

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread Tom Rogers
Hi,

Tuesday, October 21, 2003, 1:46:14 AM, you wrote:
cnscu Here's the problem. I have a php script which generates a Year-on-Year
cnscu change graph, works fine, does the job. I want to turn it into an object.
cnscu Unfortunately I have to rename all references to variables in the object to
$this-width for example. Is there a way I can just refer to them as before.
cnscu With plenty of complex formulas in it, having $this- everywhere makes it a
cnscu mess to look at and a nightmare to debug.

cnscu Any thoughts?

cnscu Chris
 
cnscu If you are not the intended recipient of this e-mail, please preserve the
cnscu confidentiality of it and advise the sender immediately of any error in
cnscu transmission. Any disclosure, copying, distribution or action taken, or
cnscu omitted to be taken, by an unauthorised recipient in reliance upon the
cnscu contents of this e-mail is prohibited. Somerfield cannot accept liability
cnscu for any damage which you may sustain as a result of software viruses so
cnscu please carry out your own virus checks before opening an attachment. In
cnscu replying to this e-mail you are granting the right for that reply to be
cnscu forwarded to any other individual within the business and also to be read by
cnscu others. Any views expressed by an individual within this message do not
cnscu necessarily reflect the views of Somerfield.  Somerfield reserves the right
cnscu to intercept, monitor and record communications for lawful business
cnscu purposes.


store the vars in an array, then make a referance to the array

class a(
  var $a = array();
  function a($width,$height){
$this-a['width'] = $width;
$this-a['height'] = $height;
  }
  function b(){
$b = $this-a;
echo 'height '.$b['height'];
echo ' width '.$b['width'].'br';
  }
}

cuts down on the $this- and maybe more readable.question of taste really :)
-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is anybody else getting these??

2003-10-20 Thread John Nichel
Does [EMAIL PROTECTED] need to be removed from the list, or is it 
just me?

 Original Message 
Subject: Returned mail: see transcript for details (Re: [PHP] PHP manual 
- multiple HTML pages)
Date: 20 Oct 03 1459 GMT
From: Mailer Daemon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]



   - The following addresses had permanent fatal errors -
wim
(reason: 550 Recipient wim is no user here)
   - Transcript of session follows -
.. while talking to smtp.:
RCPT To:wim
 550 Recipient wim is no user here
550 5.1.1 wim... User unknown
   - Transcript of mail follows -
Received: from pb1.pair.com (pb1.pair.com [216.92.131.4])
	by digtechinc.com (8.9.3/8.9.3) with SMTP id KAA20908
	for [EMAIL PROTECTED]; Mon, 20 Oct 2003 10:58:47 -0400 (EDT)
Received: (qmail 61526 invoked by uid 1010); 20 Oct 2003 14:58:11 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 61513 invoked by uid 1010); 20 Oct 2003 14:58:11 -
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Date: Mon, 20 Oct 2003 10:00:35 -0500
From: John Nichel [EMAIL PROTECTED]
Organization: By-Tor.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) 
Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: wim [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP] PHP manual - multiple HTML pages
X-UIDL: 9622b9dae1c0a3c1401061ad550b17bb

X-Bounce: msd

wim wrote:
Does anyone still have the tarfile for the manual. On the website they
announce that these manuals will be redeployed shortly but this message
is already three weeks there and I need this (as always ) urgently.
Thanx in advance for sending it .
Wim

Best I have is a copy that was last updated on Dec 10, 2002...

http://www.by-tor.com/php_manual.tar.bz2

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Data modelling software

2003-10-20 Thread John Nichel
CPT John W. Holmes wrote:
snip
If I had any recommendations, I'd offer
them, but I don't. :)
---John Holmes...

Who let this guy in the list???  He never knows the answer.  :

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Is anybody else getting these??

2003-10-20 Thread Jon Kriek
The amount of spam and returned mail in the last few days is horrible.

-- 
Jon Kriek
http://phpfreaks.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is anybody else getting these??

2003-10-20 Thread David T-G
John, et al --

...and then John Nichel said...
% 
% Does [EMAIL PROTECTED] need to be removed from the list, or is it 
% just me?

I get nothing from Maurice, but Fabio Farinelli keeps sending me a note
whenever I post.


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 11:46, [EMAIL PROTECTED] wrote:
 Here's the problem. I have a php script which generates a Year-on-Year
 change graph, works fine, does the job. I want to turn it into an object.
 Unfortunately I have to rename all references to variables in the object to
 $this-width for example. Is there a way I can just refer to them as before.
 With plenty of complex formulas in it, having $this- everywhere makes it a
 mess to look at and a nightmare to debug.
 
 Any thoughts?

I have one, instead of something like $this-width you can have
something like $GLOBALS['width']. Personally I wouldn't recommend it,
and I don't recommend turning on register globals so that you can just
use $width. That said, if you have no worries about security, then go
ahead and turn register globals on, then you can use $width. Mostly
though, I'd just use $this-width :)

Cheers,
Rob.


 
 Chris
  
 If you are not the intended recipient of this e-mail, please preserve the
 confidentiality of it and advise the sender immediately of any error in
 transmission. Any disclosure, copying, distribution or action taken, or
 omitted to be taken, by an unauthorised recipient in reliance upon the
 contents of this e-mail is prohibited. Somerfield cannot accept liability
 for any damage which you may sustain as a result of software viruses so
 please carry out your own virus checks before opening an attachment. In
 replying to this e-mail you are granting the right for that reply to be
 forwarded to any other individual within the business and also to be read by
 others. Any views expressed by an individual within this message do not
 necessarily reflect the views of Somerfield.  Somerfield reserves the right
 to intercept, monitor and record communications for lawful business
 purposes.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is anybody else getting these??

2003-10-20 Thread John Nichel
David T-G wrote:
John, et al --

...and then John Nichel said...
% 
% Does [EMAIL PROTECTED] need to be removed from the list, or is it 
% just me?

I get nothing from Maurice, but Fabio Farinelli keeps sending me a note
whenever I post.
HTH  HAND

:-D
I recently moved my webserver / mailserver from a hosting company to my 
house, on a dynamic IP address.  By doing that, certain ISP's block my 
emails (AOL, RoadRunner, etc.), so I'm just trying to make sure the 
problem with 'Maurice' isn't on my end.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Is anybody else getting these??

2003-10-20 Thread Jon Kriek
 Fabio Farinelli keeps sending me a note whenever I post.

Indeed, same here.

-- 
Jon Kriek
http://phpfreaks.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-20 Thread David T-G
John, et al --

...and then John Black said...
% 
% Hey again David,

Hi!


% 
% Oops.  Sorry.  I figured you'd need both to have them work together.
...
% 
% Not a problem, I really didn't mind but was just safeguarding myself from
% extra work...:-) like if someone sent me 200 files :-D
% I wouldn't be able to refuse as I didn't specify the number before

There; now you're covered :-)


% 
% BTW, this is probably off-list traffic but if I'm asking common questions
% feel free to put it back on the list.
% Thanks, will cc this to the list.

Okey dokey.


% 
% 
% % I've obvuscated them and attached them with this mail, but dont overwrite
% % your present files because I have not included the key file to open
% them.
% % If you run them now you would get garbage output...if any.
% 
% Indeed.  So how does the key look and what do I do to my code to make my
% server show the pages?
% 
% We sell our software with 2 keys, one key looks something like this oÜ??X?
% 
% (this changes according to the password you set when you are encoding)

Right.


%  and the other key is just a normal php script (encoded of course)

You mean obfuscated and garbled?  OK, but I don't see how the thing will
run, then, any more than my garbled scripts!


% To make your scripts work all you gotto do is add these two files to the
% rest of your files
% No making any code changes,
% no settings changes etc.
% Works with everything including variable variables($$someThing)

That's quite cool.  So I sent you index.php and you sent me back garbage
and I'm supposed to be able to drop this in place along with a key file
and have it work...  But how can that garbage possibly be used in its
encrypted form??


% 
...
% We have also worked out a way of double encryption, so even if someone
% breaks thru the first layer they will come up against another layer or
% extremly hard to read stuff.

This of course begs the question of why you aren't using that as your
standard for the first layer :-)  [Perhaps because of execution time or
perhaps because of the extra revenue or whatever, but it still begs!]


% 
% Cheers,
% -JB


TIA  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] Re: $PHP_SELF

2003-10-20 Thread Boris Sagadin

Curt,

Monday, October 20, 2003, 4:36:33 PM, you wrote:

 I believe the issue is where exactly is $PHP_SELF being used.
 $PHP_SELF isn't available inside a function, without global'ing
 it but $_SESSION is available all the time.

Yes, but the problem in my case is that it works most of, but not all
the time, so it can't be a coding problem in the script, as script never
changes.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread CPT John W. Holmes
From: Boris Sagadin [EMAIL PROTECTED]

  I believe the issue is where exactly is $PHP_SELF being used.
  $PHP_SELF isn't available inside a function, without global'ing
  it but $_SESSION is available all the time.

 Yes, but the problem in my case is that it works most of, but not all
 the time, so it can't be a coding problem in the script, as script never
 changes.

Then start giving some specific examples and code, otherwise we'll just
blame it on voodoo magic or something.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $PHP_SELF

2003-10-20 Thread Eugene Lee
On Mon, Oct 20, 2003 at 01:23:29PM +0200, Boris Sagadin wrote:
: 
: I'm having problems with $PHP_SELF variable. Mostly it works, other
: times (about 10% of tries) it's just empty. Is this a known issue with
: Apache 2? If I use $_SERVER['PHP_SELF'], it always works fine, but
: still I'd like to know if this is a common bug or there's something
: wrong with my configuration.
: 
: I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec,
: register_globals is on

It is a common bug with your configuration.  Turn off register_globals,
and always use the superglobals ($_SERVER, $_POST, $_GET, etc.).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] strange MySQL result problem

2003-10-20 Thread Chris W. Parker
Marek Kilimajer mailto:[EMAIL PROTECTED]
on Friday, October 17, 2003 5:29 PM said:

 Is your query correct?

Yes.

 function query($sql, $current_line)
 {
[snip]
 }

I tried your mod and I still saw the error, but your mod did not trigger
any output.


Chris.

--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 10:40:23 -0400, you wrote:

No, you seem to be misunderstanding the point.


http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server

Ok, there's nigh-on 30k of text on that page. I have /no/ idea what you're
referring to. However, I did find this:

If the register_globals directive is set, then these variables will also be
made available in the global scope of the script; i.e., separate from the
$_SERVER and $HTTP_SERVER_VARS arrays.

which suggests to me that the behaviour that the original poster described
is anomalous.

Could you please explain what you meant by This is expected behavior?
Because I can't figure it out.

(Incidentally, I searched for a bug report and can't find anything for 4.3.3
[http://tinyurl.com/rm5h]. I'm probably as interested as Boris is to find an
answer here... if anyone can explain what's actually going on, rather than
the standard don't use register_globals knee-jerk, I'd appreciate it.)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
Hi there,

I'm trying to get a file upload to work with PHP.

The file I'm attempting to upload is a 742kB pdf file, but this will have to work for files up to 50Mb of all types eventually.

The following test pages work fine if the receiving page (testdone) is saved with an html extension, but they return a Document Contains no Data error if it has a php extension.  The inclusion or exclusion of a MAX_FILE_SIZE hidden field does not seem to effect the situation.

In addition, the upload appears to work fine for smaller files. (239kB works fine on both .php and .html)

I'm using PHP with apache viewed on Mozilla, and the following simple HTML:

teststart.html:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
FORM ACTION='testdone.***' METHOD=POST NAME=aform ENCTYPE='multipart/form-data'
P ALIGN=CENTERINPUT TYPE=FILE NAME=testfileINPUT TYPE=SUBMIT NAME=add 
VALUE='Submit'/P
/FORM
/BODY
/HTML
testdone.***:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
P ALIGN=CENTERFile Upload Successful/P
/BODY
/HTML
The parts of my php.ini file that I think may be relevant are:

memory_limit = 80M
post_max_size = 1M
file_uploads = On
upload_max_filesize = 1M
Any help would be appreciated

Thanks,
Grant


--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

Iders Incorporated: Confidential

Note: This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure, copying or
distribution of its contents is strictly prohibited.  If you have
received this message in error, please destroy it and advise the sender
immediately by phone, Email or facsimile.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Substitution Operator

2003-10-20 Thread Nigel Peck - MIS Web Design
Hi,

I'm looking for the PHP equivalent to the Perl:

$var =~ s/regex/string/g

Substitute all occurrences of regex in $var with string.

TIA

Nigel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: File Upload problem

2003-10-20 Thread pete M
It might be the script timing out - defaults to 20 seconds

check
set_time_limit()
regards
pete


Grant Rutherford wrote:

Hi there,

I'm trying to get a file upload to work with PHP.

The file I'm attempting to upload is a 742kB pdf file, but this will 
have to work for files up to 50Mb of all types eventually.

The following test pages work fine if the receiving page (testdone) is 
saved with an html extension, but they return a Document Contains no 
Data error if it has a php extension.  The inclusion or exclusion of a 
MAX_FILE_SIZE hidden field does not seem to effect the situation.

In addition, the upload appears to work fine for smaller files. (239kB 
works fine on both .php and .html)

I'm using PHP with apache viewed on Mozilla, and the following simple HTML:

teststart.html:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
FORM ACTION='testdone.***' METHOD=POST NAME=aform 
ENCTYPE='multipart/form-data'
P ALIGN=CENTERINPUT TYPE=FILE NAME=testfileINPUT TYPE=SUBMIT 
NAME=add VALUE='Submit'/P
/FORM
/BODY
/HTML

testdone.***:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
P ALIGN=CENTERFile Upload Successful/P
/BODY
/HTML
The parts of my php.ini file that I think may be relevant are:

memory_limit = 80M
post_max_size = 1M
file_uploads = On
upload_max_filesize = 1M
Any help would be appreciated

Thanks,
Grant



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Substitution Operator

2003-10-20 Thread John Nichel
Nigel Peck - MIS Web Design wrote:
Hi,

I'm looking for the PHP equivalent to the Perl:

$var =~ s/regex/string/g

Substitute all occurrences of regex in $var with string.

TIA

Nigel


The online manual is a real good place to start.

http://us4.php.net/preg_replace

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Substitution Operator

2003-10-20 Thread Nigel Peck - MIS Web Design
Thanks, tried searching for substitution and similar but couldn't find it.

should have looked for replace :)

Cheers,
Nigel

 -Original Message-
 From: John Nichel [mailto:[EMAIL PROTECTED]
 Sent: 20 October 2003 18:18
 To: Nigel Peck - MIS Web Design
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Substitution Operator
 
 
 Nigel Peck - MIS Web Design wrote:
  Hi,
  
  I'm looking for the PHP equivalent to the Perl:
  
  $var =~ s/regex/string/g
  
  Substitute all occurrences of regex in $var with string.
  
  TIA
  
  Nigel
 
 
 The online manual is a real good place to start.
 
 http://us4.php.net/preg_replace
 
 -- 
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Data modelling software

2003-10-20 Thread Adrian Esteban Madrid
http://www.fabforce.net/dbdesigner4/

Hardik Doshi wrote:

Hi Group,

Can anyone tell me which data modelling software is
good for the mysql database?
Thanks 

Hardik

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
 



--
-
Adrian Esteban Madrid
HyperXMedia, Developer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP within Frames

2003-10-20 Thread Daryl Meese
Ok, this is just a guess but, it is based on experience.

Lets say you have the frames page (frames.php), it has two frames show_a.php
and show_b.php, the code for each is simple print $a and print $b
respectively.

If frames.php?a=hellob=world is called and the frame sources are set to
show_a.php and show_b.php they will print nothing because they do not know
what the variables $a and $b are.  If you change the frame src values to
show_a.php?a=$a and show_b.php?b=$b they will work.

So, my question to you is do your framed pages know the values of all
necessary variables?

Daryl Meese, Jr.

Magia Software
magiasoftware.com

-Original Message-
From: KB [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2003 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP within Frames


Hi,

Does anyone know why my PHP pages won't work in Frames?  I have 5 frames,
each of which are displaying PHP pages.and none of the PHP code works.

If I run the code outside of Frames it works fine!

I've can't find any decent references for PHP in Frames.

Your help would be appreciated.

Thanks

Kevin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: File Upload problem

2003-10-20 Thread Grant Rutherford
No, I'm afraid that the results are nearly instantaneous.  If it timed 
out, there should be a corresponding delay before I got the error message.

Thanks,
Grant
pete M wrote:

It might be the script timing out - defaults to 20 seconds

check
set_time_limit()
regards
pete


--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

Iders Incorporated: Confidential

Note: This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure, copying or
distribution of its contents is strictly prohibited.  If you have
received this message in error, please destroy it and advise the sender
immediately by phone, Email or facsimile.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Is anybody else getting these??

2003-10-20 Thread Nicholas Robinson
I'm feeling left out, I'm not getting any of these. Haven't done since I 
blocked Hanmir.

On Monday 20 Oct 2003 4:11 pm, John Nichel wrote:
 Does [EMAIL PROTECTED] need to be removed from the list, or is it
 just me?

  Original Message 
 Subject: Returned mail: see transcript for details (Re: [PHP] PHP manual
 - multiple HTML pages)
 Date: 20 Oct 03 1459 GMT
 From: Mailer Daemon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]



 - The following addresses had permanent fatal errors -
 wim
  (reason: 550 Recipient wim is no user here)


 - Transcript of session follows -

 .. while talking to smtp.:
  RCPT To:wim

  550 Recipient wim is no user here
 550 5.1.1 wim... User unknown


 - Transcript of mail follows -
 Received: from pb1.pair.com (pb1.pair.com [216.92.131.4])
   by digtechinc.com (8.9.3/8.9.3) with SMTP id KAA20908
   for [EMAIL PROTECTED]; Mon, 20 Oct 2003 10:58:47 -0400 (EDT)
 Received: (qmail 61526 invoked by uid 1010); 20 Oct 2003 14:58:11 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 61513 invoked by uid 1010); 20 Oct 2003 14:58:11 -
 Delivered-To: [EMAIL PROTECTED]
 Delivered-To: [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 Date: Mon, 20 Oct 2003 10:00:35 -0500
 From: John Nichel [EMAIL PROTECTED]
 Organization: By-Tor.com
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)
 Gecko/20030624 Netscape/7.1 (ax)
 X-Accept-Language: en-us, en
 MIME-Version: 1.0
 To: wim [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 References: [EMAIL PROTECTED]
 In-Reply-To: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 Subject: Re: [PHP] PHP manual - multiple HTML pages
 X-UIDL: 9622b9dae1c0a3c1401061ad550b17bb


 X-Bounce: msd

 wim wrote:
  Does anyone still have the tarfile for the manual. On the website they
  announce that these manuals will be redeployed shortly but this message
  is already three weeks there and I need this (as always ) urgently.
  Thanx in advance for sending it .
 
  Wim

 Best I have is a copy that was last updated on Dec 10, 2002...

 http://www.by-tor.com/php_manual.tar.bz2

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] filesize() error - Can anyone help?

2003-10-20 Thread Jacques Roux
Dear All

I am getting the following error message when I open some of the page on my
Web Site.  What could the problem be and how can I correct it?

Warning: filesize() [function.filesize]: Stat failed for
./admin/dbimages/tblProjects/image/776 (errno=2 - No such file or directory)
in /data/ns-home/b2b/www.impumelelo.org.za/html/project_detail.php on line
10

Regards

Jacques

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-20 Thread John Black
Hey David,

% We sell our software with 2 keys, one key looks something like this
oÜ??X?
% 
% (this changes according to the password you set when you are encoding)

Right.

%  and the other key is just a normal php script (encoded of course)
You mean obfuscated and garbled?  OK, but I don't see how the thing will
run, then, any more than my garbled scripts!

My momma always told me 2 wrongs don't make a right, I think otherwise :-)
what I'm
trying to say is, since both are garbled they understand the garble language
and sort things out

% Works with everything including variable variables($$someThing)

That's quite cool.  So I sent you index.php and you sent me back garbage
and I'm supposed to be able to drop this in place along with a key file
and have it work...

Your garbled scripts talk to the key garbled script (key file) and they
ungarble themselves during runtime
for php to understand them.

 But how can that garbage possibly be used in its
encrypted form??
That's the whole idea why this is useful and we are trying to sell it. It
makes the casual programmer/client or snoop not bother with trying to
read/steal/poke your code.


% We have also worked out a way of double encryption, so even if someone
% breaks thru the first layer they will come up against another layer or
% extremly hard to read stuff.

This of course begs the question of why you aren't using that as your
standard for the first layer :-)  [Perhaps because of execution time or
perhaps because of the extra revenue or whatever, but it still begs!]


Very good question, the answer is pretty simple actually, we couldn't mesh
this into one,
we just aren't clever enough to do it :-) and had too many problems when we
tried.
We prefer the 2 step idea, so we have created another online tool based on
an open
source technology that you use to do your first layer of encryption then use
codesecure for your
second. When you buy codeSecure you automatically get a *free* membership to
the online tool.

I'm attaching a screenshot of codeSecure so you can have a look at the
simple interface and it should
clear a few doubts.

Cheers,
-JB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] A web site interface preference tutorial

2003-10-20 Thread Colin Kettenacker
Hey gang,

A couple of years ago (back when I first started to learn PHP) I came up
with some code that allows users to choose a interface style and color when
viewing a web site. I want to post the code as a tutorial for others because
I was never able to find a good resource on the subject.

To see it in action you can visit my woefully antiquated and never completed
site at http://kettenacker.com/home/webprefs/ (I am currently building my
company's new site where I will eventually post this tutorial in my resource
section).

Anyway I am interested in hearing any feedback/improvements/optimization
tips on this section of the code (This code checks if the user has chosen a
style and color preference for viewing the web site, if not, it will set it
to a default style and color preference):

-

// Please feel free to use and abuse this code as you wish.
// If you find it at all useful perhaps you may wish to add the
// following credit to your code (but you are not obliged to):
// Original code provided by Colin Kettenacker http://www.cube-o.com/
// Code modified by (Add your name here if you have modified this code)

session_start();

// If the session variable 'prefAa' has been assigned then...
if (isset($_SESSION['prefsAa'])) {

// Extract the interface style and color information from it
$intStyleS = $_SESSION['prefsAa']['style'];
$intColorS = $_SESSION['prefsAa']['color'];

// If the session variable 'prefAa' has *not* been assigned yet then...
} else {

// If there are cookies present on the client's machine with
// the website's preference information then...
if (isset($_COOKIE['prefsAa'])) {

// Extract the interface style and color information from it
$intStyleS = $_COOKIE['prefsAa']['style'];
$intColorS = $_COOKIE['prefsAa']['color'];

// If there is *not* a cookie present on the client's machine with
// the website's preference information then...
} else {

// Set up a default interface style and color
$intStyleS = 'l'; // 'c' for (c)lean, 'l' for (l)ines
$intColorS = 'y'; // 'y' for gre(y), 'n' for gree(n), 'e' for blu(e)

// Attempt to create 2 cookies with the default interface style and
// color information
setcookie('prefsAa[style]', $intStyleS, time()+3600*24*7*52*10,
'/');
setcookie('prefsAa[color]', $intColorS, time()+3600*24*7*52*10,
'/');

} // end if

// Set the session variable 'prefAa'
$prefsAa = array( 'style' = $intStyleS,
  'color' = $intColorS
);
$_SESSION['prefsAa'] = $prefsAa;

} // end if

-

Any feedback/tips/hints/improvements to the code is appreciated. I will
hopefully have my company web site http://www.cube-o.com/ finished within
the next month (Nov) with the full tutorial on it.

TIA,

ck

-- 
Cheap Domain Registration | Web Hosting | Email Packages | + more
Fantastic prices -- Even better service.
http://www.hosttohost.net 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-20 Thread David T-G
John, et al --

1) No screen shot (tee hee).

2) I'm going to just have to accept that the garbage will run just fine
since I'm not getting my head around it and you haven't offerred a key.
Maybe it's like obnoxious hex codes for IPs in spam emails and it really
is runnable directly by the web server; that's a different story.

3) Thanks again for the time and the info.


HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] $PHP_SELF

2003-10-20 Thread Nathan Taylor
$PHP_SELF is a variable that is a variable that has limited scope and as a rule of 
thumb should never be used. It is a very sloppy way to code.  I advise you stick to 
$_SERVER['PHP_SELF'].
  - Original Message - 
  From: Boris Sagadin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, October 20, 2003 7:23 AM
  Subject: [PHP] $PHP_SELF



  I'm having problems with $PHP_SELF variable. Mostly it works, other
  times (about 10% of tries) it's just empty. Is this a known issue with Apache
  2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
  like to know if this is a common bug or there's something wrong with
  my configuration.

  I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec, register_globals is on

  Thanks,
  Boris

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] filesize() error - Can anyone help?

2003-10-20 Thread R'twick Niceorgaw
Hi,

Jacques Roux said the following on 10/17/2003 10:55 AM

Dear All

I am getting the following error message when I open some of the page on my
Web Site.  What could the problem be and how can I correct it?
Warning: filesize() [function.filesize]: Stat failed for
./admin/dbimages/tblProjects/image/776 (errno=2 - No such file or directory)
in /data/ns-home/b2b/www.impumelelo.org.za/html/project_detail.php on line
10
Regards

Jacques

does this file (./admin/dbimages/tblProjects/image/776 ) exist?
If so, try to give the full pathname to the file in project_detail.php.
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Multidimensional Arrays

2003-10-20 Thread Ed Curtis

 I'm trying to submit multiple values to a variable within an option
tag by using a value such as value=this,that There are multiple select
statements on this form each counting up from 1 using $count and
$listings as such.

? $count = 1;
$listings = 3

 while ($count = $listings) {?

select name=listings[? echo $count; ? value=1

option value=this,thatThis and That
option value=that,thisThat and This

? $count++; } ?

On the recieving side I'm parsing many instances of these using the
following method

 $count = 1;
 $listings = 3;

while ($count = $listings) {

$listing['$count'] = $_POST['listing[$count]'];

}


This example works fine if I need to get the full value (this,that) or
(that,this). What I'd like to do is break this into a multidimensional
array so I have approximately the following depending on what they choose
for each example.

$listing[1][0] = this
$listing[1][1] = that

$listing[2][0] = that
$listing[2][0] = this

 Hopefully this example is clear enough that someone will understand what
I'm doing. I tried the following with no luck.

$listing['count'] = $_POST['listing[count]'];

$listing['$count'] = explode(,, $listing['$count']);

Any takers? Thanks.

Ed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] cache control with javascript

2003-10-20 Thread Joshua Minnie
Does anybody know how I can make force a javascript file (written in PHP) to
be cached if the user agent allows it?

Here is the situation:
I am creating a dropdown menu system that contains a customer list, loaded
from a database.  This list is written to the javascript file for the menu.
The menu can be quite large as the data grows.  What I would like to do, is
force it to be cached (unless of course the user agent doesn't allow it) so
that it doesn't have to make the call to generate the file each time.

I have searched through the php.net website and even through the HTTP/1.1
protocols.  I am continuing to look, but have not found a definite answer as
to whether or not what I am trying to do is possible.

-- 
Joshua Minnie
Lead Web Application Developer
Advantage Computer Services, LLC
www.advantagecomputerservices.com
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
I've tried a few more things, still with no success.  Increasing 
post_max_size and upload_max_filesize to 100M doesn't fix the 
problem.  Turning error logging on doesn't seem to catch any errors.  Is 
it possible that this is a problem with apache, and if so how should I 
go about fixing it?

Thanks,
Grant
Grant Rutherford wrote:

Hi there,

I'm trying to get a file upload to work with PHP.

The file I'm attempting to upload is a 742kB pdf file, but this will 
have to work for files up to 50Mb of all types eventually.

The following test pages work fine if the receiving page (testdone) is 
saved with an html extension, but they return a Document Contains no 
Data error if it has a php extension.  The inclusion or exclusion of 
a MAX_FILE_SIZE hidden field does not seem to effect the situation.

In addition, the upload appears to work fine for smaller files. (239kB 
works fine on both .php and .html)

I'm using PHP with apache viewed on Mozilla, and the following simple 
HTML:

teststart.html:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
FORM ACTION='testdone.***' METHOD=POST NAME=aform 
ENCTYPE='multipart/form-data'
P ALIGN=CENTERINPUT TYPE=FILE NAME=testfileINPUT TYPE=SUBMIT 
NAME=add VALUE='Submit'/P
/FORM
/BODY
/HTML

testdone.***:
HTMLHEADTITLETest Page/TITLE/HEAD
BODY
H1 ALIGN=CENTERTest Page/H1
P ALIGN=CENTERFile Upload Successful/P
/BODY
/HTML
The parts of my php.ini file that I think may be relevant are:

memory_limit = 80M
post_max_size = 1M
file_uploads = On
upload_max_filesize = 1M
Any help would be appreciated

Thanks,
Grant





--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

Iders Incorporated: Confidential

Note: This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure, copying or
distribution of its contents is strictly prohibited.  If you have
received this message in error, please destroy it and advise the sender
immediately by phone, Email or facsimile.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Jon Kriek
Done ;)

Happy sailing John!

-- 
Jon Kriek
http://phpfreaks.com

Becoming Digital [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Anyone who's been on these lists for a few days is already familiar with CPT
John W. Holmes.  He's probably helped each and every one of us more times
than we can count, all without asking for a thing.  I think it's time we
help him with something.

php|cruise is coming this March.  As of now, John isn't going and I think
that's a huge loss.  He should probably be one of those presenting, but at
the very least, I'd like him in our midst.  He certainly deserves it.

I'm asking all of you to join me in Operation Send Captain on the Cruise.
All it takes is a few minutes to PayPal a contribution to
[EMAIL PROTECTED]  Donations of any size are welcome, and every
little bit helps.  If enough of us chip in, John and his wife can get away
for a bit, significantly reducing the chance that she'll cut off his PHP
Mailing List privileges. ;)

For those who are wondering, this was my idea, not John's.  I did ask for
his clearance and assured him that I'll take responsibility for any
backlash.  If you don't like this idea, tell me, not him.  Thanks a lot. :)

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Multidimensional Arrays

2003-10-20 Thread Chris W. Parker
Ed Curtis mailto:[EMAIL PROTECTED]
on Monday, October 20, 2003 11:39 AM said:

 What I'd like to do is break this into a multidimensional
 array so I have approximately the following depending on what they
 choose for each example.

[snip]

 I tried the following with no luck.
 
   $listing['count'] = $_POST['listing[count]'];
 
   $listing['$count'] = explode(,, $listing['$count']);

Dis:

function returnArray($input)
{
$arrCnt = count($input);
$iCnt = 0;

while($iCnt  $arrCnt)
{
$listing[$iCnt] = explode(,, $input[$iCnt]);
}

return $listing;
}

Untested, but looks ok.


Chris.

--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] A web site interface preference tutorial

2003-10-20 Thread Chris W. Parker
Colin Kettenacker mailto:[EMAIL PROTECTED]
on Monday, October 20, 2003 11:06 AM said:

 Any feedback/tips/hints/improvements to the code is appreciated. I
 will hopefully have my company web site http://www.cube-o.com/
 finished within the next month (Nov) with the full tutorial on it.

You should put a temp page up there.



Chris.

--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Jon Kriek
Done ;)

Happy sailing John!

-- 
Jon Kriek
http://phpfreaks.com

Becoming Digital [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Anyone who's been on these lists for a few days is already familiar with CPT
John W. Holmes.  He's probably helped each and every one of us more times
than we can count, all without asking for a thing.  I think it's time we
help him with something.

php|cruise is coming this March.  As of now, John isn't going and I think
that's a huge loss.  He should probably be one of those presenting, but at
the very least, I'd like him in our midst.  He certainly deserves it.

I'm asking all of you to join me in Operation Send Captain on the Cruise.
All it takes is a few minutes to PayPal a contribution to
[EMAIL PROTECTED]  Donations of any size are welcome, and every
little bit helps.  If enough of us chip in, John and his wife can get away
for a bit, significantly reducing the chance that she'll cut off his PHP
Mailing List privileges. ;)

For those who are wondering, this was my idea, not John's.  I did ask for
his clearance and assured him that I'll take responsibility for any
backlash.  If you don't like this idea, tell me, not him.  Thanks a lot. :)

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] File Upload problem

2003-10-20 Thread Jay Blanchard
[snip]
I've tried a few more things, still with no success.  Increasing 
post_max_size and upload_max_filesize to 100M doesn't fix the 
problem.  Turning error logging on doesn't seem to catch any errors.  Is

it possible that this is a problem with apache, and if so how should I 
go about fixing it?
[/snip]

Grant,

What version of PHP are you running, and at the risk of being redundant,
are you doing exactly what the manual says to do reguarding uploads? Try
that first, and then lets work from there.

Jay

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Weird Apache/php/windows problem

2003-10-20 Thread Gary
Hello all,
I have been using php as a module on apache 1.3xx windows for a long 
time. My computer was recently stolen and I had to build a new on. On 
the new one I did the usual install of Apache ,php,mysql now When I try 
to start Apache i get the can not load php4apache.dll into server. A 
required library is missing. I presume it means it can't find the 
php4ts.dll.

I have checked and php4ts.dll is there. My current setup is the same as 
I have used in the past. Win98

LoadModule php4_module  c:/windows/system/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
TIA
Gary
The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Ryan A
Hey,
Sending John on a cruise is a fantastic idea, if we pay a bit more can we
keep his sarcastic ass there???

Hehe, just kidding, the dude has helped me (and a whole lot of others) a
lot...its payback time.

I am not a rich guy and not based in the states, so my one and only little
question is:
Is there a minimum donation or does every little bit count, and I don't
get cursed for a small donation do I?

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Weird Apache/php/windows problem

2003-10-20 Thread Lai, Kenny
i'm new to php, but from what i can see.. you need to add the DDL that
resides in your PHP directory..

LoadModule php4_module  c:/php/sapi/php4apache.dll

or 

LoadModule php4_module  c:/php/sapi/php4apache2.dll for apache 2.x

regards,
kenny

-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Weird Apache/php/windows problem


Hello all,
I have been using php as a module on apache 1.3xx windows for a long 
time. My computer was recently stolen and I had to build a new on. On 
the new one I did the usual install of Apache ,php,mysql now When I try 
to start Apache i get the can not load php4apache.dll into server. A 
required library is missing. I presume it means it can't find the 
php4ts.dll.

I have checked and php4ts.dll is there. My current setup is the same as 
I have used in the past. Win98

LoadModule php4_module  c:/windows/system/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

TIA
Gary

The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Didier McGillis
I cant attach my loose change to my email :(


From: Ryan A [EMAIL PROTECTED]
Reply-To: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [PHP] Re: php|cruise - do unto others...
Date: Mon, 20 Oct 2003 21:29:53 +0200
Hey,
Sending John on a cruise is a fantastic idea, if we pay a bit more can we
keep his sarcastic ass there???
Hehe, just kidding, the dude has helped me (and a whole lot of others) a
lot...its payback time.
I am not a rich guy and not based in the states, so my one and only little
question is:
Is there a minimum donation or does every little bit count, and I don't
get cursed for a small donation do I?
Cheers,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Weird Apache/php/windows problem

2003-10-20 Thread Nemesis
Lai, Kenny wrote:

i'm new to php, but from what i can see.. you need to add the DDL that
resides in your PHP directory..
LoadModule php4_module  c:/php/sapi/php4apache.dll

or 

LoadModule php4_module  c:/php/sapi/php4apache2.dll for apache 2.x

regards,
kenny
Tried that already. I have never been able to get it to work on Win 98. 
It does seem to work on other windows versions.

Gary

The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: String to Array or Hash Table

2003-10-20 Thread Manuel Vázquez Acosta
Try:
parse_str($theStr, $assocArray);


Manu.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
Hi there,

I'm running PHP version 4.2.2

I included all of my code in my origional post.  If you would like it 
reposted, I can do that.  I retried it with exactly the same code as the 
manual has in the file uploads section (cut and paste).  I'm merely 
trying to get the upload to work, I'm not concerned about handling the 
file yet!  If I can get the second page to load, then I could move the 
file, rename it or whatever, but it keeps returning The document 
contains no data and as far as I know the php script isn't even run.

Thanks,
Grant
Jay Blanchard wrote:

Grant,

What version of PHP are you running, and at the risk of being redundant,
are you doing exactly what the manual says to do reguarding uploads? Try
that first, and then lets work from there.
Jay

 



--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

Iders Incorporated: Confidential

Note: This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure, copying or
distribution of its contents is strictly prohibited.  If you have
received this message in error, please destroy it and advise the sender
immediately by phone, Email or facsimile.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Weird Apache/php/windows problem

2003-10-20 Thread Didier McGillis
Question?  Was this the download from the PHP site, the Windows installer.
Does the sapi folder have anything in it?
I had an issue with this installer, the PHP 4.3.1 and I know there is 
another download you will need to do.

Let me see if I can find it.

dan


From: Nemesis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Weird Apache/php/windows problem
Date: Mon, 20 Oct 2003 15:42:07 -0400
Lai, Kenny wrote:

i'm new to php, but from what i can see.. you need to add the DDL that
resides in your PHP directory..
LoadModule php4_module  c:/php/sapi/php4apache.dll

or

LoadModule php4_module  c:/php/sapi/php4apache2.dll for apache 2.x

regards,
kenny
Tried that already. I have never been able to get it to work on Win 98. It 
does seem to work on other windows versions.

Gary

The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] File Upload problem

2003-10-20 Thread Jay Blanchard
[snip]
I included all of my code in my origional post.  If you would like it 
reposted, I can do that.  I retried it with exactly the same code as the

manual has in the file uploads section (cut and paste).  I'm merely 
trying to get the upload to work, I'm not concerned about handling the 
file yet!  If I can get the second page to load, then I could move the 
file, rename it or whatever, but it keeps returning The document 
contains no data and as far as I know the php script isn't even run.
[/snip]

Moving the file is a requisite to the upload operation as PHP stores the
upload in a temp directory and deletes it quickly once the upload is
complete;

from http://us4.php.net/manual/en/features.file-upload.php

 The file will be deleted from the temporary directory at the end of
the request if it has not been moved away or renamed.

So, you may be uploading the file...and then deleting it. Your original
posted code did not contain the code for handling the upload, which is
on page 2 I guess?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 15:35, Didier McGillis wrote:
 I cant attach my loose change to my email :(

There's a money making idea -- teleporter email attachments. Now to just
figure out the teleporter part...

Rob.


 
 
 From: Ryan A [EMAIL PROTECTED]
 Reply-To: Ryan A [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: [PHP] Re: php|cruise - do unto others...
 Date: Mon, 20 Oct 2003 21:29:53 +0200
 
 Hey,
 Sending John on a cruise is a fantastic idea, if we pay a bit more can we
 keep his sarcastic ass there???
 
 Hehe, just kidding, the dude has helped me (and a whole lot of others) a
 lot...its payback time.
 
 I am not a rich guy and not based in the states, so my one and only little
 question is:
 Is there a minimum donation or does every little bit count, and I don't
 get cursed for a small donation do I?
 
 Cheers,
 -Ryan
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*  
 http://join.msn.com/?page=features/junkmail
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Didier McGillis
We dont even have to ask permission .. we would be doing them a service.  :)

From: Robert Cummings [EMAIL PROTECTED]
To: Didier McGillis [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED],PHP-General 
[EMAIL PROTECTED]
Subject: Re: [PHP] Re: php|cruise - do unto others...
Date: 20 Oct 2003 15:52:35 -0400

On Mon, 2003-10-20 at 15:35, Didier McGillis wrote:
 I cant attach my loose change to my email :(
There's a money making idea -- teleporter email attachments. Now to just
figure out the teleporter part...
Rob.



 From: Ryan A [EMAIL PROTECTED]
 Reply-To: Ryan A [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: [PHP] Re: php|cruise - do unto others...
 Date: Mon, 20 Oct 2003 21:29:53 +0200
 
 Hey,
 Sending John on a cruise is a fantastic idea, if we pay a bit more can 
we
 keep his sarcastic ass there???
 
 Hehe, just kidding, the dude has helped me (and a whole lot of others) 
a
 lot...its payback time.
 
 I am not a rich guy and not based in the states, so my one and only 
little
 question is:
 Is there a minimum donation or does every little bit count, and I 
don't
 get cursed for a small donation do I?
 
 Cheers,
 -Ryan
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'
_
Tired of spam? Get advanced junk mail protection with MSN 8.  
http://join.msn.com/?page=features/junkmail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Dan Joseph
Hi,

if there's enough loose change involved, i'd almost be willing to drive
around and collect it. :)

-Dan Joseph

 -Original Message-
 From: Robert Cummings [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 20, 2003 3:53 PM
 To: Didier McGillis
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; PHP-General
 Subject: Re: [PHP] Re: php|cruise - do unto others...


 On Mon, 2003-10-20 at 15:35, Didier McGillis wrote:
  I cant attach my loose change to my email :(

 There's a money making idea -- teleporter email attachments. Now to just
 figure out the teleporter part...

 Rob.


 
 
  From: Ryan A [EMAIL PROTECTED]
  Reply-To: Ryan A [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  Subject: [PHP] Re: php|cruise - do unto others...
  Date: Mon, 20 Oct 2003 21:29:53 +0200
  
  Hey,
  Sending John on a cruise is a fantastic idea, if we pay a bit
 more can we
  keep his sarcastic ass there???
  
  Hehe, just kidding, the dude has helped me (and a whole lot of
 others) a
  lot...its payback time.
  
  I am not a rich guy and not based in the states, so my one and
 only little
  question is:
  Is there a minimum donation or does every little bit count,
 and I don't
  get cursed for a small donation do I?
  
  Cheers,
  -Ryan
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
  _
  The new MSN 8: smart spam protection and 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 --
 ..
 | InterJinn Application Framework - http://www.interjinn.com |
 ::
 | An application and templating framework for PHP. Boasting  |
 | a powerful, scalable system for accessing system services  |
 | such as forms, properties, sessions, and caches. InterJinn |
 | also provides an extremely flexible architecture for   |
 | creating re-usable components quickly and easily.  |
 `'

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Weird Apache/php/windows problem

2003-10-20 Thread Nemesis
No, it was the manual install, everything is there.

Didier McGillis wrote:

Question?  Was this the download from the PHP site, the Windows installer.
Does the sapi folder have anything in it?
I had an issue with this installer, the PHP 4.3.1 and I know there is 
another download you will need to do.

Let me see if I can find it.

dan


From: Nemesis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Weird Apache/php/windows problem
Date: Mon, 20 Oct 2003 15:42:07 -0400
Lai, Kenny wrote:

i'm new to php, but from what i can see.. you need to add the DDL that
resides in your PHP directory..
LoadModule php4_module  c:/php/sapi/php4apache.dll

or

LoadModule php4_module  c:/php/sapi/php4apache2.dll for apache 2.x

regards,
kenny


Tried that already. I have never been able to get it to work on Win 
98. It does seem to work on other windows versions.

Gary

The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Becoming Digital
 Is there a minimum donation or does every little bit count, and I don't
 get cursed for a small donation do I?

There is certainly no minimum.  That you and others care enough to donate what you can 
is all that counts.  Thank you very much for your support. :)

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message - 
From: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, 20 October, 2003 15:29
Subject: [PHP] Re: php|cruise - do unto others...


Hey,
Sending John on a cruise is a fantastic idea, if we pay a bit more can we
keep his sarcastic ass there???

Hehe, just kidding, the dude has helped me (and a whole lot of others) a
lot...its payback time.

I am not a rich guy and not based in the states, so my one and only little
question is:
Is there a minimum donation or does every little bit count, and I don't
get cursed for a small donation do I?

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Becoming Digital
 I cant attach my loose change to my email :(

Sadly, that feature won't be implemented till PHP5. ;)

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message - 
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, 20 October, 2003 15:35
Subject: Re: [PHP] Re: php|cruise - do unto others...


I cant attach my loose change to my email :(


From: Ryan A [EMAIL PROTECTED]
Reply-To: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [PHP] Re: php|cruise - do unto others...
Date: Mon, 20 Oct 2003 21:29:53 +0200

Hey,
Sending John on a cruise is a fantastic idea, if we pay a bit more can we
keep his sarcastic ass there???

Hehe, just kidding, the dude has helped me (and a whole lot of others) a
lot...its payback time.

I am not a rich guy and not based in the states, so my one and only little
question is:
Is there a minimum donation or does every little bit count, and I don't
get cursed for a small donation do I?

Cheers,
-Ryan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
I found the problem!!!

Buried deep within the manual:

LimitRequestBody
in
/etc/httpd/conf.d/php.conf
was set too small.

Thanks for your time everyone,
Grant
--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

Iders Incorporated: Confidential

Note: This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure, copying or
distribution of its contents is strictly prohibited.  If you have
received this message in error, please destroy it and advise the sender
immediately by phone, Email or facsimile.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Didier McGillis



 I cant attach my loose change to my email :(

Sadly, that feature won't be implemented till PHP5. ;)
Yeah I tried that and it took my underwear and left a welt, I submitted it 
as a bug.

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.
wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message -
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, 20 October, 2003 15:35
Subject: Re: [PHP] Re: php|cruise - do unto others...
I cant attach my loose change to my email :(

From: Ryan A [EMAIL PROTECTED]
Reply-To: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [PHP] Re: php|cruise - do unto others...
Date: Mon, 20 Oct 2003 21:29:53 +0200

Hey,
Sending John on a cruise is a fantastic idea, if we pay a bit more can we
keep his sarcastic ass there???

Hehe, just kidding, the dude has helped me (and a whole lot of others) a
lot...its payback time.

I am not a rich guy and not based in the states, so my one and only 
little
question is:
Is there a minimum donation or does every little bit count, and I don't
get cursed for a small donation do I?

Cheers,
-Ryan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 16:05, Didier McGillis wrote:
 
 
 
   I cant attach my loose change to my email :(
 
 Sadly, that feature won't be implemented till PHP5. ;)
 
 Yeah I tried that and it took my underwear and left a welt, I submitted it 
 as a bug.

I heard it might be delayed till PHP 6 due to unforseen technical
difficulties.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] need help designing a job search agent

2003-10-20 Thread Redmond Militante
hi all

i'm trying to decide how i'm going to go about designing a monster.com-esque 'job 
search' agent for my job postings site.  what i'm thinking is, the job search agent 
basically executes a sql query based on user defined parameters, then based on a set 
time frame, executes the sql query against a db, and

emails the user the query results or generates an html summary of the query results, 
or both...

what's the best way to set up a query/output script like this to happen automatically 
ala a cron job?

if anyone's dealt with this type of thing before, your advice would be appreciated

thanks
redmond
-- 
FreeBSD 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Fri Oct 3 21:30:51 CDT 2003
 3:00PM  up 6 days,  6:41, 2 users, load averages: 1.00, 1.00, 1.00
 
VYARZERZOMANIMORORSEZASSEZANSERAREORSES?
 


pgp0.pgp
Description: PGP signature


RE: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Jay Blanchard
[snip]
   I cant attach my loose change to my email :(
 
 Sadly, that feature won't be implemented till PHP5. ;)
 
 Yeah I tried that and it took my underwear and left a welt, I
submitted it 
 as a bug.

I heard it might be delayed till PHP 6 due to unforseen technical
difficulties.
[/snip]

$uploaddir = '/var/change/uploads/';
$uploadfile = $uploaddir. $_FILES['userchange']['name'];

if (move_uploaded_change($_FILES['userchange']['tmp_name'],
$uploadfile)) {
print Change is valid, and was successfully uploaded. ;
print_r($_FILES);
} else {
print Possible theft of change!\n;
print_r($_FILES);
}

I was able to upload my loose change (see code above), but now I cannot
find it.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Didier McGillis
Some change just came out of my cd-rom .. could it be yours?


From: Jay Blanchard [EMAIL PROTECTED]
To: Robert Cummings [EMAIL PROTECTED],   Didier McGillis 
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED], PHP-General [EMAIL PROTECTED]
Subject: RE: [PHP] OT Re: php|cruise - do unto others...
Date: Mon, 20 Oct 2003 15:18:36 -0500

[snip]
   I cant attach my loose change to my email :(
 
 Sadly, that feature won't be implemented till PHP5. ;)

 Yeah I tried that and it took my underwear and left a welt, I
submitted it
 as a bug.
I heard it might be delayed till PHP 6 due to unforseen technical
difficulties.
[/snip]
$uploaddir = '/var/change/uploads/';
$uploadfile = $uploaddir. $_FILES['userchange']['name'];
if (move_uploaded_change($_FILES['userchange']['tmp_name'],
$uploadfile)) {
print Change is valid, and was successfully uploaded. ;
print_r($_FILES);
} else {
print Possible theft of change!\n;
print_r($_FILES);
}
I was able to upload my loose change (see code above), but now I cannot
find it.
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread John Nichel
Jay Blanchard wrote:
[snip]

I cant attach my loose change to my email :(
Sadly, that feature won't be implemented till PHP5. ;)
Yeah I tried that and it took my underwear and left a welt, I
submitted it 

as a bug.


I heard it might be delayed till PHP 6 due to unforseen technical
difficulties.
[/snip]
$uploaddir = '/var/change/uploads/';
$uploadfile = $uploaddir. $_FILES['userchange']['name'];
if (move_uploaded_change($_FILES['userchange']['tmp_name'],
$uploadfile)) {
print Change is valid, and was successfully uploaded. ;
print_r($_FILES);
} else {
print Possible theft of change!\n;
print_r($_FILES);
}
I was able to upload my loose change (see code above), but now I cannot
find it.
Sigh, how many times do we have to answer this question.  RTFM

:)

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php|cruise - do unto others...

2003-10-20 Thread John Nichel
Robert Cummings wrote:
On Mon, 2003-10-20 at 15:54, Larry E.Ullman wrote:

To make a donation, simply login to PayPal and click the Send Money 
tab at the top of your screen.  Once there, put 
[EMAIL PROTECTED] in the Recipient's Email field and fill 
out the remaining fields to your liking. :)
Even though this thread is much more PHP-related than many of the 
topics discussed here (sadly), could it be taken off list, please? Cpt 
Holmes is certainly a valuable asset to these lists but the time 
everyone spends reading two emails (PHP General and PHP-DB) every time 
someone does or does not donate to the cause is time better spent 
earning money for the cause, no?

Not trying to be cranky, just worried that the 16 emails I've already 
seen in the past hour may not be the end of it!
Larry


Anyone got a double rot13 decoder for the above message? ;)

Rob.
Sorry, the best I can do is two double rot6.5 decoders.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] need help designing a job search agent

2003-10-20 Thread Nathan Taylor
Are you looking for something that job listings are added to by companies or something 
that crawls the web for listings?

Nathan

[PHP] PHP error logs?

2003-10-20 Thread Joseph Bannon
Where are the PHP error logs kept?

Thanks,
J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] date counting/subtracting MySQL and PHP

2003-10-20 Thread Paul Nowosielski
Hello,

Can some lend advice regarding date functions using mysql and php
please?

I have a table set up like so 
(DESCRIBE nuke.position)

hiddenid int(5)   PRI NULL auto_increment 
id varchar(40) 
contact_email varchar(64) 
title varchar(60) 
salary mediumtext
discipline mediumtext 
sector mediumtext 
description mediumtext 
location mediumtext 
posted timestamp(14) YES   NULL   /* date posted */
days_to_expire int(4) YES   30 /* total days valid */
contact varchar(40) 
tax_term mediumtext 
job_id varchar(40) 
city varchar(60) 
state varchar(60) 
country varchar(60) 
logo varchar(128) YES   NULL  

I need to get mysql or php to subtract the current date from
$date_posted(time stamp) and return the number of days(the item has been
posted) as a sum.

Any suggestions would be greatly appreciated!

Paul

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mktime trouble

2003-10-20 Thread Peter Torraca
I'm taking a postgres timestamp from the database to something I can 
parse with PHP (i.e., a unix timestamp.  Thing is, the date function 
isn't giving me the result I expect.  Check this out:

print date (m/d/y h:m:s A, mktime(16, 30, 0, 10, 10, 2003));

gives the output: 10/10/03 04:10:00 AM

Where did the 4:10 come from?  It should be 4:*30*.  To make things 
stranger, when I change the month field in mktime to 9, like so:

print date (m/d/y h:m:s A, mktime(16, 30, 0, 9, 10, 2003));

I get the output: 09/10/03 04:09:00 AM

It works the same way if I feed date a Unix timestamp, so I'm sure 
this is a date problem.  (using mktime in my example here is just 
clearer than playing with unix timestamps).

date() and mktime() are usually simple enough, but something is going 
wrong.  Perhaps it is a dumb mistake on my part, but I'm not seeing 
it

peter

--
Peter Torraca
Webmaster, Math Department
Purdue Univ., Math 813
765-494-9998
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] A web site interface preference tutorial

2003-10-20 Thread Colin Kettenacker
Chris W. Parker [EMAIL PROTECTED] on 10/20/03 12:03 PM wrote:

 Colin Kettenacker mailto:[EMAIL PROTECTED]
 on Monday, October 20, 2003 11:06 AM said:
 
 Any feedback/tips/hints/improvements to the code is appreciated. I
 will hopefully have my company web site http://www.cube-o.com/
 finished within the next month (Nov) with the full tutorial on it.
 
 You should put a temp page up there.
 
 Chris.
 

Ahhh... nobody knows about the site yet (well till now I guess) :)

ck
-- 
Cheap Domain Registration | Web Hosting | Email Packages | + more
Fantastic prices -- Even better service.
http://www.hosttohost.net 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP error logs?

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 16:34, Joseph Bannon wrote:
 Where are the PHP error logs kept?

In the PHP error log file.

Cheers,
Rob.

Ps. See your php.ini for the appropriate setting: error_log ;)

-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] second time: problem with LDAP support

2003-10-20 Thread Ray Hunter
   I have a problem of installation of php.
 
   I'm using Linux 7.3. I have installed 
   openldap2.1.22 successfully.
 
   Now I'm compiling php with the following
   command:
 
   ./configure --with-apache2=/usr/local/apache2 \
   --with-mysql=/usr/local/mysql \
   --with-ldap=/usr/local/ldap
 
   The configuration is past. However, when I
   type make, the following error occured:
   gcc: sapi/cli/php_cli.o: No such file or directory
   gcc: sapi/cli/getopt.o:  No such file or directory
   make: ***[sapi/cli/php] Error 1


How is openldap installed?  Are you sure that openldap is installed in
/usr/local/ldap...do you have the openldap dev files?

This error does not look like it is ldap specific...

--
BigDog

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  1   2   >