Re: [PHP] HTML select form element

2002-04-12 Thread Chris Wesley
Name your select element majors[] and when the form is submitted, your form handler will get an array, not a scalar, called $majors. Step through the array, and you'll get all the options that were selected. ~Chris /\ \ /

Re: [PHP] Question about using XSLT_Process?

2002-07-03 Thread Chris Wesley
You just need the XML and/or XSL as a string. xmldoc() is creating a DOM object, which xslt_process() can't use. In you example that does not work properly, change this: $xsl = xmldoc(implode(,file(test.xsl))); $xml = xmldoc(implode(,file(test.xml))); to not use xmldoc(), like this: $xsl =

Re: [PHP] returning more than 1 value from function

2002-07-04 Thread Chris Wesley
On Thu, 4 Jul 2002, andy wrote: i am wondering if it is possible to return more than 1 value from a function? You can pass your arguments by reference. ?php function test( $arg1, $arg2 ){ $arg1 = foo; $arg2 = bar; } $var1 = ; $var2 = ; test( $var1, $var2 ); // Note the

Re: [PHP] returning more than 1 value from function

2002-07-04 Thread Chris Wesley
://www.thebackrow.net On Thu, 4 Jul 2002, Chris Wesley wrote: On Thu, 4 Jul 2002, andy wrote: i am wondering if it is possible to return more than 1 value from a function? You can pass your arguments by reference. ?php function test( $arg1, $arg2 ){ $arg1 = foo; $arg2 = bar

Re: [PHP] Difference between executable and Apache server

2002-07-08 Thread Chris Wesley
On Mon, 8 Jul 2002, Jay Blanchard wrote: We have some cases where we run PHP as a standalone executable for scripting certain processes that can be called from CRON, and we also have PHP for Apache. Does the php.ini affect both? Specifically script times? Check the output of phpinfo() for

Re: [PHP] Paying Job...

2002-07-25 Thread Chris Wesley
On Thu, 25 Jul 2002, Gerard Samuel wrote: Do you charge by the page, script or by the hour (that would be nice). It's a tough thing to do, but consider charging by the project. You'll find a most equitable payment/compensation when you establish up front how valuable the project is to the

Re: [PHP] embedding php into html

2002-04-24 Thread Chris Wesley
On Wed, 24 Apr 2002, Larry Brown wrote: problems. I have a client whose specific need to to keep the .html extention. I want to embed a php script into the html but the script won't run. I've tried two php enabled servers running apache and neither picks it out. Is there a trick I'm

Re: [PHP] Code Troubles

2002-04-26 Thread Chris Wesley
if ($db!= and !@mysql_select_db($db)) die(The site database is unavailable.); you probably want an or before that die(). g.luck, ~Chris /\ \ / Microsoft Security Specialist:

Re: [PHP] Code Troubles

2002-04-26 Thread Chris Wesley
/\ \ / Microsoft Security Specialist: X The moron in Oxymoron. / \ http://www.thebackrow.net On Fri, 26 Apr 2002, Miguel Cruz wrote: On Fri, 26 Apr 2002, Chris Wesley wrote: if ($db!= and !@mysql_select_db($db

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Chris Wesley
On Mon, 29 Jul 2002, Monty wrote: Is it really necessary to store passwords encrypted in a mySQL DB for a membership site if you're not storing sensitive info such as credit card numbers? How much security does that offer, really, and for whom? I'm going to go with YES on this one. The

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: Can anyone explain why the following code operates the way it does in my comments? Sure. ?php $test = array ( 'a' = 'A', 'b' = 'B', 'c' = 'C'); An associative array, $test. if (array_key_exists(2, $test)) echo It works by key number!; //

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: I was hoping I could access by either name OR number, but apparently not. Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow really have your heart set on using integers). There are probably

Re: [PHP] help, array values echoed as Array on loop!

2002-09-02 Thread Chris Wesley
On Mon, 2 Sep 2002, Victor wrote: $ID_arr[] = explode(',', $pictures); # make db data into array This is the string: 15,16,17,18,19 why does it echo as Array? ... because you've created an array ($ID_arr) with an array as the first value (the result of the call to explode()). Take the

Re: [PHP] problems with cookies

2002-09-02 Thread Chris Wesley
A couple problems may exist: 1) If you're trying to do this all in the same script, it's not going to work. You can't set a cookie and use it (with the value you've just set) in the same script (in the same request). You can only use cookies that have been sent back to your script from

Re: [PHP] empty php.ini

2002-09-02 Thread Chris Wesley
On Mon, 2 Sep 2002, timo stamm wrote: I am new to PHP. I am running the module version 4.2.2 from Marc Lyanage (entropy.ch) on OS X 10.1 and noticed that my /usr/local/lib/php.ini is empty!? ... that package doesn't ship with a php.ini. You'll have to get/make your own. Is there a way

Re: [PHP] Function expects string but receiving array Warming??

2002-09-03 Thread Chris Wesley
On Tue, 3 Sep 2002, Jean-Christian Imbeault wrote: Warning: header() expects parameter 1 to be string, array given in /www/htdocs/jc/administration/edit_products/show_products.php on line 96 How can I fix my code to get rid of this error (while keeping the var as an array)?My code looks

Re: [PHP] XSLT - Sablotron

2002-09-05 Thread Chris Wesley
On Thu, 5 Sep 2002, Devin Atencio wrote: I am trying to find out a way I can pass a variable that is basically an XML document to xslt_process and make it all work. My script $xmldata = a whole boatload of well-formed XML; $xsltArgs = array( '/_xml' = $xmlStr ); $xp = xslt_create(); $result =

Re: [PHP] split() - not working in this case

2002-09-08 Thread Chris Wesley
On Sun, 8 Sep 2002, N. Pari Purna Chand wrote: $to = abcd [EMAIL PROTECTED], efgh [EMAIL PROTECTED] ; Now split() in the following function*** is notworking as needed. ie, I'm getting $tos[0] = abcd; $tos[1] = efgh; split didn't do anything wrong. use your browser's view source to see

Re: [PHP] header question

2002-09-11 Thread Chris Wesley
On Wed, 11 Sep 2002, Meltem Demirkus wrote: I want to know if there is any way to send data in header(Location:login.php) .I know how to send like this a href=\login.php?id=$ID\ but I need to use header and I dont know howto do this?... header( Location: login.php?id=${ID} );

Re: [PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Chris Wesley
On Thu, 12 Sep 2002, Hankley, Chip wrote: fwrite($fp, ? echo $LayerScale); If $LayerScale is defined, then fwrite outputs the value of $LayerScale to the target, NOT the string $LayerScale. How can I overcome this? fwrite($fp, ? echo \$LayerScale); g.luck, ~Chris -- PHP

Re: [PHP] Problem updating post on a basic weblog system

2002-09-12 Thread Chris Wesley
code snippet if ($post == post) { postBlog ($post,$input,$title); }elseif ($post == edit){ updateBlog ($input,$edit_post); // BINGO! } /code snippet Just looking at the code you posted to your site, there's only one thing obvious to me: You want

Re: [PHP] PERMISSIONS

2002-09-12 Thread Chris Wesley
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my server. How I change the user to root? Dude, you don't change to the root user ... you'll get yourself owned that way. Change the permissions on the

Re: [PHP] Re: XSLT failing when DOCTYPE declaration present

2002-12-04 Thread Chris Wesley
remotely.) still feel it is an error, you may want to email a bug issue to the sablotron people (i'm assuming that's what you're using). Yes, I used the Sablotron extension to PHP 4.2.2. Thanks for the insightful advice ~Chris Chris Wesley [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Looping Addition

2002-12-04 Thread Chris Wesley
On Wed, 4 Dec 2002, Stephen wrote: I already have that. $_POST['vars'] is a number and I already check that you on a page before. All I need to know is how to keep adding numbers until there are no more to add... If you mean that $_POST['vars'] is an array of numbers: $total = 0; foreach(

Re: [PHP] Looping Addition

2002-12-04 Thread Chris Wesley
On Wed, 4 Dec 2002, Stephen wrote: This is only a snippet, there is more to it but for simplicities sake... Then I calculate it. My question is, how would I loop the adding? I hope you understand this now... Ah!, I think I understand better now. You want to add num1, num2, num3, ... numN,

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Chris Wesley
On Thu, 5 Dec 2002, Leif K-Brooks wrote: I'm running a few simple php scripts from the (windows) command line. Since I'm not using a web browser to view it, the HTTP headers are annoying and pointless. I've turned expose_php off in php.ini, but commenting out default_mimetype changes

Re: [PHP] md5 question

2002-12-05 Thread Chris Wesley
On Fri, 6 Dec 2002, conbud wrote: Hey. Is there a way to get the actual word/phrase from the long string that the md5 hash creates. Lets say, is there a way find out what b9f6f788d4a1f33a53b2de5d20c338ac stands for in actuall words ? In all cases, an md5sum string means, You've got better

Re: [PHP] Bug with + sign when using CLI?

2002-12-06 Thread Chris Wesley
On Fri, 6 Dec 2002, Charles Bronson wrote: I found nothing about a + splitting argument variables anywhere in the CLI documentation though I know this is a CGI characteristic. I've tried escaping the + character to no avail. Check out the bug: http://bugs.php.net/bug.php?id=18566 I

Re: [PHP] Re: XSLT failing when DOCTYPE declaration present

2002-12-06 Thread Chris Wesley
, if it isn't set to right permissions, it won't read and act as if there wasn't one, which then makes it work. so it does look like your doc doesn't conform. Chris Wesley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 4 Dec 2002, Dave wrote:

Re: [PHP] Move Decimal Point

2002-12-11 Thread Chris Wesley
On Wed, 11 Dec 2002, Stephen wrote: I have a question. How would you move the decimal left or right, depending on if the number a user enters is negative or not, and then move it that many spaces? If needed, it would add zeros. Math ... multiply divide ... I assume you're using a base-10

Re: [PHP] strstr-pls help

2002-12-11 Thread Chris Wesley
On Wed, 11 Dec 2002, Mekrand wrote: i solved problem, -not a good solution- i changed only $adam=fread($ip,filesize($ip)); You have: $string = fread( $fileHandle, filesize( $fileHandle ) ); The example at php.net you looked at has: $string = fread( $fileHandle, filesize( $fileName ) ); Just

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Chris Wesley
On Wed, 11 Dec 2002, Curtis Gordon wrote: future date: ?$maturity_date = mktime (0,0,0,$mday_row[3],$mday_row[2],$mday_row[5]);? current date: ?$today = getdate();? ?$now_date = mktime (0,0,0,$today['month'],$today['wday'],$today['year']);? $today['month'] is text, ie. December, and

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Chris Wesley
Oh, and $today['wday'] ... that's the day of the week. I'm almost positive you want the day of the month: $today['mday']. hth, ~Chris On Wed, 11 Dec 2002, Chris Wesley wrote: On Wed, 11 Dec 2002, Curtis Gordon wrote: future date: ?$maturity_date = mktime (0,0,0,$mday_row

Re: [PHP] Using fopen() to open a php file with variables.

2002-12-11 Thread Chris Wesley
On Wed, 11 Dec 2002, Jay (PHP List) wrote: Okay, I need to retrieve the output of a php file with variables being passed to it. Example: $calendar_file = make_calendar.php3?month=$monthyear=$year; $fp = $fp = fopen($calendar_file, r); Oh my! That's not going to work, because

Re: [PHP] Re: problems with jsp php

2002-12-12 Thread Chris Wesley
I'm pretty sure everyone else is as confused by your description as I am. (Hence, I didn't answer.) It looks like you're trying to generate JavaScript w/ PHP, but your subject mentions JSP. In a nutshell, I don't know if what you're doing is over my head, or just not explained clearly. I can

Re: [PHP] case statement?

2002-12-19 Thread Chris Wesley
On Thu, 19 Dec 2002, Max Clark wrote: I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). switch function ... http://www.php.net/manual/en/control-structures.switch.php ~Chris -- PHP General

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: However, then in the script I have a require tag (essentially like require('http://www.mydomain.com/common.php')) line. I call this line, and within that file (same domain) the $_COOKIE[] array as well as variables such as $cookiename are all blank.

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Alexandre Soares wrote: Where I can get more information about a free library to plot 2d and 3d data information, Check out phpclasses.org. A quick search for graph returned 10 classes. Another 3 for plot. One may work out for you, or lead to something else more helpful.

Re: [PHP] ¡¾help¡¿how can I put the pull down menu in a frame and display.....

2002-12-23 Thread Chris Wesley
On Wed, 18 Dec 2002, dreamyman wrote: 1.I want to put my menu in a top frame and when I select a Item ,it can display it in the frame below. 2.my web has 2 frame ,lefe and right. but the right has a menu ,so I want to change left frame when select different menu of left frame. HTML

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP extention file fail? You've already demonstrated that you know included code inherits the parent's

Re: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread Chris Wesley
On Wed, 25 Dec 2002, @ Nilaab wrote: I have an multi-dimensional array called $cat_data, which is info extracted from a MySQL DB. I want to retrieve the very last item of that array. How would I do that? I know the first item can be retrieved by simply asking for $cat_data[0][0], which

Re: [PHP] Problem with comma in mail form

2002-12-25 Thread Chris Wesley
On Wed, 25 Dec 2002, Ben Edwards wrote: I have a fairly simple mail form which gets email, subject and message and posts to itself. It then use mail() function to send a email. mail( $admin_email, $subject, $message, From: $email ); Problem is the message gets truncated if there is a comma

Re: [PHP] Include Problems

2002-12-26 Thread Chris Wesley
On Thu, 26 Dec 2002, Mike Bowers wrote: I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: Warning: Failed opening

Re: [PHP] Multiple forms

2002-12-30 Thread Chris Wesley
On Mon, 30 Dec 2002, Doug Coning wrote: However, I want to add another form in the same page. My current form acts upon itself (i.e. Action = the same page). If I set up another form to do the same, how would my PHP determine with action submit button was acted upon? Give your submit

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Chris Wesley
On Tue, 7 Jan 2003, James Brennan wrote: The while statement is only executing correctly for the first run through the foreach loop. Why? It's /real/ hard to tell when you don't give any context or otherwise explain what it is you want to achieve. Since the code in fact executes correctly, we

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, Gerard Samuel wrote: a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I applied str_replace('\', '', $var) and that worked. Any idea as to why stripslashes would not remove the slashes in the string?

Re: [PHP] Looping through directories?

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, Jeff Lewis wrote: pattern for the name if the indexes, I assume I need to create an array holding the directory name and the associated index file name like so $dirs = array(Sports = spindex.xml, Business News = business.xml) etc Now, I need help with the loop to whip

RE: [PHP] Adding HTTP URL Code

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote: OK, so I've gotten NO responses to my query below so I thought I'd ask for something slightly different and see what I get. The follow-up inquery makes much more sense than the original ;) If I have a bunch of plain text

Re: [PHP] building web album - design questions

2003-01-09 Thread Chris Wesley
On Thu, 9 Jan 2003, Anders Thoresson wrote: I'm planning to build a web album for my digital photographs, and have some questions regarding the design: I don't want to discourage you from hacking your own code ... that's phat, so plz take this just as some heads-up info: IMHO, Gallery can't

Re: [PHP] Cannot show reuploaded image file on page unless manualrefresh

2003-01-20 Thread Chris Wesley
On Mon, 20 Jan 2003, Phil Powell wrote: I am using the following header() functions to force view.php to not cache: header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache,

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Chris Wesley
On Tue, 28 Jan 2003, Mike Potter wrote: sense to me that this feature get another look. I can see no logical reason to not allow . in the global $_POST variable... Basically, what I'd like is to be able to post a form element with id=myvariable.whatever and access it on the next page with

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Chris Wesley
On Tue, 28 Jan 2003, 1LT John W. Holmes wrote: Basically, what I'd like is to be able to post a form element with id=myvariable.whatever and access it on the next page with $_POST[myvariable.whatever]. // obviously this is some busted garbage $name.Array[first]=Chris;

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Christopher Ditty wrote: errors, no nothing. I talked to his host and found out that they do not allow PHP FTP because it is a security risk. ? U, ok? I consider FTP a security risk, period. (There /are/ ways to run an FTP server securely, but I won't assume

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Chris Wesley wrote: On Tue, 11 Feb 2003, Christopher Ditty wrote: errors, no nothing. I talked to his host and found out that they do not allow PHP FTP because it is a security risk. ? U, ok? That said ... FTP is a protocol; there's nothing stopping you

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Christopher Ditty wrote: Chris, Did you read the rest of the message? It sounds like the web Yes, I read your entire message. host is saying that someone can access PHP FTP from an outside server and hack into the server. That's precisely NOT what the hosting provider

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Wed, 12 Feb 2003, Jason Wong wrote: On Wednesday 12 February 2003 07:46, Chris Wesley wrote: You access an FTP server with a user name and a password to retrieve a file via PHP FTP. The user name and password is the same that grants you access to your hosting providers server

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Wed, 12 Feb 2003, Jason Wong wrote: On Wednesday 12 February 2003 14:02, Chris Wesley wrote: Why? What's a better argument? It's certainly just a piece of a much larger argument, but avoiding a full-fledged lecture outside the immediate context of the original question (and trying

Re: [PHP] default php sessions in a database

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Robin Mordasiewicz wrote: Is there a way to configure php to use a database for sessions rather than a text file. I have a server farm and want the session files to be accessible to all machines in the cluster. I can have the session file on nfs but I am worried about

Re: [PHP] By reference

2003-02-13 Thread Chris Wesley
On Thu, 13 Feb 2003, Chris Boget wrote: $firstVar = 123ABC; $secondVar = $firstVar; = is a bitwise AND, and an assignment. This didn't do what you expected it to do. $thirdVar = $firstVar; = is a reference assignment. This did what you expected it to do. Why? I thought that = made it so

Re: [PHP] Sorting multidimensional arrays

2003-02-13 Thread Chris Wesley
On Thu, 13 Feb 2003, Sean Brown wrote: Let's say I've got an array like so: $myarray[0][firstname] = Mickey; $myarray[0][lastname] = Mouse; $myarray[0][score] = 20; $myarray[1][firstname] = Donald; $myarray[1][lastname] = Duck; $myarray[1][score] = 10; I'd like be able to sort the

Re: [PHP] open_basedir Option

2003-02-19 Thread Chris Wesley
On Wed, 19 Feb 2003, Joachim Krebs wrote: How do I set the php.ini setting open_basedir on a per-directory basis? Ideally, I would like to set it using .htaccess files... open_basedir can only be set in php.ini or httpd.conf. You might be able to set it in Directory stanzas within your

Re: [PHP] remove a line from a text list

2003-03-05 Thread Chris Wesley
On Wed, 5 Mar 2003, Richard Kurth wrote: This script will remove a line from a text list of email address and then re-write the list. The only problem I am having is when it re-writes the list it adds a extra line between each record. How can I stop this from happening Your code works as

Re: [PHP] print $array[$i][0] pukes

2003-03-05 Thread Chris Wesley
On Wed, 5 Mar 2003, David T-G wrote: $m = count($manilist) ; for ( $i=0 ; $i$m ; $i++ ) { print $i :: $manilist[$i][0]\n ; } I simply get 'Array[0]' out for each inner.. Clearly php is seeing that $manilist[$i] is an array, telling me so, and then happily printing the [0]; how do

Re: [PHP] checkbox objects returning false for isset() when submittedvia a form.

2002-10-01 Thread Chris Wesley
On Tue, 1 Oct 2002, DonPro wrote: Within my form, I have some checkbox objects. If I check them and submit my form, isset(variable) returns true. However, if I do not check them and submit my form, isset(variable) returns false. I am confused as I though that isset() returns true if the

Re: [PHP] Re: submitting a form to multiple places!

2002-10-01 Thread Chris Wesley
Your problem is tough to understand. Submitting form data to multiple places isn't normal, and your need to do so wasn't clear to me. When you have total control of your environment, the need to re-submit submitted data is superfluous. If you must have a PHP script that handles submitted data

Re: [PHP] PHP version

2002-10-01 Thread Chris Wesley
On Tue, 1 Oct 2002, Alex Shi wrote: Is there any way to report PHP version? Sure. What version of PHP are you using? ;) ~Chris P.S. - if you didn't find that amusing, just check out http://www.php.net/manual/en/function.phpversion.php -- PHP General Mailing List

Re: [PHP] Just cant figure out how this could be happening...

2002-10-03 Thread Chris Wesley
SELECT CURDATE() - 14 ... this isn't doing what you think it's doing. The CURDATE() function returns a string like 2002-10-03. Subtracting 14 from that gets you 20020989 as a result from MySQL. Pretty useless, right? If that ever worked for you, it was a total coincidence. Try this instead:

Re: [PHP] how to user select multiple=true

2002-10-15 Thread Chris Wesley
On Wed, 16 Oct 2002, Khalid El-Kary wrote: If i have a form that has a select with multiple=ture how would i be able to retireve it's multiple values in the PHP script, i tried the $_REQUEST['fieldname'] it gave me only the last selected value You need to make sure you get back an array

Re: [PHP] Code Advice

2002-11-06 Thread Chris Wesley
On Wed, 6 Nov 2002, Jason Young wrote: So then can anyone tell me why its working so far? ;) It doesn't work at all like you want it to. I assume you've already put this script up on a web server to test, so watch this: After this line: $$key = $val; Insert this line for debugging:

[PHP] XSLT failing when DOCTYPE declaration present

2002-11-07 Thread Chris Wesley
I'm using the xslt capabilities in PHP 4.2.2 and running into an odd problem. I'm transforming an XML document which has a DOCTYPE declaration referencing an external DTD. !DOCTYPE RootNode SYSTEM http://my.host.org/foo.dtd; When I have xslt_process() attempt to transform the XML document, with

Re: [PHP] Lynx/Apache PHP execution vs. PHP interpreter

2002-11-08 Thread Chris Wesley
On Fri, 8 Nov 2002, Jason Young wrote: I've edited the reporting functions so that instead of throwing it up on the console like it normally does, it instead calls lynx with the -dump parameter to the PHP page, and that in turn puts the variables into a DB... (Basically I can access my full

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Chris Wesley
On Tue, 12 Nov 2002, brucedickey wrote: I've searched, but haven't found the answer -- from a language design point of view, why are there $ on the front of PHP variable names? ... so Perl converts know where there variables are ;) ~Chris -- PHP General Mailing List

Re: [PHP] ill sprintf() behavior w/ HEX type

2002-11-21 Thread Chris Wesley
On Thu, 21 Nov 2002, Jason Wong wrote: That's because it's expecting a _decimal_ and will automatically convert it to hex for you. AH! Must've been a longer day than I thought ... dunno how that escaped me. Somehow I was reading x - the argument is treated as in integer and presented as a

Re: [PHP] ob_output

2002-11-22 Thread Chris Wesley
On Fri, 22 Nov 2002, Uros Gruber wrote: ob_end_flush(); This turns off output buffering after flushing, the first time it gets called in the first iteration of your for() loop. I can make this work on php and apache. I always get output in one shot not line by line. If i try this code with

Re: [PHP] Read Files

2002-11-30 Thread Chris Wesley
On Sat, 30 Nov 2002, Randum Ian wrote: I have a directory of files which are split up into sections based on 'full', 'summary' and 'competitions'. This is shown in the filename as follows: ministry-full-6122002.inc I want to be able to search thru the dir looking for all the 'full' files,

RE: [PHP] Read Files

2002-11-30 Thread Chris Wesley
On Sat, 30 Nov 2002, Randum Ian wrote: Ministry is the name of the club. Full is the type of the content. 6122002 is the date - It is in the form ddmm so the example here is 6th December 2002. Is there a simple way I can just grab the date and sort it by order? Should I change the

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Chris Wesley
On Sun, 1 Dec 2002, Troy May wrote: The only thing that EVER gets displayed is the final else. (Main content goes here.) What am I doing wrong? Once again, the links are in this format: a href=index.php?samples a href=index.php?samples=1 To get the desired results with the code you posted,

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread Chris Wesley
On Mon, 2 Dec 2002, jtjohnston wrote: SELECT id,AU,ST,BT,AT FROM jdaxell.ccl WHERE MATCH (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('ready maria' IN BOOLEAN MODE) ORDER BY id asc When I run the same (copied and pasted) SQL in PHP, it is as though MySQL is doing a