Re: [PHP] Add Reply-To to this list(s)

2003-11-27 Thread Mika Tuupola
On Thu, 27 Nov 2003, David T-G wrote:

 Many people might expect a mailing list to behave as a newsgroup, 
 but it isn't and so it won't.

Having read this thread, must say I wonder where is this
world is going when people who consider themselves
coders are confused about this email thingie.

;)

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] Whats more efficient? (Conclusion)

2003-10-22 Thread Mika Tuupola
On Wed, 22 Oct 2003, Ryan A wrote:

 what do you suggest? and any urls for reading up on caching?

Some benchmarks on content and bytecode caching:

http://www.appelsiini.net/~tuupola/articles/benchmarking-phpa/

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] PHP generated AuthUserFiles?

2003-10-10 Thread Mika Tuupola
On Fri, 10 Oct 2003, MIKE YRABEDRA wrote:

 Is there a way to let PHP generate the necessary AuthUserFiles for use with
 .htaccess?

http://pear.php.net/package/File_HtAccess
http://pear.php.net/package/File_Passwd

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread Mika Tuupola
On Mon, 6 Oct 2003, PHP Webmaster wrote:

 Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using
 a form to send the login details to the site through the address bar
 (http://user:[EMAIL PROTECTED]) but the .htaccess password protection box

That does not look like https. Try changing to

https://user:[EMAIL PROTECTED]/

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] Tracking IP Addresses

2003-10-04 Thread Mika Tuupola
On Fri, 3 Oct 2003, Stephen Craton wrote:

 I'm wanting to track IP addresses by pinpointing their geological location
 (country and whatever) but I have no idea how to go about doing this. I've
 been searching on the net and PHP websites all day but with no luck. Can
 anyone point me towards a tutorial site or explain to it for me? Thanks in
 advance!

http://www.appelsiini.net/~tuupola/php/I18N_ISO_3166/

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



RE: [PHP] Tracking IP Addresses

2003-10-04 Thread Mika Tuupola
On Fri, 3 Oct 2003, Larry Rosenman wrote:

 IP's are not locked to a geographical area.
 Period.

APNIC, RIPE, ARIN and LACNIC store country information
on assigned ip network blocks like this:

-cut-
apnic|MO|asn|4609|1|19950615|allocated
apnic|KR|asn|4670|1|19950616|allocated
apnic|SB|ipv4|202.63.254.0|512|19950618|assigned
apnic|JP|ipv4|202.232.0.0|262144|19950618|allocated
-cut-

this is where the ip to country databases get their information
from.

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] Tracking IP Addresses

2003-10-04 Thread Mika Tuupola
On Sun, 5 Oct 2003, Mika Tuupola wrote:

 On Fri, 3 Oct 2003, Stephen Craton wrote:
 
  I'm wanting to track IP addresses by pinpointing their geological location
  (country and whatever) but I have no idea how to go about doing this. I've
  been searching on the net and PHP websites all day but with no luck. Can
  anyone point me towards a tutorial site or explain to it for me? Thanks in
  advance!
 
   http://www.appelsiini.net/~tuupola/php/I18N_ISO_3166/

Argh, sorry wrong link. I ment:

http://www.appelsiini.net/~tuupola/php/I18N_IP2Country/

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] PHP and .HTACCESS

2003-10-04 Thread Mika Tuupola
On Fri, 3 Oct 2003, Marek Kilimajer wrote:

  thing that I can not find anywhere is how to code it so a user can click logoff 
  and have it route them to another page and remove their authentication that was 
  set.

 it is virtualy impossible to make the browser forget the credentials.

It can be done in few ways, but IIRC none of them
is guaranteed to work with _every_ browser. Simplest one
is to use a new IE6 (SP1) feature by calling javascript:
-cut-
a href=# onclick=
  document.execCommand('ClearAuthenticationCache');
  alert('You have been logged out!');
Logout/a
-cut-

This of course is quite useless sinse it only works with
IE6.

