Re: [PHP] Enough is Enough.......

2003-07-18 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > Hi, Hello > [...] > > $list = preg_replace('/(<.*?>)(.*)/', '$2$1', $list); > sort ($list); > $list = preg_replace('/(.*?)(<.*>)/', '$2$1', $list); what is list after the first preg and after the second one, that regex doesn't look sa

Re: [PHP] Securing File Uploads Was: Is it possible to test an uploaded file to check the type?

2003-07-18 Thread Curt Zirzow
Gerard Samuel <[EMAIL PROTECTED]> wrote: > Jason Wong wrote: > > >In a response to your previous posts on this matter, I suggested that you > >search freshmeat/sourceforge for a PHP-based media file metadata extractor > >(yes one does exist). I'm putting forward the same suggestion again. > > >

Re: [PHP] Securing File Uploads Was: Is it possible to test an uploadedfile to check the type?

2003-07-18 Thread Gerard Samuel
Jason Wong wrote: In a response to your previous posts on this matter, I suggested that you search freshmeat/sourceforge for a PHP-based media file metadata extractor (yes one does exist). I'm putting forward the same suggestion again. Ok, Ill look, but not sure what good it will do me, as Im

[PHP] Enough is Enough.......

2003-07-18 Thread Beauford.2005
Hi, I apologize for all the emails on this, but I'm truly at a loss here and really need some input as to what I need to do to get this working. I have a FORM with two drop down menus and have the entries saved in two separate .inc files i.e: Alfredsson Arnott Aucoin Audette Etc... Bates Battag

Re: [PHP] Still problem with files

2003-07-18 Thread Jason Wong
On Saturday 19 July 2003 04:58, Beauford.2005 wrote: > Yep, but am I doing it right I don't know. This is the line that will be > written to the database (there will be 130 of them). > > $p = "Player Name"; > > So where do I put the \r\n. I have tried just \n at the end, but same > thing. > > $p =

Re: [PHP] Securing File Uploads Was: Is it possible to test an uploaded file to check the type?

2003-07-18 Thread Jason Wong
On Saturday 19 July 2003 04:49, Gerard Samuel wrote: > Sorry for bring this back to life, but Im looking for some more opinions. > A friend and I are somewhat dead locked, as to whether with available > tools via php, that its possible to *reliably* secure file uploads. > File uploads currently enc

[PHP] Something to watch look for when getting HEADER Warnings

2003-07-18 Thread John Manko
Recently, I ran into a problem where I continually got a "Header already sent" message. I took me a while to figure out because the file that was "included" only contained function definitions, or so I thought. After the closing php tag, I had a new line with a single space on it. This space wa

Re: [PHP] running a php script in /cgi from /web

2003-07-18 Thread Tom Rogers
Hi, Saturday, July 19, 2003, 10:31:04 AM, you wrote: DW> Folks, DW> I've searched through the archives of the general mailing list and DW> cannot find the answer to my question. My web hosting service requires DW> ALL scripts run from /cgi. I've tried putting and

Re: [PHP] RE: new browser window in php

2003-07-18 Thread Jeff Harris
On Jul 18, 2003, "Jeffry Lester" claimed that: |How do I start a new browser window when using print in php? | |Jeffry Lester |[EMAIL PROTECTED] Not quite sure how this is PHP, but you might want to check here: http://www.htmlgoodies.com/tutors/new_win.html I guess one way of doing it would be s

[PHP] Re: Mail From option in PHP.ini

2003-07-18 Thread Manuel Lemos
Hello, On 07/18/2003 12:00 PM, Brian S. Drexler wrote: Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else.

[PHP] running a php script in /cgi from /web

2003-07-18 Thread Dale Walters
Folks, I've searched through the archives of the general mailing list and cannot find the answer to my question. My web hosting service requires ALL scripts run from /cgi. I've tried putting and

RE: [PHP] Nested page calls

2003-07-18 Thread Lee Elenbaas
Nice workaround - thanks, I will use it if I don't think of a better option What I wanted was something along the lines of my file be defined like this: ... Some HTML stuff ... ... Some HTML stuff ... there is also the question what happened when I include this file from another file -I think

Re: [PHP] Nested page calls

