Re[2]: [PHP] Code optimization: single vs. double quotes?

2003-10-28 Thread Tom Rogers
Hi, Tuesday, October 28, 2003, 9:26:13 AM, you wrote: CWP> Curt Zirzow CWP> on Monday, October 27, 2003 3:16 PM said: >> 5. no newline after the tr. :) >> >> There are some broswer issues with tr and td's not being on the >> same line. CWP> Ok I resisted sending t

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
Hi, Tuesday, October 28, 2003, 3:08:56 AM, you wrote: JB> Do you realize how large a PITA this is? For everyone who sends an JB> e-mail to the PHP general list they have to take the time to answer JB> this. SPAM about SPAM. Wonderful. It is a pain but if we all did it, it would stop an awful lot

Re: [PHP] Upgrading GD...

2003-10-28 Thread - Edwin -
On Tue, 28 Oct 2003 01:26:05 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > Ryan Thompson wrote: > > >Just a thought. Try using phpinfo() to find out the compile > >options. Use that and just add the GD compile options after > >upgrading GD. That's usually how I go about adding a new module. I

Re: [PHP] How to deal with XML?

2003-10-28 Thread - Edwin -
On Tue, 28 Oct 2003 01:29:35 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > Robert Cummings wrote: > > >PHP docs are SGML as far as I can remember. > > > How so? PHP isn't XML, SGML, HTML, or anything else besides PHP. ? He's talking about the DOCS and *not* PHP... ;) - E - __

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
Hi, Sorry that link was not what I was thinking of, here is a better one. http://hr.uoregon.edu/davidrl/confirm/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Site Replication Software

