php-general Digest 15 Apr 2005 17:59:02 -0000 Issue 3399

2005-04-15 Thread php-general-digest-help
php-general Digest 15 Apr 2005 17:59:02 - Issue 3399 Topics (messages 213127 through 213152): Re: Any experience with multi-language PHP sites? 213127 by: Kim Madsen general 213128 by: Balwant Singh php and linux shell script 213129 by: Balwant Singh 213141

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

2005-04-15 Thread Kim Madsen
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 4:26 PM 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

[PHP] general

2005-04-15 Thread Balwant Singh
hi and greetings from India to all of you... my name is balwant, i m from Noida, India. hope there are many from India... through this email, i request all of you, who are from India to send me your contact details like email, address and phone numbers so that we can be in touch whenever

[PHP] php and linux shell script

2005-04-15 Thread Balwant Singh
hello, 1) first of all i would like to inform you that i have made a PHP script which also have some amount of linux shell script in it for converting emails from EVOLUTION to MOZILA THUNDERBIRD just by executing this script. if anybody need it, do let me know, i will send the same. 2) i am

[PHP] Levels of Site Protection

2005-04-15 Thread R. Van Tassel
I'm working on a website for a musical outfit where different levels of access are required depending on the specific section. Writers will have access to a section of the site where they can listen to an entire album (for review). Radio personnel will have access to a section of the site where

Re: [PHP] Levels of Site Protection

2005-04-15 Thread Petar Nedyalkov
On Friday 15 April 2005 10:37, R. Van Tassel wrote: I'm working on a website for a musical outfit where different levels of access are required depending on the specific section. Writers will have access to a section of the site where they can listen to an entire album (for review). Radio

FW: [PHP] Reverse plural forms to singular for search

2005-04-15 Thread Mark Rees
Eugene, your reply-to address is set -Original Message- From: Mark Rees Sent: 15 April 2005 09:08 To: 'Eugene Voznesensky' Subject: RE: [PHP] Reverse plural forms to singular for search That sounds like a nightmare! Assuming you are talking about English, you might be able to make some

[PHP] diffence between two numbers...

2005-04-15 Thread Tristan . Pretty
I need to know the difference between two numbers... eg: $a = 7; $b = 27; somefunction($a, $b) // outputs 20 $a = 10; $b = 12; somefunction($a, $b) // outputs 2 etc... does that exist?

Re: [PHP] diffence between two numbers...

2005-04-15 Thread Petar Nedyalkov
On Friday 15 April 2005 13:35, [EMAIL PROTECTED] wrote: I need to know the difference between two numbers... eg: $a = 7; $b = 27; somefunction($a, $b) // outputs 20 $a = 10; $b = 12; somefunction($a, $b) // outputs 2 function difference ($a, $b) { return (max($a, $b) -

Re: [PHP] pixels per character

2005-04-15 Thread Marek Kilimajer
Christian Calloway wrote: 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

Re: [PHP] Tomcat and php in Suse 9.2

2005-04-15 Thread Dan Rossi
I noticed you never had a reply for this, its probably because this is non standard, or totally not heard of. What I would do, (even though I have yet to try this), is run php standard as a module in apache, but then run the tomcat connector jk or jk2 into apache, so it will run seamlessly.

[PHP] How to unset a post variable

2005-04-15 Thread Mario de Frutos Dieguez
Hi! I have another little question hehe :D, i have a page with a form where the user insert data and can click in a new,edit or delete button. I've make that when a button is clicked the page refresh and in the head of the page i have conditions like this: if ($_POSt[buttonNew]!=) { insert

[PHP] cant get data

2005-04-15 Thread kyriacos sakkas
Hi all, I have a problem getting the data from a post request. I have tried $_POST and $HTTP_RAW_POST_DATA and they appear to be completely empty. the always_populate_raw_post_data directive is set to on. Below is the incoming data as captured by ethereal: POST /cyprus/reply.php

[PHP] Re: cant get data - Solved

2005-04-15 Thread kyriacos sakkas
Solved getallheaders() worked. Kyriacos Sakkas wrote: Hi all, I have a problem getting the data from a post request. I have tried $_POST and $HTTP_RAW_POST_DATA and they appear to be completely empty. the always_populate_raw_post_data directive is set to on. Below is the incoming

Re: [PHP] php and linux shell script

2005-04-15 Thread Rory Browne
I don't think you'll find anything in PHP as simple as the shell script version of dialog, but you may be able to bang something together like that using ncurses. Probably handier if your time is more important than the machines, to just use the shell version using one of the Program Executions

[PHP] Barcodes

2005-04-15 Thread Mike Smith
I just ordered a CueCat from eBay to play with reading Barcodes. Of course we'll use a Symbol or some other reader when we implement this in production, but I thought this would be a start. There are several classes at phpclasses.org

[PHP] Re: How to unset a post variable