2003-07-18 Thread Curt Zirzow
Lee Elenbaas <[EMAIL PROTECTED]> wrote: > I would like to perform nested page calls, where a page does conditional > includes to itself > The problem is how to avoid stepping over the variables not sure why but um.. $current_scope++; if ($condition) { include(__FILE__): } $scoped_vars[$current_

RE: [PHP] osCommerce and modifications

2003-07-18 Thread Ralph Guzman
where can I see eShox? -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 6:16 AM To: PHP General Subject: Re: [PHP] osCommerce and modifications You might want to look at eShox, it's based on osCommerce, but in my opinion it's quite a lot bett

Re: [PHP] CSV > MySQL

2003-07-18 Thread Curt Zirzow
John Wulff <[EMAIL PROTECTED]> wrote: > How would I go about taking a 6 field CSV and inserting each row into a > MySQL DB? http://php.net/fgetcsv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes v. functions

2003-07-18 Thread Curt Zirzow
Andu <[EMAIL PROTECTED]> wrote: > > > --On Friday, July 18, 2003 14:28:02 -0700 Chris Shiflett <[EMAIL PROTECTED]> > wrote: > > >--- Andu <[EMAIL PROTECTED]> wrote: > >>This may show my ignorance or my refusal to take for granted > >>something I don't fully understand but I have a hard time > >

RE: [PHP] Multidimensional arrays

2003-07-18 Thread Ralph Guzman
Here's a way of doing it: -- $query = "SELECT id, name FROM customer"; $result = mysql_query($query); while ($oRsCusts = mysql_fetch_array($result)){ $customers_array[] = array( 'id' => $oRsCusts['id'], 'name' => $oRsCusts['name']

Re: [PHP] echo statements

2003-07-18 Thread Curt Zirzow
Jay Fitzgerald <[EMAIL PROTECTED]> wrote: > When echoing html code that will include variables from a while or if loop, > which method is best? > Method 1: echo " class=\"dbtables\">$employer"; > OR > Method 2: "$employer"; ?> method 2a: > If you would, please give reasons why to support you

[PHP] Nested page calls

2003-07-18 Thread Lee Elenbaas
I would like to perform nested page calls, where a page does conditional includes to itself The problem is how to avoid stepping over the variables Is there a way to define the page or parts of it as a function and still have the HTML sections of it editable by an html editor? That means without u

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Curt Zirzow
Reuben D. Budiardja <[EMAIL PROTECTED]> wrote: > Anything simple, and fast? xml is simple, and fast to implement. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance and require / include

2003-07-18 Thread Curt Zirzow
Infoman: Thorsten Koch <[EMAIL PROTECTED]> wrote: > Hello List, > > i have a question about the require / include functions and > performance. > > I try to divide my application into several files (e.g. templates and > common config files) and they are included with the require statement. > But i

Re: [PHP] Multidimensional arrays

2003-07-18 Thread Curt Zirzow
Gary Broughton <[EMAIL PROTECTED]> wrote: > Hi > > Many thanks for your time Matt. I tried that method amongst a few > others, and couldn't seem to get it right. What I have eventually come > across is the function 'array-push' (bizarre!) to add a new array line > for each record (after it's bee

[PHP] File problems

2003-07-18 Thread Beauford.2005
Hi, I am having a hell of a time with this. Whenever I think it's working, something else screws up. There obviously has to be a better way to do this than I am doing it. To reiterate, I am trying to open a file, remove one entry, add another entry, and resave the file. The way I currently have it

[PHP] CSV > MySQL

2003-07-18 Thread John Wulff
How would I go about taking a 6 field CSV and inserting each row into a MySQL DB? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] just testing

2003-07-18 Thread Andu
Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes v. functions

2003-07-18 Thread Robert Cummings
On Fri, 2003-07-18 at 18:19, Andu wrote: > > Say I have a database class with all kinds of functions for connection, > data manipulation, errors, etc: > > $db = new db_sql; > $db->connect(); > $db->do_this(); > $db->do_that(); > > How would that be different from an include file with a bunch of

Re: [PHP] classes v. functions

2003-07-18 Thread Andu
--On Friday, July 18, 2003 14:28:02 -0700 Chris Shiflett <[EMAIL PROTECTED]> wrote: --- Andu <[EMAIL PROTECTED]> wrote: This may show my ignorance or my refusal to take for granted something I don't fully understand but I have a hard time figuring out the advantage of using classes as opposed t

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread frederik feys
Hi Mike, hi all, I solved this nasty one! Happy. Your analysis is totally correct, Mike. Every visitor who puts an item in cart for the first time will get a cookie and... receives the error on his screen. And I, ... I didn't have this error message! What did it for me was: so , i just called th

