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", $message); Doh! Thanks for the tip...that'll save some lines of code :) } > $patterns[3] = "#\#\#\#Image(.*?)\#\#\##si"; } > // this mat

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

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

2003-07-18 Thread Larry_Li
Try to use javascript. submit 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 thoug

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

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

[PHP] Need to use META tag with variable attached

2003-07-18 Thread Ron Allen
This is what I have 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 Does someone have an idea for this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-07-18 Thread Ron Allen
Got it echo";" ?> "Ron Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is what I have > > > 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 > > URL=./ticket_admin.php?ID=".'$ID." '>

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

2003-07-18 Thread Ryan Gibson
Hi, Try: On 18/7/03 10:51 am, "Ron Allen" <[EMAIL PROTECTED]> wrote: > This is what I have > > > 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 > > URL=./ticket_admin.php?ID=".'$ID." '> Does someone h

[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 : == The code from savemail.php : Error pe

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 co

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

2003-07-18 Thread Nadim Attari
> ... ... ... > $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: http://www.php.net/unsub.php

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 PROTEC

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

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

[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 custarray(r

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 rec

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
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 Not sure what kind of db you are using but I put this together using postgresql using the manual. So this is untested. $conn = pg_c

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

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 grea

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 (http://www.php.net/

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

[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($cou

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 some

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 th

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

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

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

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

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

[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

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.

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

[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 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 ""; > > 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

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

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

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

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

[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 from!!

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

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 Jagi

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

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

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

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

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

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

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

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 usi

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 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. $custarray[0]

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

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

[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

  1   2   >