[PHP] Re: About the code display on php.net

2002-10-30 Thread Gabor Hojtsy
Could someone please fix the function pages on http://www.php.net, so that when people submit code all nice and formatted, it retains that formatting in the contributed notes section? There are some really intricate examples, and it just makes it that much easier to read. Not to mention, the

[PHP] cpdf_set_font

2002-10-30 Thread Tomá¹ Kubi¹
Hello, I´m using ClibPDF function cpdf_set_font like: cpdf_set_font($cpdf, Times-Roman, 30,WinAnsiEncoding); But I need to have Windows-1250 Encoding or ISO-8859-2 (I need czech chars). Does anybody know how can I do that? Thank you very much Tomas Kubis -- PHP General Mailing List

[PHP] Re: File Upload Problem

2002-10-30 Thread David Robley
In article 002e01c27f99$20e35b50$030a0a0a@skink, [EMAIL PROTECTED] says... Hi All I'll start by saying that I've checked the online manual (and comments) as well as having done a Google search on this with no success. My problem is that files uploaded through a form are increasing in

[PHP] write on the begin of a file

2002-10-30 Thread Sébastien Eckert -- Netika
Hi I have this *** line 1 line 2 ... *** and i want have this after my script ... *** MY NEW TEXT line 1 line 2 ... *** i had test this but it seems not work : $fp = fopen(test, a+); fseek ($fp,0); fputs($fp,set IP=192.11.11.11\n); fclose($fp); i had test

[PHP] Segmentation Fault

2002-10-30 Thread Andy Woolley
Hi All, I'm scanning email address for our mailing list to see if they are valid and the PHP app I have built for this bombs out at random complaining of a Segmentation Fault. I believe this is to do with memory and possibly down to the number of open file handles but the code is spot on in that

RE: [PHP] Array Question

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: PHP List [mailto:php_list;ibcnetwork.net] Sent: 29 October 2002 17:20 To: php Subject: Re: [PHP] Array Question No, array_keys does not do what I want, in order to user array_keys, it assumes I know the value of the key, but I don't, Er -- no. Go

[PHP] Re: Need help...

2002-10-30 Thread Baroiller Pierre-Emmanuel
Like noone seems to find something usefull to help me.. I've done the work myself :) I've tried this : $eregstr=/style[^]*([^]|[^\/]|\/[^style]|\/style[^])*\/style[^]* /msi; $data=preg_match_all($eregstr,$str,$matches); $str=preg_replace($eregstr,,$str);

RE: [PHP] Cutting off first 4 characters using array input names??

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:holmes072000;charter.net] Sent: 30 October 2002 01:15 To: 'Jarrad Kabral'; [EMAIL PROTECTED] Pretty sure this is a known bug; it's been discussed on here a few times. Do a search for it. Oh yeah, at least half a dozen -- I found them

RE: [PHP] POST-ing or GET-ing an array

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Paul Nicholson [mailto:paul;dtnicholson.com] Sent: 29 October 2002 19:10 To: Sascha Cunz; Petre Agenbag; [EMAIL PROTECTED] Hey, I think you should be able to serialize and urlencode the array and then pass that via get/post.post would be a lot better

Re: [PHP] back and forward through a result query

2002-10-30 Thread Marek Kilimajer
basicly you need to do select .. limit $ptr, 1 and links prev = $ptr-1 (if $ptr!=0) and next = $ptr +1 (if $ptr select count(*)) Petre Agenbag wrote: Rick, thanks, I will check the lists, but I'm not sure that will resolve my problem, I don't want to limit the display in the initial

RE: [PHP] Re: Flash and PHP?

2002-10-30 Thread Jay Blanchard
[snip] I'm new to php coding but after some research am I right in saying that the latest release that I installed is PHP4.2.3 then there is a configuration setting called register_globals. Up until 4.2 it has always been ON. But not.. as of 4.2 it is OFF. is this right? if so have the scripts I

Re: [PHP] Regex Help

2002-10-30 Thread Marek Kilimajer
Instead of splitting the string on chars that don't equal \w and ', split it on chars that equal \s (or any other you need) Gerard Samuel wrote: Im trying to explode a string into an array of words using - $title = preg_split('/[^\w\']/', $title, -1, PREG_SPLIT_NO_EMPTY ); It seems to work

[PHP] Standalone JDtoGregorian function, please??

2002-10-30 Thread jmmp
Hi, 1. The server I am using does not have the Calendar functions compiled into PHP. 2. The online manual comments for GregoriantoJD supplies a standalone function to convert one way. 3. A counterpart function, translating back JDtoGregorian, is missing. Does anyone have a matching pair of

Re: [PHP] php form mail - checkbox problem

2002-10-30 Thread Marek Kilimajer
Tine wrote: Greetings, Forgive my newbism here, but I am having a hard time recieving check(box)ed items from a form sent to e-mail using PHP. The code is as follows: //Routine for checkboxes $MailBody .=Type medlemskap : ; $items = 2; //initiate possible # of items for ($i = 1; $i

Re: [PHP] write on the begin of a file

2002-10-30 Thread Marek Kilimajer
There is no insert in fputs, you need to make a new file and then rename it to your old one, or build it in the memory and then overwrite it. Sbastien Eckert -- Netika wrote: Hi I have this *** line 1 line 2 ... *** and i want have this after my script ... *** MY NEW

[PHP] Yahoo moves to PHP

2002-10-30 Thread Nick Wilson
Forgive me if you guys have seen this. Just read it on www.webmasterworld.com Yahoo moves to PHP http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm -- Nick Wilson // www.tioka.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Yahoo moves to PHP

2002-10-30 Thread Steve Bradwell
We're taking over. Steve Bradwell MIS Department. If you give someone a program, you will frustrate them for a day. If you teach them how to program, you will frustrate them for a lifetime. -Original Message- From: Nick Wilson [mailto:nick;tioka.com] Sent: Wednesday, October 30, 2002

[PHP] PHP and .htaccess authentication

2002-10-30 Thread ed
I just got done reading the online docs concerning http authentication and tried out a script that appears on the page. Apparently it is easy enough to protect any page with http authentication after you have already forced someone to enter a username and password on a regular .htaccess

[PHP] File Random Access

2002-10-30 Thread Rick Emery
I never noticed before...there is no easy way to perform random-access read and WRITE on a file. I vote/recommend/suggest that this most basic functionality be added to the next release of PHP. This would not be an enhancement; rather, it is correcting a serious flaw. Or am I missing

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 13:46 I never noticed before...there is no easy way to perform random-access read and WRITE on a file. I vote/recommend/suggest that this most basic functionality be added to the next release of

RE: [PHP] File Random Access

2002-10-30 Thread Cal Evans
Rick, If you have a file that is to large to simply read into memory, do your inserts and then write back out then you need to move it to a database. Cluttering up the main code base with random flat-file reads and writes is not necessary. If you seriously need it then you can do as suggested,

[PHP] database stuff and conditions

2002-10-30 Thread Mat Harris
hi, i am a competant perl programmer of nearly a year and a half and I have just this week started looking at php. I am trying to write a couple of webpages that will allow me to update a mysql database which is powering a dns server, for a dynamic dns service. every time i have tried to grab

[PHP] php / ldap

2002-10-30 Thread GC
Hi, using php_ldapadd, I get this error in ldap.log: Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65 text=object class 'posixAccount' requires attribute 'uidNumber' How do I get the next available uid number from my ldap database and then use that number for uidnumber?

[PHP] Unsetting Session Variables

2002-10-30 Thread David Russell
Hi all, I am having problems unsetting Session Variables - where I know it should work. I have a form. It contains both links with GET variables, and also a POST form. They all go to the same next page. Page 2 simply clears all session variables, and then sets them based upon the contents of

Re: [PHP] write on the begin of a file