Re: [PHP] classes v. functions

2003-07-18 Thread Brad Bonkoski
Chris Shiflett wrote: > --- Andu <[EMAIL PROTECTED]> wrote: > > This may show my ignorance or my refusal to take for granted > > something I don't fully understand but I have a hard time > > figuring out the advantage of using classes as opposed to just > > functions. > > They are entirely diffe

[PHP] Re: echo statements

2003-07-18 Thread Kevin Stone
"Jay Fitzgerald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When echoing html code that will include variables from a while or if loop, > which method is best? > Method 1: echo " class=\"dbtables\">$employer"; > OR > Method 2: "$employer"; ?> > If you would, please give rea

Re: [PHP] classes v. functions

2003-07-18 Thread Chris Shiflett
--- Andu <[EMAIL PROTECTED]> wrote: > This may show my ignorance or my refusal to take for granted > something I don't fully understand but I have a hard time > figuring out the advantage of using classes as opposed to just > functions. They are entirely different. While OO fans will find my over-

Re: [PHP] echo statements

2003-07-18 Thread Chris Shiflett
--- Jay Fitzgerald <[EMAIL PROTECTED]> wrote: > When echoing html code that will include variables from a while or > if loop, which method is best? ... > Method 1: echo " class=\"dbtables\">$employer"; > OR > Method 2: "$employer"; ?> Method 2 is my choice. > If you would, please give reasons wh

[PHP] classes v. functions

2003-07-18 Thread Andu
This may show my ignorance or my refusal to take for granted something I don't fully understand but I have a hard time figuring out the advantage of using classes as opposed to just functions. I am certainly new to php and at first sight classes seemed to cut a lot of corners but so do functions

[PHP] echo statements

2003-07-18 Thread Jay Fitzgerald
When echoing html code that will include variables from a while or if loop, which method is best? Method 1: echo "$employer"; OR Method 2: If you would, please give reasons why to support your opinion. Thanks -- Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Int

RE: [PHP] Still problem with files

2003-07-18 Thread Beauford.2005
Yep, but am I doing it right I don't know. This is the line that will be written to the database (there will be 130 of them). $p = "Player Name"; So where do I put the \r\n. I have tried just \n at the end, but same thing. $p = "Player Name\n"; TIA -Original Message- From: skate [mailt

[PHP] URL correctimizer ... how to make one?

2003-07-18 Thread -{ Rene Brehmer }-
Hi gang Finally I've got the time to finish up my guestbook script ... so little left that I can actually see the light at the end of the tunnel now.. The guestbook data is stored in a text file. When opening the guestbook, this file is parsed and the named fields are used to construct differen

[PHP] GD2 makes black thumbnails

2003-07-18 Thread Jiří Němec
hello everyone, i have got a question about creating thumbnails from original JPG files. users upload their own pohotos in JPG format to server, and system makes a thumbnails. these thumbnails are sometime black. probably there is problem in uploaded image files, bacaues if I open and save "for w

[PHP] Securing File Uploads Was: Is it possible to test an uploaded fileto check the type?

