RE: [PHP] XML Array

2003-07-16 Thread Ralph Guzman
Take a look at patConfiguration http://www.php-tools.de/site.php -Original Message- From: Michael Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: [PHP] XML Array Hey, I'm looking for a function to take an XML file and turn it into a P

RE: [PHP] HTTPS POST without user/client intervention

2003-07-16 Thread Ralph Guzman
I think what you are looking for is socket connections: http://www.php.net/manual/en/function.fsockopen.php Or CURL http://www.php.net/manual/en/ref.curl.php -Original Message- From: PHP List [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:02 PM To: [EMAIL PROTECTED] Subject:

[PHP] multi file multi colomn

2003-07-16 Thread FB
Hi, I have 40 text files.. each files have 1 colomn of a data. I want to write a script to merge them like datafrom1;datafrom2;datafrom3;datafrom40 how can I do that? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with loop inside loop and mysql queries

2003-07-16 Thread Petre Agenbag
Hi List. I cannot see my error: I have relation tables setup. main id entity_name main_type etc etc date_in 1 testtype1 x y 2003-06-02 2 test2 type2 xx yy 2003-03-11 3 test3 type1

[PHP] pdf information..

2003-07-16 Thread Louie Miranda
Hello, I have been given a task to generate a business card program over the web. The option that i can think of it to make it easier is generate a pdf based on the user's experience over my preview program on the web. Now im wondering does pdf have those image resolution size? I mean on image yo

Re: [PHP] Help with loop inside loop and mysql queries - SOLVED

2003-07-16 Thread Petre Agenbag
Grr Needed to reset the $XXX and $YYY vars BEFORE the for loop... Anyway, should you have nothing better to do, plz look through and see if there is a "better" way to do this with possibly less queries made on the db... Ta On Wed, 2003-07-16 at 09:25, Petre Agenbag wrote: > Hi List. > > I can

[PHP] Un aiutino porfavor.

2003-07-16 Thread Valentina
Nella versione che uso php 4.3.1 non sono attive le funzioni di mailparse. Come da manuale infatti sono funzionanti sulla 4.1.0 e 4.1.2. Sul sito vedo il riferimento a PECL. Io chiedo a qualcuno cosa è PECL E soprattutto con i file del package che si suggerisce di scaricare cosa ci fò ? Il package

[PHP] getallheaders() in PHP 4.2.3

2003-07-16 Thread Ananth Kesari
Hi, For some reason, getallheaders() is not working with the NetWare port of PHP 4.2.3 even while we have not modified the related code for NetWare as such. So, I am just wondering if getallheaders() is implemented for PHP 4.2.3? The document doesn't mention from which PHP version this supported.

[PHP] PHP Best practices

2003-07-16 Thread John Manko
I'm looking for a book on PHP best practices for such things as security, performance, session (esp jumping from http to https), design layout, etcetc... I'm not interested in something that will teach basic PHP. Do you know of any good books, online resources,etc? Thanks. John -- PHP G

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread frederik feys
Thanks for your tips Mike! One nasty thing to debug is that the error only shows up from time to time. So now everything seems OK. What do i have now? I start my code with session_start Then include some files. The last one is get_cartID.php (remember?) Then i use several functions to have cart f

Re: [PHP] PHP Best practices

2003-07-16 Thread Justin French
Hi, There are plenty of articles on zend.com (and others) to do with best practices, smart coding, etc etc. I'd suggest digging through zend, and having a look on google... I don't think you'll everything you want in one book... but it's definitely all out there on the web Justin On Wednesda

[PHP] Re: textarea rich replacement?

2003-07-16 Thread Yury B .
I know that you can set up HTMLArea and others for your needs. You can take away all functions that you don't need or hide them. All this "triks" you can find in manual Yury On 15 Jul 2003 at 16:21, Justin French wrote: > Hi all, > > I've looked at both editize(.com) and HTMLArea, both of whi

Re: [PHP] getallheaders() in PHP 4.2.3

2003-07-16 Thread Neil Freeman
I believe getallheaders() has been supported since v4.0.0 Ananth Kesari wrote: *** This Email Has Been Virus Swept *** Hi, For some reason, getallheaders() is not working with the NetWare port of PHP 4.2.3 ev

Re: [PHP] PHP Best practices