2003-10-28 Thread Daryl Meese
Does any one know of some good PHP software to replicate websites (allow customer's to choose a template based website, etc.) Can't seem to find anything. TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upgrading GD...

2003-10-28 Thread Leif K-Brooks
- Edwin - wrote: That should do it. (Unless, of course, you encounter some "configure" or "make" problems.) And of course, I did: configure: error: Cannot find rfc822.h. Please check your IMAP installation. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt

Re: [PHP] passing variables

2003-10-28 Thread Burhan Khalid
Joao Andrade wrote: Hey everybody, That's lame but I've been looking for a while and found nothing. What are the ways to pass variables to another script? As far as I'm concerned there are POST and GET variables, and I know they can by set via HTML forms, but I only know how to pass u

Re: [PHP] Upgrading GD...

2003-10-28 Thread - Edwin -
On Tue, 28 Oct 2003 02:57:08 -0500 Leif K-Brooks <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > >That should do it. (Unless, of course, you encounter some > >"configure" or "make" problems.) > > > And of course, I did: > > configure: error: Cannot find rfc822.h. Please check your IMAP > insta

[PHP] Re: Parsing specific portions of XML files

2003-10-28 Thread Ian Williams
If it's anything like the Microsoft XML DOM object, you can use an XPath query to select the portion of the XML file that you want. "Ryan Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm stumped. I think it's just the logic I can't figure out. I have a file formatted for D

Re: [PHP] Parsing specific portions of XML files

2003-10-28 Thread Marek Kilimajer
See if xslt will help you. Ryan Thompson wrote: I'm stumped. I think it's just the logic I can't figure out. I have a file formatted for Docbook in XML. I'm trying to figure out a way to parse a specifice portion of an itemizedlist. It's for a change log. I want users to be able to view changes

Re: [PHP] [xml] character data

2003-10-28 Thread Burhan Khalid
Tom Rogers wrote: Hi, Saturday, October 11, 2003, 6:26:01 AM, you wrote: DA> I do not understand why this line does not work : DA> $info[$element] = $content; DA> but yet this works: echo $content; DA> why? what is the trick? [ snipped ] the function characterData can be called with whitespace

Re: [PHP] Tricky variable syntax...

2003-10-28 Thread Terence
>- Original Message - >From: "Curt Zirzow" <[EMAIL PROTECTED]> >To: "php" <[EMAIL PROTECTED]> >Sent: Tuesday, October 28, 2003 1:24 PM >Subject: Re: [PHP] Tricky variable syntax... >* Thus wrote René Fournier ([EMAIL PROTECTED]): >> echo 'file name: '.$$fld_name.''; >> >>What I want t

Re: [PHP] Tricky variable syntax...

2003-10-28 Thread Marek Kilimajer
René Fournier wrote: But here's my problem: echo 'file name: '.$$fld_name.''; What I want to do is echo the value of $img_photo_name. But how can I refer to it? Thanks. ...Rene Is this for file uploads? It that case you should use $_FILES superglobal array. -- PHP General Mailing Lis

[PHP] php sessions

2003-10-28 Thread S.P.Vimala
Hi, I'm developing a web application which is making use of sessions. I have the following configuration is my php.ini file session.use_cookies = 0 session.use_trans_sid = 1 session.auto_start = 0 register_globals = On This does not give me a new session_id when the application is ope

[PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
Beginner to PHP so I guess this could be a really simple answer. I have a page linking to a ms word doc however the doc doesn't open up in word within the sectioned part of the browser but displays a load of gobble e.g.. ÐÏࡱá>  þ  L N  þÿÿÿK ÿÿÿ

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: Beginner to PHP so I guess this could be a really simple answer. I have a page linking to a ms word doc however the doc doesn't open up in word within the sectioned part of the browser but displays a load of gobble e.g.. ÐÏࡱá>  þ  L N  þÿÿÿ

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Gregory Kornblum
You probably want to add the mime type with 'header("Content-type: application/x-ms-word");'. Regards. -Gregory -Original Message- From: Alex James [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:57 AM To: [EMAIL PROTECTED] Subject: [PHP] [PHP-GENERAL] Serving docs from PHP

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
John Nichel wrote: > Your php page has a link to the word document like this > My Document? > Show some code. Sorry Here is the link in menu6.php PK PATTERNS Micro models Test and getting called in here in index.php Thanks Alex James -- PHP General Mailing List (http

[PHP] Scratch card 14 digit number generation

2003-10-28 Thread J.F.Kishor
Hi, Does anyone know howto generate a scratch card number for a phone card, and what are the things that has to be considered, tariff plans validity, expirary etc. If anyone has any idea please let me know. - JFK kishor Nilgiri Netw

RE: [PHP] How to deal with XML?

2003-10-28 Thread Jay Blanchard
[snip] Just a small correction. I could be wrong but I don't believe XML is a subset of SGML but created to be used instead of. It was created from the ground up to replace SGML(not the easiest language to work with). [/snip] >From the first paragraph of the intro at http://www.w3c.org/XML/ "Ex

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Marek Kilimajer
Alex James wrote: $c = $_GET["c"]; if ($c != "") { include($c); } else { include("content1.php"); } ?> The code is very unsafe, you include an

Re: [PHP] sockets - fine tunning

2003-10-28 Thread Raditha Dissanayake
Hi, I think curt is right about transfer encoding being a problem, however i feel it may not be 'the' problem. This timing issue looks like you are running into a 'blocking' kind of situation. Cosmin, Have you tried the 'Connection: close' header? Getting back to transfer encoding you might wan

Re: [PHP] keyword search syntax

2003-10-28 Thread Raditha Dissanayake
If you put up a full text index on it you can do searches that smell like a primitive search engine. best regards Robb Kerr wrote: On Tue, 28 Oct 2003 02:09:06 +, David Otton wrote: Personally, I'd normalize that into a keyword table, a record table and a joining table. However, the SQL

Re: [PHP] Parsing specific portions of XML files

2003-10-28 Thread Raditha Dissanayake
Hi, You cannot parse a specific section only, the parser will go through the whole document. What you can do is to skip the section that does not interest you. I have seen two good suggestions that both smell of DOM (xslt has dom under the hood). With SAX you can just have a simple string com

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: John Nichel wrote: Your php page has a link to the word document like this My Document? Show some code. Sorry Here is the link in menu6.php PK PATTERNS Micro models Test and getting called in here in index.php $c = $_GET["c"];

[PHP] PDF File generation on Fly in PHP

2003-10-28 Thread Vijay Killu
Hello, I've just came through a function which generates PDF files on fly in a php script. On going through the documentation, I came to know that It needs to be compiled in a different fashion using a configure parameter. I would be happy if someone could help me out. I use Windows XP and PHP 4.

Re: [PHP] keyword search syntax

2003-10-28 Thread Robb Kerr
On Tue, 28 Oct 2003 19:37:10 +0600, Raditha Dissanayake wrote: > If you put up a full text index on it you can do searches that smell > like a primitive search engine. > > best regards Thanx. The LIKE operator wouldn't work. But, your tip on creating a FULLTEXT index and executing a MATCH... AG

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
John Nichel wrote: > On the page that you're trying to serve the Micro$oft Document > (index.php), you're going to have to include the content type in the > header, something like... > header ( "Content-type: application/msword" ); > See here... > http://us4.php.net/manual/en/function.header.p

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: John Nichel wrote: On the page that you're trying to serve the Micro$oft Document (index.php), you're going to have to include the content type in the header, something like... header ( "Content-type: application/msword" ); See here... http://us4.php.net/manual/en/function.h

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- "S.P.Vimala" <[EMAIL PROTECTED]> wrote: > How to create a unique session for every new browser instance? I'm not sure if this fits your definition of "new browser instance", but there is no way for a remote Web server to distinguish between two instances of the same browser running on the clie

RE: [PHP] PDF File generation on Fly in PHP

2003-10-28 Thread fkeessen
Hi, Have you already checked out www.fpdf.org? Regards, Frank >Hello, > >I've just came through a function which generates PDF files on fly in a php >script. >On going through the documentation, I came to know that It needs to be >compiled in a different fashion using a configure parameter. > >I

[PHP] Re: PDF File generation on Fly in PHP

2003-10-28 Thread pete M
on windows you need to comment out the php_pdf.dll (or similar) in php.ini and reboot apache/iis to enable the pdf extension. pete Vijay Killu wrote: Hello, I've just came through a function which generates PDF files on fly in a php script. On going through the documentation, I came to know th

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
> Okay, if you're going to include a MSWord document in a normal HTML > file, how do you do thatwhat's your code to do it? Ah...good point. Thought It would work like a frame. But now thinking about it I'm trying to embed a word doc in the and guess because I not using some or activeX cont

[PHP] Menu populated based on previous menu

2003-10-28 Thread Robb Kerr
Searched all the sites I could find for this problem to no avail. I have two dropdown menus in a form. The first menu contains a list of MANUFACTURERS obtained from a database. The second contains a list of MODELS also obtained from the database. I want the second menu to be populated based upon th

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Nitin
I've solved same kind of problems with the help of HTML frames, if you are interested, drop me a mail, or if you find better option, please let me know. Nitin - Original Message - From: "Robb Kerr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 9:15 PM Subje

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread CPT John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > Searched all the sites I could find for this problem to no avail. I have > two dropdown menus in a form. The first menu contains a list of > MANUFACTURERS obtained from a database. The second contains a list of > MODELS also obtained from the database. I wa

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Larry E . Ullman
Searched all the sites I could find for this problem to no avail. I have two dropdown menus in a form. The first menu contains a list of MANUFACTURERS obtained from a database. The second contains a list of MODELS also obtained from the database. I want the second menu to be populated based upon t

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Robb Kerr
Thanx for the tips. I'll search the JavaScript sites and see what I can come up with. -- Robb Kerr Digital IGUANA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Radu Manole
here is a link that might help http://www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listb ox.htm Radu - Original Message - From: "Robb Kerr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 5:59 PM Subject: Re: [PHP] Menu populated based on pr

[PHP] Possible query problem

2003-10-28 Thread Frank Tudor
Yestery day I got help from several of you on my function. I tried to get complicated today and so here it is. I am working on a peice of code where if a condition of a database entery is 0 then it will take you to one page if it is one it will take you to another page. Here is the function: $p

[PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Is there a way to preserve URL variables and have a link simply add a new variable to the end? I am tabulating data and I have URL variables defining which dataset to view and in what way to view it. I would now like to set the SQL statement up with a limit and add some "Previous", "Next" commands

RE: [PHP] Possible query problem

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:50 AM Frank Tudor wrote: > $query="SELECT payment FROM payment WHERE dln='".$_POST["dln"]."' = payment.dln='".$_POST["dln"]."' and users.password='".$_POST["password"]."'"; Okay, there seem to be a few problems here. The first issue is: "users.password" Using thi

RE: [PHP] Possible query problem

2003-10-28 Thread Jay Blanchard
[snip] $query="SELECT payment FROM payment WHERE dln='".$_POST["dln"]."' = payment.dln='".$_POST["dln"]."' and users.password='".$_POST["password"]."'"; [/snip] Breaking the above apart ... $query=" SELECT payment FROM payment WHERE dln='".$_POST["dln"]."' = payment.dln='".$_POST["dln"]."' and

RE: [PHP] URL Variables

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:57 AM Jed R. Brubaker wrote: > Is there a way to preserve URL variables and have a link simply add a new > variable to the end? > I am tabulating data and I have URL variables defining which dataset to > view and in what way to view it. I would now like to set the S

[PHP] revised query problem (sorry)

2003-10-28 Thread Frank Tudor
$query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' = users.dln='".$_POST["dln"]."' and payment.payment='".$_POST["payment"]."'"; Will this work? Frank __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/pr

Re: [PHP] Possible query problem

2003-10-28 Thread Chris Shiflett
I didn't look into your problem, but I want to mention one thing that stands out to me. --- Frank Tudor <[EMAIL PROTECTED]> wrote: > $query="SELECT payment FROM payment WHERE > dln='".$_POST["dln"]."' = payment.dln='".$_POST["dln"]."' and > users.password='".$_POST["password"]."'"; Never, ever bu

Re: [PHP] URL Variables

2003-10-28 Thread Chris Shiflett
--- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > Is there a way to preserve URL variables and have a link simply add > a new variable to the end? Sure, just use $_SERVER['QUERY_STRING'], which is the current query string, and append whatever new URL variables you want. Chris = My Blog

RE: [PHP] revised query problem (sorry)

2003-10-28 Thread Pablo Gosse
Yours: $query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' = users.dln='".$_POST["dln"]."' and payment.payment='".$_POST["payment"]."'"; Mine: $query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' AND users.dln='".$_POST["dln"]."' and payment.pa

RE: [PHP] revised query problem (sorry)

2003-10-28 Thread Jay Blanchard
[snip] $query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' = users.dln='".$_POST["dln"]."' and payment.payment='".$_POST["payment"]."'"; Will this work? [/snip] Aside from what Chris said (excellent advice!) the query above will not work because the 4rth line = users.d

Re: [PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Thanks! "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > Is there a way to preserve URL variables and have a link simply add > > a new variable to the end? > > Sure, just use $_SERVER['QUERY_STRING'], which is the c

[PHP] Re: php-general Digest 28 Oct 2003 17:26:53 -0000 Issue 2382

2003-10-28 Thread Verdon Vaillancourt
There's a nice GPL class that does this quite well. It could save you a lot of work and will definitely provide an example. Check out; http://www.phpclasses.org/search.html?words=linked_select&go_search=1 On 10/28/03 12:26 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > - Original Mes

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Verdon Vaillancourt
There's a nice GPL class that does this quite well. It could save you a lot of work and will definitely provide an example. Check out; http://www.phpclasses.org/search.html?words=linked_select&go_search=1 On 10/28/03 12:26 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > - Original Mes

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Robb Kerr
I've found some JavaScripts that will do what I require. Here's the question before I get to deeply into hacking the scripts... Can you embed PhP in JavaScript. In other words, the Java requires that arrays be filled. The entries into these arrays need to come from my database which is accessed vi

RE: [PHP] Menu populated based on previous menu

2003-10-28 Thread Pablo Gosse
Hi Robb. This is exactly what you'll need to do. Something like the following, assuming you're populating an array with user information: