Re: [PHP] Undocumented Socket functions?

2001-02-14 Thread Daniel Grace
"Rog" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone here decipher for me some of the undocumented Socket functions > in PHP4? > > For instance, how do I use select() to multiplex multiple connections? > > With the functions that are documented, th

[PHP] realpath() problem....

2001-02-14 Thread Dhaval Desai
Hi! I need some help in using the function $try = realpath("./filename"); I get a blank page when I try to echo. $try Thanx! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.m

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Ankur Verma
I guess you will need to have a script sunning after a specific period of time which would check for the sessions that have expired and then remove the associated items from the cart. database. there is no way for you to know if the user closes the browser as php is a server side language. I may

Re: [PHP] automatic php execution

2001-02-14 Thread Ankur Verma
this question has been dealt with extensively in the past. try searching the archives. to give you a hint, you will need to make use of the cron daemon on the *nix systems. best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Jeff" <[EMAIL

[PHP] Re: realpath() problem

2001-02-14 Thread Ankur Verma
try using $PATH_TRANSLATED variable also use the phpinfo() function to get lots of information which you can use hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India .- Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: "Ankur Verma" <

[PHP] HTTP authentication

2001-02-14 Thread Thomas Edison Jr.
I was browsing thru the http authentication method given thru the header() function in the manual. I tried it out but it's not giving me the pop-up window asking me the username and password and is only writing the text given in the code on the page. I'm using win98 and otherwise use sun solaris.

Re: [PHP] php vs perl

2001-02-14 Thread Scott Mebberson
When Jason says 'especially when your note using the cgi' he means the cgi version of PHP (I think) in preference to installing PHP as an apache module. ""Jason Brooke"" <[EMAIL PROTECTED]> wrote in message 04ad01c0970f$927eeff0$0100a8c0@jb">news:04ad01c0970f$927eeff0$0100a8c0@jb... > > Is there

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Jason Brooke
> If you're already using the CGI version of PHP, there isn't any > disadvantage to using either it or perl scripts to do this clean-up. If > you're running the Apache module version of PHP, you'll need to find a > tool that can be invoked from the command prompt (such as perl) to do > this for y

Re: [PHP] A little code here? :)

2001-02-14 Thread Ankur Verma
check nl2br() best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dallas Kropka" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 9:01 AM Subject: [PHP] A little code here? :) > I have a few text i

Re: [PHP] help make less ugly?

2001-02-14 Thread Ankur Verma
try using serialize() and unserialize() but if you have a large amount of data, you would be better off using sessions. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Andrew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: [PHP] Qoute problem

2001-02-14 Thread Terrence Wong
magic quotes?? how does this come into place then. terrence Ankur Verma wrote: > if you store the data in the MYSQL database with the slashes escaping the > quotes, I think the complete stuff will get stored. > > for ex - if you have > > Description: I like to run and walk. I love "smelly chees

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Christopher Ostmo
> > hey all, > > > > I was wondering how one would suggest removing items from a cart system > once the session lifetime has expired. I have it set to the default 0, > which expires the session on browser close, what I want to be able to do is > "delete * from Cart where session='$PHPSESSID'" when

Re: [PHP] Up & Downloading

2001-02-14 Thread Ankur Verma
take a look at the php file managers at hotscripts.com http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/ they might have the functionality that you are looking for. if not, it should be easy enough to make the changes so as to support the desired functionality. hope that hel

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Christopher Ostmo
Scott Mebberson pressed the little lettered thingies in this order... > So does anybody have a work around. > I need this becase I am creating a web updating system using my own code > and text box. Ie, I use reg epx's to search through 'my code' and change it > to proper html. Then I search thro

Re: [PHP] PHP scripts in HTML

2001-02-14 Thread Ankur Verma
you should use include() function instead of the javascript style includes refer to the php manual for more details best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thu

Re: [PHP] Paging results

2001-02-14 Thread Ankur Verma
I guess there are good articles on this at phpbuilder.com http://www.phpbuilder.com/columns/rod20001214.php3 http://www.phpbuilder.com/columns/rod2221.php3 hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Randy Jo

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Ankur Verma
you will need to use "\r\n" instead of only "\n", I guess hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Larry Rosenman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 12:51 AM Subject

Re: [PHP] Upload moves the file doesn't copy it..

2001-02-14 Thread Ankur Verma
Sorry for not being able to send you the code you requested for. But I am glad that you learnt uploading files. coming to your problem, PHP by default deletes the temporary upload file it created when the script finishes execution. You will need to explicitly make all the copies of the file that

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Jason Brooke
You'll probably need to trigger the deletion of all expired carts with something other than trying to guess when the user closes their browser. Maybe a regular cronjob, or just do it inside your globally-included function definition script so that any hit to the website can trigger it for you, or

Re: [PHP] PDF Functions

2001-02-14 Thread Michael Stearne
I'm waiting on OS X also. (I'm running it now.) But I need to get a RH setup working for a client. BTW PHP4, mySQL and Apache work fine of the OS X PB so you might try installing PDF on that (I haven't yet though). Michael Chris Carbaugh wrote: > OS X? What's that? :) Damn Mac PPC some

[PHP] currency conversion

2001-02-14 Thread christian
does anyone know of a way to currency conversions with php? i want to grab the current currency from some kind of web site and then convert money to different currency value any help is greatly appreciated many thanks in advance christian -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Joe Stump
Declaring the functions is minimal. Either your ISP has the memory allocations set unbearably low or you aren't coding things very well ... --Joe On Thu, Feb 15, 2001 at 04:16:22AM +0100, Ben Peter wrote: > Hi Joe, > > the reason I changed to 'include on demand' was a rather large > application

Re: [PHP] Passing vars

2001-02-14 Thread Ankur Verma
one way would be to pass this using Hidden fields if you can submit the form or else use the session variables to propogate the values across multiple pages http://www.php.net/manual/en/ref.session.php or try out phplib if you are on PHP3 hope that helps best regards Ankur Verma HCL Technolo

Re: [PHP] Qoute problem

2001-02-14 Thread Ankur Verma
if you store the data in the MYSQL database with the slashes escaping the quotes, I think the complete stuff will get stored. for ex - if you have Description: I like to run and walk. I love "smelly cheese." and on posting, you get I like to run and walk. I love \"smelly cheese.\" it will sto

Re: [PHP] Re: Access my script

2001-02-14 Thread Ankur Verma
take a look at the header function http://www.php.net/manual/en/ref.http.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Barry Fawthrop" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2

Re: [PHP-CVS] cvs: php4 / configure.in /ext/standard basic_functions.c dir.c php_dir.h

2001-02-14 Thread Andi Gutmans
You are right. Got confused with ZEND_DEBUG. Now I"m really gone... Andi At 06:28 AM 2/15/2001 +0100, Sascha Schumann wrote: >On Thu, 15 Feb 2001, Andi Gutmans wrote: > > > ZTS is 0 or 1 but always defined. > > No, it is not. See Zend/Zend.m4, around line 150. > > - Sascha -- PHP CVS

Re: [PHP-CVS] cvs: php4 / configure.in /ext/standard basic_functions.cdir.c php_dir.h

2001-02-14 Thread Sascha Schumann
On Thu, 15 Feb 2001, Andi Gutmans wrote: > ZTS is 0 or 1 but always defined. No, it is not. See Zend/Zend.m4, around line 150. - Sascha -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

[PHP] deleting cart items on session expire

2001-02-14 Thread Joseph H Blythe
hey all, I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete * from Cart where session='$PHPSESSID'" when the user clos

Re: [PHP-CVS] cvs: php4 / configure.in /ext/standard basic_functions.c dir.c php_dir.h

2001-02-14 Thread Andi Gutmans
ZTS is 0 or 1 but always defined. So that needs to be changed. I'd do it but I'm very late for something and need to run. Andi At 05:21 AM 2/15/2001 +, Sascha Schumann wrote: >sas Wed Feb 14 21:21:28 2001 EDT > > Modified files: > /php4 configure.in > /php4/ext/s

[PHP-CVS] cvs: php4 / configure.in /ext/standard basic_functions.c dir.c php_dir.h

2001-02-14 Thread Sascha Schumann
sas Wed Feb 14 21:21:28 2001 EDT Modified files: /php4 configure.in /php4/ext/standard php_dir.h dir.c basic_functions.c Log: There might be more systems which do not support chroot, so we check for the existence of it. Additionally, if chro

Re: [PHP] php vs perl

2001-02-14 Thread Jason Brooke
> Is there any reason why php is better than perl for shopping carts > and/or product catalogs? > > Thanks, > Jeff It's hard to just come out and say that php is better than perl for shopping carts because there's too many factors to take into consideration. If you were a person who'd never use

Re: [PHP] how do I do file maintenance with PHP?

2001-02-14 Thread Ankur Verma
I guess that someone posted a good script to browse through the contents of a specified directory and browse through it. Search through the archives for the last week or so and you shoudl land up with it. If you don't write baxck to me. I have a similar script that I wrote but I need to search for

Re: [PHP] automatic php execution

2001-02-14 Thread Philip Olson
Read about CRON, here's a couple nice descriptions : http://www.faqts.com/knowledge_base/view.phtml/aid/1005/fid/436 http://schvin.net/writings/crontab.html faqts.com has a few php specific cron replies too which basically say "use wget or lynx to dump it" but it'll all make sense soon.

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
Peter, use something like if ( mysql_num_rows( $result ) ) { echo ''; while( list($company) = mysql_fetch_row($result) ) { echo ''.htmlentities($company).''; } echo ''; } the first line checks whether there are results (if no, we don't need to display the either. The while runs un

RE: [PHP] recommended PHP/MySQL host

2001-02-14 Thread Joe Sheble (Wizaerd)
Well I don't know about anyone else's experience, but I've been using JTL Networks (http://www.jtlnet.com) for almost 6 months. Granted, that's not a lot of time, but I've been fairly impressed with them. Reasonable rates, a great support staff, and a lot of flexibility... Joseph E. Sheble a.k.

[PHP] automatic php execution

2001-02-14 Thread Jeff
Is there any way to get a php script to automatically run, say every night at 2am? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROT

[PHP] php vs perl

2001-02-14 Thread Jeff
Is there any reason why php is better than perl for shopping carts and/or product catalogs? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [E

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Philip Olson
> Doesn't anybody know anything?? Even a nope it can't be done is a better > response than nothing? > > Thanks guys Don't always expect a response, especially within 137 minutes. Also consider how dangerous it would be. If I decided to check for files on a visitors HD's and was able to downloa

Re: [PHP] Qoute problem

2001-02-14 Thread Ankur Verma
use stripslashes() in the submit page to take care of the problem with the quotes for ex, if the name of the textbox for description is "txtDesc", use the following line at the top of the page $describe=stripslashes($describe); so your code will look like PHP Script #1: Editing description pr

Re: [PHP] Why???

2001-02-14 Thread Ankur Verma
just use \n"); print ("\n"); print ("$title\n"); print ("\n"); print ("\n"); print ("Thank you. Your submission has been sent. Back to Home Page.\n"); print ("\n"); print (""); ?> hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message

Re: [PHP] Why???

2001-02-14 Thread Ankur Verma
read about stripslashes at http://www.php.net/manual/en/function.stripslashes.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Nguyen, David M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February

Re: [PHP] date maniplations

2001-02-14 Thread Ankur Verma
try using strtotime() http://www.php.net/manual/en/function.strtotime.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 200

Re: [PHP] Help Work with files

2001-02-14 Thread Ankur Verma
check out the filesystems functions in the php manual http://www.php.net/manual/en/ref.filesystem.php and also check out the code of some good file Management systems at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/File_Ma nagement/ hope that helps best regards Ankur

RE: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Peter Houchin
thanks ben it works :) Just one thing if i say enter just one letter .. how could i make it show more than just the one result? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Peter Sent: Thursday, February 15, 2001 2:23 PM To: Peter Houchin Cc: PH

Re: [PHP] apache & php

2001-02-14 Thread Ankur Verma
take a look at some good tutorials on www.phpbuilder.com, www.devshed.com and www.webmonkey.com also, download the php manual from www.php.net and go through the installation section therein that deals in detail with the stuff on installing php with apache , both on Windows and Unix hope that he

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
Peter, after querying the database, you need to fetch the returned values from the result before you can use them: > $result = mysql_query("SELECT company FROM resellers WHERE Company LIKE > '%$query%'"); $row = mysql_fetch_row($result); $company = $row[0]; OR (shorter): list($company)=mysql_

Re: [PHP] Can I launch an external program from a php script?

2001-02-14 Thread Wyatt Earp
On Thu, 15 Feb 2001, David Robley wrote: > > Program execution functions - exec or system might be what you need. Thanks, exec sounds sounds like what I need. - Wyatt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
So does anybody have a work around. I need this becase I am creating a web updating system using my own code and text box. Ie, I use reg epx's to search through 'my code' and change it to proper html. Then I search through and find all file references in order to upload them. But them I am stuck w

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> > Does anybody know how to upload a file if the only information you > > have is the string to the location of the file on the clients hard > > drive. Also, the string was not retrieved using the form method, which > > I know about. This method can't be used and I need to be able to upload >

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Ben Peter
Hi Joe, the reason I changed to 'include on demand' was a rather large application which would not work, as the memory limit that my isp had set wouldn't suffice. I have files that are included all the way, yes: DB connection, some common helpers, etc. But I would not include files that the curr

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Timothy Aslat
Scott Mebberson wrote: > Does anybody know how to upload a file if the only information you have is > the string to the location of the file on the clients hard drive. Also, the > string was not retrieved using the form method, which I know about. This > method can't be used and I need to be able

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> Doesn't anybody know anything?? Even a nope it can't be done > is a better response than nothing? "Nope, it can't be done." Well ... actually, it *can* be done. But you ruled out the only possible method of doing it, for some reason. Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
Doesn't anybody know anything?? Even a nope it can't be done is a better response than nothing? Thanks guys ""Scott Mebberson"" <[EMAIL PROTECTED]> wrote in message 96fcni$kg$[EMAIL PROTECTED]">news:96fcni$kg$[EMAIL PROTECTED]... > Hi Guys, > > Does anybody know how to upload a file if the only

Re: [PHP] Can I launch an external program from a php script?

2001-02-14 Thread David Robley
On Thu, 15 Feb 2001 12:40, Wyatt Earp wrote: > Hello, > > I have a situation where I need to verify the PGP signature of a > message that is stored within a variable in a PHP script. Is it > possible to launch external programs from within PHP? I can't find > anything about it in the manual. If no

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Larry Rosenman
* CC Zona <[EMAIL PROTECTED]> [010214 21:21]: > [restored to bottom-posting, for clarity] > > > > > I was trying to build up a multi-line body to use with the mail > > > > command, using code similar to: > > > > $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; > > > > > >

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Peter Houchin") wrote: > > > > > echo " BGCOLOR=\"#CC\" ALIGN=\"CENTER\">\n\n bgcolor=\"#006699\"> sans-serif\" size=\"3\" color=\"#FF\">Company "; > $result = mysql_query("SELECT company FROM resellers WHERE Company LIKE > '%$quer

Re: [PHP] recommended PHP/MySQL host

2001-02-14 Thread Timothy Aslat
Freemail wrote: > Could anyone recommend a reasonably priced (preferably > below USD 100 a month) host that provides PHP4 and > MySQL? What are your experiences with the host that you > are recommeding? Actually, yes. I do. My rates are approximately US$20 per month depending on the expected si

[PHP] recommended PHP/MySQL host

2001-02-14 Thread Freemail
Could anyone recommend a reasonably priced (preferably below USD 100 a month) host that provides PHP4 and MySQL? What are your experiences with the host that you are recommeding? Thanks in advance. - Andres Montiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: Re: [PHP] PDF Functions

2001-02-14 Thread Chris Carbaugh
OS X? What's that? :) Damn Mac PPC somethin or other I just don't get it.. In the mean time, I'd say 6.2 is a good bet. Good Luck, Chris On Wed, 14 Feb 2001, Mike Tuller wrote: > Date: Wed, 14 Feb 2001 19:03:05 -0600 > To: <[EMAIL PROTECTED]>, Michael Stearne <[EMAIL PRO

[PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Peter Houchin
Hiya, i was wondering if some one could help me with this ... i have a little form where you can enter a value say company then on submit its ment to check the db for value or one like it my sql line works fine (mysql_error() shows nothing and it works from command line) .. . . . \n\nCompan

RE: [PHP] A little code here? :)

2001-02-14 Thread Dallas Kropka
Hmmm, ok, now I feel like a dumbass. and somewhere in the back of my mind I knew of that function. sorry. -Original Message- From: Cameron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:34 PM To: Dallas Kropka Subject: Re: [PHP] A little code here? :) http://www.p

Re: [PHP] A little code here? :)

2001-02-14 Thread Philip Olson
Are you sure you want to convert \n into for an email? At any rate, a function exists for this conversion : http://www.php.net/manual/en/function.nl2br.php Regards, Philip Olson http://www.cornado.com/ .sig be outside the box. On Wed, 14 Feb 2001, Dalla

[PHP] A little code here? :)

2001-02-14 Thread Dallas Kropka
I have a few text input boxes that I am using to allow the client to compose emails for a mailing list... does anyone have a little snippet that will take the "\n's" and turn them into 's? I would attempt to write one myself but Im not the best at ereg or replace code... Much Thanks

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread CC Zona
[restored to bottom-posting, for clarity] > > > I was trying to build up a multi-line body to use with the mail > > > command, using code similar to: > > > $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; > > I think you can do it like this: > > > > $mailbody="$varname\n$

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-14 Thread Zeev Suraski
This patch won't always work (it may cause the link not to be closed when it's supposed to). I committed a different patch to the CVS - can you please check it? At 18:54 13/2/2001, Thies C. Arntzen wrote: >thies Tue Feb 13 08:54:48 2001 EDT > > Modified files: > /php4/ext/pgsql

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-14 Thread Zeev Suraski
zeevWed Feb 14 18:15:36 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: Fix the PostgreSQL fix... Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.88 php4/ext/pgsql/pgsql.c:1.89 --- php4/ext/pgsql/pgsql.c:1.88 Tue Feb 13 12:13:14

