[PHP] need background info on PHP Java

2003-07-18 Thread Jan Bro
Hi, I know, I've posted a while back, but I still couldn't find any docuuments on how PHP and Java interact. I know what I've pulled out of the manual and I knwo I could also connect via Java Servlet (thx Ray) but that's just not enough, to satisfy. I mean if I'm using it, I sure want to know why

[PHP] redirecting to a url..

2003-07-18 Thread Louie Miranda
I have this form with 2 values under 1 name ColTemplate. I was hoping if i can redirect it to another url? on the ?? if templateone or templatetwo. Anyhelp would be good. -- code - $v_get_template = $_POST['ColTemplate']; if ($v_get_template === 'TemplateOne') { ?? } elseif

Re: [PHP] redirecting to a url..

2003-07-18 Thread Louie Miranda
My solution.. echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\; Or you may have other more advance alternatives? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 18, 2003

[PHP] Recovering from a time out

2003-07-18 Thread Gerard Samuel
Is it possible to *gracefully* recover from php timing out? For example, uploading a large file, and php times out, so display Oops Timed out This also assumes that we have no means of changing php's time out value?? Thanks for your comments.. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] problem matching multiple times

2003-07-18 Thread Curt Zirzow
Vince LaMonica [EMAIL PROTECTED] wrote: Hi All, hello [...] function vjencode($message) { $message = . $message ; ##--- [b] and [/b] for bolding text. $message = preg_replace(/\[b\](.*?)\[\/b\]/si, b\\1/b, $message); ##--- [i] and [/i] for italicizing text. $message =

Re: [PHP] redirecting to a url..

2003-07-18 Thread Curt Zirzow
Louie Miranda [EMAIL PROTECTED] wrote: I have this form with 2 values under 1 name ColTemplate. I was hoping if i can redirect it to another url? on the ?? if templateone or templatetwo. header('Location: http://domain/file'); Curt -- -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] redirecting to a url..

2003-07-18 Thread Louie Miranda
thanks, this is much better. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:29 PM Subject: Re: [PHP] redirecting to a url.. Louie Miranda [EMAIL PROTECTED] wrote: I have

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-18 Thread Robert Cummings
Rather than having the following scenario: $GLOBALS['foo'] = 'foo'; $GLOBALS['fee'] = 'fee'; The following would be much cleaner and portable while still allowing the ease of use of $GLOBALS based configuration: $GLOBALS['myProjectName']['foo'] = 'foo'; $GLOBALS['myProjectName']['fee'] = 'fee';

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
On Fri, 18 Jul 2003, Curt Zirzow wrote: } btw, you know you can do this in one step: } } $message = preg_replace(/\[(i|b)\](.*?)\[\/(i|b)\]/si, \$1\$2/\$3, $message); Doh! Thanks for the tip...that'll save some lines of code :) } $patterns[3] = #\#\#\#Image(.*?)\#\#\##si; } // this matches

[PHP] Using href as a submit for a form

2003-07-18 Thread Ron Allen
I am using a form to submit to mysql. What I would like to do is to use a link to submit the form instead of the standard submit button. Help is appreicated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-18 Thread Ow Mun Heng
Very Well Explained.. now I know how to use the code which I saw in phpMyAdmin or Tiki.. Much better way to do it and a lot less conflicts to as you say,variable names. Thanks. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Lars

Re: [PHP] Using href as a submit for a form

2003-07-18 Thread Larry_Li
Try to use javascript. a href=javascript:document.form1.submit()submit/a Change form1 as your actual form name. -

Re: [PHP] Using href as a submit for a form

2003-07-18 Thread Vince LaMonica
On Fri, 18 Jul 2003, Ron Allen wrote: } I am using a form to submit to mysql. What I would like to do is to use a } link to submit the form instead of the standard submit button. Help is } appreicated. You could use a simple GET to submit the form. Make sure you have register_globals off

[PHP] ulimit with php

2003-07-18 Thread Eddy-Das
Does any know how to catch the signal sent to a process called by PHP? eg. $something = `ulimit -t 30 -otherlimit; ./loop_to_death`; ulimit should return something like SIGALRM I use exec() but it only give me the exit code (always 128+9), not the signal.. because i need to know the

RE: [PHP] Re: Value for entire file

2003-07-18 Thread Ford, Mike [LSS]
-Original Message- From: Bobby Patel [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 06:11 it should be in the $_GET or $HTTP_GET_VARS array in the index.php script. put this at the top of your index.php script var_dump ($_GET); # or $HTTP_GET_VARS depending on PHP version and

[PHP] Need to use META tag with variable attached

2003-07-18 Thread Ron Allen
This is what I have META HTTP-EQUIV=refresh content=0; URL=./ticket_admin.php What I would like is for this to carry a variable with it. I have tried several different variations and they don't work obviously ?PHP META HTTP-EQUIV='refresh' content='0; URL=./ticket_admin.php?ID=.'$ID. ' Does

[PHP] Re: Need to use META tag with variable attached

2003-07-18 Thread Ron Allen
Got it echoMETA HTTP-EQUIV='refresh' content='0; URL=./ticket_admin.php?ID=$ID'; ? Ron Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is what I have META HTTP-EQUIV=refresh content=0; URL=./ticket_admin.php What I would like is for this to carry a variable with it. I

Re: [PHP] Need to use META tag with variable attached

2003-07-18 Thread Ryan Gibson
Hi, Try: META HTTP-EQUIV=refresh content=0; URL=./ticket_admin.php?ID=?php echo $ID; ? On 18/7/03 10:51 am, Ron Allen [EMAIL PROTECTED] wrote: This is what I have META HTTP-EQUIV=refresh content=0; URL=./ticket_admin.php What I would like is for this to carry a variable with it. I have

[PHP] Variable not passed twixt pages..

2003-07-18 Thread Chris Blake
Greetings learned PHP(eople), Scenario : User fills in text box, pushes Submit and textbox data gets passed to MySQL database.. = The code from the HTML page : form action=savemail.php method=GET target=main input type=text class=mailinput

Re: [PHP] Variable not passed twixt pages..

2003-07-18 Thread desa15
echo $HTTP_GET_VARS['mailaddress'] ; Un saludo, Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] popping up download dialog box

2003-07-18 Thread Binay Agarwal
Hi every body ! I am writing a script which pops up download dialog box on click of a Link. Headers i m sending out for downloading jpegs are: header(Cache-control: private); header(Content-Type: image/jpeg); header(Content-Type: application/octet-stream);

Re: [PHP] popping up download dialog box

2003-07-18 Thread desa15
if (!empty($file['file_data'])) { if (get_user_os() == MAC) { header(Content-Type: application/x-unknown\n); header(Content-Disposition: attachment; filename=\.$file ['file_name'].\\n); } elseif (get_browser_info() == MSIE) { $disposition = (!eregi(\.zip$,

Re: [PHP] popping up download dialog box

2003-07-18 Thread Jason Wong
On Friday 18 July 2003 06:34, Binay Agarwal wrote: Hi every body ! I am writing a script which pops up download dialog box on click of a Link. Headers i m sending out for downloading jpegs are: header(Cache-control: private); header(Content-Type: image/jpeg);

[PHP] base64_encode corrupts files?

2003-07-18 Thread Imposible
Hi, I trying to send a binary file (exe, zip, etc etc) that is attached using mail() function. I'm do a base64_encode and chunk_split after read the file, but the result is a corrupt file so i can't read the attached file with my mail client. When i call the script the attached file is

[PHP] Re: Variable not passed twixt pages..

2003-07-18 Thread Nadim Attari
form action=savemail.php method=GET target=main ... ... ... $query = insert into email values (' . $_REQUEST['mailaddress'] Use $_GET or $_POST, according to the method used... $_GET['mailaddress'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] popping up download dialog box

2003-07-18 Thread Binay Agarwal
Hi jason Thanks for the quick suggestion. I tried removing the first content-type header but still the problem reamains. I don know why?? Please let me know is there other way i can do the same? Thanks Binay - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] osCommerce and modifications

2003-07-18 Thread Edward Peloke
Hello, I am helping a friend with an eCommerce site. We have decided to use osCommerce. The package looks really nice and is completely PHP. My question is, does anyone have much experience with modifying it? We have to make some changes but all of the code looks fairly intertwined. Just

Re: [PHP] osCommerce and modifications

2003-07-18 Thread Richard Baskett
You might want to look at eShox, it's based on osCommerce, but in my opinion it's quite a lot better. Cheers! Rick The intuitive mind is a sacred gift and the rational mind is a faithful servant. We have created a society that honors the servant and has forgotten the gift. - Albert Einstein

RE: [PHP] osCommerce and modifications

2003-07-18 Thread Edward Peloke
thanks Richard, I will take a look. osCommerce does a create job of creating an online marketplace. The problem is to add items, you need to go through the admin pages. We need to be able to allow users to add items, sort of like ebay without the auction. -Original Message- From:

[PHP] eShox

2003-07-18 Thread Ryan A
Hi, I have just been browsing the list and I see a recomendation for eShox rather than OSCommerce, I did a search on google and found these 2 main sites: http://www.versiontracker.com/dyn/moreinfo/macos/17609 http://www.tenon.com/products/eshox/ and a lot others. Most of the sites are selling the

[PHP] Multidimensional arrays

2003-07-18 Thread Gary Broughton
Hi Can anybody help me grasp multidimensional arrays please? Basically, I am retrieving all records from one table (two fields), and want to return them in an array. I am converting code from ASP to PHP, and in the former I did something like this: select id, name from customer redim

Re: [PHP] popping up download dialog box

2003-07-18 Thread Curt Zirzow
Binay Agarwal [EMAIL PROTECTED] wrote: Hi every body ! I am writing a script which pops up download dialog box on click of a Link. Headers i m sending out for downloading jpegs are: header(Cache-control: private); header(Content-Type: image/jpeg);

[PHP] RE: new browser window in php

2003-07-18 Thread Jeffry Lester
How do I start a new browser window when using print in php? Jeffry Lester [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] eShox

2003-07-18 Thread Edward Peloke
I downloaded osCommerce yesterday from sourceforge...very easy to set up and looked really nice. -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] eShox Hi, I have just been browsing the list and I see a

Re: [PHP] eShox

2003-07-18 Thread Richard Baskett
Mostly eShox you are paying for support. It's a great program and the support is unmatchable.. whenever I had questions support would email me back sometimes instantaneously, and other times.. within a couple of hours. I can get you $50 off if you would like since I work with them quite a bit for

Re: [PHP] Multidimensional arrays

2003-07-18 Thread Matt Matijevich
snip select id, name from customer redim custarray(recordcount,2) i = 0 while not eof custarray(i,0) = id; custarray(i,1) = name; i = i+1; movenext wend /snip Not sure what kind of db you are using but I put this together using postgresql using the manual. So this is untested.

[PHP] Performance and require / include

2003-07-18 Thread Infoman: Thorsten Koch
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 is this really good for the performance? With only one user on

RE: [PHP] eShox

2003-07-18 Thread Edward Peloke
thanks Richard, I will let the guy know who I am doing this for...I really appreciated it. -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 9:45 AM To: PHP General Subject: Re: [PHP] eShox Mostly eShox you are paying for support. It's a

Re: [PHP] Variable not passed twixt pages..

2003-07-18 Thread Chris Blake
Thanks to all who contributed, I managed to get it to work using just $mailaddress. Much appreciated. -- Chris Blake Office : (011) 782-0840 Cell : 083 985 0379 One learns to itch where one can scratch. -- Ernest Bramah -- PHP General Mailing List

Re: [PHP] osCommerce and modifications

2003-07-18 Thread Jason Wong
On Friday 18 July 2003 21:20, Edward Peloke wrote: I am helping a friend with an eCommerce site. We have decided to use osCommerce. The package looks really nice and is completely PHP. My question is, does anyone have much experience with modifying it? We have to make some changes but all

[PHP] Re: Recovering from a time out

2003-07-18 Thread Anthony
change PHP's timeout value in php.ini : max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data don't know if you can have php do something like load a different script or a basic HTML

Re: [PHP] problem matching multiple times

2003-07-18 Thread Curt Zirzow
Vince LaMonica [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2003, Curt Zirzow wrote: [snip] } } The only solution I can think of is while your looping through the } images they have build more pattern/replacemen array items } } foreach (row in db) }$pattern[] = /###Image($count+1)###

Re: [PHP] Re: Recovering from a time out

2003-07-18 Thread Curt Zirzow
Anthony [EMAIL PROTECTED] wrote: change PHP's timeout value in php.ini : max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data don't know if you can have php do something

RE: [PHP] Still problem with files

2003-07-18 Thread Beauford.2005
For whatever reason your suggestions still caused me problems, but I did come up with a solution that works. if (preg_match (/Alfredsson/, $buffer)) Another question though regarding \n. What I'm doing here is reading the file, omitting one entry, adding another, and saving it back to the file.

[PHP] Mail From option in PHP.ini

2003-07-18 Thread Brian S. Drexler
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 pulling

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

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

[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,

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

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 me problems,

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 if

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

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-To' =

[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] or

[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

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

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

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:

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], [EMAIL

[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

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

Re: [PHP] redirecting to a url..

2003-07-18 Thread Chris Shiflett
--- Louie Miranda [EMAIL PROTECTED] wrote: echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\; 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

[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

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

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

[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] 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

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

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

[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: 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

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

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] 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

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'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 Jagielski

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 -

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

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 or

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] = html stuff; } } Actually I did mean to use the $patterns[] and $replacements[], php } will automatically increase the index for you kinda makes adding } different

[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

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

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 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,

[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] 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 unique. A

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 character : by itself?

[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,

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

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 contains the character : by

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

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] 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

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] 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 using : as the separator. But

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 remains

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.

[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.

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 and

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

  1   2   >