2002-10-30 Thread Rick Emery
Mike Ford had the answer: $fp = fopen(test, r+); - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 6:28 AM Subject: Re: [PHP] write on the begin of a file There is no insert in fputs, you need to make a new file and

Re: [PHP] File Random Access

2002-10-30 Thread Rick Emery
You are correct. In fact, simply r+ works; I just tried it. Thanks - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 8:05 AM Subject: RE: [PHP] File Random Access -Original

[PHP] PHP Text patterns

2002-10-30 Thread Andrian Ivanov
Hello, Can you give me any url, where from I can get any Text patterns, I'm making a list of text patterns for code writing optimization. I'm in need of any type of patterns - e-mail, utl, ftp, etc. Any custom patterns are welcome ;) Thank you in advance ;) -- PHP General Mailing List

Re: [PHP] Unsetting Session Variables

2002-10-30 Thread Timothy Hitchens (HiTCHO)
Are you doing a session_start() on the page you are unsetting on? Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] If you need PHP hosting with an experienced support team 24/7 then email me today. On Wed, 30 Oct 2002, David Russell wrote: Hi all, I am having problems unsetting Session

Re: [PHP] write on the begin of a file

2002-10-30 Thread Marek Kilimajer
This is not an answer for him, this would overwrite the old stuff, but he wants to prepend it. Rick Emery wrote: Mike Ford had the answer: $fp = fopen(test, r+); - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002

Re: [PHP] database stuff and conditions

2002-10-30 Thread Mat Harris
attached is a dump of the mysql database. The passkeys are not on a per user basis, but rather per domain. this can change if that is not good. On Wed, Oct 30, 2002 at 03:36:58 +0100, Martin Hudec wrote: Hello Mat, MH hi, i am a competant perl programmer of nearly a year and a half and I

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: David Russell [mailto:DavidR;BarloworldOptimus.com] Sent: 30 October 2002 14:32 I am having problems unsetting Session Variables - where I know it should work. I have a form. It contains both links with GET variables, and also a POST form. They all go to

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 14:35 You are correct. In fact, simply r+ works; I just tried it. Thanks Yes, but that's not guaranteed to be binary-safe on Windows -- if your data happens to include null bytes, you might get

Re: [PHP] database stuff and conditions

2002-10-30 Thread Mat Harris
there is no real hurry on the app but obviously I can't afford the lay down on the job. i would appreciate the help and especciallu the comments, but only if you are sure you have the time. this is the sort of options the user would have: sign up user login create domain

Re: [PHP] database stuff and conditions

2002-10-30 Thread Marek Kilimajer
Why domains.domain_id and users.user_id are not auto_increment? Mat Harris wrote: attached is a dump of the mysql database. The passkeys are not on a per user basis, but rather per domain. this can change if that is not good. On Wed, Oct 30, 2002 at 03:36:58 +0100, Martin Hudec wrote:

[PHP] regular expressions question

2002-10-30 Thread Simon Dedeyne
I have a little question. I'm having some difficulty with regular expressions: here it is: (this)example should be output in an array [0]= this [1]= thisexample I'm supposing this should be done with preg_grep, but I'm not really familiar with some of it's syntax for the regular expression. I

Re: [PHP] regular expressions question

2002-10-30 Thread Rasmus Lerdorf
$str = (this)example; preg_match(/\((.*?)\)(.*)/,$str,$regs); $a[0] = $regs[1]; $a[1] = $regs[1].$regs[2]; On Wed, 30 Oct 2002, Simon Dedeyne wrote: I have a little question. I'm having some difficulty with regular expressions: here it is: (this)example

Re: [PHP] regular expressions question

2002-10-30 Thread jla21
If I understand you correctly, I think you want this? $matches = array(); $test = (this)example; preg_match(/\((.*)\)(.*)/, $test, $matches); array_shift($matches); On Wed, 30 Oct 2002, Simon Dedeyne wrote: I have a little question. I'm having some difficulty with regular expressions:

Re: [PHP] regular expressions question