2003-07-18 Thread Gerard Samuel
Sorry for bring this back to life, but Im looking for some more opinions. A friend and I are somewhat dead locked, as to whether with available tools via php, that its possible to *reliably* secure file uploads. File uploads currently encompass, images, mp3, real audio files, with plans for ogg vo

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Cesar Cordovez
Among other things, this is why XML exists. Use XML. FLASH can handle it, PHP can handle it, everything out there can handle it. Use XML. Delimiters will sooner or later break down. Use XML. Over and out. Grant Rutherford wrote: Chris Shiflett wrote: --- Reuben D. Budiardja wrote: I d

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Grant Rutherford
Chris Shiflett wrote: --- Reuben D. Budiardja wrote: I did strive for that. But whatever character I choose, the problem remains that we can't guarantee that it's going ot be only used as deliminater, since the deliminated string is an input from user. So the problem remains. Well, just to

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread LiteSpeed Information
Thank you, Mark, Apache 2.0 is a better choice to windows users we believe too. Do you really think web server's built-in authentication features are useful and important? I think they are very limited and lacking flexibility. We have to use PHP's for our web admin interface and skip the web se

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 03:43 pm, CPT John W. Holmes wrote: > From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> > > > This is a hypothetical situation. The real situation is that I am trying > > to > > > have a protocol for data sent by client using Flash. But the basic > > question > > > remains. > >

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Chris Shiflett
--- Reuben D. Budiardja wrote: > I did strive for that. But whatever character I choose, the problem > remains that we can't guarantee that it's going ot be only used as > deliminater, since the deliminated string is an input from user. So > the problem remains. Well, just to point out, your delim

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 03:33 pm, Chris Sherwood wrote: > After reading your problem > > this is what I think you should do is dont let the user enter the string > predelimited > have them enter each individual string at which point you can safely search > for the delimiter and replace it with the c

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread CPT John W. Holmes
From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> > > This is a hypothetical situation. The real situation is that I am trying to > have a protocol for data sent by client using Flash. But the basic question > remains. So FLASH is creating the string that you must decode in PHP? Is there any way to

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Chris Sherwood
After reading your problem this is what I think you should do is dont let the user enter the string predelimited have them enter each individual string at which point you can safely search for the delimiter and replace it with the character of your choice "_" is a favorite of mine. then rebuild t

RE: [PHP] paypal and ecommerce

2003-07-18 Thread Edward Peloke
Sorry I didn't do a better job of describing the situation.. >>It kind of looks to me that each seller will be paid directly, with no >>money being processed by his web site. Like eBay does.. However, you'll be >>able to buy 2+ items at one time. Yes, the theory would be that we would sit back

[PHP] Re: Multidimensional arrays