2003-07-16 Thread Angelo Zanetti
Hi John, have you tried a site called www.phpfreaks.com It has alot of articles and tutorials. It is a really good site and you get emailed when a new article or tutorial is released. HTH - Original Message - From: "John Manko" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday,

[PHP] Re: getallheaders() in PHP 4.2.3

2003-07-16 Thread Pete Morganic
Sorry not to answer your question below however I am intrested in Netware.. Just to satisfisy mu curiosity. What version are u running ? what Web server and what database ?? I love netware, however most customers dont !! pete Ananth Kesari wrote: Hi, For some reason, getallheaders() is not wo

Re: [PHP] Re: textarea rich replacement?

2003-07-16 Thread Haseeb
      anyone who wans a text editor (just like the one yahoo uses) email me i can email them the files i just don't want to upload the files to the list. Haseeb   ---Original Message---   From: [EMAIL PROTECTED] Date: Wednesday, July 16, 2003 02:23:52 PM To: Justin French Cc: [EMAIL

Re: [PHP] Code and Good Design Methods

2003-07-16 Thread Joel Rees
> Hi Joel, > > Thanks for nice comments on the XML, XSL. > > I want to know more about it. can you please send me > some article, links and tutorials? > > Thanks > > Hardik The ultimate source for xml related technologies is the World Wide Web Consortium at http://www.w3.org Most of the

[PHP] Re: pdf information..