2005-04-15 Thread Nieko Maatjes
On Fri, 15 Apr 2005 14:08:36 +0200, Mario de Frutos Dieguez [EMAIL PROTECTED] wrote: My question is, how can i unset $_POST[buttonNew] or leave it empty because when the user refresh the page make insert commans again because the $_POST[buttonNew] arent empty. The browser sends $_POST, you

RE: [PHP] Re: How to unset a post variable

2005-04-15 Thread Mark Rees
Your best bet is to check that the data has not already been inserted rather than try to fiddle with the post: Don't know what db you are using but something like IF NOT EXISTS (SELECT X FROM Y WHERE Z=1) INSERT INTO Y VALUES X Cheers Mark -Original Message- From: Nieko Maatjes

[PHP] configure problem on solaris 2

2005-04-15 Thread Heim, Stefan
Hello, I'm having trouble installing php.4.3.11 ub Solaris8: ./configure and it is this promt infinitely: checking host system type...sparc-sun-solaris2.8 I see in on ather window the following processes: 25263 pts/10 S 0:00 /bin/sh ./configure 25323 pts/10 S 0:00 /bin/sh ./build/shtool

Re: [PHP] How to unset a post variable

2005-04-15 Thread Angelo Zanetti
well this might help, you can see the referrer page from which the current one was accessed. this is javascript though but it might help depending on your situation. cheers Angelo Zanetti Z Logic [c] +27 72 441 3355 [t] +27 21 464 1363 [f] +27 21 464 1371 www.zlogic.co.za Mario de Frutos

[PHP] Re: Barcodes

2005-04-15 Thread Mike Smith
Thanks Jason, I'll pass along any info I come across. I can generate barcodes easily enough. I guess I'll wait until I get the CueCat and see what troubles I run into. Our suppliers seem willing to cooperate in terms of putting whatever barcode we tell them to. Thanks, Mike -- PHP General

RE: [PHP] diffence between two numbers...

2005-04-15 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Friday, April 15, 2005 3:35 AM said: $a = 7; $b = 27; somefunction($a, $b) // outputs 20 etc... does that exist? function difference($a, $b) { return abs($a-$b); } Chris. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] diffence between two numbers...

2005-04-15 Thread Petar Nedyalkov
On Friday 15 April 2005 19:01, Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Friday, April 15, 2005 3:35 AM said: $a = 7; $b = 27; somefunction($a, $b) // outputs 20 etc... does that exist? function difference($a, $b) { return abs($a-$b); }

[PHP] Amazon/eBay API

2005-04-15 Thread Brian Dunning
Does anyone know of any PHP classes for processing the Amazon or eBay XML feeds? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Magpie with a db cache?

2005-04-15 Thread Brian Dunning
Anyone know if it's possible to use Magpie (or similar) using MySQL for the caching instead of text files? I couldn't find anything in their docs. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP, SDL and OpenGL

2005-04-15 Thread Reynier Perez Mira
Hi list: I'm receive a theme class call Computers Graphics in wich my and my friends programming making use of OpenGL library. Few day ago I have a brilliiant or an stupid idea to narrate to my teacher if I can make my final course project with PHP. They tell me that is possible always I use

Re: [PHP] dynamic image will not print properly