2003-07-18 Thread John Kaspar
$sql = "select id, name from customer"; $rs = mysql_query($sql) or die("sql=$sql => ".mysql_error()); while ($row = mysql_fetch_assoc($rs)) { $custarray[] = $row; } /* $row is an array with the elements 'id' and 'name' $custarray becomes a multi-array indexed starting a 0 e.g. $custarray[0]

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Tyler
load a bunch of characters into an array. Do a loop through that array and check all of your $strings for the current character in your loop. If the current array character does not exist in any of them, you have your delimiter. I could put together an example if you want me to. __

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Jason Wong
On Saturday 19 July 2003 03:04, Reuben D. Budiardja wrote: > > You should strive to make your delimiter unique. A delimiter that might > > possibly appear within the items it is meant to delimit is no longer a > > delimiter. > > I did strive for that. But whatever character I choose, the problem r

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 03:01 pm, you wrote: > > On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: > > > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > > > > Suppose I have a long string like > > > > $myStr = "$string1:$string2:$string3"; > > > > > > > > I can obviously explode them usi

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Brent Baisley
One set of delimiters I often use for text files is ~~ or ^^. They are fairly unique. If they do appear in a file then there is probably garbage in the file and I want to know about. For my templates "delimiter" I use {::TagName::}. You could use }::{ as your delimiter. Don't limit yourself to

RE: [PHP] paypal and ecommerce

2003-07-18 Thread Dan Joseph
Hi, It kind of looks to me that each seller will be paid directly, with no money being processed by his web site. Like eBay does.. However, you'll be able to buy 2+ items at one time. Do you want suggestions on how to set it up for one checkout process, and several payment desti

Re: [PHP] paypal and ecommerce

2003-07-18 Thread Mark
I assume you're going to try to make money at this. if so, maybe YOU should get paid by the customer, then either weekly or monthly, send out a check (or transfer via paypal) to the sellers - minus your fee, of course. You can easily automate this if you interface with Paypal. --- Edward Peloke

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Brad Pauly
Reuben D. Budiardja wrote: I did strive for that. But whatever character I choose, the problem remains that we can't guarantee that it's going ot be only used as deliminater, since the deliminated string is an input from user. So the problem remains. Are you adding the delimiter? If so, maybe yo

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread CPT John W. Holmes
> On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: > > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > > > Suppose I have a long string like > > > $myStr = "$string1:$string2:$string3"; > > > > > > I can obviously explode them using ":" as the separator. But what if > > > $string1 cont

RE: [PHP] paypal and ecommerce

2003-07-18 Thread Ralph Guzman
Maybe it's just me, but I don't quite understand what you mean by this: "The problem is, when we allow anyone to post items, you may go to the site, chose five items to buy but they are all from different people. How do you handle the check out?" Can you rephrase? Are you talking about having

[PHP] paypal and ecommerce

2003-07-18 Thread Edward Peloke
Looking for opinions as to the best way to handle this. I am using a php ecommerce product(osCommerce) to create an 'online yardsale'. This will not be an auction site but items for sale at a straight price. Currently the site is set up so the user can place several things in their basket, check

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > > Suppose I have a long string like > > $myStr = "$string1:$string2:$string3"; > > > > I can obviously explode them using ":" as the separator. But what if > > $string1 contains the chara

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Chris Shiflett
--- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > Suppose I have a long string like > $myStr = "$string1:$string2:$string3"; > > I can obviously explode them using ":" as the separator. But what if > $string1 contains the character ":" by itself? You should strive to make your delimiter uni

[PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
Hi all, Suppose I have a long string like $myStr = "$string1:$string2:$string3"; I can obviously explode them using ":" as the separator. But what if $string1 contains the character ":" by itself? I was thinking, first I am gonna put an escaping character, so I can do something like: $string1

RE: [PHP] Javascript multi text box form validation?

2003-07-18 Thread Johnny Martinez
doh...RTFM Johnny! Thanks guys! -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Javascript multi text box form validation? Johnny Martinez wrote: > Hi all, > I'm having an issue with quotes, slas

RE: [PHP] Javascript multi text box form validation?

2003-07-18 Thread Jennifer Goodie
> 2. a sql_scrubber function to handle the apostrophes addslashes() http://www.php.net/manual/en/function.addslashes.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript multi text box form validation?

2003-07-18 Thread Brad Pauly
Johnny Martinez wrote: Hi all, I'm having an issue with quotes, slashes, and apostrophes being submitted into text boxes and they are breaking my sql statements. So, I am trying to do two things. 1. javascript form validation to prevent the double quotes and slashes 2. a sql_scrubber function to ha

[PHP] Javascript multi text box form validation?

2003-07-18 Thread Johnny Martinez
Hi all, I'm having an issue with quotes, slashes, and apostrophes being submitted into text boxes and they are breaking my sql statements. So, I am trying to do two things. 1. javascript form validation to prevent the double quotes and slashes 2. a sql_scrubber function to handle the apostrophes I

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
On Fri, 18 Jul 2003, Curt Zirzow wrote: } > Do you mean: } > } > $patterns[3] = "/###Image($count+1)###/"; } > $replacements[3] = "$sel_image = "SELECT * from ppd_photos where ppd_id = '$_GET[ppdid]' AND place_holder = '$thephoto[0]'"; } What does this return? } } I'm a bit confused right no

Re: [PHP] locking to domain

2003-07-18 Thread Jason Wong
On Saturday 19 July 2003 00:00, Ryan A wrote: > I want to make sure my scripts can be executed on only one domain (or > localhost/ 127.0.0.1)...it should not matter if its > http://somesite.com/myscript.php > or http://somesite.com/~blah/myscript.php > or http://blah.somesite.commyscript.php >

Re: [PHP] Mac Address Lookup

2003-07-18 Thread bbonkosk
I guess I should have put this in one post Your subject says something different then your question, one asking for the computer name, the other the MAC. To get the MAC the computer will need to be on your LAN, otherwise this is not possible. You can then use the 'arp' command to get the MA

Re: [PHP] Mac Address Lookup

2003-07-18 Thread bbonkosk
If you have the IP address, then 'nslookup' or I guess now 'dig' and 'host' would be the newere versions. They are Linux system calls, use system() or exec() to use them within your script, and play around with the options and/or read the man pages for how to use them. HTH -Brad - Origina

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache's

2003-07-18 Thread Jim Jagielski
LiteSpeed Information wrote: > > Mark, > > When you say "Apache 1.3x is missing some features", do you mean on > Windows or on all systems? I wonder what it is? > And be sure to CC [EMAIL PROTECTED] :) -- === Jim Jagi

Re: [PHP] Mac Address Lookup

2003-07-18 Thread skate
very little chance, a machine won't transmit it's MAC address, that the main point of the TCP/IP stack is to convert IP address' into MAC address' at routers and such. - Original Message - From: "Ashwin Kutty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 5:19 PM

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread LiteSpeed Information
Mark, When you say "Apache 1.3x is missing some features", do you mean on Windows or on all systems? I wonder what it is? Thanks, LiteSpeed Mark wrote: Yes I am. Apache 2 is not considered safe with PHP, and Apache 1.3x is missing some features I'd like... And IIS... well don't get me started w

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread LiteSpeed Information
Thanks Mark, that's good idea. Please visit our website at http://www.litespeedtech.com/index.html?php-general Thanks, LiteSpeed Mark wrote: Yes I am. Apache 2 is not considered safe with PHP, and Apache 1.3x is missing some features I'd like... And IIS... well don't get me started with IIS. I

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys To: 'Ford, Mike [LSS]'; [EMAIL PROTECTED] Here's the URL: http://www.aurelis.org/store/cart.txt and the get_cartID: http://www.aurelis.org/store/includes/functions/get_cartID.txt -- I've only had time for a quic

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread LiteSpeed Information
Thanks John, that's a good idea. Please visit our website at http://www.litespeedtech.com/index.html?php-general Thanks, LiteSpeed John Manko wrote: You should leave an identification tag in your url. This way when people click the link you supplied, you can track where they are coming from!!

[PHP] Mac Address Lookup

2003-07-18 Thread Ashwin Kutty
I am trying to do a lookup of a Mac Address via PHP. Is there any way to do so like gethostbyaddr that gets me the name of a machine? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: running SSH through a PHP script

2003-07-18 Thread James_Martin
it's running as the apache user.. I negated the need for a ~/.ssh/ directory by specifying the path to a private key and by putting entries for the hosts in /etc/ssh/ssh_authorized_keys. It stopped complaining after I did that. Chaining commands together doesn't work for me because I'm going

Re: [PHP] omitting the #!

2003-07-18 Thread John Nichel
Rob Day wrote: First of all, I apologize if I'm asking a question with an obvious answer. I do my php development on a Windows 2000 machine. Whenever I move php apps to the production server I have to add the path to php (#!/usr/bin/php) to the top of every php file. Is there some way I can config

Re: [PHP] omitting the #!

2003-07-18 Thread skate
yeah, your currently running php through cgi on your live server, just install php as a proper module, and you should be good to go. you may also be able to stick a header on every page that includes the #!. not 100% with this tho, you'll have to have a look into it... - Original Messag

[PHP] omitting the #!

2003-07-18 Thread Rob Day
First of all, I apologize if I'm asking a question with an obvious answer. I do my php development on a Windows 2000 machine. Whenever I move php apps to the production server I have to add the path to php (#!/usr/bin/php) to the top of every php file. Is there some way I can configure the Apache

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread John Manko
You should leave an identification tag in your url. This way when people click the link you supplied, you can track where they are coming from LiteSpeed wrote: Hi there! Do you feel the need for speed? Lite Speed Technologies proudly introduces you LiteSpeed Web Server 1.0 LiteSpeed Web S

Re: [PHP] Multidimensional arrays

2003-07-18 Thread Gary Broughton
Hi Many thanks for your time Matt. I tried that method amongst a few others, and couldn't seem to get it right. What I have eventually come across is the function 'array-push' (bizarre!) to add a new array line for each record (after it's been initially defined). It seems to work for me, and ho

[PHP] locking to domain

2003-07-18 Thread Ryan A
Hi, I want to make sure my scripts can be executed on only one domain (or localhost/ 127.0.0.1)...it should not matter if its http://somesite.com/myscript.php or http://somesite.com/~blah/myscript.php or http://blah.somesite.commyscript.php or http://somesite.com/1/2/asdf/234/myscript.php It sh

Re: [PHP] redirecting to a url..

2003-07-18 Thread Chris Shiflett
--- Louie Miranda <[EMAIL PROTECTED]> wrote: > echo ""; > > Or you may have other more advance alternatives? You can use a protocol redirect rather than relying on HTML: header('Location: http://yoursite.org/us/index.php'); Chris = Become a better Web developer with the HTTP Developer's Ha

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
GREAT!!! I guess I need to RTFM...:-) Thanks again for all your help everyone! -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:38 AM To: [EMAIL PROTECTED]; 'M.A.Bond'; 'sven'; 'php-general' Subject: RE: [PHP] Mail From option in PHP.ini >From the

[PHP] Re: running SSH through a PHP script

2003-07-18 Thread Paul Chvostek
On Fri, Jul 18, 2003 at 11:29:50AM -0400, [EMAIL PROTECTED] wrote: > There is no delay in the SSH commands when run from a shell, only > through the web page. Any ideas? What user is running the ssh commands? Does that user have a home directory to which it has write permissions in order to cr

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Mark
>From the php website, it appears that the [EMAIL PROTECTED] can be put in the fifth parameter of the mail() function: Example 3. Sending mail with extra headers and setting an additional command line parameter. mail("[EMAIL PROTECTED]", "the subject", $message, "From: [EMAIL PROTECTED]", "[

Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems

2003-07-18 Thread Dennis Gearon
I received this email, with the PHP subject, at an address I haven't used in a long time on the PHP list. It contained a attached file called: Marzia_MaterialeDaInternet.lnk.exe A fairly large BASE 64 encoded attachment. I DID not open it. This is a warning to others. Lucas Persona wrote: Jas

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
Yes, sorry...forgot to include that one...:-) -Original Message- From: M.A.Bond [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:31 AM To: 'sysadmin'; 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini I take it you've also tried setting Reply-To: ?? Same format a

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread M.A.Bond
I take it you've also tried setting Reply-To: ?? Same format as From: Mark -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:25 To: 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini No, I tried this too. Here is what I've tried.

[PHP] running SSH through a PHP script

2003-07-18 Thread James_Martin
I am using SSH inside one of my PHP pages to run some commands on a remote server and return the output web page. In detail, I'm using SSHing 3 different times and it is taking a long time for the resulting page to load with the output from the remote command. When running top on my webserver

[PHP] Re: Mail From option in PHP.ini

2003-07-18 Thread Paul Chvostek
On Fri, Jul 18, 2003 at 11:00:18AM -0400, Brian S. Drexler wrote: > > Ok, I want to specify who the mail is coming from by using the sendmail_path > option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want > to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED]

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
No, I tried this too. Here is what I've tried $hdrs = array( 'From'=> '"'.$FullName.'" <'.$Email.'>', 'Return-Path' => $Email, //'From'=> $Email, //'Disposition-Notification

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
It's not the recipient that is the problem. The extra headers work fine for that. It's the delivery and read notifications (recipient's mail server). The From header that is generated by sendmail itself is where I'm getting the problem. If I specify the -f option in the sendmail_path it fixes th

Re: [PHP] Mail From option in PHP.ini

2003-07-18 Thread sven
... and how about this? $headers .= "Return-Path: $email_address_from_your_database\r\n"; tell me, if it works. ciao SVEN Brian S. Drexler wrote: > I tried the extra header. The problem is with the return receipts. > The mail is being generated by a server other than my main e-mail > server, so

Re: [PHP] Still problem with files

2003-07-18 Thread skate
have you tried \r\n ? - Original Message - From: "Beauford.2005" <[EMAIL PROTECTED]> To: "'Curt Zirzow'" <[EMAIL PROTECTED]>; "'PHP'" <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 3:40 PM Subject: RE: [PHP] Still problem with files > For whatever reason your suggestions still caused

Re: [PHP] Mail From option in PHP.ini

2003-07-18 Thread skate
the sendmail_path in php.ini is to do with where abouts the sendmail program is located, not where your sending mail from... if you define the extra headers in the mail, such as FROM and REPLY-TO, you shouldn't have any problems. basically, it's just like fake-mail, and your recipient should be no

[PHP] Re: A new FREE web server can do PHP faster than Apache's mod_php

2003-07-18 Thread LiteSpeed
Hi there! Do you feel the need for speed? Lite Speed Technologies proudly introduces you LiteSpeed Web Server 1.0 LiteSpeed Web Server is a full featured, high performance, secure, and easy-to-use Web server that runs on Unix and Linux. It supports HTTP/1.1, SSL, CGI, FastCGI, PHP, JSP, Servlet

RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a "From" e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECT

Re: [PHP] Mail From option in PHP.ini

2003-07-18 Thread CPT John W. Holmes
> Ok, I want to specify who the mail is coming from by using the sendmail_path > option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want > to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or > whatever else. Anyone have any ideas how I can do this? I'm pu

  1   2   >