Re: [PHP] Items displayed left and right, help newman.

2003-07-01 Thread Jeff Harris
On Jul 2, 2003, "Mark Tehara" claimed that: |Where should i start with the lodgic. I'm trying to list a group of items | | |Left: item one, Right: Item 2 | | |This is repeated | |I can only seem to get them to go str8 down not left then right. | | |Any Ideas? | |/ Mark Perhaps you want an html t

Re: [PHP] safe_mode and file/directory ownership

2003-07-01 Thread Jason Sheets
Take a look at safe_mode_gid, it tells PHP to do safe mode owner checking using the group id rather than user id. safe_mode_gid boolean By default, Safe Mode does a UID compare check when opening files. If you want to relax this to a GID compare, then turn on safe_mode_gid. Whether to use UID

Re: [PHP] Re: php - printer button

2003-07-01 Thread daniel
lol we we just discussing this at work the printer functions are only for windoze , there is jscript window.print() to bring up the printer dialog , a project i just did implemented htmldoc which outputted the formatted content to pdf which was a more well formed format for printing rather than fr

[PHP] PHP user group

2003-07-01 Thread Erich Kolb
Does anyone know of a PHP user group near Gurnee, IL. I found one in Chicago, but its a little far to go and they meet in the middle of the day on Sat. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can I get all vars

2003-07-01 Thread Slava
Hi, Can somebody say how can I get all vars and their values from a script. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT (kinda): Mod_rewrite

2003-07-01 Thread Wendell Brown
On Tue, 01 Jul 2003 22:38:38 -0700, John wrote: >When using mod_rewrite, is there any way to post variables from a form the >way you want to. > >eg >a text box called first name >another textbox called second name >action being http://www.searcher.com/search > >and the result being >http://www.se

[PHP] Previous Basic Auth clarified

2003-07-01 Thread Dave Carrera
Hi All I think I missed a bit to my Basic Auth issue which I hope to clarify here. 1) User successfully logins into my UNIX/Apache/Php site using my MySql/SESSION/$_POST combo. 2) Now I need to send a username:password pair to a Windows box to allow access to a Basic Auth protected resource on t

Re: Betr: [PHP] php - printer button

2003-07-01 Thread Jyry Kuukkanen
On Tue, 1 Jul 2003 [EMAIL PROTECTED] wrote: > > On Tue, 1 Jul 2003, Dore van Hoorn wrote: > > > This is not exactly what you've asked for, but perhaps you're able to use > > it anyway. It is the PHP script I use to create a print-friendly page: > > Everything between and

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Joel Rees
> > You'll have to learn to adjust then I guess. And do those 2k really > > matter? Come on... Just get a good mailer that defaults to > > "Reply-All" > > (like, mutt, pine, pcpine) > > Some of us don't have the choice -- we work in a corporate or institutional > environment where the decision

Re: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Joel Rees
> Hi, > > > I told him that support for PHP was compiled into Apache and that it > > would be impractical. I asked if he wanted the DB on another box. I > > asked if he wated the scripts on another box. I am quite sure that there > > is no particular logic behind the request as I have not received

Re: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Joel Rees
> I don't know the details of this request (like why., but as soon as I > know I'll tell you) but can Apache live on one box with all PHP requests > being handled on another box? Yeah, but what you're likely to end up with is apache on one machine just passing requests to and from apache-mod_php-y

[PHP] HTTP Authentication does not work

2003-07-01 Thread Peter Holmberg
I have tried using HTTP Authentication as described in the documentation. But it does not matter how many times i type in login/password, the popup keeps coming back. The server, mandrake 9.1, uses safe mode, so PHP_AUTH_USER and PHP_AUTH_PW does not work. $_SERVER['REMOTE_USER'] does not work eith

[PHP] multi line regular expression?

2003-07-01 Thread Tim
hi, i have a string that contains the following: $mystring=<

Re: [PHP] PHP Programmer Needed!

2003-07-01 Thread John Coggeshall
I may be interested if you haven't filled the spot yet. John On Fri, 2003-06-27 at 02:55, Erica Ziegler-Roberts wrote: > I am swamped with work and need a php expert who is familiar with IC-Radius > to do the following project for me. If it can be done by Monday, I will be > willing to pay more.