2003-07-16 Thread sven
a pdf-page can have almost every format you want. originally you work with postscript-dots, where 72 dots are 1 inch. it's easy from that point to calculate from metric system, where 1 inch is 2.54 cm or 25.4 mm. with this in mind you can exactly define the height and width of your pdf-page. i su

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread Ford, Mike [LSS]
> -Original Message- > From: frederik feys [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 10:21 > > One nasty thing to debug is that the error only shows up from time to > time. > So now everything seems OK. > > What do i have now? > I start my code with session_start > Then include some

RE: [PHP] pdf information..

2003-07-16 Thread Enda Nagle
I used FPDF (http://www.fpdf.org) to do a system for a customer where he could generate invoices and shipping labels. I just used A4 page size but I remember seeing in the documentation that you can specify sizes of pages etc. Also the PDFs work on mm, not pixels. I know you can embed 300dpi ima

RE: [PHP] getallheaders() in PHP 4.2.3

2003-07-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Neil Freeman [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 10:40 > > I believe getallheaders() has been supported since v4.0.0 > > Ananth Kesari wrote: > > > *** > > This Email Has Been Virus Swept > >

[PHP] Re: multi file multi colomn

2003-07-16 Thread sven
can you more clearly explain your problem? - do your files contain of many lines and you want this: f1l1;f2l1;f3l1; ... f1l2;f2l2;f3l2; ... (f=file, l=line) - or do you simply want the complete content of the files separated by semicolon? ciao SVEN "Fb" <[EMAIL PROTECTED]> schrieb im Newsbeitr

[PHP] PHP About Security

2003-07-16 Thread desa15
Hi to all. I attempt to make security my host i change the following params in php.ini allow_url_fopen = Off safe_mode =on safe_mode_gid = on disable_functions = readfile,system Any sugestion, or comment about make php secure ?? Excuse by my broken english Un saludo, Danny -- PHP General

[PHP] PHP POS program

2003-07-16 Thread Angelo Zanetti
Anyone know where I can download a demo point-of-sale program from? preferably written in php and preferably a point-of-sale designed for restaurants? any links etc will be great TIA Angelo

Re: [PHP] elegant way of doing something else the last timethrough a loop? SOLVED

2003-07-16 Thread Petre Agenbag
Hi Yes, I see your point. Guess I'm way too trusting a person, should think like a criminal... So you're basically saying I should always place sensible "default values" in my script and then compare the $_POST vars, else stick to the default, ie, have the $_POST overwrite your default before the

Re: [PHP] PHP POS program

2003-07-16 Thread Mirek Novak
Angelo Zanetti napsal(a): Anyone know where I can download a demo point-of-sale program from? preferably written in php and preferably a point-of-sale designed for restaurants? any links etc will be great TIA Angelo This problem (POS) is too serious to be written in PHP(via browser). Maybe

Re: [PHP] How to store a file into MSSQL?

2003-07-16 Thread Adam Voigt
I just use a TEXT field, and am doing so with 25k images, without issue. On Tue, 2003-07-15 at 18:45, Javier wrote: > Hi everybody, I've trying to store a into a MSSQL Server (7 or 2k) using > an example I found on the web (www.php.net). > > Is it possible that PHP (4.3.2) just store 4k of data

[PHP] Mailparse functions. How in the 4.3.1 php version ?

2003-07-16 Thread Valentina
Hello to everybody. Somebody can tell me how , in the new version of php, were substitued the mailparsing functions ? I use, actually, the 4.3.1. The php manual tells me that the mailparsing functions run only in the 4.1.0. or 4.1.2 version of php. On the web sito there is a refer to PECL. What's

Re: [PHP] multi file multi colomn

2003-07-16 Thread Lowell Allen
> I have 40 text files.. each files have 1 colomn of a data. I want to write a > script to merge them like > > datafrom1;datafrom2;datafrom3;datafrom40 > > how can I do that? Assuming that by "1 column" you mean each file has data, then a new line character, then data, then a new line charac

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
Why is it too serious a problem? E-Commerce sites are written in PHP - there is not a big difference except that the POS system does not even necessarily have to be online! I think that is a bit of a short sighted view don't you? Just because you have not seen it done does not mean that it can

[PHP] [SESSION] Session variable deleted prior to command?

2003-07-16 Thread Ivo Fokkema
Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On a successful login, the previous login time is stored in the $_SESSION array and the new one is inserted into the database. A welcome message is then di

[PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ron Allen
I would like to know how to verify that there are 6 numbers (only numbers in a field) that will be submitted to a database? Any clues! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP POS program

2003-07-16 Thread aka MacGuru
On Wednesday, Jul 16, 2003, at 15:58 Europe/Helsinki, Mike Morton wrote: Why is it too serious a problem? E-Commerce sites are written in PHP - there is not a big difference except that the POS system does not even necessarily have to be online! I think that is a bit of a short sighted view don

RE: [PHP] PHP POS program

2003-07-16 Thread Willem Bison
I'm developing one actually :-) > -Oorspronkelijk bericht- > Van: Angelo Zanetti [mailto:[EMAIL PROTECTED] > Verzonden: Wednesday, July 16, 2003 13:57 > Aan: [EMAIL PROTECTED] > Onderwerp: [PHP] PHP POS program > > > Anyone know where I can download a demo point-of-sale program > from?

Re: [PHP] reposting in textarea

2003-07-16 Thread Artoo
That didn't seem to work. I changed the echo $old_data to echo $_SESSION['old_data'] since old_data is a session variable. I put a test line echo $_echo $_SESSION["old_data"]; just before the form is displayed to make sure the data is being set, which it is and has the correct data. But the dat

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Marek Kilimajer
if(!ereg('^[0-9]{6}$',$string) die('not six numbers'); you might want to trim off white space first. Ron Allen wrote: I would like to know how to verify that there are 6 numbers (only numbers in a field) that will be submitted to a database? Any clues! -- PHP General Mailing List (http://ww

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
Sure - that is assuming that is how you want to print it! And even then - given the power of PHP - surely you could do a socket program to do it. Anyhow - printing to a POS printer - how mandatory does that have to be? If we all remained slaves to how it is done in the past, then we will never m

Re: [PHP] How to store a file into MSSQL?

2003-07-16 Thread John Manko
Look here http://www.mysql.com/doc/en/BLOB.html Actually, if you don't care if the images can be view from outside the DB, you can do what I do. I simplely put the name of the file in a varchar field, then let the browser do the work for you. This is good for files that are referenced from multip

[PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
Ok, I'm surprised that this is not taken care of with HTML. I propose the following standard (but also looking for a PHP workaround if available) for the Img HTML tag: RATIO = Keep|Ignore, default Ignore < img width='x' height='y' RATIO='Keep|Ignore' > Where, RATIO=Keep will inlarge the image

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
Ok, before you go responding with percentages, I should note this. consider this: Image1 : 100x100 (Ratio = 1:1) Image2 : 100x200 (Ratio = 1:2) Space available for display : 75x75 now, i can say "width=75% height=75%", but this will only work for Image1, since Image2 will end up as 75x150 (whi

Re: [PHP] PHP POS program

2003-07-16 Thread CPT John W. Holmes
> Angelo Zanetti napsal(a): > > > Anyone know where I can download a demo point-of-sale program from? preferably written in php and preferably a point-of-sale designed for restaurants? any links etc will be great > > > This problem (POS) is too serious to be written in PHP(via browser). > Maybe in

Re: [PHP] PHP POS program

2003-07-16 Thread Mirek Novak
Mike Morton napsal(a): > Why is it too serious a problem? E-Commerce sites are written in PHP - > there is not a big difference except that the POS system does not even > necessarily have to be online! I think that is a bit of a short sighted > view don't you? > Just because you have not seen it

RE: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Brian S. Drexler
Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:46 AM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] KEEP IMAGE RATIO Ok, before you go responding with percentages, I

[PHP] get size of variable n bytes

2003-07-16 Thread Petre Agenbag
Hi List Sorry, tried to find it in manual... I'd like to query a db and and see how big the result is in bytes. How can I do that? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP POS program

2003-07-16 Thread Dan Joseph
Hi, > And AFAIK all POS systems, which were written under Windows had no > succes because of the user interface. So I'm for 5 years out of this > branche but as I can see in supermarkets, there are still good old MSDOS > applications. There are plenty of good windows based systems. There

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
but that won't address the space limit for display for image larger than 75x75 Brian S. Drexler wrote: Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:46 AM Cc:

[PHP] Re: PHP POS program

2003-07-16 Thread Dallas Goldswain
I am currently developing one too, If the printer is installed on the machine one can use the printer functions in PHP. It like using a normal printer, infact its easier $handle = printer_open(); printer_write($handle, "Text to print"); printer_close($handle); so it can be done and i have had succ

Re: [PHP] Mailparse functions. How in the 4.3.1 php version ?

2003-07-16 Thread Curt Zirzow
Valentina <[EMAIL PROTECTED]> wrote: > Hello to everybody. > Somebody can tell me how , in the new version of php, were substitued the > mailparsing functions ? > I use, actually, the 4.3.1. > The php manual tells me that the mailparsing functions run only in the > 4.1.0. or 4.1.2 version of php. >

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
ok, i see what you mean.. John Manko wrote: but that won't address the space limit for display for image larger than 75x75 Brian S. Drexler wrote: Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message- From: John Manko [mailto:[EMAIL P

Re: [PHP] PHP POS program

2003-07-16 Thread Mirek Novak
CPT John W. Holmes napsal(a): Angelo Zanetti napsal(a): Anyone know where I can download a demo point-of-sale program from? preferably written in php and preferably a point-of-sale designed for restaurants? any links etc will be great This problem (POS) is too serious to be written in PHP(via br

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Justin French
If you care about performance at all, try and find away around the problem without regular expressions... I tested if( (strlen($str) == 6) && (is_int($str)) ) vs if(ereg('^[0-9]{6}$',$str)) ...on my LAN test server with 10 iterations, and the regexp was nearly 2 times slower than the f

Re: SPAM: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Justin French
Whilst I have not tested this on multiple platforms/browsers, I believe if you only specify one (the width for example), the browser will proportionately sace the height. The is useful with a fixed width OR height area, but does not solve a scenario where there are height AND width contraints.

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread CPT John W. Holmes
> Ok, before you go responding with percentages, I should note this. > > consider this: > Image1 : 100x100 (Ratio = 1:1) > Image2 : 100x200 (Ratio = 1:2) > > Space available for display : 75x75 > > now, i can say "width=75% height=75%", but this will > only work for Image1, since Image2 will end

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
Mirek: > - Of course, it can be done, but will U find someone, who will ever use > it? I've worked in a company which has about 170 supermarkets and > small food stores and there we had a "war" with our POS software > supplier , so I think, I can tell "I know something about it" It is much > mor

Re: [PHP] get size of variable n bytes

2003-07-16 Thread Curt Zirzow
Petre Agenbag <[EMAIL PROTECTED]> wrote: > Hi List > > Sorry, tried to find it in manual... > > I'd like to query a db and and see how big the result is in bytes. How > can I do that? how big as in how many records are back from the query? look for _num_rows(), replacing dbserver with your data

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
You will note that I did say that I was looking for a PHP solution to this, anyhow. HTML isn't smart enough to figure that out and this is a PHP list, anyhow. Thank you for the info. I still think that HTML should handle it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: SPAM: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
yes, that is what "CPT John W. Holmes" suggested. I will do that. In the meantime, I'm going to join the w3c mailing list. thank you. Justin French wrote: Whilst I have not tested this on multiple platforms/browsers, I believe if you only specify one (the width for example), the browser will p

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > If you care about performance at all, try and find away around the > problem without regular expressions... > > I tested > > if( (strlen($str) == 6) && (is_int($str)) ) > > vs > > if(ereg('^[0-9]{6}$',$str)) > > > ...on my LAN test serve

Re: [PHP] pdf information..

2003-07-16 Thread Henk Sandkuyl
Enda Nagle <[EMAIL PROTECTED]> wrote: > I used FPDF (http://www.fpdf.org) to do a system for a customer where he > could generate invoices and shipping labels. > I just used A4 page size but I remember seeing in the documentation that > you can specify sizes of pages etc. > Also the PDFs work on

[PHP] change process name

2003-07-16 Thread Uros
Hello! Is it possible to change name on some process I forked because 'ps' now prints php -q /my/script i would like to be this some name i chose. I saw that this is possible with perl. Is it with php to. -- Best regards, Uros -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Curt Zirzow
um.. sorry for the off topic discussion.. John Manko <[EMAIL PROTECTED]> wrote: > You will note that I did say that I was looking for a PHP solution to > this, anyhow. > > >HTML isn't smart enough to figure that out and this is a PHP list, anyhow. > > > > Thank you for the info. I still think

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ivo Fokkema
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Excellent point! I find my self using regex's a bit to often when there > are other solutions available. > > btw, have you ever tested the difference between > > if(ereg('^[0-9]{6}$',$str)) > if(preg_grep('^[0-9]{6}$',$st

Re: [PHP] get size of variable n bytes

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 14:52, lines prefixed by '>' were originally written by you. > Hi List > Sorry, tried to find it in manual... > I'd like to query a db and and see how big the result is in bytes. How > can I do that? > Thanks One way would

Re: [PHP] get size of variable n bytes

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 15:31, lines prefixed by '>' were originally written by you. > One way would be to assume that 1 character takes 1 byte to store > so... > $sizeinbytes = strlen($field); Also, this will only work with text data as numbers

[PHP] PHPSESSID auto-append

2003-07-16 Thread Kris Yates
What php.ini setting causes the following: A link in a document index gets modified by PHP, so that the end-user sees index in the source? How do you turn this off? Thanks, Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] INT Field in mysql display without .00

2003-07-16 Thread fkeessen
Hi All, I think it's a simple one but... Very hard for me! I've got prices in MYSQL. Field is formatted as INT(5,2).. So output is for example 100.00 . Now i want to ECHO the field as 100.. How to achief this one? Because when i'm echo'ing the field is shows up as 100.00 . Thanks for the help!

Re: [PHP] PHPSESSID auto-append

2003-07-16 Thread Jason Wong
On Wednesday 16 July 2003 22:45, Kris Yates wrote: > What php.ini setting causes the following: > > A link in a document index gets modified by PHP, > so that the end-user sees > index > > in the source? How do you turn this off? session.use_trans_sid -- Jason Wong -> Gremlins Associates -> www.

Re: [PHP] INT Field in mysql display without .00

2003-07-16 Thread Adam Voigt
$var = number_format($var,0); On Wed, 2003-07-16 at 10:42, [EMAIL PROTECTED] wrote: > Hi All, > > I think it's a simple one but... Very hard for me! > > I've got prices in MYSQL. Field is formatted as INT(5,2).. So output is for example > 100.00 . Now i want to ECHO the field as 100.. How to ac

RE: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 15:17 > > Justin French <[EMAIL PROTECTED]> wrote: > > If you care about performance at all, try and find away around the > > problem without regular expressions... > > > > I tested > > > > if( (

Re: [PHP] Re: socket programming

2003-07-16 Thread Chris Shiflett
--- "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > I've downloaded your scripts and tried to test it on my server. > Please correct me if im doing it right. I've opened services and > port from the server to automatically run protoscope only during > acces in the given port (http:\\myserver.com:48

Re: [PHP] PHP POS program

2003-07-16 Thread Jason Wong
On Wednesday 16 July 2003 19:57, Angelo Zanetti wrote: > Anyone know where I can download a demo point-of-sale program from? > preferably written in php and preferably a point-of-sale designed for > restaurants? any links etc will be great freshmeat.net -- Jason Wong -> Gremlins Associates -> ww

Re: [PHP] PHPSESSID auto-append

2003-07-16 Thread Chris Shiflett
--- Kris Yates <[EMAIL PROTECTED]> wrote: > What php.ini setting causes the following: > > A link in a document index gets > modified by PHP, so that the end-user sees > index > > in the source? How do you turn this off? session.use_trans_sid = 1 Make that 0. Chris = Become a better Web d

Re: [PHP] PHP POS program

2003-07-16 Thread Jason Wong
> - POS must be as simple and "stupidity proof" as possible, Agree. > the other > thing is mouse, POS must be controlled via keyboard. Not necessarily, many POS systems use a 'soft' keyboard in the form of a touch screen. Such a system is easily do-able using a web interface. -- Jason Wong -

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Brent Baisley
I'm pretty sure there will be a problem with using the is_int() function. A similar problem was discussed a few weeks ago on this list and is_int() will return true for a "number" like 1000e2. The "e" being treated as an exponential representation of an integer. It might be more reliable to add

Re: [PHP] reposting in textarea

2003-07-16 Thread Jason Wong
On Wednesday 16 July 2003 21:08, Artoo wrote: > That didn't seem to work. I changed the echo $old_data to echo > $_SESSION['old_data'] since old_data is a session variable. > > I put a test line echo $_echo $_SESSION["old_data"]; just before the form > is displayed to make sure the data is being

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Brent Baisley <[EMAIL PROTECTED]> wrote: > I'm pretty sure there will be a problem with using the is_int() > function. A similar problem was discussed a few weeks ago on this list > and is_int() will return true for a "number" like 1000e2. The "e" being > treated as an exponential representation

Re: [PHP] Re: socket programming

2003-07-16 Thread Jason Wong
On Wednesday 16 July 2003 08:19, Michael P. Carel wrote: > Actually i want to create a server utility that can be administered through > web via a certain port, i'm afraid not to use php as an apache module > because the server might have an existing webserver installed, so i came > out into an id

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Ford, Mike [LSS] <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > > Sent: 16 July 2003 15:17 > > > > Justin French <[EMAIL PROTECTED]> wrote: > > > If you care about performance at all, try and find away around the > > > pro

RE: [PHP] get size of variable n bytes

2003-07-16 Thread Petre Agenbag
Yes, well, that complicates things. You see, I'm trying to determine the size that the $_POST variable will be in bytes, because there is a byte limit in the php.ini file for POST variable size, so I was hoping for something easy like bytes_size($_POST)... Would also be handy to calculate how much

[PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Hi, is any way to pass a $Var from one to other php pages without using and Cookies? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Robert Cummings
Use the GET method (URL parameters). If you want to pass (foo=5) then do the following: A link label Cheers, Rob. On Wed, 2003-07-16 at 12:44, Valentin wrote: > Hi, > is any way to pass a $Var from one to other php pages without using > and Cookies? > > Thanks, > > > > > -- > PHP Genera

[PHP] Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

2003-07-16 Thread karen santmyer
HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I then installed PHP. I followed the directions in the book I had on installing apache and php and what to add to the apache configuration file

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread John Manko
Yes, use preg_match("/^[0-9]{6}$/",$str) since it takes care of both number and length. You dont want to you is_numeric(), because that will match "4e5", etc..etc.. Brent Baisley wrote: I'm pretty sure there will be a problem with using the is_int() function. A similar problem was discussed a f

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
page1.php $_SESSION['myvars_VARNAME'] = $varname; the 'myvars_' is just for identification purposes, so avoid over-writing anthing that you might not want to. page2.php $varname = $_SESSION['myvars_VARNAME']; Valentin wrote: Hi, is any way to pass a $Var from one to other php pages without usi

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Thank you Robert! But, I forgot to mention... "and without URI" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Thanks John! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML Array

2003-07-16 Thread Lee Doolan
> "Michael" == Michael Smith <[EMAIL PROTECTED]> writes: Michael> Hey, I'm looking for a function to take an XML file and Michael> turn it into a PHP array with the same structure. here's something that I found on the internet a few months back. I've used it a number of times:

Re: [PHP] multi file multi colomn

2003-07-16 Thread John Manko
is there a max file handle pool in php? look at: http://us3.php.net/fopen http://us3.php.net/fwrite FB wrote: Hi, I have 40 text files.. each files have 1 colomn of a data. I want to write a script to merge them like datafrom1;datafrom2;datafrom3;datafrom40 how can I do that? TIA

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Reuben D. Budiardja
On Wednesday 16 July 2003 09:46 am, John Manko wrote: > Ok, before you go responding with percentages, I should note this. > > consider this: > Image1 : 100x100 (Ratio = 1:1) > Image2 : 100x200 (Ratio = 1:2) > > Space available for display : 75x75 > > now, i can say "width=75% height=75%", but t

Re: [PHP] Problem with Apache Web Server config file and PHP (pleasegive advice on what problem may be me)

2003-07-16 Thread Marek Kilimajer
Did you add these lines to http.conf?: LoadModule php4_module c:/php4/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php If you did, did you restart apache afterwards? karen santmyer wrote: HI: Can anyone refer me to someone that can help with the problem below.

RE: [PHP] HTTPS POST without user/client intervention

2003-07-16 Thread Jeff Harris
|-Original Message- |From: PHP List [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 15, 2003 1:02 PM |To: [EMAIL PROTECTED] |Subject: [PHP] HTTPS POST without user/client intervention | |I am writing a php script to accept an HTTPS POST of data from a remote |site, process the data, and send

[PHP] Re: XML Array

2003-07-16 Thread Lee Doolan
> "Lee" == Lee Doolan <[EMAIL PROTECTED]> writes: > "Michael" == Michael Smith <[EMAIL PROTECTED]> writes: Michael> Hey, I'm looking for a function to take an XML file and Michael> turn it into a PHP array with the same structure. Lee> here's something that I found on the inter

[PHP] MySQL query problems

2003-07-16 Thread Beauford.2005
Hi, Not sure if the problem here is PHP or MySQL, but here we go. I am trying to do two queries on a database - one after the other, but the second one never seems to get executed. The two queries are identical except for two variables. I have checked my form and they are correct and are being sen

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > If you care about performance at all, try and find away around the > problem without regular expressions... > > I tested > > if( (strlen($str) == 6) && (is_int($str)) ) > I did some more tests on this problem is that $str is still considered a st

[PHP] Test (ignore)

2003-07-16 Thread Robert Cummings
Some of my mail hasn't appeared on list for a while, just testing if connection is working. IGNORE THIS MESSAGE :) -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and l

Re: [PHP] get size of variable n bytes

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 16:35, lines prefixed by '>' were originally written by you. > Yes, well, that complicates things. > You see, I'm trying to determine the size that the $_POST variable > will be > in bytes, because there is a byte limit in t

[PHP] PHP explodes without using isset()

2003-07-16 Thread John Manko
I've tried checking if $_POST and $_GET vars are set with just if($_POST['yuck']) When 'yuck' is not present my code always explodes with *"Notice*: Undefined index: yuck" on the page output. I never see any mention in the codes examples referencing a php function that instructs the preprocessor

Re: [PHP] PHP explodes without using isset()

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 17:37, lines prefixed by '>' were originally written by you. > I've tried checking if $_POST and $_GET vars are set with just > if($_POST['yuck']) > When 'yuck' is not present my code always explodes with > *"Notice*: Undefi

Re: [PHP] PHP explodes without using isset()

2003-07-16 Thread Curt Zirzow
John Manko <[EMAIL PROTECTED]> wrote: > I've tried checking if $_POST and $_GET vars are set with just > > if($_POST['yuck']) > > When 'yuck' is not present my code always explodes with > *"Notice*: Undefined index: yuck" on the page output. You can use the @ error suppressor. if (@$_POST['yuck

Re: [PHP] MySQL query problems

2003-07-16 Thread Marek Kilimajer
Change $email_error to $mysqlerror and hopefully some error message will appear. Beauford.2005 wrote: if ($mysqlerror) { $error = "$d_base_error$email_error"; include("trades-input.php"); exit; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

  1   2   >