A second way would be to overwrite the cached credentials with
fake ones. For that you would need to do another .htaccess
protected directory. Lets call it /logout/. You create the
.htaccess and .htpasswd file. Create user 'fake' with
password 'fake' (only for this directory).

Then you would create a logout link with:

-cut-
a href=http://fake:[EMAIL PROTECTED]/logout/Logout/a
-cut-

This should overwrite the credentials with most browser, but
again is not guaranteed to work with every browser.
 
-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] Date class and Span.php

2003-09-07 Thread Mika Tuupola
On Sat, 6 Sep 2003, Nelson Goforth wrote:

 Date.php calls for an include of a file called Span.php, but the file 
 does not exist in the date subdirectory.  I've found some references to 
 that file being missing, so I located a file by that name in the CVS 
 directory and installed it.  However, it 'includes' Date.php, the very 
 file that calls it, so I'm unsure that I've got the right thing.

It seems that the current package misses the file. Until
the package is fixed you can get it from cvs.

http://chora.php.net/cvs.php/pear/Date/Date

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] Persistent database connections in PHP

2003-09-05 Thread Mika Tuupola
On Fri, 5 Sep 2003, Shivanischal wrote:

 I wanted help on how to achieve persistent database connections in PHP. The
 database i use is MySQL. I would be grateful if u could also guide me to
 resources that tell me how to do it.

http://www.php.net/manual/en/function.mysql-pconnect.php

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/

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



Re: [PHP] google style paginating

2003-08-23 Thread Mika Tuupola
On Thu, 21 Aug 2003, Ted Conn wrote:

 Hi I am new to this newsgroup and I plan on replying to all the posts I can
 for now... but Id like to start out by asking a question. I am trying to
 paginate my sql results in 10 by 10, which I have been able to do no
 problem. but what I want to do is have the pages layed out in google style
 with (1)(2)(3)(4) etc etc and each one is clickeable that will take you to
 that page. I'll show you the code I am using now for next and back
 buttons...
 

You might want to check Page and Pager_Sliding classes in PEAR:

http://pear.php.net/package-info.php?package=Pager
http://pear.php.net/package-info.php?package=Pager_Sliding

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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



Re: [PHP] PHP to Excel Export

2003-07-04 Thread Mika Tuupola
On Fri, 4 Jul 2003 [EMAIL PROTECTED] wrote:

 excel has a char limit of 255 , if you can find a work around for it please
 do let me know , also , check out the bifwriter , i think the pear packages
 just outputs csv right ?

Spredsheet_Excel_Writer outputs an Excel binary, not csv.

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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



Re: [PHP] Session vs Cookie Issues

2003-07-03 Thread Mika Tuupola
On Wed, 2 Jul 2003, Matt MacLeod wrote:

 I've had similar issues using cookies. The cookie was storing my details 
 but only for the duration of the session despite having set the expiry 
 date to a time well into the future. Any ideas for why this may have 
 happened?

Someone rm'ing /tmp/ for example.

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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



Re: [PHP] Browscap

2003-07-03 Thread Mika Tuupola
On Wed, 2 Jul 2003, Milan Reznicek wrote:

 I'm trying to get_browser() function, but everytime I get from my apache
 could not open browscap.ini for reading. Does someone know how to correct
 it, or is there any other way how to determine users browser type and OS
 without using browscap?

http://www.php.net/manual/en/function.get-browser.php

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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



Re: [PHP] Naming a variable with a variable

2003-06-17 Thread Mika Tuupola
On Tue, 17 Jun 2003, Antti wrote:

 Ho can I create (name) a variable with other variables value?
 If $foo = bar;
 then the variable I want to create is $bar.
 How do I do this?

?php

$foo = 'bar';
$$foo = 'barvalue';
print $bar;

?

This prints barvalue.

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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



Re: [PHP] RE: PHP-based SMS solution

2003-02-13 Thread Mika Tuupola
On Wed, 12 Feb 2003, YC Nyon wrote:

 I am developing a web-based GPS vehicle tracking solution using php.
 I'm looking on how php can communicate with a SMSC using Smpp to issue AT
 commands.

I am not aware of any libraries which allow you to talk
SMPP directly to SMSC. Youre probably better of by
using a SMSGW such as Kannel between PHP and SMSC.

http://www.kannel.org/

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Thumbnail generation

2002-12-23 Thread Mika Tuupola
On Mon, 23 Dec 2002, 1LT John W. Holmes wrote:

 Better yet, take the time to write an Image Abstraction Layer that'll
 function just like a Database Abstraction Layer. You use the same functions
 no matter what and depending on the config, either GD, Imagemagik, Netpbm,
 or whatever is used to do the dirty work.
 
 Does anyone know of such a project or want to write one?

Image_Transform in PEAR:

http://pear.php.net/package-info.php?pacid=83

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Resize an image from URL

2002-12-10 Thread Mika Tuupola
On Tue, 10 Dec 2002, fragmonster wrote:

 I want to resize an image from an URL if it is too large. Is there a way 
 to know the size (width and height) of an image from an url without 
 download it?
 
 For exemple: getWidth(http://www.toto.com/imlage.gif)

Depending on the version of PHP youre using you can use either
PEAR's Image_Remote class:

http://pear.php.net/package-info.php?pacid=42

Or PHP's native getImageSize() 

http://fi.php.net/manual/en/function.getimagesize.php

To remotely get the dimensions of image file. IIRC the native
functions supports this since 4.0.5 and looking at the code
it does not download the whole image but parses the first few
bytes of the imagefile header (the same way as Image_Remote
does).


-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] editing .htaccess / .htpasswrd

2002-11-28 Thread Mika Tuupola
On Wed, 20 Nov 2002, Oliver Witt wrote:

 I'm looking for a script that enables users of password demanding web
 sites to change their password, in other words a script, that can write
 into the .htpsswrd file.

Answering to an old mail in here but noticed you didn't get
any replies yet. You should check File_HtAccess and File_Passwd
packages at PEAR:

http://pear.php.net/package-info.php?pacid=131
http://pear.php.net/package-info.php?pacid=128

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] airport codes db

2002-11-13 Thread Mika Tuupola
On Wed, 13 Nov 2002, Edward Peloke wrote:

 I am working on a php page where I need some airport codes data, I have seen
 a few places online where you can buy this data so I was wondering if anyone
 has used any of these databases and if anyone had a good source for a mysql
 airport code db.

http://www.markokarppinen.com/airports.html

From the readme: This SQL table of little more than 8000 airports
around the world has been compiled from various sources on the 
Internet. I believe I¹ve had to do a sufficient amount of my own
work and data mangling to call this my own. 

Each table row contains
 - The airport¹s three-letter IATA code
 - A two-letter ISO country code
 - Latitude and longitude (as doubles)
 - A display name for the airport 

...

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Geographic IP location

2002-11-03 Thread Mika Tuupola
On Sat, 2 Nov 2002, olinux wrote:

 I am looking for a way to determine the geographic
 location based on IP address. I understand that 100%
 accuracy is impossible. 

There is a Net_Geo PEAR class, which uses CAIDA data.

http://pear.php.net/package-info.php?pacid=55

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Blank PHP pages.

2002-10-16 Thread Mika Tuupola

On Wed, 16 Oct 2002, Marek Kilimajer wrote:


That is probably generated by IE when it receives nothing. Check
what show source with Netscape on lynx -source gives you.

 That is NOT nothing. This is comming from your page, so check your code.
 
 Angel Gabriel wrote:
 
 I get absolutly NOTHING! I get the most basic HTML page, but blank, as in
 the following
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META content=text/html; charset=windows-1252
 http-equiv=Content-Type/HEAD
 BODY/BODY/HTML
 
 
 
 -Original Message-
 From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 4:26 PM
 To: PHP
 Subject: Re: [PHP] Blank PHP pages.
 
 
 Do you get at least any output, i.e. empty html document? Check in the
 logs if your server is not dying
 
 Angel Gabriel wrote:
 
   
 
 I checked and register_globals is set to on - so that can't be the
 problem
 
 -Original Message-
 From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 2:33 PM
 To: 'Angel Gabriel'; [EMAIL PROTECTED]
 Subject: RE: [PHP] Blank PHP pages.
 
 
 [snip]
  I've got PHP working, on my server, I know this because I used that
 small PHP script that shows all the variables, and that worked fine. The
 problem seems to be that every other script shows me a blank pages. I'm
 using redhat 7.3,  and I installed PHP, MySQL and Apache from RPM's and
 
 
 they
   
 
 are all up2date - I have no idea what I could have missed. Has anyone else
 encountered a similar problem, and if so, how did you remedy it? I have
 followed the install instructions to the letter, and I can't seem to find
 what the problem is. Any suggestions, hints or tips, greatfully recieved!
 Thanks in advance
 [/snip]
 
 Check register_globals in php.ini. It is probably set to off
 
 HTH!
 
 Jay
 
 
 
 
 ---
 Incoming mail is certified Virus Free
 Checked by AVG anti-virus system (http://www.grisoft.com)
 Version: 6.0.404 / Virus Database: 228 - Release Date: 10/15/2002
 
 ---
 Outgoing mail is certified Virus Free
 Checked by AVG anti-virus system (http://www.grisoft.com)
 Version: 6.0.404 / Virus Database: 228 - Release Date: 10/15/2002
 
 
 
 
 
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.404 / Virus Database: 228 - Release Date: 10/15/2002
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.404 / Virus Database: 228 - Release Date: 10/15/2002
 
 
   
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] php/.htaccess/.htpasswd

2002-05-02 Thread Mika Tuupola

On Wed, 1 May 2002, Kelly Meeks wrote:

 Is is possible to use php to admin a password file used by a .htaccess file?

You should check the File_Passwd class from PEAR.

http://chora.php.net/cvs.php/php4/pear/File

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Mika Tuupola

On Tue, 9 Apr 2002, Chuck PUP Payne wrote:

 I have done something stupid and not PHP won't work. Everytime you
 click on a link that is .php it wants  you to download the file. What
 have I done and how can I fix it.

This happens when you recompile and reinstall php as a module
and didn't restart your webserver. 

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-24 Thread Mika Tuupola

On Sat, 23 Mar 2002, Andre Dubuc wrote:

 OPTION SELECTEDState
 OPTIONAL
 OPTIONAZ
 OPTION// and so on
  
   I would like a text input as the last option so that a user can type in a
   state (non-USA) and have this variable passed on. Is there any way of
   accomplishing this using html or php?

  It's not possible. You'll have to put a separate text input field next to
  it.

 Too bad, since a few sites seem to have that capability. Oh well . . 

Any URL's to them?

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




[PHP] Re: bigendian vs littleendian

2002-03-22 Thread Mika Tuupola

On Thu, 21 Mar 2002, Mika Tuupola wrote:

   How can I make 
 
   $double = pack(d,   $val);
 
   to produce same value when run on bigendian host as what
   it would result when running in a littleendian host?


Answering to myself here,  strrev()  is your friend ;)

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




RE: [PHP] Forcing little endian with pack(d);

2002-03-22 Thread Mika Tuupola

On Fri, 22 Mar 2002, Mike Eynon wrote:

 I have looked through the pack code in php-4.1.2.  There appear to be no
 other options other than what is documented on the php.net pack function
 page.  There appears to be no way of specifying endian-ness for floats or
 doubles using pack.  They are copied to the output stream using a simple
 memcpy.

The solution was much simpler than I though. Reversing
the output with strrev() seems to do the job:

$double = pack(d,   $val);

if ($bigendian) {
$double = strrev($double);
}   

Now the value of $double is the same in big and smallendian
machines. So I suppose strrev() is binary safe.

 I would need more details on what you are doing to be sure, but, is the
 format something you can worry about on the unpacking side? 

I am writing a binary file (BIFF) whose specs state that the data
needs to be written littleendian.

 The code in pack.c for the pack function is pretty dang simple.  It wouldn't
 take more than an hour or so to cut and paste a few sections of code to add
 the options you need.  Could be good to have in future versions of php.

+1 for adding that to future versions. Don't talk C myself 
though ;)

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




[PHP] bigendian vs littleendian

2002-03-21 Thread Mika Tuupola


How can I make 

$double = pack(d,   $val);

to produce same value when run on bigendian host as what
it would result when running in a littleendian host?

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Apache

2002-03-21 Thread Mika Tuupola

On Fri, 22 Mar 2002, Jason Wong wrote:

 No, he doesn't want apache to *list* files in that directory but still to be 
 able to serve files *from* that directory.

Just add an empty index file?

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




[PHP] Forcing little endian with pack(d);

2002-03-20 Thread Mika Tuupola


http://www.php.net/manual/en/function.pack.php

The manual page describes format string d as:

d double (machine dependent size and representation).

Is there an easy way of forcing the binary to be representated
little endian even with hosts which are big endian (undocumented
format string for example?).


-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Timing PHP

2002-03-18 Thread Mika Tuupola

On Mon, 18 Mar 2002, Stig Kronback wrote:

 I need to see how long it takes for my php-scripts to
 execute, what can I do, doesn't PHP include a function
 that will show that information?

PEAR has a benchmark class which does just that:

http://chora.php.net/cvs.php/pear/Benchmark

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Saving data with cookies

2002-03-18 Thread Mika Tuupola

On Sun, 17 Mar 2002 [EMAIL PROTECTED] wrote:

 input type=text name=name_of_var[] -- this is an arrayvaraible every 
 field the same name !
 the form will then submit an (one) array, which could be stored in your 
 database
 (For I´m not shure how it will be saved, I would save this array as an
 something separated text.)

serialize() is your friend.

http://www.php.net/manual/en/function.serialize.php


-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] shopping cart question

2002-03-02 Thread Mika Tuupola

On Fri, 1 Mar 2002, Jon Feldhammer wrote:

 The way I see it, there are three options for maintaining state in php
 I've already taken the route of keeping a random session id and putting it
 into a database to track a user/cart  So the only variable i need to track
 is the session id  The three options I know of then are:

Did I understand correctly you are implementing your own
session handling? Why not use PHP's native sessions?

http://wwwphpnet/manual/en/refsessionphp

 search engines like these)  Also, with option 1 you need to have a ?php
 echo ?session_id=$session_id ? type line in every href which is a pain in
 the ass  Option 2 is great, if the user uses cookies, if not, you cannot

This can be automated with --enable-trans-sid

-- 
Mika Tuupola  http://wwwappelsiininet/~tuupola/


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] class effeciency

2002-02-28 Thread Mika Tuupola

On Thu, 28 Feb 2002, Nick Wilson wrote:

 It is only the *properties* that are different in each language class
 not the methods so I'm including all the same methods twice! That
 doesn't seem terribly efficient

There is no need to rewrite the methods See:

http://wwwphpnet/manual/en/keywordextendsphp

-- 
Mika Tuupola  http://wwwappelsiininet/~tuupola/


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] fsockopen and HTTP Authorization

2002-02-28 Thread Mika Tuupola

On Thu, 28 Feb 2002, Bas Jobsen wrote:

 I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to 
 work Who can help?
 $user and $passwd are set well, my code:

I think you can spy from PEAR HTTP_Request class how it
can be done:

http://choraphpnet/cvsphp/pear/HTTP_Request

-- 
Mika Tuupola  http://wwwappelsiininet/~tuupola/


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] SOAP status

2002-02-26 Thread Mika Tuupola

On Mon, 25 Feb 2002, Robert Mena wrote:

 I was wondering if anyone has developed web services
 using SOAP with php.  I'd like to use it in a future
 project but was wondering which  tools (classes,
 exemples) do we have and how stable are they.