Re: [PHP] error handling

2001-02-14 Thread Patrick Brown
OK, I tried the @ symbol. It seemed to just disable error checking altogether. I have this in my code that I'd like to use. if (!$php_errormsg) { header("Location: http://www.domain.com/admin/index.php"); } else { header("Location: http://www.domain.com/admin/error.html"); } "CC Zona" <[EMAIL

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread 'Larry Rosenman'
* Janet Valade <[EMAIL PROTECTED]> [010214 18:33]: > I think you can do it like this: > > $mailbody="$varname\n$varname2"; That works. Hmm. I wonder why the concatenation didn't? Thanks! LER > > Janet > > > > -Original Message- > > From: Larry Rosenman [SMTP:[EMAIL PROTECTED

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Michael Kimsal
Any particular reason you don't do something like: $whatever="blah"; include($whatever); This eliminates the need for potentially dozens of case/switch statements. If you're interested, we're developing a more structured way of handling this with classes, and I could demonstrate some of this to

[PHP] Can I launch an external program from a php script?

2001-02-14 Thread Wyatt Earp
Hello, I have a situation where I need to verify the PGP signature of a message that is stored within a variable in a PHP script. Is it possible to launch external programs from within PHP? I can't find anything about it in the manual. If not, has anyone ported PGP over to PHP?? (That's a lot of

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Joe Stump
Normally, yes. The chances of a page NOT accessing the db is slim at best. I generally keep them there because the speed lost on parsing function definitions is minute and I don't have to worry about including numerous files in each page - or worse going through 100's of pages and adding an incl

Re: [PHP] gettimeofday() question

2001-02-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("James Moore") wrote: > I would suggest using somthing like > > srand((double)microtime()*100); > $unique_id = md5(rand(0,32000)); > > which is very effective for creating unique id's. Or use uniqid() -- CC -- PHP General Mailing List

Re: [PHP] error handling

2001-02-14 Thread CC Zona
In article <96faad$h9k$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Patrick Brown") wrote: > How can I disable the display of error to the browser window from within the > script? I want to do a redirect based on the error and cannot because header > info has already been sent. Use the "@" sign. Exa

[PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
Hi Guys, Does anybody know how to upload a file if the only information you have is the string to the location of the file on the clients hard drive. Also, the string was not retrieved using the form method, which I know about. This method can't be used and I need to be able to upload with only t

Re: [PHP] error handling

2001-02-14 Thread David Robley
On Thu, 15 Feb 2001 11:42, Patrick Brown wrote: > How can I disable the display of error to the browser window from > within the script? I want to do a redirect based on the error and > cannot because header info has already been sent. > > Thanks, > Pat Try an @ prepended to the function that tri

RE: [PHP] Structuring large PHP programs

2001-02-14 Thread Jonathan Sharp
do you include EVERY file in init.inc even if that script doesn't use it? So if you have a db.inc and it doesn't use the db at all...is it included? -Jonathan > -Original Message- > From: Joe Stump [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 14, 2001 5:11 PM > To: Ben Peter >

RE: [PHP] OOP in web development

2001-02-14 Thread Nold, Mark
- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are no

[PHP] error handling

2001-02-14 Thread Patrick Brown
How can I disable the display of error to the browser window from within the script? I want to do a redirect based on the error and cannot because header info has already been sent. Thanks, Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Joe Stump
The way I normally do it is I have ONE main include (usually init.inc) and then all files that I might need throught my page I put in init.inc I works nicely for me. --Joe On Wed, Feb 14, 2001 at 09:15:35PM +0100, Ben Peter wrote: > John, > > part of this is a matter of taste - I would person

Re: [PHP] PDF Functions

2001-02-14 Thread Mike Tuller
I decided on my way home tonight to ditch 7.0 and go back to 6.2. I think that it is the only way to get anything done. When 7.1 or later comes out then I can go back. Thanks for your help. When OS X finally ships I will be happy. Mike > From: Chris Carbaugh <[EMAIL PROTECTED]> > Reply-To: [EMA

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c dir.c php_dir.h

2001-02-14 Thread Derick Rethans
derick Wed Feb 14 16:43:45 2001 EDT Modified files: /php4/ext/standard basic_functions.c php_dir.h dir.c Log: - chroot does not work on windows Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.303 php4/ext/standard/

Re: [PHP] need better solution

2001-02-14 Thread Christian Dechery
At 19:53 14/2/2001 +0100, Christian Reiniger wrote: >On Wednesday 14 February 2001 18:43, Christian Dechery wrote: > > that's kinda what I have here... but the line of code isn't being > > shown... and that is the problem... I for one, think that in an error > > message the line of code is crucial

Re: Re: [PHP] PDF Functions

2001-02-14 Thread Chris Carbaugh
Well, first let me say that I'm kind of surprised I'm the only one trying to help you guys out. It seems not many folk are into PHP/PDF? Any how, Redhat's *.0 releases are known to be problematic. They are usually pretty much bleading edge, meaning they're buggy. The last time I compiled PHP

[PHP] Array question

2001-02-14 Thread Chris
Hi, How do I get the index,number of an array if reffering to an array via string? Ex: I have 100 arrays, and I want to know what # myarray["something"] is. I looked at Current, but how do I move the pointer to where "something" is in the array? Would this work: $null = myarray["something"]; $

Re: [PHP] re:linebreak

2001-02-14 Thread Steve Werby
"Jens Nedal" <[EMAIL PROTECTED]> wrote: > In case of displaying \n that are stored in a variable or com from a DB or > inptu field you can also use nl2br($var) which automatically converts those > linebreaks to and so get displayed correctly. Good call, Jens. > Though that will not work > for t

Re: [PHP] PHP and Java (CVS version)

2001-02-14 Thread Alex Akilov
Evan, It sounds like your PATH doesn't contain the JDK/bin directory. What happens if you type "which jar" at a command shell? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the li

Re: [PHP] Paging results

2001-02-14 Thread David Robley
On Thu, 15 Feb 2001 07:12, Randy Johnson wrote: > Can somebody give me a url of an example or an example of how to page > results so they can be view by clicking page 1 page 2 or back and > next? > > results obtained from mysql database. > > Thanks > > Randy http://px.sklar.com/code.html?code

Re: [PHP] PDF Functions

2001-02-14 Thread Mike Tuller
Exactly!!! I have gone back and redone everything 3 or 4 times, and am on day 3 of this. I watch while I configure, and it says that it is working, but when I go to check. I still get an error. > From: Michael Stearne <[EMAIL PROTECTED]> > Date: Wed, 14 Feb 2001 18:01:20 -0500 > To: [EMAIL PROTE

Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Alexander Wagner
Karl J. Stubsjoen wrote: > Okay, last one for the day! How do you query the clients IP address? > We have a site in development, and I want to restrict access to > people coming in from certain IP addresses. > Really, all I need to do is query the IP address, I can code the rest > of it. $remot

Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Mark Green
be Careful using the IPAddress as a primary security measure. If the client has accessed your site through a proxy, then the IP Address shown will be the IP Address of the proxy. While you can use X_FORWARDED_FOR (or something similar,c ant remember off the top of my head :p ) to determine the req

Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Michael Stearne
Run on a page. You will be able to see all of the available environment variables avaliable to you, one will tell you the client IP address. Michael "Karl J. Stubsjoen" wrote: > Okay, last one for the day! How do you query the clients IP address? We > have a site in development, and I wan

[PHP] Restrict access per IP Address

2001-02-14 Thread Karl J. Stubsjoen
Okay, last one for the day! How do you query the clients IP address? We have a site in development, and I want to restrict access to people coming in from certain IP addresses. Really, all I need to do is query the IP address, I can code the rest of it. Thanks! Karl -- PHP General Mailing L

[PHP] list only checkbox-marked records on a new page

2001-02-14 Thread Helmut Ott
Hi, I need help from checkbox-specialists needed ! I have a list of records each carrying a checkbox. The source in this original page looks like this as for the checkbox - the value of "value" equals the ID of the record: ... ... ... The user shall mark interesting records and upon submit

Re: [PHP] PDF Functions

2001-02-14 Thread Michael Stearne
Chris Carbaugh wrote: > > > I have had problems in the past with RedHat's RPMs. They seem to put > things in weird places. And just removing them and starting fresh with > source always seems to work. Besides, once you have built from source > a few times, it's really a piece of cake, and mu

Re: [PHP] mcrypt!

2001-02-14 Thread Phillip Bow
The latest version should be at: ftp://argeas.cs-net.gr/pub/unix/mcrypt/win32/ -- phill > Kevin Connolly wrote: > > Does anyone know where I might get the mcrypt dll for windows nt or > > win 98?? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] Forms

2001-02-14 Thread Augusto Cesar Castoldi
with the password you can use the funcio srtlen: $number_of_chars=strlen($password); Where are the right password? On a database?? In the site http://www.hotscripts.com you'll find a lot of script exemplos in PHP and JavaScript to verify if a e-mail typed is right. Augusto Cesar Castoldi On W

[PHP] Forms

2001-02-14 Thread Brandon Feldhahn
how can i make somthing that nows if there are 6-12 chars in a password field. Also how do you make somthing the know is the password, and the password confermation is the same. And finnally i need a script that know if they filled all the form fields, and one that know if they put and "@" in ther

Re: [PHP] PDF Functions

2001-02-14 Thread Tim Livers
Here are the directions I used to configure PHP with pdflib. These worked for me. http://www.phpbuilder.net/columns/perugini20001026.php3?page=2 Tim Mike Tuller wrote: > I finally got everything to install on RedHat 7, but I can't do anything > with pdflib like I had expected. > > I get bac

[PHP] (roberto)Standar of modules of PHP3 ...how i can make a extension in C/c++ for this version?

2001-02-14 Thread Celestino Roberto Alejandro
Hello.. ..how i can make a extension for this version of PHP3? ..Thanks :-)

Re: Re: [PHP] PDF Functions

2001-02-14 Thread Chris Carbaugh
Here's the steps I would take: ditch all those configure options except the ones needed to keep PDF functions working. Maybe even just ./configure --with-pdflib=/usr/local/lib, and test it out as a stand alone exec. If that fails, ditch the RPMs. Get the source for apache, php, pdflib, and wh

  1   2   3   >