php-general Digest 15 Apr 2005 05:53:48 -0000 Issue 3398

2005-04-14 Thread php-general-digest-help
php-general Digest 15 Apr 2005 05:53:48 - Issue 3398 Topics (messages 213099 through 213126): Re: Directory perms 213099 by: Jason Wong Getting a contract 213100 by: Ryan A 213102 by: chris 213108 by: Miles Thompson 213110 by: Brent Baisley Reverse

Re: [PHP] Re: User Management

2005-04-14 Thread Dasmeet Singh
This seems to be something exactly as i was looking for.. Can you pls send me some tutorials/examples/links on how to implement it? Regards, Dasmeet http://hostwindow.info Eugene Voznesensky wrote: Yoy can try this one: http://pear.php.net/package/LiveUser Hi! I am developing an applicaton in

[PHP] Re: mod_rewrite from .htaccess

2005-04-14 Thread Dasmeet Singh
Matthew Weier O'Phinney wrote: * Amir Mohammad Saied [EMAIL PROTECTED]: I want to use mod_rewrite patterns, but i have not access to the httpd.conf so i think i should use .htaccess, but the patterns don't work properly there, have my admin should set any settings in the httpd.conf? I use

RE: [PHP] PHP 4 to PHP 5 Migration shortcut

2005-04-14 Thread Rob Agar
From: Rasmus Lerdorf Chances are pretty good that you won't have to change anything. Step 1 would be to simply try running your existing code under PHP5 and see what breaks. Unless you have complicated OO code or you are using the domxml extension, you likely won't need to change

[PHP] Image and PHP

2005-04-14 Thread Mario de Frutos Dieguez
I have a page where i place an image but i want when i show the image delete it. How can i do this? -- Mario de Frutos Dieguez División de Ingeniería del Software y Comunicaciones CARTIF -Parque Tecnológico Boecillo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP 4 to PHP 5 Migration shortcut

2005-04-14 Thread Rob Agar
...and trying to re-assign $this inside a class. which is perverse and shouldn't have been allowed in the first place =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-14 Thread Chris Shiflett
Richard Lynch wrote: There aren't a whole lot of shared servers that are running a different pool of httpd for each user, nor using only CGI with different user ids, nor... I daresay that unless you are setting up a shared server yourself, rather than renting space on one, you'll be hard-pressed

Re: [PHP] Dedicated server

2005-04-14 Thread Chris Shiflett
Ryan A wrote: Can anyone recommend a host for dedicated hosting? Hopefully one that you have used. Please reply offlist so as not to disturb anyone else. This doesn't seem entirely off-topic to me. I use and can happily recommend these guys: http://aspextra.net/ This is for fully-managed hosting

Re: [PHP] Image and PHP

2005-04-14 Thread Petar Nedyalkov
On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de Frutos Dieguez División de Ingeniería del Software y

Re: [PHP] Image and PHP

2005-04-14 Thread Mario de Frutos Dieguez
Petar Nedyalkov escribió: On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de Frutos Dieguez División de

Re: [PHP] a new it company

2005-04-14 Thread Rory Browne
Dan: My apologies for any negitive psychological effects my reply to the password sharing thread, may have had on you. It was not a case of mistaken identity, but rather a case of replying to the last poster, instead of to the list. gmail has this quick reply box on the bottom, and I clicked on

[PHP] unserialize problem

2005-04-14 Thread Dasmeet Singh
Hi! I am trying to unserialize a serialized array stored in cookie... I am using following code : echo(Welcome to Members Areabr); echo(br$loginbr); $m_l_d=unserialize($login); echo $m_l_d; echo($m_l_d[0], $m_l_d[1], $m_l_d[2]); However the output is: Welcome to Members Area

Re: [PHP] enterprise patterns headache

2005-04-14 Thread Robert Janeczek
On Wed, 13 Apr 2005, Richard Lynch wrote: On Wed, April 13, 2005 2:01 pm, Robert Janeczek said: I can't claim a detailed understanding of what you are doing, and, frankly, it sounds like you are creating a BUNCH of over-engineered headache-inducing code without a good, proven need for it. YMVV.

Re: [PHP] Image and PHP

2005-04-14 Thread Erwin Kerk
Mario de Frutos Dieguez wrote: Petar Nedyalkov escribió: On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de

[PHP] Tomcat and php in Suse 9.2

2005-04-14 Thread Andreas Persson
I have installed tomcat and added php-support with help of the php-servlet but it seem like php cant find any of the extensions installed. Like mysql. I have the php4-mysql package installed. If i run php -i from the commandline its telling me that I have mysql-support and a small php-script

[PHP] Re: unserialize problem

2005-04-14 Thread Dasmeet Singh
Dasmeet Singh wrote: Hi! I am trying to unserialize a serialized array stored in cookie... I am using following code : echo(Welcome to Members Areabr); echo(br$loginbr); $m_l_d=unserialize($login); echo $m_l_d; echo($m_l_d[0], $m_l_d[1], $m_l_d[2]); However the output is: Welcome to Members Area

Re: [PHP] unserialize problem

2005-04-14 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! I am trying to unserialize a serialized array stored in cookie... I am using following code : echo(Welcome to Members Areabr); echo(br$loginbr); $m_l_d=unserialize($login); echo $m_l_d; echo($m_l_d[0], $m_l_d[1], $m_l_d[2]); However the output is: Welcome to Members Area

RE: [PHP] Image and PHP

2005-04-14 Thread YaronKh
Hi Mario you can use something like img src=blabla.jpg ONLOAD=delete_pic.php?fn=blabla.jpg And in delete_pic.php write something like: unlink ($_GET['fn']); -Original Message- From: Mario de Frutos Dieguez [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 10:53 AM To: [EMAIL

Re: [PHP] unserialize problem

2005-04-14 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Hi! I am trying to unserialize a serialized array stored in cookie... I am using following code : echo(Welcome to Members Areabr); echo(br$loginbr); $m_l_d=unserialize($login); echo $m_l_d; echo($m_l_d[0], $m_l_d[1], $m_l_d[2]); However the output is:

RE: [PHP] Image and PHP -Correction

2005-04-14 Thread YaronKh
Correction : u need to use a hidden frame or iframe using style=display:none let call the hidden frame myhframe now in you code write img src=blabla.jpg onload = myhframe.location = 'delete_pic.php?fn=blabla.jpg' -Original Message- From: Sent: Thursday, April 14, 2005 1:20 PM To:

Re: [PHP] Creating intelligent forms

2005-04-14 Thread James Kaufman
On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote: Hello, all - I had some questions regarding the creation of intelligent forms - forms that take data, and then parse it for errors, real data, etc etc. The first idea I had was to make a function to display the form. When the form is

[PHP] regular expressions

2005-04-14 Thread pete M
I've been messing about with this for a while to no avail.. so help would be appreciates I'm new to regular expressions and tried this with preg_replace, now I'm using eregi_replace ! here's the text $txt = 'span style=font-size: 10pt; font-family: Times New Roman;Itbr / blahh blahhh blahhh

Re: [PHP] regular expressions

2005-04-14 Thread Erwin Kerk
pete M wrote: I've been messing about with this for a while to no avail.. so help would be appreciates I'm new to regular expressions and tried this with preg_replace, now I'm using eregi_replace ! here's the text $txt = 'span style=font-size: 10pt; font-family: Times New Roman;Itbr / blahh

[PHP] imagecopyresample

2005-04-14 Thread gareth
I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $image_p = imagecreatetruecolor($new_width, $new_height);

Re: [PHP] regular expressions

2005-04-14 Thread pete M
The pattern $pattern = 'font\-size:.*?\;'; throwns the error eregi_replace(): REG_BADRPT Erwin Kerk wrote: pete M wrote: I've been messing about with this for a while to no avail.. so help would be appreciates I'm new to regular expressions and tried this with preg_replace, now I'm using

Re: [PHP] regular expressions

2005-04-14 Thread Erwin Kerk
pete M wrote: The pattern $pattern = 'font\-size:.*?\;'; throwns the error eregi_replace(): REG_BADRPT Well, this should work (tested and all ) $pattern=|font\-size:.*?;|si; $txt = preg_replace( $pattern, , $txt ); Erwin --

Re: [PHP] regular expressions

2005-04-14 Thread pete M
Thankyou Diolch danka There seems to be a big difference between eregi_replace() and preg_replace Am reding teh Sams - Regular Expressions in 10 mins bu the syntax seems ot be different. !! regards pete Erwin Kerk wrote: pete M wrote: The pattern $pattern = 'font\-size:.*?\;'; throwns the error

[PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
Hi All, I've installed phpmyadmin and have a snort database in mysql, but, it doesn't appear in phpmyadmin. I know it's there, because base is using it to display info from snort on the machine. Why wouldn't it appear in phpmyadmin. It appears with the same set up on my work test machine. What

[PHP] RegEx help

2005-04-14 Thread Bosky, Dave
I wanted to create a regex that force a PHP form text field to meet the following requirements: a. Must contain an 1 uppercase letter. [A-Z] b. Must contain 1 digit. [0-9] c. Must be a minimum of 7 characters in length. {7} I'm not sure of how to build the correct syntax for using all 3

RE: [PHP] imagecopyresample

2005-04-14 Thread Kim Madsen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 3:04 PM I get my image resized. (functions.php is where all my fuctions are stored) However if I place anything after the imageresize it doesnt show that. Eg echohello'; does nothing. If anything goes before it

[PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
Hi all, I was wondering if anyone has any experience with building large scale multi-language websites with PHP/MySQL? The plan is to have the core site created in English and then translators can login to create the various language versions (we'll have 6 languages to start with

Re: [PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
Mark Sargent wrote: Hi All, I've installed phpmyadmin and have a snort database in mysql, but, it doesn't appear in phpmyadmin. I know it's there, because base is using it to display info from snort on the machine. Why wouldn't it appear in phpmyadmin. It appears with the same set up on my work

RE: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Kim Madsen
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 3:46 PM To: php-general@lists.php.net Subject: [PHP] Any experience with multi-language PHP sites? Hi all, I was wondering if anyone has any experience with building large

Re: [PHP] RegEx help

2005-04-14 Thread Philip Hallstrom
On Thu, 14 Apr 2005, Bosky, Dave wrote: I wanted to create a regex that force a PHP form text field to meet the following requirements: a. Must contain an 1 uppercase letter. [A-Z] b. Must contain 1 digit. [0-9] c. Must be a minimum of 7 characters in length. {7} if ( ereg([A-Z0-9], $field)

RE: [PHP] Image and PHP

2005-04-14 Thread Mike
I have a page where i place an image but i want when i show the image delete it. How can i do this? What I would probably do is create a cleanup function/class in the script that gets a list of all the images in the directory in question and deletes anything that more then, say, an hour

Re: [PHP] Image and PHP

2005-04-14 Thread -k.
--- Mario de Frutos Dieguez [EMAIL PROTECTED] wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? Some good suggestions so far but to be a little more explicit this is how you would do it. Essentially you want to have your image tag point

[PHP] Re: Dedicated server (0T)

2005-04-14 Thread Ryan A
Hi, First of all, - Thank you! Many of you have replied with links and hosts that you recommend and some that you actually own or resell, most valuable was your experience with them and advise you gave me. I've narrowed it down to just 4 hosts, I have one additional question if you dont mind;

Re: [PHP] imagecopyresample

2005-04-14 Thread gareth
On Apr 14, 2005, at 14:46, Kim Madsen wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 3:04 PM I get my image resized. (functions.php is where all my fuctions are stored) However if I place anything after the imageresize it doesnt show that. Eg echohello';

Re[2]: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
Hello Kim, Thursday, April 14, 2005, 2:59:05 PM, you wrote: KM Look in the archives, it´s less than 2 weeks since this was KM discussed (again :-) If you're referring to the subject Multilingual Web application - how to? (the only multi-language thread in this mailing list since the start of

Re: [PHP] RegEx help

2005-04-14 Thread M. Sokolewicz
Philip Hallstrom wrote: On Thu, 14 Apr 2005, Bosky, Dave wrote: I wanted to create a regex that force a PHP form text field to meet the following requirements: a. Must contain an 1 uppercase letter. [A-Z] b. Must contain 1 digit. [0-9] c. Must be a minimum of 7 characters in length. {7} if (

Re[2]: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
Hello Jochem, Thursday, April 14, 2005, 3:37:07 PM, you wrote: JM step 1: get a thorough understanding of unicode UTF(8) JM step 2: get familiar with the mb_*() functions and the iconv extension JM step 3: step up your scripts and DB to output/store UTF JM step 4: rinse/repeat. Thanks, I have

Re: [PHP] RegEx help

2005-04-14 Thread Tom Rogers
Hi, Thursday, April 14, 2005, 11:47:13 PM, you wrote: BD I wanted to create a regex that force a PHP form text field to meet the BD following requirements: BD a. Must contain an 1 uppercase letter. [A-Z] BD b. Must contain 1 digit. [0-9] BD c. Must be a minimum of 7 characters in length. {7}

Re: [PHP] Creating intelligent forms

2005-04-14 Thread Jochem Maas
James Kaufman wrote: On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote: Hello, all - I had some questions regarding the creation of intelligent forms - forms that take data, and then parse it for errors, real data, etc etc. The first idea I had was to make a function to display the form. When

[PHP] Directory perms

2005-04-14 Thread Reynier Perez Mira
How I can obtain directory perms and how I know if they are RW on Win32 plattforms? I find into PHP Manual but I only obtain function fileperms wich have only for files and not for directories Regards Reynier Pérez Mira 3ero. Ing. Informática Entre más inteligente me siento, más me doy

Re: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Jochem Maas
Richard Davey wrote: Hello Kim, Thursday, April 14, 2005, 2:59:05 PM, you wrote: KM Look in the archives, it´s less than 2 weeks since this was KM discussed (again :-) If you're referring to the subject Multilingual Web application - how to? (the only multi-language thread in this mailing list

[PHP] header()

2005-04-14 Thread Martín Marqués
I'm having a bit of a problem understanding how the header() sends the HTTP headers. Here's what I want to do: 1) Send a PDF file which will be printed in the client (the client will read it and print it if he wants to. 2) Redirect to the main page of the aplication. Now, what happens to me

[PHP] Re: header()

2005-04-14 Thread Matthew Weier O'Phinney
* Martín Marqués martin@bugs.unl.edu.ar: I'm having a bit of a problem understanding how the header() sends the HTTP headers. Here's what I want to do: 1) Send a PDF file which will be printed in the client (the client will read it and print it if he wants to. 2) Redirect to the main

Re: [PHP] RegEx help

2005-04-14 Thread Philip Hallstrom
I wanted to create a regex that force a PHP form text field to meet the following requirements: a. Must contain an 1 uppercase letter. [A-Z] b. Must contain 1 digit. [0-9] c. Must be a minimum of 7 characters in length. {7} if ( ereg([A-Z0-9], $field) strlen($field) = 7 ) { print(We have a

Re: [PHP] Directory perms

2005-04-14 Thread Jason Wong
On Thursday 14 April 2005 22:25, Reynier Perez Mira wrote: How I can obtain directory perms and how I know if they are RW on Win32 plattforms? I find into PHP Manual but I only obtain function fileperms wich have only for files and not for directories fileperms() works on files AND directories

[PHP] Getting a contract

2005-04-14 Thread Ryan A
Hey, There was some discussion before this on how much to charge to make a site / set of scripts, which also turned into advise from the more experienced members of this list...good advise I might add. Note: This thread is not directly a php thread but related in a big way to what most of us do,

[PHP] Reverse plural forms to singular for search

2005-04-14 Thread Eugene Voznesensky
I'm trying to reverse plural forms to singular ones and use the result for search [in database]. Is there any third party product to integrate with PHP, or some reliable algorithm? Thank you, Eu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Getting a contract

2005-04-14 Thread chris
Ryan, Write the contract to state the targets as they exist now, the estimated hours and how you will be paid(i.e. - by the hour, milestone, etc...) then when a change is made to the design, simply make an addendum to the original contract and list the changes that are to be done, estimated

[PHP] Re: header()

2005-04-14 Thread chris
But you can design the script to redirect to a page with a JavaScript to open a file(PDF) by using the target=_new and then it redirects to the home page. CJ Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Martín Marqués martin@bugs.unl.edu.ar: I'm having

[PHP] Insert Chars into a string

2005-04-14 Thread PartyPosters
Hello, I have a variable that contains a filename, I want to be able to insert the date and time just before for the .jpg for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th of January 2003 05:51:38 AM.jpg (or if anyone else knowshow to write the time and time all in

Re: [PHP] RegEx help

2005-04-14 Thread trlists
On 15 Apr 2005 Tom Rogers wrote: BD a. Must contain an 1 uppercase letter. [A-Z] BD b. Must contain 1 digit. [0-9] BD c. Must be a minimum of 7 characters in length. {7} BD I'm not sure of how to build the correct syntax for using all 3 BD requirements together. easier done seperately I

RE: [PHP] Insert Chars into a string

2005-04-14 Thread Mike Johnson
From: PartyPosters [mailto:[EMAIL PROTECTED] Hello, I have a variable that contains a filename, I want to be able to insert the date and time just before for the .jpg for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th of January 2003 05:51:38 AM.jpg (or if anyone

RE: [PHP] Insert Chars into a string

2005-04-14 Thread Mike Johnson
From: Mike Johnson [mailto:[EMAIL PROTECTED] From: PartyPosters [mailto:[EMAIL PROTECTED] Hello, I have a variable that contains a filename, I want to be able to insert the date and time just before for the .jpg for example if my filename is 'pic.jpg' I want it to read

Re: [PHP] Getting a contract

2005-04-14 Thread Miles Thompson
Keep this in mind - I'll repeat it: WE ARE DOING INTELLECTUAL WORK, not painting walls. The simplest request can have unknown ramifications. I was lucky - in hindsight - got burned that way after I'd been in business about 6 weeks. Wrote up one of those beautiful proposals which outline

[PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Reynier Perez Mira
Hi: I'm try to change de value for the PHP config var upload_tmp_dir with objetive to make an file upload an access more easy to superglobal array $_FILES['fichero']['tmp_name']. Into my php file just in the start I have this: ini_set(upload_tmp_dir,C:\\PHP5\\tmp\\); The directory exists

Re: [PHP] Getting a contract

2005-04-14 Thread Brent Baisley
For larger projects, I always charged a contingency fee, maybe $100-$500, depending on the scope. This money basically pays you to write up a project document. After all, you are spending your valuable time on something for them. If they accept your proposal to write the application, the money

Re: [PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Marek Kilimajer
Reynier Perez Mira wrote: Hi: I'm try to change de value for the PHP config var upload_tmp_dir with objetive to make an file upload an access more easy to superglobal array $_FILES['fichero']['tmp_name']. Into my php file just in the start I have this: ini_set(upload_tmp_dir,C:\\PHP5\\tmp\\);

Re: [PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Jason Wong
On Friday 15 April 2005 02:11, Reynier Perez Mira wrote: I'm try to change de value for the PHP config var upload_tmp_dir with objetive to make an file upload an access more easy to superglobal array $_FILES['fichero']['tmp_name']. Into my php file just in the start I have this:

[PHP] Streaming video BLOBs from MySQL

2005-04-14 Thread J J
I have a case where video files (mov, flv, etc) have been stored in a MySQL database as blobs. I'm loading them into a flash video player and everything works fine except it takes longer it seems and it doesn't allow streaming the actual video. If I load the same videos with a direct link to the

Re: [PHP] imagecopyresample

2005-04-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $image_p =

Re: [PHP] Storing password in cookie

2005-04-14 Thread trlists
On 13 Apr 2005 Richard Lynch wrote: I have what I consider a MINIMUM standard level of security for any site that asks for a password. That would include: Not storing the password *ANYWHERE* in clear-text. Not in database. Not in $_SESSION Not in COOKIES Agreed. I see less risk

Re: [PHP] Storing password in cookie

2005-04-14 Thread trlists
On 14 Apr 2005 Chris Shiflett wrote: When a user enters a credit card number, there may likely be a verification step before the actual purchase is made. It's better to keep this number on the server (in the session data store) than to unnecessarily expose it over the Internet again (SSL

[PHP] pixels per character

2005-04-14 Thread Christian Calloway
Hey all, trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it, as returned widths are to small are long. Any ideas?

[PHP] Best practices for set/get methods

2005-04-14 Thread Tim Boring
Does anyone have suggestions/ideas about best practices for writing set/get methods in PHP5? There are two basic ways I've seen this done, which I've provided examples of below. Method #2 is obviously the easier way, but that doesn't mean it may be the best way. I'm curious to read people's

RE: [PHP] pixels per character

2005-04-14 Thread Chris W. Parker
Christian Calloway mailto:[EMAIL PROTECTED] on Thursday, April 14, 2005 1:59 PM said: trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just

Re: [PHP] pixels per character

2005-04-14 Thread Greg Donald
On 4/14/05, Christian Calloway [EMAIL PROTECTED] wrote: trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it, as returned

Re: [PHP] Best practices for set/get methods

2005-04-14 Thread Greg Donald
On 4/14/05, Tim Boring [EMAIL PROTECTED] wrote: Does anyone have suggestions/ideas about best practices for writing set/get methods in PHP5? There are two basic ways I've seen this done, which I've provided examples of below. Method #2 is obviously the easier way, but that doesn't mean it may

Re: [PHP] Best practices for set/get methods

2005-04-14 Thread Rasmus Lerdorf
Tim Boring wrote: Does anyone have suggestions/ideas about best practices for writing set/get methods in PHP5? There are two basic ways I've seen this done, which I've provided examples of below. Method #2 is obviously the easier way, but that doesn't mean it may be the best way. I'm curious to

Re: [PHP] imagecopyresample

2005-04-14 Thread gareth
On Apr 14, 2005, at 21:37, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) =

[PHP] Sessions and frames

2005-04-14 Thread Gustav Wiberg
Hi there! I have built my site into frames. I want to transfer a session-variable from my left frame to my right frame... How do I do this best? Thoughts? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions and frames

2005-04-14 Thread Chris W. Parker
Gustav Wiberg mailto:[EMAIL PROTECTED] on Thursday, April 14, 2005 4:00 PM said: I have built my site into frames. I want to transfer a session-variable from my left frame to my right frame... How do I do this best? Thoughts? You do this best by setting some session data on one page

[PHP] Re: pixels per character

2005-04-14 Thread Amir Mohammad Saied
We have to kinds of fonts, One the fonts that size of all thier characters are equal such as Courier, but in the other fonts etc. (Verdana) all of characters haven't an equal width -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php