Re: [PHP] Multiple choices for e-cart

2003-06-16 Thread daniel
ok each product could have a category but also a group attatched to it, so each group red, blue, green has an id so each product is joined to a group with the primary key of the group like products.php?productID=1&groupID=1 for red products.php?productID=1&groupID=2 for blue etc ... and for gett

Re: [PHP] Array in a $_session

2003-06-16 Thread fkeessen
Hi Jason, Maybe you can make it a little bit clear for me? >You have not defined $i, so what did you expect to see here? >> session_start(); >> $aantalpers=$_SESSION["aantalpers"]; >> $test1 = $_SESSION['test1'][$i]; > So is it going to be: $test1[$i ]= $_SESSION['test1'][$i]; ??? Regards, F

Re: [PHP] Dynamic menu not passing value to PHP?

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 05:45, Dennis Martin Ong wrote: > Is there > something I've missed out cos it seems like the $sltCat which is suppose to > pass the selected option value when the form is submitted is not passing > the correct value, So have you verified that it passes the value as expect

[PHP] Writing GIFs with LZW compression, patch

2003-06-16 Thread Jaakko Hyvätti
Hi! For those impatient to wait for official inclusion, I took gd_lzw_out.c from gd1.5.tar.gz and put it in php-4.3.2. The patch for configure script is not the most beautiful one, but it works for now. In case you developers have not yet included LZW compressed GIF support, feel free to us

Re: [PHP] Array in a $_session

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 13:23, Frank Keessen wrote: > (step 3.php) > session_start(); > $aantalpers=$_SESSION["aantalpers"]; > $test1 = $_SESSION['test1'][$i]; You have not defined $i, so what did you expect to see here? > echo $test1; > for ($i=1; $i<=$_SESSION['test1'][$i]; $i++) > { > e

[PHP] Multiple choices for e-cart

2003-06-16 Thread César Aracena
Hi all, I'm about to start developing the PHP and MySQL coding and designing to make a web site with hundreds or maybe thousands of products, which will be sold through the Internet (I hope :). The products (most of them) have different sizes and/or colors to choose from and each selection will ha

Re: [PHP] functions, opinion...

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 12:50, DvDmanDT wrote: > I was replying to "If you don't do it this way, you'll > find yourself re-writing a function sooner or later because you need it > to return the data instead of displaying it."... Then you don't need to > modify the function if you turn on ob, call f

Re: [PHP] Basic Help

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 11:39, Logan McKinley wrote: Use a descriptive subject heading. > I am new to PHP but have been using ASP for years. What i am trying to do > is: > 1) take a querystring variable > 2) set it as a session variable > 3) redirect the page back on itself > all of this is

Re: [PHP] Good PHP Books

2003-06-16 Thread John Nichel
Jaap van Ganswijk wrote: Some of the O'Reilly books that I thought were not perfect: - All books about Perl. Now that we have nice c-like script languages like PHP, Python and Javascript who still wants to study the mess that Perl is? The O'Reilly Perl books are considered to be like Perl

Re: [PHP] Basic Help

2003-06-16 Thread Jaap van Ganswijk
At 2003-06-16 23:39 -0400, Logan McKinley wrote: >I am new to PHP but have been using ASP for years. What i am trying to do >is: >1) take a querystring variable >2) set it as a session variable >3) redirect the page back on itself >all of this is done so the user never sees the querystring var

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Hi John and maybe other that can look at the following, See below; I've got a session_start() on page2 because i'm retrieving ($aantalpers) an session value of step1.php and that is properly displayed on page2. Still nothing is displayed... Full code displayed below; any thoughts! Thanks for your

Re: [PHP] functions, opinion...

2003-06-16 Thread DvDmanDT
I was replying to "If you don't do it this way, you'll find yourself re-writing a function sooner or later because you need it to return the data instead of displaying it."... Then you don't need to modify the function if you turn on ob, call function, then get contents, then clear ob... Ok, it's a

Re: [PHP] functions, opinion...

2003-06-16 Thread Leif K-Brooks
Dan Joseph wrote: Hi, Just kind of curious what people think. In your opinion, should a function avoid output? What I mean by that, is should a function on "do something" without having echo or printf commands in it? This is something I've been thinking about lately to improve my pro

Re: [PHP] Good PHP Books