RE: [PHP] list() with unknown number of values

2003-07-01 Thread Ford, Mike [LSS]
> -Original Message- > From: John Wulff [mailto:[EMAIL PROTECTED] > Sent: 30 June 2003 21:40 > > I want to write a function that manipulates each piece of > data in an array > (except for the first). Right now I'm using list as follows from this > array: > > $cdata = array( > array("Apr

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
> -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: 30 June 2003 22:47 > > On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: > > > Having said this, I suspect that you and I will continue to > disagree, > > which is perfectly okay. If this list changes the defa

[PHP] ereg_replace

2003-07-01 Thread alexander sundli
I'm trying to replace singel line comment with empty string. tried ereg_replace("//.+\n",'',$string); but this replaces all text after //. anyone now what to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php - printer button

2003-07-01 Thread nasar
Dear all, I have research about library automation engine in my library. developing on PHP + MySQL We need to develop printer utility at some module to get print out transaction. Can I do this utility using SUBMIT BUTTON under HTML & PHP? how to make the php printer script? help... please & th

[PHP] Re: Query for MySQL

2003-07-01 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Question. > > I am looking to try and pull the last modified date out and display it. So > lets say I have 1000 records. I want to only display the date of the last > modified time, I dont care about the id or the name or anything.

[PHP] Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi List OK, firstly, sorry if this has been on the list before... What I'd like to do is something like this: I currently have an app that takes user input via a normal html form, and then pops the content into mysql. The problem is that lots of user complain that the submit times out due to sl

Betr: [PHP] php - printer button

2003-07-01 Thread Dore van Hoorn
This is not exactly what you've asked for, but perhaps you're able to use it anyway. It is the PHP script I use to create a print-friendly page: Everything between and will be part of the new page.. "; $endingpoint = ""; error_reporting(0); $read = fopen($HTTP_REFERER, "r") or die; error_re

[PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
hi, seems u have complicated task on hand mate. cant u simply consider span the user input over multiple pages? i mean using 2 or more form on different pages instead of a single form on one single page. if this cant be done, we'll think of other measures. but this is by far the most simple method

[PHP] GetImageSize-craziness

2003-07-01 Thread Bernhard Döbler
Hi, I'd like to insert the URL of a picture, it's dimensions an an accompanying text into a database. I enter the URL and the text in a form and post it to a script, the dimensions shall be retrieved by GetImageSize in the second script. That worked well while all URLs were from another Server.

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Jason Wong
On Tuesday 01 July 2003 18:08, Ford, Mike [LSS] wrote: > > You'll have to learn to adjust then I guess. And do those 2k really > > matter? Come on... Just get a good mailer that defaults to > > "Reply-All" > > (like, mutt, pine, pcpine) > > Some of us don't have the choice -- we work in a corpora

Re: [PHP] Subtracting dates in php

2003-07-01 Thread David Otton
On Tue, 1 Jul 2003 01:21:54 -0400, you wrote: >Anyone know of an easy way to add or subtract dates in php the way you can >in mysql? Easier, that is, than coding the logic by hand? This seems like >a total pain. Convert to Unix timestamps, do regular maths, unconvert. -- PHP General Mailing

Re: [PHP] Installation for OS X

2003-07-01 Thread Didier McGillis
Went there and couldnt find the download, did he move it. From: Larry E. Ullman <[EMAIL PROTECTED]> To: Rodney Davis <[EMAIL PROTECTED]> CC: PHP-General <[EMAIL PROTECTED]> Subject: Re: [PHP] Installation for OS X Date: Mon, 30 Jun 2003 20:26:38 -0400 Does anyone know of a good installation kit li

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi Shiva Appreciate your input. Wrt the spanning of the form, I think, in my situation, it would actually make things worse... You see, my suspicion is that most of the users who are experiencing problems, have very bad connections, many complain that they lose connectivity while they are busy with

RE: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Sævar Öfjörð
You could use a temp table in the database which gets cleaned up both when the last page is completed or if there is data in it when the user starts from scratch. Of course you would have to use sessions to identify each user to each line of temp data. I'm not sure if this will work, there are some

Re: [PHP] Yahoo Stuff.

2003-07-01 Thread Mario Oberrauch
On Tue, 2003-07-01 at 03:21, Rasmus Lerdorf wrote: > Someone had subscribed [EMAIL PROTECTED] to > php-general. I got rid of it. > > -Rasmus wow, that's really nasty btw, got this mail too. -- Mario Oberrauch --- CREATO - creative onlin

Re: [PHP] Installation for OS X

2003-07-01 Thread Jim McNeely
check out http://www.serverlogistics.com/software.php great binaries for lots of open source OSX with real install packages and such from Aaron Faby. HTH Jim McNeely Envision Data Custom, intuitive, practical software for your business. [EMAIL PROTECTED] http://www.envisiondata.com On Tuesday,

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
Hi Petre, I'm beginning to have second thoughts about my earlier idea too; coz that is not solving the actual problem (u're have a slow n/w). Afterall how many KB of form data is she/he actually sending? I'll think of other possible solutions. Regards, -shiva "Petre Agenbag" <[EMAIL PROTECTED

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Cesar Cordovez
I had the exact same problem with a form some time ago. Definetely the best way to do it is "spanning" the form. I don't think the temp table will do. I did it with a session variable wich saves the info from the form and what part of the form you are. So the user can flip between pages in t

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Kristin Schesonka
Hi :) I'm actually working on an Multipart-Form and i'm saving all data during the "Fill-In" process in a Session - then, at the end, i save the whole sessiondata in my table. That will solve the connection-problems i hope . . . If I am wrong, please correct me :) Greetings from Germany Kristin

