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

2005-04-15 Thread Burhan Khalid
Richard Davey wrote: Hi all, [ snipped ] I'm interested in knowing of any problems I should be looking out for while designing this - what happens to Japanese characters for example when stored in a MySQL text field? Any issues re: displaying them again once extracted? Or on validating

RE: [PHP] Are sessions unreliable?

2005-04-15 Thread Warren Vail
I have had similar things happen but in every case it turned out to be a program bug in my code. It was usually something I looked at over and over and I saw the way it was supposed to work, but because I missed a detail it was not working that way. I would suggest you find someone to look over y

[PHP] Are sessions unreliable?

2005-04-15 Thread Dasmeet Singh
Hi! I store some user info in sessions.. it works fine but sometimes what happens is that the user id stored in session get changed.. and it happens only sometimes.. Can it be browser problem? or this is common? Thanks - Free cPanel Web Hosting http://hostwindow.info/web-hosting/2/free-cpanel-w

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

2005-04-15 Thread Dasmeet Singh
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

[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 http://port

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: "); print("\n"); print("Color\n"); print("Color swatch\n"); print("'Opposite' swatch\n"); print("'Opposite' color\n"

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_co

[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

[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] 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] 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 pr

[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 $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}\n"; echo "base name = ", basename($filenm)

[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 wo

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

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 in

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 possi

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 = mysql_escape_string($_POST['P

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. A

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 lin

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] 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 tab

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

[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 wor

[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 p

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: http://www.php.net/unsu

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 fro

[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 O

[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] 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

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] > > 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) > { >

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

2005-04-15 Thread Chris W. Parker
[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

[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 Mailin

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 Diegue

[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 e

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 [mailto

[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,

[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 (http://www.google.com/custom?q=barcode&hl=en&lr=&ie=UTF-8&oe=ISO

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 fu

[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 incomi

[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 HTTP/1.1

[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

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. The

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 ar

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($

[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?

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

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). > > R

[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 t