2002-10-30 Thread jla21
Whoops.. I missed one bit. Rasmus did it right. ;) On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote: If I understand you correctly, I think you want this? $matches = array(); $test = (this)example; preg_match(/\((.*)\)(.*)/, $test, $matches); array_shift($matches); On Wed, 30 Oct 2002,

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread David Russell
PHP 4.2.2 Register Globals Off Using only $_SESSION No session_register() calls at all Interestingly enough, doing session_unregister('variablename') *in* *addition* does work (although I am sure it shouldn't) session_write_close() does not help Any suggestions? -Original Message-

[PHP] session vs. header

2002-10-30 Thread huge junk mail
Can someone tell me why I can't have $_SESSION['foo'] = 'content of foo'; following by header('Location: http://www.mysite.com'); Someone from www.php.net told me that it can confuse browser (http://bugs.php.net/19991). But, still I can't the idea why it can happen. Does register session means

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: David Russell [mailto:DavidR;BarloworldOptimus.com] Sent: 30 October 2002 15:30 To: 'Ford, Mike [LSS]' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Unsetting Session Variables PHP 4.2.2 Register Globals Off Using only $_SESSION No session_register() calls

[PHP] newbie question, open file error

2002-10-30 Thread [EMAIL PROTECTED]
hi, i hope im sending this to the correct place. im getting this error (below) when i run a script on my server. Im assuming I need to communicate with my admin about permissions, but im not 100% sure what the permission is. I'm basically trying to create an html file. if anyone can give

[PHP] Mutiple header statements?

2002-10-30 Thread ed
Why doesn't this work? ? if ($_POST['var'] == this) { header(Location: scipt1.php); } if ($_POST['var'] == that) { header(Location: script2.php); } ? If I select that from the form submitting the value to var I get a header already sent error. There is nothing else above

RE: [PHP] Mutiple header statements?

2002-10-30 Thread Liam . Gibbs
Not sure if this is what you're looking for, but a possible solution could be: ? if ($_POST['var'] == this) $page = script1; if ($_POST['var'] == that) $page = script2; header(Location: $page.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Rick Emery
? if ($_POST['var'] == this) { header(Location: scipt1.php); exit;} if ($_POST['var'] == that) { header(Location: script2.php); exit; } ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 6:25 AM Subject: [PHP] Mutiple header

[PHP] array question

2002-10-30 Thread John Meyer
When retrieving an array from $_POST, which is the right way: $arrInterests = $_POST[interests[]]; or $arrInterests = $_POST[interests]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unsetting Session Variables

2002-10-30 Thread Marek Kilimajer
I have noticed this behavior before, and I find it very inconsistent. Does anybody know if this is going to be fixed? Ford, Mike [LSS] wrote: -Original Message- From: David Russell [mailto:DavidR;BarloworldOptimus.com] Sent: 30 October 2002 15:30 To: 'Ford, Mike [LSS]' Cc: [EMAIL

Re: [PHP] array question

2002-10-30 Thread Rick Emery
What happened when you tried both methods? - Original Message - From: John Meyer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 10:29 AM Subject: [PHP] array question When retrieving an array from $_POST, which is the right way: $arrInterests =

Re: [PHP] newbie question, open file error

2002-10-30 Thread Marek Kilimajer
You might be able to solve this yourself, connect using ftp and try chmod o+w directory, where directory is the directory that you want to write to. [EMAIL PROTECTED] wrote: hi, i hope im sending this to the correct place. im getting this error (below) when i run a script on my server. Im

RE: [PHP] array question

2002-10-30 Thread John Meyer
Either way, I'm not getting the interests. -Original Message- From: Rick Emery [mailto:remery;emeryloftus.com] Sent: Wednesday, October 30, 2002 9:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] array question What happened when you tried both methods? - Original Message -

Re: [PHP] array question

2002-10-30 Thread Rick Emery
What does you HTML look like? - Original Message - From: John Meyer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 10:36 AM Subject: RE: [PHP] array question Either way, I'm not getting the interests. -Original Message- From: Rick Emery

[PHP] SAP documentation

2002-10-30 Thread Sear, Mick
I'm interested in the possibility of interfacing with SAP for a project using PHP or Perl. I've not found any documentation that might help yet: Can anyone point me in the direction of any help? I've only used PHP with MySQL to date. Thanks, Mick e-ssociate EPSON (UK) Ltd. Tel 01442 227374

[PHP] XML and XLS Sablotron

2002-10-30 Thread Daniele Baroncelli
Dear all, I am just approaching to XML and I would need some explanation, which most of you will probably consider very trivial. I have read about the XLS Sablotron functions, which are able to apply XLS stylesheets to an XML document. My question is: if my aim is to apply to an XML document an

Re: [PHP] array question

2002-10-30 Thread @ Edwin
Hello, John Meyer [EMAIL PROTECTED] wrote: Either way, I'm not getting the interests. ...[snip]... When retrieving an array from $_POST, which is the right way: $arrInterests = $_POST[interests[]]; or $arrInterests = $_POST[interests]; Try this instead: $arrInterests =

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
On Wed, 30 Oct 2002, Rick Emery wrote: ? if ($_POST['var'] == this) { header(Location: scipt1.php); exit;} if ($_POST['var'] == that) { header(Location: script2.php); exit; } Nope, I still get a header already sent error if I choose that. Ed -- PHP General Mailing List

Re: [PHP] Yahoo Moving to PHP (seen on slashdot)

2002-10-30 Thread Maxim Maletsky
Sounds interesting. Is there any other official info about it somewhere? -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Philip

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
I suppose this is just an excerpt, could you paste some more code here? [EMAIL PROTECTED] wrote: On Wed, 30 Oct 2002, Rick Emery wrote: ? if ($_POST['var'] == this) { header(Location: scipt1.php); exit;} if ($_POST['var'] == that) { header(Location: script2.php); exit; } Nope, I

RE: [PHP] Mutiple header statements?

2002-10-30 Thread ed
On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote: Not sure if this is what you're looking for, but a possible solution could be: ? if ($_POST['var'] == this) $page = script1; if ($_POST['var'] == that) $page = script2; header(Location: $page.php); } ? This could be an

Re: [PHP] Mutiple header statements?

2002-10-30 Thread 1LT John W. Holmes
On Wed, 30 Oct 2002, Rick Emery wrote: ? if ($_POST['var'] == this) { header(Location: scipt1.php); exit;} if ($_POST['var'] == that) { header(Location: script2.php); exit; } Nope, I still get a header already sent error if I choose that. WHAT IS THE ERROR?? It tells you

Re: [PHP] Unsetting Session Variables

2002-10-30 Thread 1LT John W. Holmes
I can't say that I've noticed this in 4.2.3. I just wrote an application where all I used was $_SESSION and unset() and it worked perfectly. ---John Holmes... - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 11:34 AM

Re: [PHP] session vs. header

2002-10-30 Thread 1LT John W. Holmes
Can someone tell me why I can't have $_SESSION['foo'] = 'content of foo'; following by header('Location: http://www.mysite.com'); Someone from www.php.net told me that it can confuse browser (http://bugs.php.net/19991). But, still I can't the idea why it can happen. Does register

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
On Wed, 30 Oct 2002, Marek Kilimajer wrote: I suppose this is just an excerpt, could you paste some more code here? [EMAIL PROTECTED] wrote: On Wed, 30 Oct 2002, Rick Emery wrote: ? if ($_POST['var'] == this) { header(Location: scipt1.php); exit;} if ($_POST['var'] == that) {

Re: [PHP] array question

2002-10-30 Thread Philip Olson
A very important question indeed :) form method='POST'... input type=text name=interests[] input type=text name=interests[] print $_POST['interests'][0]; print $_POST['interests'][1]; input type=text name=interests[foo] input type=text name=interests[bar] print $_POST['interests']['foo'];

[PHP] Tricky sorting problem

2002-10-30 Thread René Fournier
(Well, at least it's tricky for me... :-) I need to sort an array based on three numbers that are situated in the middle of each array element. For example: $list[] is an array, and contains the following [unsorted] elements: Super-S862-030.jpg Super-S1162-040.jpg Super-S874-010.jpg

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
WHAT IS THE ERROR?? It tells you _exactly_ in the header error message where the output was started. Look on or near that line because it caused some output to the browser and now headers cannot be sent. ---John Holmes.. Here's the code: ? if ($_POST['county'] == Lots) {

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
You have an empty line there, get rid of the ? ? pair [EMAIL PROTECTED] wrote: WHAT IS THE ERROR?? It tells you _exactly_ in the header error message where the output was started. Look on or near that line because it caused some output to the browser and now headers cannot be sent.

Re: [PHP] newbie question, open file error

2002-10-30 Thread Marek Kilimajer
Give it a try, that's the way I do it. jennifer villany wrote: hi, thanks for your feedback. chmod is greyed out in my ftp client. im using smart ftp. can i make these changes at the command line? thanks again, jennifer Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Tricky sorting problem

2002-10-30 Thread Marek Kilimajer
the -5 should be -7 René Fournier wrote: (Well, at least it's tricky for me... :-) I need to sort an array based on three numbers that are situated in the middle of each array element. For example: $list[] is an array, and contains the following [unsorted] elements: Super-S862-030.jpg

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
On Wed, 30 Oct 2002, Marek Kilimajer wrote: You have an empty line there, get rid of the ? ? pair That did it!! I didn't know a blank line inside php tags would be interpeted as output. Thanks! Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Mutiple header statements?

2002-10-30 Thread John W. Holmes
See? If you had just started with your actual code and the actual error, we'd of solved this by now. ---John Holmes... -Original Message- From: Marek Kilimajer [mailto:kilimajer;webglobe.sk] Sent: Wednesday, October 30, 2002 12:37 PM To: PHP Subject: Re: [PHP] Mutiple header

RE: [PHP] Mutiple header statements?

2002-10-30 Thread John W. Holmes
It's not inside PHP tags, look at your code again. You have two PHP blocks with a blank line between them. ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:ed;home.homes2see.com] Sent: Wednesday, October 30, 2002 8:49 AM To: Marek Kilimajer Cc: PHP Subject: Re:

Re: [PHP] Tricky sorting problem

2002-10-30 Thread @ Edwin
...and the 2 should be 3 :) - E Marek Kilimajer [EMAIL PROTECTED] wrote: the -5 should be -7 René Fournier wrote: (Well, at least it's tricky for me... :-) I need to sort an array based on three numbers that are situated in the middle of each array element. For example: $list[]

Re: [PHP] Mutiple header statements?

2002-10-30 Thread @ Edwin
Hello, [EMAIL PROTECTED] wrote: On Wed, 30 Oct 2002, Marek Kilimajer wrote: You have an empty line there, get rid of the ? ? pair That did it!! I didn't know a blank line inside php tags would be interpeted as output. ...because it was *outside*... :) - E -- PHP

RE: [PHP] Mutiple header statements?

2002-10-30 Thread ed
You're right again as usual Oh List God. Sorry about that. I love this list!! On Wed, 30 Oct 2002, John W. Holmes wrote: It's not inside PHP tags, look at your code again. You have two PHP blocks with a blank line between them. ---John Holmes... -Original Message- From:

Re: [PHP] Tricky sorting problem

2002-10-30 Thread Marek Kilimajer
Yes, and 2 should be 3 Marek Kilimajer wrote: the -5 should be -7 René Fournier wrote: (Well, at least it's tricky for me... :-) I need to sort an array based on three numbers that are situated in the middle of each array element. For example: $list[] is an array, and contains the

RE: [PHP] Tricky sorting problem

2002-10-30 Thread John W. Holmes
I need to sort an array based on three numbers that are situated in the middle of each array element. For example: $list[] is an array, and contains the following [unsorted] elements: Super-S862-030.jpg Super-S1162-040.jpg Super-S874-010.jpg Super-S1174-020.jpg I want to sort $list

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
That why I say COPYPASTE your code, if you write it from memory you may even fix the problem yourself and don't know about it. The code you wrote first had nothing wrong in it. [EMAIL PROTECTED] wrote: On Wed, 30 Oct 2002, Marek Kilimajer wrote: You have an empty line there, get rid of the

Re: [PHP] Tricky sorting problem

2002-10-30 Thread René Fournier
It works! Thanks. On Wednesday, October 30, 2002, at 10:50 AM, @ Edwin wrote: ...and the 2 should be 3 :) - E Marek Kilimajer [EMAIL PROTECTED] wrote: the -5 should be -7 René Fournier wrote: (Well, at least it's tricky for me... :-) I need to sort an array based on three numbers that

[PHP] Dazed and Confused

2002-10-30 Thread PHP List
For some reason my brain is not operating within normal parameters this week. $myarray[test] = sd; echo $myarray[0]; Why will nothing echo? Do I somehow have to initialize indexing on the array $myarray? php says that $myarray is an array, but I can't access it with numeric indexes. I know if I

Re: [PHP] XML and XLS Sablotron

2002-10-30 Thread Geoff Hankerson
Basically SAX and DOM are for parsing xml and xslt is for transforming xml into html, svg, wml, pdf and the like. So it sounds like you want to use xslt. Daniele Baroncelli wrote: Dear all, I am just approaching to XML and I would need some explanation, which most of you will probably

Re: [PHP] Dazed and Confused

2002-10-30 Thread Rasmus Lerdorf
Because you haven't put anything in array index 0. The only array index that has anything is test. There is no difference between numeric and string indices. You seem to be assuming that somehow the first element in an array can always be accessed as index 0 which is not the case and never has

Re: [PHP] Dazed and Confused

2002-10-30 Thread @ Edwin
Hello, PHP List [EMAIL PROTECTED] wrote: For some reason my brain is not operating within normal parameters this week. $myarray[test] = sd; echo $myarray[0]; Why will nothing echo? Do I somehow have to initialize indexing on the array $myarray? php says that $myarray is an array,

Re: [PHP] HTML Post

2002-10-30 Thread Drew Kime
I used a similar script and had the same problem I'm having with yours. The first few lines returned in the '$response' variable are the headers from the POST operation. When I get to the 'print' command at the end I get the headers generated by my server, then the headers retrieved from the

[PHP] Re: XML and XLS Sablotron

2002-10-30 Thread Daniele Baroncelli
You'll need the SAX or DOM functions if you will be /generating/ your XML. I suppose, you mean, generating XML from another XML document, am I right? The Sablotron extension (and other XSLT processors) take XML and XSLT and output whatever your XSLT tells it to. The XSLT processor depends

[PHP] Php web hosting

2002-10-30 Thread Steve Jackson
Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL database support/listserver/SSL support etc.) I have been trying out phpwebhosting.com and they seem very good but I am not

RE: [PHP] Php web hosting

2002-10-30 Thread Liam . Gibbs
Anyone out there have high volume sites with a feature rich hosting solution? I'd be interested, too, but especially in the free ones. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dazed and Confused

2002-10-30 Thread Rasmus Lerdorf
On Wed, 30 Oct 2002, PHP List wrote: So are you saying there really is no array pointer? Lets say I have an array with several different values like: $myarray[a] = s; $myarray[3] = d; $myarray[sdf] = y; There is no way of saying give me the value in the array at position 2? Since the size

Re: [PHP] session vs. header

2002-10-30 Thread Jonathan Sharp
huge junk mail wrote: Can someone tell me why I can't have $_SESSION['foo'] = 'content of foo'; following by header('Location: http://www.mysite.com'); Someone from www.php.net told me that it can confuse browser (http://bugs.php.net/19991). But, still I can't the idea why it can

[PHP] Re: Dazed and Confused

2002-10-30 Thread Philip Hallstrom
Yes... for the most part... think about it this way... (and please correct me if I'm wrong :) An associative array isn't ordered. It's key based. Think of it like a dictionary, but one whose first and last several pages have been removed. You wouldn't have any way of telling me the definition

[PHP] Re: Dazed and Confused

2002-10-30 Thread Rasmus Lerdorf
While that is a good way to approach arrays, you are actually guaranteed to get the array back in the order you added the elements in PHP. -Rasmus On Wed, 30 Oct 2002, Philip Hallstrom wrote: Yes... for the most part... think about it this way... (and please correct me if I'm wrong :) An

[PHP] [Fwd: Problem about pear]

2002-10-30 Thread EdwardSPL
---BeginMessage--- Hello, My System is Redhat Linux 7.2... I can't to find where is the path of pear under the system... So, can you help me ? Thank a lots. Edward. ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Michael Zornek
I've written a nice php/mysql site that let's you search for hospitals and community colleges by zip code. The search is built upon some math that figures out distances by a zip's lat and lon cords. My problem is that my current ZIP table (bout 42,000 rows) seems to be flawed. There are a ton of

[PHP] Re: Dazed and Confused

2002-10-30 Thread PHP List
I think the fog is starting to clear, thanks for the help. I do have one more question: If I want to use array_walk in a class, how do I refer to a function in that class? Class MyClass { . . . function DoArrayStuff($item1, $key, $nMode) { echo $item1; }

Re: [PHP] [Fwd: Problem about pear]

2002-10-30 Thread Jonathan Sharp
try: 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' mine is /usr/lib/php/PEAR (Gentoo) -js [EMAIL PROTECTED] wrote: Subject: Problem about pear From: [EMAIL PROTECTED] Date: Thu, 31 Oct

[PHP] parse error

2002-10-30 Thread Andres, Cyrille
Hello everybody, maybe I am dumb , I dunnow, I have a parse error here and I don't understand why : $fp=fopen(temp/$userfile_name[$i-1],w+); the error I get is : Parse error: parse error, expecting `']'' in D:\Data\WebSSL\tm\RFP\upload2.php on line 61 THANX !!! :(((

Re: [PHP] parse error

2002-10-30 Thread Jonathan Sharp
try: $fp = fopen('temp/'.$userfile_name[($i-1)], w+); -js Andres, Cyrille wrote: Hello everybody, maybe I am dumb , I dunnow, I have a parse error here and I don't understand why : $fp=fopen(temp/$userfile_name[$i-1],w+); the error I get is : Parse error: parse error, expecting

RE: [PHP] parse error

2002-10-30 Thread Andres, Cyrille
thx, but I still have the same error I think I have a poltergheist in my computer !!! -Original Message- From: Jonathan Sharp [mailto:js-lists;sharpmedia.net] Sent: Wednesday, October 30, 2002 11:13 AM To: Andres, Cyrille Cc: PHP List; php Subject: Re: [PHP] parse error try: $fp =

Re: [PHP] parse error

2002-10-30 Thread Marek Kilimajer
You forgot ] somewhere before line 61, and maybe even something else. Andres, Cyrille wrote: thx, but I still have the same error I think I have a poltergheist in my computer !!! -Original Message- From: Jonathan Sharp [mailto:js-lists;sharpmedia.net] Sent: Wednesday, October 30, 2002

Re: [PHP] parse error

2002-10-30 Thread 1LT John W. Holmes
Show us a few lines of code before the line that the error message reports. Remember, the line in the error message is just where PHP figured out something was wrong. The cause could be anywhere before that line. ---John Holmes... - Original Message - From: Andres, Cyrille [EMAIL

[PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Manuel Lemos
Hello, On 10/30/2002 04:03 PM, Michael Zornek wrote: I've written a nice php/mysql site that let's you search for hospitals and community colleges by zip code. The search is built upon some math that figures out distances by a zip's lat and lon cords. My problem is that my current ZIP table

  1   2   3   >