Re: [PHP] PHP Web Based File Management and Security

2003-07-01 Thread joel boonstra
On Mon, Jun 30, 2003 at 03:29:39PM -0500, Dean E. Weimer wrote: > It looks like there is no simple solution to this, and your point about > uploading a large quantity of files is well taken. > > I think as a solution I will enable a tsl/ssl ftp server and in the short > term use a published PHP so

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-01 Thread Mark
That's where this thread started... --- Wendell Brown <[EMAIL PROTECTED]> wrote: > On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: > > >My concern is that a shell emulating PHP or > >Perl script run as Apache can read or copy ANY PHP script used > with PHP as > >an Apache module. > > It

Re: [PHP] multi line regular expression?

2003-07-01 Thread Adam i Agnieszka Gasiorowski FNORD
Tim wrote: > i have a string that contains the following: > $mystring=<< (((TITLE))) > *color* > == > this is where the content goes > it can spreed many lines > ... > == > EOS; > > i'm using this line of code to try and get the content between == and == > > preg_match_all("|==(.+)==|",$mystrin

[PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi Everyone, I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg("^[A-Za-z0-9 #-]{1,20}", $_POST["address1"])) { $error = 1; $msg .= "Address must only contain letters, nu

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Well, I'm still a bit concerned about what would happen if the connection got broken while they are busy... The session will time-out (by most defaults, after 1440s), so if they cannot re-connect, and somehow get the same SESSID, then all would be lost that they have done so far..., and that is the

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg("^[A-Za-z0-9 #-]{1,20}", $_POST["address1"])) { $error = 1; $msg .= "Address must only contain letters, numbers,

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, > It's not so much that your regex is wrong, but there are other functions > that you may want to use, such as is_numeric(), is_integer(), > is_string() (there is a good example of checking for an alphabetic > string on the php site) That would have been my first choice also, however,

[PHP] Basic Auth question

2003-07-01 Thread Dave Carrera
I have a issue with basic auth which I hope someone here can throw some light on. 1) I have already got my SESSION auth working well 2) Once someone logs in I need to send some basic auth info to a dir on another server to let my logged in user to view it. This is where I am stuck :-( I think on

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: 01 July 2003 12:55 > > On Tuesday 01 July 2003 18:08, Ford, Mike [LSS] wrote: > Watch your quoting attributions -- I didn't say this first bit, Derick did: > > > You'll have to learn to adjust then I guess. And do

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Kristin Schesonka
Hmm, i don't know if you want it that way, but i got the idea of making the stuff personalized . . . I mean the user logges on and gets an Userid - then you always save your data with the Userid, so you can look which entries in your DB belong to this user and the user can start again at a differen

Re: [PHP] Regular Expression

2003-07-01 Thread Jason Wong
On Tuesday 01 July 2003 21:38, Dan Joseph wrote: > Hi Everyone, > > I am currently using this piece of code to validate wether or not an > address has only letters, numbers, #, or - in it: > > if (!ereg("^[A-Za-z0-9 #-]{1,20}", $_POST["address1"])) { > $error = 1; >

[PHP] fwrite() question

2003-07-01 Thread Adam Williams
Hello, I have a block of code: unable to write to news.txt"; exit; } Header("Location: http://archives1.mdah.state.ms.us/news.php"; ); } ?> and when I access it, I get the error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr/l

Re: [PHP] fwrite() question

2003-07-01 Thread Adrian
you should use $_POST['news'] instead of "$POST_['news']". ans you also should'nt put " around variables ;) > Hello, > I have a block of code: > if ($_POST['news']) > { > $fp = fopen( "news.txt", "w"); > $success = fwrite( $fp, "$POST_['news']" ); >

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, > You're only checking for valid characters at the *start* of the > string, you > need to check to the *end* of the string as well: > > "^[A-Za-z0-9 #-]{1,20}$" > > ought to do it. It sure did do it. Thank you! I didn't realize that the $ did that. Thanks for the info. -Dan Josep

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] That would have been my first choice also, however, with the # and - being legal, things like ctype_alnum and others don't work out. [/snip] Here is an example of something that I did before; $alphachar = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $ld1alpha = strspn($

