Re: [PHP] PGP

2002-04-29 Thread Richard Lynch
On Sun, 28 Apr 2002, Richard Lynch wrote: On Sat, 27 Apr 2002, Richard Lynch wrote: $test = escapeshellarg($cleartext); exec(cat $test | /usr/bin/pgpe -a -t -f -r '[EMAIL PROTECTED]' . . . ^Kb^Estdin^H^@^@^@ $cleartext is the actual text? What if you used 'echo' instead of 'cat'?

[PHP] reg-ex again

2002-04-29 Thread John Fishworld
I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I' m having problems with the correct regex At the moment I've

Re: [PHP] Changing field size

2002-04-29 Thread Marius Ursache
Anthony Rodriguez a écrit : I've a VARCHAR(4) field that I want to change to a VARCHAR(6) field. What would happen to the existing data in MySQL db? nothing :) read mysql manual Thanks! Tony ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] reg-ex again

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 15:22, John Fishworld wrote: I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I'

[PHP] Re: reg-ex again

2002-04-29 Thread Henrik Hansen
[EMAIL PROTECTED] (John Fishworld) wrote: I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I'

[PHP] text problem.

2002-04-29 Thread r
Greetings all, Special greetings to all my new PHP list pals, you know who you are. Sorry to be so mysterious in the subject line but i dont know how to explain this in one line. ever visit a site and you get this text (Or something like this...heheh) This morning shockingly Bill Gates claims

[PHP] Best BBS

2002-04-29 Thread r
Hey all, This email is not for any questions/suggestions etc but a thank you note. Some time back i posted an email asking if anyone had any recomendation for a BBS system and I got a lot of replies. I thank each and every one of you who wrote in, after checking out the links or software names

[PHP] Re: Date and Time

2002-04-29 Thread Michael Virnstein
seems like you echo an 1 before print $time is called. Look through your code, there must be something printed or echod. Perhaps it's simple some html (?1?php) or something. Regards, Michael Baldey_uk [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all,

Re: [PHP] Re: reg-ex again

2002-04-29 Thread John Fishworld
No the problem is I'm reading a file into an array and then need to change any of the links in the file from relative links to absolute links ! So that my lg_mode.gif gets the full server path in front of it http://www.ltest.com/lg_mode.gif and exactly the same with the other one but of course I

[PHP] Re: Hey PHP PPL - Great Question !!!

2002-04-29 Thread Michael Virnstein
if you need access to your session among different servers, it's the best way to store session data inside a database, so every server can access it easily. The file container is accessible only for local users on the server, at least when you set up normal server configuration and not some nasty

Re: [PHP] text problem.

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 17:44, r wrote: Greetings all, Special greetings to all my new PHP list pals, you know who you are. Sorry to be so mysterious in the subject line but i dont know how to explain this in one line. ever visit a site and you get this text (Or something like

Re: [PHP] text problem.

2002-04-29 Thread Justin French
If you want to do it on a # of char's (the easiest), check out substr() in the manual. Otherwise, to break on a full word, this will do the job: Do your query as per usual, the below assumes your text thing is $fulltext. ? $fulltext = one two three four five six seven eight nine; // config

Re: [PHP] Re: reg-ex again

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 17:10, John Fishworld wrote: No the problem is I'm reading a file into an array and then need to change any of the links in the file from relative links to absolute links ! So that my lg_mode.gif gets the full server path in front of it

[PHP] Java-Object

2002-04-29 Thread Bedilu Habte
Hi everyone, I use the apache FOP tool to transform render an XML-XSL pair to a PDF. The following code shows my trial to perform the transformation and rendering within a php-script. ?php 1.$trtool = new Java(de.smc.util.PDFTransformer); 2.$result = $trtool-renderXmlXsl('data.xml',

[PHP] mail() problem with email mail@dom.com

2002-04-29 Thread fred
Hello, I have a pb with mail() function. my script run ok on a linux but not on a nt: ? ini_set(SMTP, 192.168.0.126); ini_set(sendmail_from, info [EMAIL PROTECTED]); mail(fred [EMAIL PROTECTED], the subject, message); ? On my windows nt server I can only run: ? ini_set(SMTP, 192.168.0.126);

Re: [PHP] Re: reg-ex again

2002-04-29 Thread John Fishworld
Sorry don't think I've explained this very clearly ! :-)) Start again People can enter a url with code in, this gets copied to a different server and read as an array ! At this point, the original server path needs to be added to the links in the copied file. The basics of this do actually

Re: [PHP] lookin for a Menuing System...

2002-04-29 Thread The_RadiX
Yes too true.. Quite well put.. That's why. I haven't read the rest of the posts on this topic yet as there are heaps.. but when I started working on my project with my graphics man we discussed the issue of using JS menus very thoroughly as yes Netscape and IE both have very different

Re: [PHP] Java-Object

2002-04-29 Thread hassan
Hello, Are you sure the method renderXmlXsl() returns the rendered document ?, from the output you get, it sounds like it is not returning anything, y'd better document your self on the java class to see if there is another method to use to get the output pdf file back from it. Regards,

[PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is read into the program using $buffer = fgets(...). This

[PHP] Re: GET question

2002-04-29 Thread Evan
Thanks to all for your kind attention. What I need is exactly what Miguel Cruz wrote. What I wanted to do was a multidelete, eg: I show the content of a table in a php page and near every row I put a checkbox binding its checked value with ID column. When I submit a form I send the form vars to

[PHP] OOP-related question

2002-04-29 Thread heinisch
This is done on PHP 3.0.16 Hi folks, I have a problem with these HTTP_ vars. I have a mainpage, call it main. There is an include which carries several settings and other includes like my abstract db-layer class. I include this in my class-function, which works fine for the most variables but

[PHP] RE:

2002-04-29 Thread John Holmes
PHP cannot open that file. If you’re on a *nix type system, adjust the permissions of the file so that the user that PHP runs as has access to the file. Also, the beginning / is probably causing trouble, because it’s looking from the root of your server for a file named public_html. ---John

Re: [PHP] Java-Object

2002-04-29 Thread Bedilu Habte
Hi Hassen, Are you sure the method renderXmlXsl() returns the rendered document ?, Yes, the method 'renderXmlXsl' performs the necessary transformation and rendering, after which it returns the pdf. It is in the custom class : de.smc.util.PDFTransformer and it has been tested outside php -

RE: [PHP] text problem.

2002-04-29 Thread John Holmes
Either use LEFT() in your query, or substr() on the text after it's pulled out to limit it's length. There was a huge discussion on this on the Devshed.com forums on how to do this to break on a word, before or after X characters, etc... It's on the PHP forum, maybe you can find it if you

[PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
= PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] == hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not

Re: [PHP] Null character as field seperator in a string.

2002-04-29 Thread The_RadiX
Hey.. yeah I might.. I don't know if I am right or just blabbering crap but try to add these param's to your regex statement.. preg_split(/\0/i, $buffer); note the i.. It should let it read past newlines.. although you're prob is with null (\0) chars.. as I said.. Don't know if I am on

AW: [PHP] Java-Object

2002-04-29 Thread Bedilu Habte
Hallo Henning, thanks for your suggestion. The result... print_r($result); resulted in: Objectjava Object ( [0] = 2 ) var_dump($result); had given me: object(java)(1) { [0]= int(2) } Can you make something out of this. -Ursprungliche Nachricht- Von: Henning

[PHP] Php and XML

2002-04-29 Thread Philip Yeo
Hi there, I would like to create an XML parser using Php. Any good references for doing this?? Philip

RE: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
Hey.. yeah I might.. I don't know if I am right or just blabbering crap but try to add these param's to your regex statement.. preg_split(/\0/i, $buffer); note the i.. It should let it read past newlines.. although you're prob is with null (\0) chars.. as I said.. Don't know if

[PHP] Php and XML

2002-04-29 Thread Philip Yeo
Hi there, I would like to create an XML parser using Php. Any good references for doing this?? Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parsing mail files

2002-04-29 Thread Michael George
Hello! I am looking for some sample code that will parse a file in Unix mbox format. I want to write an app that will examine mail messages for email-registration info. Parsing the mail with the registration is what I will do, but Im hoping someone has already done some relatively simple code

Re: [PHP] parsing mail files

2002-04-29 Thread Michal Dvoracek
Hello, try sourceforge.net or freshmeat.net. There are very usefull programs. Try search: mail mime Regards Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions with register_globals = off

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Padraig Kitterick [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 20:16 To: [EMAIL PROTECTED] Subject: [PHP] Sessions with register_globals = off Am in need of help or I will loose my sanity!!! Im runnin Php 4.1.2 with Apache 1.3.22 on Win32 with

RE: [PHP] Re: Translation Request--Altavista Babelfish can't do it

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 01:15 Vins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if(!ereg(^#(.)*$, $buffer[$i])) { echo ok; } what does this mean? [...] Boiled down,

RE: [PHP] Last time Append line to text file

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 05:34 On Sun, 28 Apr 2002, Richard Emery wrote: The answer is: $file_pointer = fopen('/public_html/emails.txt', a) or exit; The || is a binary operation. You want or, the logical

[PHP] load testing utility

2002-04-29 Thread Adrian Murphy
anyone have a recommendation for a good free/cheap load testing utility for php/mysql sites? thanx adrian

Re: [PHP] parsing mail files

2002-04-29 Thread Michael George
On Mon, Apr 29, 2002 at 02:42:01PM +0200, Michal Dvoracek wrote: try sourceforge.net or freshmeat.net. There are very usefull programs. Try search: mail mime Great suggestion, thanks! -- In light of the terrorist attack on the U.S.: They that give up essential liberty to

Re: [PHP] Re: Translation Request--Altavista Babelfish can't do i t

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote: -Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 01:15 Vins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if(!ereg(^#(.)*$,

Re: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 18:26, Dave MacRae wrote: For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is read into the

RE: [PHP] Re: Translation Request--Altavista Babelfish can't do i t

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 14:12 To: [EMAIL PROTECTED] On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote: Well the ereg is looking for strings beginning with # but then the whole if expression is

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch
At 29.04.2002 20:02, you wrote: = PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] = hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 20:02, Peter Revill wrote: hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not support them, so i figure, ill install it, installing the libary jpeg-6b

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
Jason Wong wrote: On Monday 29 April 2002 20:02, Peter Revill wrote: hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not support them, so i figure, ill install it, installing the

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 21:40, Peter Revill wrote: Im not even sure myself, linux on 2.2.14 on what should be a redhat box i know theres a command something like dsmod to get the info, hmm.. Never mind, as long as you're reasonably sure it's a RH system you're running on . Have you checked

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
Jason Wong wrote: On Monday 29 April 2002 21:40, Peter Revill wrote: Im not even sure myself, linux on 2.2.14 on what should be a redhat box i know theres a command something like dsmod to get the info, hmm.. Never mind, as long as you're reasonably sure it's a RH system you're

RE: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
On Monday 29 April 2002 18:26, Dave MacRae wrote: For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch
At 29.04.2002 15:24, you wrote: At 29.04.2002 20:02, you wrote: = PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] = hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP

[PHP] return multiple value from function

2002-04-29 Thread sanjay
Hi List, I am new to php programming and wanted to know if it is possible to return multiple value from a function like cgi programs. How can I get the following result using php. ($var1, $var2) = myfunction($a,$b); function myfunction($c,$d) { // code // code return ($e,$f); } --

RE: [PHP] return multiple value from function

2002-04-29 Thread Cal Evans
no, it's not possible to do it that way. If you need to return multiple values from a function, your best bet is to return an array or some kind of record structure. By design, in almost all languages, functions only return a single value. =C= * * Cal Evans * Journeyman Programmer *

Re: [PHP] return multiple value from function

2002-04-29 Thread Richard Emery
?php function funca($a,$b) { $q=$a; $w=$b; return array($w,$q); } $e=123; $r=456; list($z,$x) = funca($e,$r); print $z, $x\n; ? - Original Message - From: sanjay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 9:11 AM Subject: [PHP] return multiple value from

Re: AW: [PHP] Java-Object

2002-04-29 Thread Henning
Bedilu Habte wrote: print_r($result); resulted in: Objectjava Object ( [0] = 2 ) var_dump($result); had given me: object(java)(1) { [0]= int(2) } it means that you have an object with a property field of type integer and a value of 2. possibly nmot what you want

[PHP] build array dinamicaly

2002-04-29 Thread Rodrigo Peres
Hi list, I want to buil an multidimensional array with the results of Mysql, but I don't know how to do it. What I need is: SELECT name,adress from tbl_. array name will receive the names array adress will receive the adresses and array clientes will contain both, so when i try to access i

Re: [PHP] return multiple value from function

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 22:11, sanjay wrote: Hi List, I am new to php programming and wanted to know if it is possible to return multiple value from a function like cgi programs. How can I get the following result using php. ($var1, $var2) = myfunction($a,$b); function myfunction($c,$d)

Re: [PHP] return multiple value from function

2002-04-29 Thread 1LT John W. Holmes
Best you can do is return an array and call it like this: function myfunction($a,$b) { $r[0] = $a + 1; $r[1] = $b + 1; return $r; } list($c,$d) = myfunction(10,20); Adapt to your needs. ---John Holmes... - Original Message - From: sanjay [EMAIL PROTECTED] To: [EMAIL

[PHP] Re: build array dinamicaly

2002-04-29 Thread Julio Nobrega Trabalhando
$name = Array(); $address = Array(); $clients = Array('nome' = 0, 'address' = 0); $i = 0; while (list($client_name, $cliente_add) = mysql_fetch_array($res)) { $name[$i] = $client_name; $address[$i] = $client_address $clients['nome'][$i] = $client_name; $clients['address'][$i] =

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 21:55, Peter Revill wrote: Its a colbat cube running some sort of modified linux, i think based on Redhat i doint know what kind of colbat cube I presume you mean Colbalt ;-) in which case you cannot use the RH rpms. If there aren't any special reasons, I would just

[PHP] $this-

2002-04-29 Thread Steve Buehler
I am not an expert at PHP and have been learning it through questions, books, online help, etc I guess like most people. :) Anyway, I see a lot of scripts that use $this-something and was wondering if this was just another variable or if the - has any special meaning. One script from

[PHP] parse errors not displayed (2nd time I ask!)

2002-04-29 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am sorry I ask this for a second time. Come on guys ! I am sure somebody can help, please I set my own error handler. It is in a file general_includes.php (please find it below) and all pages do a require on

RE: [PHP] $this-

2002-04-29 Thread Leotta, Natalie (NCI/IMS)
Hi, Steve. $this refers to a specific instance of a class. The - accesses a property or method associated with this class. So, in your class, say it's class car, and in your constructor you want to initialize the color to red, you'd do $this-color = $red; Outside of the class, with your

Re: [PHP] $this-

2002-04-29 Thread 1LT John W. Holmes
It's used in object oriented programming (OOP) with classes. $this refers to the current object. So $this-setup() in PHPLib is referring to the setup() function within the object. You can get a better explanation and examples by reading the manual page on OOP.

[PHP] _SERVER variable insd prnt sttmnt

2002-04-29 Thread Kirk Babb
Hi All, Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have another question related to that: What is the correct syntax for the above if I want to use it in a print statement like so (I included the whole piece of code so you guys could at least see what I'm trying to

Re: [PHP] $this-

2002-04-29 Thread Steve Buehler
Thanks to Natalie, Jason and John. Plus anybody who responds after this email. I will have to do some reading up on this now to see if and where i can use this. Thanks Again Steve At 09:50 AM 4/29/2002, 1LT John W. Holmes wrote: It's used in object oriented programming (OOP) with classes.

Re: [PHP] _SERVER variable insd prnt sttmnt

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 23:05, Kirk Babb wrote: Hi All, Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have another question related to that: What is the correct syntax for the above if I want to use it in a print statement like so (I included the whole piece of code

[PHP] Text File Formating.

2002-04-29 Thread Randum Ian
Hi there, I have got various text files which I need to convert on the fly to HTML with PHP. How do I convert this: --- TEXT --- CHART RETURN Chart Date: blah No. Artist - 'Track (Remix)' (Label) 1. blah - 'blah (blah mix)' (blah) --- END TEXT--- to this: --- HTML --- CHART RETURNbr / br

RE: [PHP] Text File Formating.

2002-04-29 Thread Cal Evans
the manual is your friend. http://www.php.net/manual/en/function.nl2br.php * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:20 AM To: PHP Subject: [PHP] Text

[PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Stefen Lars
Hello all I have written a very simple PHP script to copy the data from one MySQL database table on SERVERA to another MySQL database table on SERVERB. Using PHP, I simply connect to each server and copy the data across. That works well. However, natively, MySQL works with clear text. i.e.

Re: [PHP] _SERVER variable insd prnt sttmnt

2002-04-29 Thread 1LT John W. Holmes
//print LIA HREF='$_SERVER['PHP_SELF']?letter=$chars[$cnt]' . This is the problem with not breaking out of a string to display a variable. Ideally, you would do it this way: print LIA HREF=' . $_SERVER['PHP_SELF'] . ?letter= . $chars[$cnt] . '; But some people just have a problem with doing

[PHP] javascript and PHP

2002-04-29 Thread Steve Buehler
Does anybody know of a good/short tutorial about passing variables from JavaScript to/from PHP? For example, how to do the following: html head SCRIPT LANGUAGE=JavaScript data = hello world; /script /head body ? echo $databr; ? /body /html The above might at least give me a clue. Just a

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Cal Evans
My suggestion, if you just want to move data between the 2 servers, is to mysqldump to a file, scp the file to the destination server and then mysql filename to get it into the second server. You can't do it under programmatic control but it will work and your data will remain secure in

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
since php runs on the server, not on the client, you have to pass the value of data back to the server. Normally, this is done via a GET or a POST from a form or by building a URL and using javascript to load it. (i.e. document.location = 'http://myserver.com/mypage.php?data=Hello%20World';)

[PHP] javascript and PHP

2002-04-29 Thread Steve Buehler
Ok. My last post didn't go throught the list software because of the tags. I am replacing the and 's with *'s now so that hopefully it will go through so that people can see it. --Original message Does anybody know of a good/short tutorial about passing variables from JavaScript

[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
Try something like this and see if it works??? ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post' BR The computer has picked $another number between 1 and 10.BR Guess the number and you

[PHP] xml/xslt capability?

2002-04-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I want to get started with xml/xslt, I've read a few things about sablotron but am unsure what support my host is running. If any of you know anything about this subject would you be kind enough to look at the phpinfo() I've set up here:

Re: [PHP] javascript and PHP

2002-04-29 Thread 1LT John W. Holmes
All you can do is use PHP to print out Javascript code. ? $data = hello world; ? script language=javascript var something; something = '?=$data?'; /script etc...It's no different than using PHP to print out HTML code. Now, if you want to get that Javascript variable something sent back to PHP,

RE: [PHP] xml/xslt capability?

2002-04-29 Thread Christoph Starkmann
Only one letter difference between PGP and PHP yet makes no sense... ;) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8zWnJHpvrrTa6L5oRAv5DAJ9Fp8vq7+PPqIiM1Mnqf5sGZlhD5wCfWqan TWH60NiXJh5ESsHP0QNLsUY= =dJq7

RE: [PHP] javascript and PHP

2002-04-29 Thread Leotta, Natalie (NCI/IMS)
This is what I do in one of my programs. I set hidden values in my HTML and then JS can access them, change them, and then when the form is submitted (JS can do that too if you want it to be automatic) the PHP reads in the hidden values. -Natalie -Original Message- From: 1LT John W.

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Stefen Lars
Thank you Carl, for your suggestion. You are correct. In this case, it would be possible to use mysqldump to create a file, then SSH to transfer it and then pipe it into the database. However, I am interested in learning how to connect directly to the MySQL port, as in a second step of the

Re: [PHP] parse errors not displayed (2nd time I ask!)

2002-04-29 Thread 1LT John W. Holmes
Just fix your parse errors. Who cares what error handler it goes to. Are you going to release code with parse errors in it and do you really want to get an email each time someone gets one? ---John Holmes... - Original Message - From: Pedro Garre [EMAIL PROTECTED] To: php-general

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread SHEETS,JASON (Non-HP-Boise,ex1)
You may also look at SSH port forwarding, this allows you to create an encrypted tunnel between the two machines, then you connect to the local port, the data gets encrypted sent across the wire and decrypted at the destination. Look at -L in your ssh man or search google for ssh tunneling

[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
OOPS! You are right on.. I noticed my error after I sent it. The name='guess' was on the input.?? Daaa! it's Monday .. OK!! This should work: === ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post'

[PHP] Java-Object

2002-04-29 Thread Bedilu Habte
Hi, First some info about my working environment: OS - Win2000 PHP - 4.1.1 Java - 1.3.1 (Apache - 1.3.22) are you sure you did everything right with the java/php combination? did you test that with other, easier things? I've modified the php.ini (and http.conf) to be able to call java from

[PHP] Pixel Length of text message

2002-04-29 Thread District Webmaster
In html/css you can set a font size in pixels -- in my experience this means a letter takes the same number of pixels, regardless of resolution. With php, can I use string length and font pixel size to determine the length of a given string on a screen? Does anyone know an algorithm for this that

[PHP] sort and maintain varible names

2002-04-29 Thread Jim Long
I have a basic sort: $orderd_list = array ($onec_rounded_total, $aps_rounded_total, $bo_rounded_total, $cap3_rounded_total, $cap3_rounded_total, $cap_rounded_total, $cfl_rounded_total, $ecg_rounded_total, $ldd_rounded_total, $png_rounded_total, $spr_rounded_total, $ist917_rounded_total,

[PHP] PHP ignoring dotfiles

2002-04-29 Thread Frank
Hello list, My PHP acts unexpected when requiring files with a leading dot. I'm on FreeBSD 4.3 In a directory I have the following two files: .mydotfile.php: ?php echo I am here!; ? myfile.php: ?php require '.mydotfile.php'; ? When I run myfile.php there is no output! If I rename

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 00:17, District Webmaster wrote: In html/css you can set a font size in pixels -- in my experience this means a letter takes the same number of pixels, regardless of resolution. That may (or may not) be true, but that's referring to the height of the font. With

Re: [PHP] PHP ignoring dotfiles

2002-04-29 Thread 1LT John W. Holmes
Works fine on WinXP, PHP 4.1.1, IIS 5.1 ---John Holmes... - Original Message - From: Frank [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 12:19 PM Subject: [PHP] PHP ignoring dotfiles Hello list, My PHP acts unexpected when requiring files with a leading

Re: [PHP] sort and maintain varible names

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 01:19, Jim Long wrote: I have a basic sort: $orderd_list = array ($onec_rounded_total, $aps_rounded_total, $bo_rounded_total, $cap3_rounded_total, $cap3_rounded_total, $cap_rounded_total, $cfl_rounded_total, $ecg_rounded_total, $ldd_rounded_total,

Re: [PHP] PHP ignoring dotfiles

2002-04-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Frank declared .mydotfile.php: ?php echo I am here!; ? myfile.php: ?php require '.mydotfile.php'; ? When I run myfile.php there is no output! Just a hunch: do you get the same permissions output for the dotfiles as the

Re: [PHP] xml/xslt capability?

2002-04-29 Thread Henning
Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I want to get started with xml/xslt, I've read a few things about sablotron but am unsure what support my host is running. If any of you know anything about this subject would you be kind enough to look at the

Re: [PHP] xml/xslt capability?

2002-04-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Henning declared it seems you have this: http://www.php.net/manual/en/ref.xml.php Yes, I've read that thanks. xslt seems not to be supported by your provider, dunno how you can still use it, but i heard of some php classes

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, District Webmaster wrote: In html/css you can set a font size in pixels -- in my experience this means a letter takes the same number of pixels, regardless of resolution. With php, can I use string length and font pixel size to determine the length of a given string on a

Re: [PHP] Pixel Length of text message

2002-04-29 Thread 1LT John W. Holmes
Just my $0.02, but it's generally a bad idea to use fixed pixel size fonts. Some people need to be able to enlarge and decrease the font size within the browser, and this will not allow them to do it. Maybe if you explain what you're trying to accomplish, somone here can help you out a little

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Jan Peuker
Font-size is the height of text, the width is changing w/ every font (e.g. i and m). If you use exactly one font, you may use an array of widths(which you measured before), but that's not really exact. Perhaps, a way would be to use temporarly gd (ttfbox and/or imagefontwidth), but I don't know

Re: [PHP] OOP-related question

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002 [EMAIL PROTECTED] wrote: I include this in my class-function, which works fine for the most variables but $SERVER_ADDR It seems that I cannot get these variable in the function of my class so I have to pass them as argument to the function. I have made an init() function

Re: [PHP] load testing utility

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Adrian Murphy wrote: anyone have a recommendation for a good free/cheap load testing utility for php/mysql sites? Apache comes with 'ab'. http://httpd.apache.org/docs/programs/ab.html miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP ignoring dotfiles, permissions

2002-04-29 Thread Frank
Just a hunch: do you get the same permissions output for the dotfiles as the normal ones? Thanks for the idea. I am not sure what you mean by permissions output but it is same owner and an ls -la gives -rwxr-xr-x 1 frank wheel 27 Apr 29 23:05 .mydotfile.php -rwxr-xr-x 1 frank wheel

RE: [PHP] Last time Append line to text file

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Ford, Mike [LSS] wrote: From: Miguel Cruz [mailto:[EMAIL PROTECTED]] This side effect is not mentioned at http://www.php.net/manual/en/language.operators.logical.php where it imples that the only difference is precedence. I'd say this is a bug either in

[PHP] SID problem?

2002-04-29 Thread Hrvoje Bogunovic
Is this behaviour normal. I can't destroy SID. Take a look at the following code. session_start(); session_unset(); session_destroy(); echo SID;// SID still exists ?! some code session_start(); echo SID; // this SID is equivalent to the one above $sess_id = session_id(); //

Re: [PHP] PHP ignoring dotfiles, permissions

2002-04-29 Thread heinisch
At 30.04.2002 00:01, you wrote: Just a hunch: do you get the same permissions output for the dotfiles as the normal ones? Thanks for the idea. I am not sure what you mean by permissions output but it is same owner and an ls -la gives -rwxr-xr-x 1 frank wheel 27 Apr 29 23:05

Re: [PHP] Pixel Length of text message

2002-04-29 Thread heinisch
At 29.04.2002 10:17, you wrote: In html/css you can set a font size in pixels -- in my experience this means a letter takes the same number of pixels, regardless of resolution. With php, can I use string length and font pixel size to determine the length of a given string on a screen? Does

  1   2   3   >