2005-04-15 Thread DuSTiN KRySaK
I got it figured out finally! It is so stupid with what the issue was... My image was being created exactly as it should have been - and the code was fine. Now where my issue was: I had a line of code in there that was to prevent people from calling the script directly (had to be referred

Re: [PHP] Amazon/eBay API

2005-04-15 Thread Matthew Fonda
Brian Dunning wrote: Does anyone know of any PHP classes for processing the Amazon or eBay XML feeds? There are two PEAR classes which handle both of these things, Services_Ebay and Services_Amazon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Dasmeet Singh
Hi! I use a page to authorize a user and based on certain criterias (user group etc) include a file in another directory (named private)... Everything is working fine but the problem is anyone goign directly to private/includefile.php can run the script without authorising themselves... Is it

[PHP] Mysql insert problems

2005-04-15 Thread Frank Miller
All, I have a form which submits technical requests. It worked fine on an old linux box using Mysql 3 series but recently we switched to windows 2003 server SP1 using Mysql 4.1.10. It was doing this before the service pack. I get the form values and then insert them into a table. Sometimes it

RE: [PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Mike
directly to private/includefile.php can run the script without authorising themselves... Is it possible to set folder permission such that files inside it cant be open directly but could be included? Can you just give read permissions -only- to the user that PHP runs as and not these

Re: [PHP] Mysql insert problems

2005-04-15 Thread John Nichel
Frank Miller wrote: All, I have a form which submits technical requests. It worked fine on an old linux box using Mysql 3 series but recently we switched to windows 2003 server SP1 using Mysql 4.1.10. It was doing this before the service pack. I get the form values and then insert them into a

Re: [PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! I use a page to authorize a user and based on certain criterias (user group etc) include a file in another directory (named private)... Everything is working fine but the problem is anyone goign directly to private/includefile.php can run the script without authorising

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-15 Thread Marek Kilimajer
J J wrote: 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

RE: [PHP] Amazon/eBay API

2005-04-15 Thread Warren Vail
There is a PHPNuke (web portal application) module that will allow you to open an Amazon Store on your website. NukeAmazon http://www.PrecioGasolina.com/ I'm still looking for an eBay feed, I think the barrier there is that I heard eBay charges some big bucks to be able to access the interface.

Re: [PHP] Mysql insert problems

2005-04-15 Thread Andy Pieters
Hi Whilst you are searching the net, you might also want to search for 'sql injection'. This is no joke! Please use the mysql_escape_string on each variable you get from the user side. In your example $Email = mysql_escape_string($_POST['Email']); $Phonenumber =

Re: [PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Philip Hallstrom
I use a page to authorize a user and based on certain criterias (user group etc) include a file in another directory (named private)... Everything is working fine but the problem is anyone goign directly to private/includefile.php can run the script without authorising themselves... Is it

Re: [PHP] Mysql insert problems

2005-04-15 Thread Philip Hallstrom
On Fri, 15 Apr 2005, Frank Miller wrote: All, I have a form which submits technical requests. It worked fine on an old linux box using Mysql 3 series but recently we switched to windows 2003 server SP1 using Mysql 4.1.10. It was doing this before the service pack. I get the form values and then

Re: [PHP] php and linux shell script

2005-04-15 Thread Andy Pieters
On Friday 15 April 2005 08:52, Balwant Singh wrote: 2) i am also exploring possibilities of using linux dialog boxes (used in shell scripting) with PHP. has anybody tried it, may please advise me how to call dialog boxes through PHP in CLI. also please share with me if u have information on

[PHP] create file download page for firefox using net-transport thru flashGot?

2005-04-15 Thread Ginger Cheng
Hello, PHP gurus, As a PHP newbie, I am trying to create a PHP page that generates and force dowload a file depending on user's input. Attached is the code. I give 's' to 'submit' and double checked that the value is correctly retried and the control flow is right. It works well if I

[PHP] con'td create file download page for firefox using net-transport thru flashGot?

2005-04-15 Thread Ginger Cheng
Hi, Here is the code ?php $filenm = '/var/tmp/'; $s = 1; $q =2; switch( $_POST[submit] ) { case 's': $filenm .= 's.tab'; //create $filenm break; case 'q': $filenm .= 'q.tab'; //create $filenm break; } /* echo file name = {$filenm}br\n; echo base name = ,

[PHP] Font color

2005-04-15 Thread Ryan A
Hey, On our profiles page we are allowing the person to pick their own font color and background image, the font color is picked by a DHTML popup and displays swatches of color, when the user picks the color she wants its html RRGGBB value is automatically inserted... Heres the problemthe

[PHP] processing email

2005-04-15 Thread Florin Andrei
I want to write an application that's almost like a webmail, but not quite. It must receive emails from several mailing lists, store them in a database, allow making annotations, provide some kind of accounts with passwords, etc. It's quite specialized, it cannot be used as a webmail proper, nor a

[PHP] Re: Amazon/eBay API

2005-04-15 Thread Manuel Lemos
Hello, on 04/15/2005 01:56 PM Brian Dunning said the following: Does anyone know of any PHP classes for processing the Amazon or eBay XML feeds? Here you may find classes to provide API to acess Web servers of many sites including Amazon and eBay. http://www.phpclasses.org/browse/class/33.html

[PHP] Re: processing email

2005-04-15 Thread Manuel Lemos
Hello, on 04/15/2005 11:17 PM Florin Andrei said the following: I want to write an application that's almost like a webmail, but not quite. It must receive emails from several mailing lists, store them in a database, allow making annotations, provide some kind of accounts with passwords, etc. It's

Re: [PHP] Font color

2005-04-15 Thread trlists
On 16 Apr 2005 Ryan A wrote: eg: if they pick white I need the heading to be black and vice versa...any way to do this? Well it depends what you mean by opposite, but as a starting approach I would try simply complementing the bits in the RGB value: $opposite_color = $original_color

Re: [PHP] Font color

2005-04-15 Thread trlists
Here is a little code that shows the web-safe colors and their opposites using the algorithm I described in the previous message: html head title Web-safe color 'opposites' /head body ?php # Display color opposites for web colors $weblist = array('00', '33', '66', '99', 'CC',

[PHP] Determining array type

2005-04-15 Thread NSK
We have two kinds of arrays in PHP: $array[name] = George $array[0] = George How can I determine (with a function returning true/false for example) which type of array I am working with? -- NSK (Nikolaos S. Karastathis) Personal Homepage at http://nsk.wikinerds.org/ Owner of