Re: [PHP] fwrite() question

2003-07-01 Thread Adam Williams
Hi, when I do that, nothing is written to news.txt, and I'm not sure why. This is the entire script: unable to write to news.txt"; exit; } Header("Location: http://archives1.mdah.state.ms.us/news.php"; ); } ?> News update Please make your changes below and then click

Re: [PHP] ereg_replace

2003-07-01 Thread Dean E. Weimer
> I'm trying to replace singel line comment with empty string. > > tried ereg_replace("//.+\n",'',$string); but this replaces all text after > //. > > anyone now what to do? \n is the newline character, making the string apear to be multiple lines see the thread "[PHP] multi line regular express

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi Kristin Yes, of course that is a possibility, and it would surely address the problem of "resuming" at a later stage. I'm just rather worried at managing these "broken" submissions. They might start one, then for some reason don't finish, and forget about it altogether... But, I think my bigges

[PHP] HTMLENTITES(); & the pound sign

2003-07-01 Thread bob pilly
I am using PHP Version 4.3.2-RC1 Can someone please clarify the htmlentities() function for me? I have a variable called $notes2 that is pulled from a database that has a pound sign in it. When i echo that do the screen i get the following output: echo $notes; output= £5,000 Instead of £5,000

[PHP] PHP on one box, Apache on another?

2003-07-01 Thread Jay Blanchard
I don't know the details of this request (like why., but as soon as I know I'll tell you) but can Apache live on one box with all PHP requests being handled on another box? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload: type and size question

2003-07-01 Thread Dani Matielo
Hello, could someone help me? I am trying to limit the type and size of the files to be uploaded, but I can't find how to do this. I have seen examples on how to limit to image types, with the MIME function. The problem is, the type of file I want is audio, extensions MP3 or WAV. The max file size

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, That might actually be a good solution for another item I'm working with. Thanks for the tip. -Dan Joseph > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 10:10 AM > To: Dan Joseph; [EMAIL PROTECTED] > Subject: RE: [PHP] Regu

Re: [PHP] File upload: type and size question

2003-07-01 Thread Mário Gamito
Hi, I have this class for sending mail, which worked until PHP 4.2.3 Since 4.3.0 it stops functioning. No error message. The mail is simply not send. I've searched everywhere and found no explanation for this behaviour. Any help would be appreciated. Warm regards, Mário Gamito class html_mime_m

<    1   2