PEAR has an ongoin work going on with SOAP. See:

http://chora.php.net/cvs.php/pear/SOAP

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Flash and php

2002-02-24 Thread Mika Tuupola

On Sun, 24 Feb 2002, Martin wrote:

 I was wondering if there is some php-support to generate
 flash-animations in general.

http://www.php.net/manual/en/ref.swf.php
http://www.php.net/manual/en/ref.ming.php

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP] Re: Creating methods runtime

2002-02-22 Thread Mika Tuupola

On Thu, 21 Feb 2002, Matthew J Gray wrote:

 No there really isn't.  I wrote an extension that does it for me, but
 I am waiting to see what the second zend engine will have for this
 rather that using my hack.  Maybe check the Zend Engine 2 mailing list
 to see what the future may hold.

Is you extension available somewhere? Having this option
would save me a lot of coding and AFAIK Zend 2 is not in 
quite near future yet.

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/


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




Re: [PHP-CVS] cvs: php4 /pear/Experimental/Image color_helper.php

2001-03-28 Thread Mika Tuupola

On Wed, 28 Mar 2001, Ulf Wendel wrote:

   I'm not sure where I should place this, lets wait for the next classes
   (gtext, gbutton) before we take care on the correct directory structure so
   we can see if it's worth it's own directory.

There is allready the Image folder in PEAR. Maybe there
and rename the class to something like Image_Color. The
text and button classes could then be Image_Text and Image_Button?

-- 
Mika Tuupola  http://www.appelsiini.net/~tuupola/



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




[PHP-CVS] cvs: php4 /pear/Image Remote.php

2001-01-16 Thread Mika Tuupola

tuupola Tue Jan 16 06:59:01 2001 EDT

  Modified files:  
/php4/pear/ImageRemote.php 
  Log:
  
  Fixed the vim rules.
  
  
Index: php4/pear/Image/Remote.php
diff -u php4/pear/Image/Remote.php:1.2 php4/pear/Image/Remote.php:1.3
--- php4/pear/Image/Remote.php:1.2  Tue Jan  9 17:01:55 2001
+++ php4/pear/Image/Remote.php  Tue Jan 16 06:59:01 2001
@@ -1,6 +1,6 @@
 ?php
 
-/* vim: set ts=4 sw=4: */
+/* vim: set expandtab tabstop=4 shiftwidth=4: */
 // +--+
 // | PHP version 4.0  |
 // +--+
@@ -17,7 +17,7 @@
 // | Authors: Mika Tuupola [EMAIL PROTECTED]   |
 // +--+
 //
-// $Id: Remote.php,v 1.2 2001/01/10 01:01:55 ssb Exp $
+// $Id: Remote.php,v 1.3 2001/01/16 14:59:01 tuupola Exp $
 
 define("GIF_SIGNATURE_LENGTH",  3);
 define("GIF_VERSION_LENGTH",3);
@@ -89,7 +89,7 @@
  *only http.
  *
  * @author Mika Tuupola [EMAIL PROTECTED]
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 
 function Image_Remote($input) 



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




[PHP-CVS] cvs: php4 /pear Makefile.in

2001-01-12 Thread Mika Tuupola

tuupola Fri Jan 12 01:13:56 2001 EDT

  Modified files:  
/php4/pear  Makefile.in 
  Log:
  
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  Added Image_Remote class.
  
  
Index: php4/pear/Makefile.in
diff -u php4/pear/Makefile.in:1.60 php4/pear/Makefile.in:1.61
--- php4/pear/Makefile.in:1.60  Thu Jan 11 10:38:26 2001
+++ php4/pear/Makefile.in   Fri Jan 12 01:13:55 2001
@@ -18,6 +18,7 @@
DB \
File \
HTML \
+   Image \
Log \
Mail \
Math \
@@ -51,6 +52,7 @@
File/SearchReplace.php \
HTML/Form.php \
HTTP.php \
+   Image/Remote.php \
Log.php \
Log/composite.php \
Log/file.php \



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