2003-06-16 Thread Jaap van Ganswijk
At 2003-06-16 10:24 -0400, Mark McCulligh wrote: >I have been asked to teach an introduction course on PHP/MySQL at my local >College. > >I am looking for a good beginner book for the course. Like most people I >learned PHP from php.net and online tutorials. But I need a book for the >course. > >I

Re: [PHP] functions, opinion...

2003-06-16 Thread Hugh Bothwell
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Or you could just temporarily enable ob... That's what I do when I have a > function that needs to return lots of HTML containing many ' and "... I know > it's possible to use \ as well, but ob is somewhat easier then... You

Re: [PHP] Good PHP Books

2003-06-16 Thread Joel Rees
> Thanks for your input. > > Yes I am already planning on using the book for extra information for the > course, knowing I won't cover all the chapters in the book in such a short > time. I won't get into things like GD(images) or things like creating PDF > files dynamically. I plan to in the fut

[PHP] Basic Help

2003-06-16 Thread Logan McKinley
I am new to PHP but have been using ASP for years. What i am trying to do is: 1) take a querystring variable 2) set it as a session variable 3) redirect the page back on itself all of this is done so the user never sees the querystring var so it must change it address bar 4) access the session

RE: [PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-16 Thread Ow Mun Heng
Thanks VERY VERY much. I was tearing my hair out. Thanks for helping this newbie. VERY much appreciated. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 10:34 A

Re: [PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-16 Thread John W. Holmes
Ow Mun Heng wrote: What I would like to do is to input multiple isbn numbers into a form, get PHP to parse it into an array so that I can build the SQL query for multiple insert. Currently I'm able to perform single inputs, one at a time, which is time consuming. I want to have a form set up to

[PHP] Q : HELP HTML forms parsed into an array for PHP

2003-06-16 Thread Ow Mun Heng
Hi all, Really hope someone can help me out. What I would like to do is to input multiple isbn numbers into a form, get PHP to parse it into an array so that I can build the SQL query for multiple insert. Currently I'm able to perform single inputs, one at a time, which is time consuming.

Re: [PHP] functions, opinion...

2003-06-16 Thread DvDmanDT
Or you could just temporarily enable ob... That's what I do when I have a function that needs to return lots of HTML containing many ' and "... I know it's possible to use \ as well, but ob is somewhat easier then... "John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] >

Re: [PHP] Array in a $_session

2003-06-16 Thread John W. Holmes
Frank Keessen wrote: Hi jason & the rest, Dit the session_write_close()! Nothing still displayed in step3, more thoughts?? $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { foreach($_POST['test1'] as $i => $Value) { $_SESSION['test1'][$i] = $_POS

Re: [PHP] functions, opinion...

2003-06-16 Thread John W. Holmes
Rolf Brusletto wrote: >>Just kind of curious what people think. In your opinion, >> should a function avoid output? What I mean by that, is should a >> function on "do something" without having echo or printf commands in it? >> This is something I've been thinking about lately to impr

[PHP] PLEASE ASSIST

2003-06-16 Thread Princess Joy Mswati
Good day. My apologies for this message which might be termed "unsolicited" but it is borne out of a sheer desire to solicit for assistance that I send this message. I got your contact over the internet during my search for a partner. I want you to note that what I want to introduce to you will

Re: [PHP] functions, opinion...

2003-06-16 Thread Rolf Brusletto
Dan - My personal opinion, which shows in all my code writing is to never echo inside a function. always return the data whether it be string, array, or boolean... I've always left echoing up to the actual page showing the data. That way if you have two seperate pages that need to display the

[PHP] functions, opinion...

2003-06-16 Thread Dan Joseph
Hi, Just kind of curious what people think. In your opinion, should a function avoid output? What I mean by that, is should a function on "do something" without having echo or printf commands in it? This is something I've been thinking about lately to improve my programming style.

Re: [PHP] Re: two php installations

2003-06-16 Thread DvDmanDT
Hehe, ok... I can't even count the number of servers I use at different ports... But I prefer to use the one on port 80... // DvDmanDT <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > hmm to spare the pain i run another instance of apache on a different > port , one runs php4.3 one

Re: [PHP] Re: put data into array

2003-06-16 Thread Mike Migurski
>I have problem when I try to retrieval the data from Oracle database. >what I want is to put each row of data into an array with second column >value as the key and first column as the value, at present I can not >append the value to the existing array instead replacing current array >value, can a

[PHP] Re: put data into array

2003-06-16 Thread Jeff Sun
Hi, all : I have problem when I try to retrieval the data from Oracle database. what I want is to put each row of data into an array with second column value as the key and first column as the value, at present I can not append the value to the existing array instead replacing current array value,

Re: [PHP] Re: two php installations

2003-06-16 Thread daniel
hmm to spare the pain i run another instance of apache on a different port , one runs php4.3 one runs php5 :D > If you bug the PHP team some, they might rename the PHP5 module so you > can use both... I have PHP3, 4 and 5 (can someone please give me a > working binary PHP1 and PHP2 for windows? PLE

Re: [PHP] Re: Including text with PHP and keeping blanks

2003-06-16 Thread Fredrik Fornwall
Hugh Bothwell wrote: echo "$mytext";// ;-) Unless you are going to render to a fixed-width font, your spacing will suffer anyway... or do you only care about left-hand spaces, ie for indenting? Thanks! I did not know about the tag, but this was what I needed (and yes, I only really

Re: [PHP] multiple count (*) from php? (last one got sent in error, this is the correct one)

2003-06-16 Thread Jim Lucas
Took me a minute to figure out what you are trying to do, but I think I have it now. Try this. $result = "SELECT ptype, count(*) FROM mylist_slave WHERE and user='".$my_user."' and cno='".$my_ccno."' GROUP BY ptype"; this will return you the number of rows that is the same number of packages th

Re: [PHP] String containing PHP Code

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 16:45, Suhas Pharkute wrote: > Hello, > > I have a php script which generates a string which has php code in it. I need to > run that code. > > For example: > > > $str = " "; > ?> > > > Is there any way that we can do it? I know I can do it by writing it to file bu

RE: [PHP] String containing PHP Code

2003-06-16 Thread Martin Towell
oops - yeah, not exec() as in my previous email - sorry about that :/ -Original Message- From: Steve Keller [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 June 2003 10:06 AM To: Suhas Pharkute; [EMAIL PROTECTED] Subject: Re: [PHP] String containing PHP Code At 6/16/2003 05:45 PM, Suhas Phar

Re: [PHP] String containing PHP Code

2003-06-16 Thread Steve Keller
At 6/16/2003 05:45 PM, Suhas Pharkute wrote: > I have a php script which generates a string which has php code in it. I need to run that code. http://www.php.net/eval -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 9950

RE: [PHP] String containing PHP Code

2003-06-16 Thread Martin Towell
you can use exec() but be sure that the code you're executing is not malicious first -Original Message- From: Suhas Pharkute [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 June 2003 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] String containing PHP Code Hello, I have a php script w

Re: [PHP] Formatting issue.

2003-06-16 Thread Hugh Bothwell
"Lowell Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > From: "Tom Ray [Lists]" <[EMAIL PROTECTED]> >> >> I want to be >> able to display thumbnail versions of the pictures, 3 per row and as >> many rows as needed. Unfortunetly, all I can do right now is 1 per row, >> this is

[PHP] String containing PHP Code

2003-06-16 Thread Suhas Pharkute
Hello, I have a php script which generates a string which has php code in it. I need to run that code. For example: "; ?> Is there any way that we can do it? I know I can do it by writing it to file but then it is no more secured. Please let me know, Thanks Suhas __

[PHP] Re: Including text with PHP and keeping blanks

2003-06-16 Thread Hugh Bothwell
"Fredrik Fornwall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello! > > I am just wondering if there exist some built-in function in PHP to > include text files in HTML while retaining blank spaces and tabs. While > I have found some text to HTML converting scripts I would prefe

Re: [PHP] Re: php editor?

2003-06-16 Thread Jim McNeely
on mac OS X, BBEdit color codes php, perl, shell scripts, SQL, and HTML, and does regular expression searches/replaces etc. across multiple files and also cleans the dishes. Its definitely my favorite text editor. jim mcneely On Monday, June 16, 2003, at 10:49 AM, James Hatridge wrote: Hi Jo

[PHP] Re: two php installations

2003-06-16 Thread DvDmanDT
If you bug the PHP team some, they might rename the PHP5 module so you can use both... I have PHP3, 4 and 5 (can someone please give me a working binary PHP1 and PHP2 for windows? PLEASE!!!) installed and working on the same server... Simply use the CGI version... But server gets slower and slower

[PHP] Re: Including text with PHP and keeping blanks

2003-06-16 Thread DvDmanDT
Sorry, don't understand what you mean... If I understand it right, you want PHP to include HTML asis and make the text look like it would in notepad (with spaces and so on)... Like echo $istxt?"".htmlentities(implode('',file($filename)))."":implode('' ,file($filename)); However, my code is often li

RE: [PHP] need config file parsing code.

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 15:23, Daevid Vincent wrote: > Off the top of your head huh? Damn... That's some code you churned out > there. Just glanced through it, but I'm impressed you took that much time! > Thanks! I'll clean it up and give it a go. > > d Well, I had just finished writing the core of

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
- Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 4:02 PM Subject: Re: [PHP] How to avoid Socket Post output? > > - Original Message - > From: "David Nicholson" <[EMAIL PROTECTED]> > To: "Kevin Stone" <[EMAIL PROTECTE

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 23:03, lines prefixed by '>' were originally written by you. > 1) Initiate Script-A through the browser. > 2) Script-A opens a socket connection to Script-B and posts a request. > 3) Script-B produces a formated data string

RE: [PHP] need config file parsing code.

2003-06-16 Thread Daevid Vincent
Off the top of your head huh? Damn... That's some code you churned out there. Just glanced through it, but I'm impressed you took that much time! Thanks! I'll clean it up and give it a go. d > -Original Message- > From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] > Sent: Monday, June 16

[PHP] Including text with PHP and keeping blanks

2003-06-16 Thread Fredrik Fornwall
Hello! I am just wondering if there exist some built-in function in PHP to include text files in HTML while retaining blank spaces and tabs. While I have found some text to HTML converting scripts I would prefer to let PHP format the text while including it into a web page, instead of creating

Re: [PHP] Formatting issue.

2003-06-16 Thread Lowell Allen
> From: "Tom Ray [Lists]" <[EMAIL PROTECTED]> > > I'm having a bit of a formatting issue, and I was wondering if someone > might have an idea on how to solve it. Basically what I have right now > is a script that opens and reads the content of an image directory, each > time the script is accessed

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Hi jason & the rest, Dit the session_write_close()! Nothing still displayed in step3, more thoughts?? $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { foreach($_POST['test1'] as $i => $Value) { $_SESSION['test1'][$i] = $_POST['test1'][$i]; } ses

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
- Original Message - From: "David Nicholson" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 3:22 PM Subject: Re: [PHP] How to avoid Socket Post output? > Hello, > > > This is a reply to an e-mail that you wrote on Mon, 16 Jun

Re: [PHP] Array in a $_session

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 05:43, Frank Keessen wrote: > Thanks but nothing is displayed on page 3 Any thoughts??? > > (page 2) > > $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; > if($_REQUEST['submit']!="") > { > foreach($_POST['test1'] as $i => $Value) { > $_SESSION['te

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
John, Thanks but nothing is displayed on page 3 Any thoughts??? (page 2) $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { foreach($_POST['test1'] as $i => $Value) { $_SESSION['test1'][$i] = $_POST['test1'][$i]; } header("Location: step3.php

[PHP] OOP, bus errors, segfaults

2003-06-16 Thread Mike Migurski
Hello, First post to the list, hi everyone. I'm having some difficulties with a script that makes heavy usage of objects, (de)serialization, and reference-passing. I've been noticing extremely frequent segfaults and bus errors in my apache logs (Bus Error 10, Segmentation Fault 11). These are not

[PHP] Dynamic menu not passing value to PHP?

2003-06-16 Thread Dennis Martin Ong
Hi, I'm trying to create a page where a user can choose to view products by category by selecting a drop down menu or he can choose to do a search against the item name. The script seems to work but I'm puzzled cos the mysql query seems to be querying all the category while it is suppose to match

Re: [PHP] Array in a $_session

2003-06-16 Thread John W. Holmes
Frank Keessen wrote: Still strugling with array's ;> : Can you help me with this?? How can i put that value into an $_SESSION?? Something like $_SESSION["test1"][$i]?? This is the way i put into a database foreach($_POST['test1'] as $i => $Value) { $query = "INSERT INTO test (test1, test2, t

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 14:22, zavaboy wrote: > How do I delete a mySQL table? (Just what's in the subject) Well, this is a MySQL question, not a PHP question, but in PHP you would do it like this: mysql_query("DROP TABLE $table_name", $dbh); Just make sure that the user PHP is running as has p

Re: [PHP] str_replace() problems actually *_replace() problems tobe

2003-06-16 Thread Thomas Bolioli
Thanks, I was so hung up on the regex that I failed to spot the (obscenely) obvious through my tunnel vision. Sometimes a fresh pair of eyes makes all the difference. Anyhow, the understatement of the day award goes to Lars for "There's only one thing you didn't try..." ;-) Thanks again, Tom La

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
Thanks! "David Nicholson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '>' were originally written by you. > How do I delete a mySQL table? (Just what's in the subject) > - Zavaboy

RE: [PHP] How do I delete a mySQL table?

2003-06-16 Thread Mike Brum
DROP TABLE `tablename` -Original Message- From: zavaboy [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 5:22 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I delete a mySQL table? How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED] www.zava

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '>' were originally written by you. > How do I delete a mySQL table? (Just what's in the subject) > - Zavaboy > [EMAIL PROTECTED] > www.zavaboy.com Connect to the mysql server, select the db then u

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:00, lines prefixed by '>' were originally written by you. > Oh wait.. unless that output is required somehow. I removed the echo > statement now my request isn't being replied to by the database > script. For a quick

[PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 13:46, Kevin Stone wrote: > Hello list, > > I'm attempting to use the PostToHost() function to send a request to a > remote script. The purpose for this is to request and retrieve information > from a remote database without the need for messy HTTP & HTML methods. I > real

[PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Hi, Still strugling with array's ;> : Can you help me with this?? How can i put that value into an $_SESSION?? Something like $_SESSION["test1"][$i]?? This is the way i put into a database foreach($_POST['test1'] as $i => $Value) { $query = "INSERT INTO test (test1, test2, test3, test4 , te

Re: [PHP] str_replace() problems actually *_replace() problems to bemore accurate

2003-06-16 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 11:49, Thomas Bolioli wrote: > I am a perl/java/c++ programmer who is doing something in php and have > run accross something I am stumped with. I am trying to replace carriage > returns with or tags (p's in groups of two and br's for any > unmatched cr's). I have tried a

Re: [PHP] str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Mark
--- Thomas Bolioli <[EMAIL PROTECTED]> wrote: > I am a perl/java/c++ programmer who is doing something in php and > have > run accross something I am stumped with. I am trying to replace > carriage > returns with or tags (p's in groups of two and br's for > any > unmatched cr's). I have tried

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
Oh wait.. unless that output is required somehow. I removed the echo statement now my request isn't being replied to by the database script. Seems I desparately need a lesson in socket connections. Does anyone know of a good book or tutorial other than the manual that goes into this stuff in de

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
ACK! NEVER MIND! I'm just blind. I didn't see the echo statement on the fgets() line. Problem solved. - Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 2:46 PM Subject: [PHP] How to avoid Socket Post output? > He

[PHP] How to avoid Socket Post output?

2003-06-16 Thread Kevin Stone
Hello list, I'm attempting to use the PostToHost() function to send a request to a remote script. The purpose for this is to request and retrieve information from a remote database without the need for messy HTTP & HTML methods. I realize that I could use an HTML form, put the data in hidden fi

Re: [PHP] timing out exec statements

2003-06-16 Thread Brad Dameron
Wouldn't this be best done inside your perl script? That way you can have it retry a few times then if it hard fails return to the PHP script. Brad - Original Message - From: "Dave [Hawk-Systems]" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 11:55 AM

[PHP] mysql error messages

2003-06-16 Thread Thomas Hochstetter
Hi. I have parsed the txt file and put it on my site . it's kinda ugly and messy, but maybe it helps someone. http://www.thomash.co.za/docs/errmsg.php T

Re: [PHP] phpMyAdmin to output CSV to excel (including fieldnames)

2003-06-16 Thread Chris Hayes
At 21:33 16-6-2003, you wrote: I see all the options in phpMyAdmin for CSV/excel output but I can't get it to export the fieldnames, headers as well. It'd be nice to have it automatically do that into excel so the output is easier to follow and provide to someone else. Am I just missing the option

Re: [PHP] WARNING: FW: Virus Found in message "[PHP-DB] Re Now how about Roman Numerals?"

2003-06-16 Thread Miles Thompson
At 01:45 AM 6/17/2003 +0800, Jason Wong wrote: On Tuesday 17 June 2003 01:29, Miles Thompson wrote: > Hard to say - bugbear is making the rounds, and it's a pernicious little > beastie. > > It not only uses an existing address list, it has a built-in SMTP mailer > and synthesizes not only "To:" ad

[PHP] Re: two php installations

2003-06-16 Thread Catalin Trifu
Hi, As far as I know you can not do that; but you instead install two Apache servers with different PHP modules and make them listen to different ports. Cheers, Catalin "Terje Torkelsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there a way to install two phps

[PHP] Re: speed on XML files

2003-06-16 Thread Catalin Trifu
Hi, If you have no access to the remote server and can not use compression, then I guess you are in trouble. btw. how big is your XML document ? Perhaps the inet connection is not very good either. Cheers, Catalin "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

Re: [PHP] Reverse Phone Number Lookup in importable format

2003-06-16 Thread pop
Peter, Have you thought of contacting excite and cutting straight through to the bone? Anyway you might start by contacting someone from this url http://www1.excite.com/home/companyinfo/strategic_partnerships_overview/0,37 74,,00.html Please let me know what you find out as I have an idea Ive be

[PHP] LDap Schema

2003-06-16 Thread Anoop Singhal
Hi, I have a ldap server and I want to list the entire schema. There are a couple of attributes in this schema which are not set for any of the entries. Consequently, when I get all the entries, these attributes are not returned and thus do not even know that they exist!. Is there a way to dum

[PHP] phpMyAdmin to output CSV to excel (including fieldnames)

2003-06-16 Thread J J
I see all the options in phpMyAdmin for CSV/excel output but I can't get it to export the fieldnames, headers as well. It'd be nice to have it automatically do that into excel so the output is easier to follow and provide to someone else. Am I just missing the option in phpMyAdmin or does it not

Re: [PHP] page name string

2003-06-16 Thread CPT John W. Holmes
> I need a really simple function that retrieves the actual page file name > from a URL. So, if the URL is http://www.server.com/pagename.php, or if > it is http://www.server.com/directory/pagename.php, the function in both > cases will return "pagename.php". > > I'm sorry if this is a ridiculous

[PHP] page name string

2003-06-16 Thread drparker
I need a really simple function that retrieves the actual page file name from a URL. So, if the URL is http://www.server.com/pagename.php, or if it is http://www.server.com/directory/pagename.php, the function in both cases will return "pagename.php". I'm sorry if this is a ridiculously easy ques

[PHP] REGISTER_SHUTDOWN_FUNCTION() -- Still Not Working.

2003-06-16 Thread Jason Caldwell
REGISTER_SHUTDOWN_FUCNTION() still broke. http://bugs.php.net/bug.php?id=14542 This was suppose to be fixed for (Win32 platforms) in release 4.3.2, although I don't see it in the fix-log. I've been pushing to get this fixed for some time now (circa 2001.) If I knew C/C++, I'd hop in there and f

[PHP] Re: str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Terje Torkelsen
take a look at the comments for the nl2br() functions, many nice examples for problems simular to this: http://no2.php.net/manual/en/function.nl2br.php On Mon, 16 Jun 2003 20:49:14 +0200, Thomas Bolioli wrote (in message <[EMAIL PROTECTED]>): > I am a perl/java/c++ programmer who is doing so

[PHP] timing out exec statements

2003-06-16 Thread Dave [Hawk-Systems]
we are dropping to a perl script to process transactions, occasionally the remote server the perl script interacts with becomes bogged, the transaction goes into limbo, or for whatever reason the processing of that transaction hangs (happening about 0.2% of the time). Is there a way to time and ti

[PHP] Re: Emptying the browser cache

2003-06-16 Thread Thomas Bolioli
There is no way to do this in any programming language since it is not part of the http spec. There may be som client side vb hack that someone knows that works on IE for Windows but I doubt it. It is not very secure to allow web sites to control your browser's cache. Try looking into expire ti

[PHP] Re: Emptying the browser cache

2003-06-16 Thread user
There is no way to do this in any programming language since it is not part of the http spec. There may be som client side vb hack that someone knows that works on IE for Windows but I doubt it. It is not very secure to allow web sites to control your browser's cache. Try looking into expire ti

[PHP] two php installations

2003-06-16 Thread Terje Torkelsen
is there a way to install two phps on one apache server? want a stable php4 on my production site and a php5-dev to test on.. just use different virtualhosts, like php5.domain.com for the one with php5 installed. looked in the apache docs, seems like LoadModule cant be used inside , its a globa

[PHP] str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Thomas Bolioli
I am a perl/java/c++ programmer who is doing something in php and have run accross something I am stumped with. I am trying to replace carriage returns with or tags (p's in groups of two and br's for any unmatched cr's). I have tried all of the *_replace() functions including string_*, ereg_*

Re: [PHP] Emptying the browser cache

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 02:40, Don wrote: > Is the a PHP command that will empty the browser's current cache? No. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

[PHP] Emptying the browser cache

2003-06-16 Thread Don
Hi, Is the a PHP command that will empty the browser's current cache? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_errno codes

2003-06-16 Thread Thomas Hochstetter
Thanks guys ... always a pleasure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Sapporo
I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this request, and sends back a response to A (so far it's regular HTTP). Next, server B must send an HTTP request to server

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
it should not do that. Are you on *nix? try not editing the script so much, try it like i gave it to you except remove the array to test a file to download. Just to verify that the script works for you. cheers, - Sebastian - Original Message - From: "Mishari" <[EMAIL PROTECTED]> To: "Seb

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 01:07, Sander wrote: > I'm using php to have several servers communicate between eachother. I > want to do the following: > Server A sends a request to server B. Server B stores some information > about this request, and sends back a response to A (so far it's regular > HTTP

Re: [PHP] WARNING: FW: Virus Found in message "[PHP-DB] Re Now how about Roman Numerals?"

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 01:29, Miles Thompson wrote: > Hard to say - bugbear is making the rounds, and it's a pernicious little > beastie. > > It not only uses an existing address list, it has a built-in SMTP mailer > and synthesizes not only "To:" addresses, but also "From:" addresses. > Norton'

Re: [PHP] WARNING: FW: Virus Found in message "[PHP-DB] Re Now how about Roman Numerals?"

2003-06-16 Thread Miles Thompson
Marios, Hard to say - bugbear is making the rounds, and it's a pernicious little beastie. It not only uses an existing address list, it has a built-in SMTP mailer and synthesizes not only "To:" addresses, but also "From:" addresses. Last week I had mail addressed to me ([EMAIL PROTECTED]) from

Re: [PHP] Server-initiated HTTP requests

2003-06-16 Thread Brad Dameron
http://www.domain.com";); ?> Brad - Original Message - From: "Sander" <[EMAIL PROTECTED]> > I'm using php to have several servers communicate between eachother. I > want to do the following: > Server A sends a request to server B. Server B stores some information > about this request,

[PHP] Server-initiated HTTP requests

2003-06-16 Thread Sander
I'm using php to have several servers communicate between eachother. I want to do the following: Server A sends a request to server B. Server B stores some information about this request, and sends back a response to A (so far it's regular HTTP). Next, server B must send an HTTP request to server C

Re: [PHP] Re: PHP help/example for booking program

2003-06-16 Thread Brad Dameron
Try here: http://www.hotscripts.com/PHP/Scripts_and_Programs/ or here: http://php.resourceindex.com/ Enjoy, Brad - Original Message - From: "Giuliano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 7:42 AM Subject: [PHP] Re: PHP help/example for booking program

Re: [PHP] Re: PHP help/example for booking program

2003-06-16 Thread Noel Wade
Welcome, hope you enjoy PHP - its a great language! My best suggestion is to check out the book "PHP and MySQL Web Development" by Luke Welling and Laura Thomson - it provides you with all of the PHP & MySQL fundamentals and good concepts for how to design something like that. The book is aimed a

Re: [PHP] Good PHP Books

2003-06-16 Thread Brad Dameron
Mark, An exceptional book and one I sleep with next to my bed is the PHP Bible 2nd Edition from Tim Converse and Joyce Park. This edition is published September 2002 and covers PHP 4.2. However it is 1000 pages. But it covers PHP in a simple explanatory way and will be a great resource. Hope this

  1   2   >