[PHP] Anyone ever done this - sort a multi-dimensional array

2001-11-15 Thread Richard S. Crawford
Of the type... $array[0][0] = "!row of c's"; $array[0][1] = ""; $array[1][0] = "row of a's"; $array[1][1] = ""; $array[2][0] = "a row of b's"; $array[2][1] = ""; such that you sort on the value of the y-column? In this case, it

[PHP] Re: Multiple .ini-files for PHP

2001-11-15 Thread Richard Lynch
Stefan wrote: > Is there a way to have different .ini-files for each VirtualHost? > Apache is used as webserver Not really really, but you *CAN* do Apache's include (#include? ? ???...) There's *some* way of including other files anyway, even if I'm not enough of a guru to know what it is...

[PHP] Re: array_unique() workaround?

2001-11-15 Thread Richard Lynch
Spunk S. Spunk III wrote: > I'm working on a script that needs array_unique() but my host is using > 4.0.4 and it's broken in that build. Does anyone have a good workaround > for this? I can wait for my host to upgrade but if I release this code, it > would be better to have the workaround... >

[PHP] Re: Function Call Line Number

2001-11-15 Thread Richard Lynch
Jason G. wrote: > Does anyone know of a way, that from within a function, you can determine > what line number and file the function was called on? Cannot be done with existing built-in PHP functions... Feel free to add that feature to the PHP source and contribute it :-) > I did try: > functi

[PHP] Re: Checkboxes / Undefined Variables

2001-11-15 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > In am HTML form, checkboxes NOT checked are not passed > to the PHP script called by the form. > > Therefore, if $name_of_chechbox_3 is not passed but it's > used in the PHP script, it results in "Warning: > Undefined Variable". > In am HTML form, checkboxes NOT checke

[PHP] Re: FTP Clients

2001-11-15 Thread George Whiffen
I kind of like Leech FTP, http://stud.fh-heilbronn.de/~jdebis/leechftp/downloads.html George Rudi Ahlers wrote: > > Sorry for the totally OT question, but can anyone recommend a good, FREE, > FTP client for windows? I now have to pay for AceFTP aswell, which used to > be free. > Thank you >

[PHP] waiting a long time for a XML file

2001-11-15 Thread Eric Trezza
Hello, I need some help regarding the creation of a text file which is a XML file. Actually, PHP creates the file without any problem and the XML format is fine. My only trouble is that it take on average 3 or 4 minutes to perform the task. Do you have any idea why it takes so long ?? Thanks

RE: [PHP] I suck at regular expressions! -- not as bad, now

2001-11-15 Thread Richard S. Crawford
Thanks to everyone who helped me figure this out. I foolishly didn't realize that I was using the htmlspecialchars() function on the string that I was pulling from the file, but not accounting for that in the regexp. So, what I was getting was: BLAH BLAH BLAH but wh

Re: [PHP] Newsgroup?

2001-11-15 Thread Kurt Lieber
On Thursday 15 November 2001 07:41 am, Christopher Raymond wrote: > Is this newsgroup still functional? Yep -- I just checked and it's working fine for me. I'm using news.php.net connecting on port 119 (default NNTP port) --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Session

2001-11-15 Thread George Whiffen
For the record: You can control the order of precedence of variable reading through a php.ini setting, variable_order, (replaces gpc_order). I believe the default is EGPCS i.e. environment, get, post, cookie, session. The last in the list takes precedence, i.e. session variables normally have p

[PHP] Newsgroup?

2001-11-15 Thread Christopher Raymond
Does anyone know: What's the deal with the newsgroup version of this list? I'm using news.php.net as the news server address, but all I get are error messages. Is this newsgroup still functional? Christopher Raymond -- O A S I S

[PHP] First CGI, then PHP

2001-11-15 Thread Berthold
Hi! Is it possible to add PHP-code into the html-templates of ht://dig? The problem is the execution after or before the CGI-prog has run. Of course I need 'after'. But how can I do that? What is the default order in a builtin-PHP? -- Berthold (live long and prosper...) -- PHP General Mailing

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
> >It depends on where value is coming from. If it's coming from the > >script server side, then you just need to make sure that $value is > >set before the line "\n"; $anchorTag = "FOO"; echo "\n"; $anchorTag = "BAR"; echo "\n"; ?> or something along those lines. You are going to ha

RE: [PHP] I suck at regular expressions!

2001-11-15 Thread Brian Paulson
Been Using this Function for some time and works real well with two exceptions 1. if the title line has a CR in it it will no get the title Example: This is a bad Title 2. If there are any other < > tags in the title it will fail. ([^<]*)(.*)', $string, $regs ) )

[PHP] Quick question about no result

2001-11-15 Thread Dan McCullough
I want to show a default piece of information if my query returns no result, and what I mean by no result is the query for a store in a certain state doesnt exist. thanks dan = Dan McCullough --- "Theres no such thing as a pro

Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Richard S. Crawford
Actually, that does work when I'm using a string with that content. The only thing I can figure is that there is a problem with the way the the file is being read. Hmm. Ah, well. I'll make it work. Where's my hammer? At 12:18 AM 11/15/2001, Johan Holst Nielsen wrote: >Richard S. Crawford

Re: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
>It depends on where value is coming from. If it's coming from the >script server side, then you just need to make sure that $value is >set before the line "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admini

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
> > When is $value assigned a value? Before or after the > > script prints out the ", so $value would be "para1"). After posting > to SELF a jump to para1 must be made. It depends on where value is coming from. If it's coming from the script server side, then you just need to make sure that

RE: [PHP] fsockopen - whats the syntax of POST?

2001-11-15 Thread Daniel Kushner
Hi Stefan, Maybe this HTTPPost class will help you. http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel > -Original Message- > From: Stefan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 8:53 AM > To: PHP > Subject: [PHP] fsockopen - whats the syntax of PO

php-general Digest 15 Nov 2001 14:41:10 -0000 Issue 996

2001-11-15 Thread php-general-digest-help
php-general Digest 15 Nov 2001 14:41:10 - Issue 996 Topics (messages 74660 through 74711): Controlling length of table data 74660 by: Gaylen Fraley 74661 by: Martin Towell 74666 by: Johan Holst Nielsen PHP 4.0.6 $PHP_SELF empty? 74662 by: John Steele

Re: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
Thanks for the quick reaction. > When is $value assigned a value? Before or after the script prints out > the ", so $value would be "para1"). After posting to SELF a jump to para1 must be made. Is this enough? Thanx, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
> A large page is generated with data from a MySQL database. The various > paragraphs inside this page have variable, internal links, > also extracted from the database. > Example: > Let's assume that $value represents FOO. Ok > Now i want to take the value of this variable to post to $PHP_SEL

[PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
Hi there The following problem occurs in my scripts: A large page is generated with data from a MySQL database. The various paragraphs inside this page have variable, internal links, also extracted from the database. Example: Let's assume that $value represents FOO. Now i want to take the

RE: [PHP] Re: how can I get the post content in php

2001-11-15 Thread JSheble
When POST data is sent to a page, it's as if somebody typed the text into a textarea and hit a submit button. Even though this is being done programmatically, the POST method will behave the same. SOmebody in their (your)code will have to write something similiar to: $postData = "xVar=" . rawu

[PHP] fsockopen - whats the syntax of POST?

2001-11-15 Thread Stefan
First: can I do a POST-request with fsockopen? If yes, then: whats the syntax for POST-requests? I was happy if someone could point me to a good documentation or so Thanks in advance Stefan Rusterholz, [EMAIL PROTECTED] -- interaktion gmbh Stefan Rusterholz Zürich

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
Yes, I guess you can't make it foreever but you can give it a higher expiry date. "Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > well yeah, thats always true..but this's at least as good as it gets =) ya suppose > there's any limit on how many

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
well yeah, thats always true..but this's at least as good as it gets =) ya suppose there's any limit on how many years I can set it for? hell, I'll just set it for 10 years and that'll be good enough =) Magnus wrote: > Den 01-11-15 13.20, skrev "PHPGalaxy.com" <[EMAIL PROTECTED]>: > > > yeah I

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread Magnus
Den 01-11-15 13.20, skrev "PHPGalaxy.com" <[EMAIL PROTECTED]>: > yeah I saw that bit on there, but I was led to believe tha by leaving it out, > it would make the cookie permanent...I see thats not true =) so what would I > do to make this permanent? or would I just set it for the highest time-l

Re: [PHP] NO CARGA PAGINA PHP

2001-11-15 Thread Ricardo Núñez
Supongo que es PHP 4: Chequea el httpd.conf por: AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 Espero que este sea el problema. Mensaje citado por: Daniel Geldres Castro <[EMAIL PROTECTED]>: > Tengo un p

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
yeah I saw that bit on there, but I was led to believe tha by leaving it out, it would make the cookie permanent...I see thats not true =) so what would I do to make this permanent? or would I just set it for the highest time-limit possible? =) _lallous wrote: > you must set the cookie's expir

[PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
you must set the cookie's expiry time! of-the manual: setcookie ("TestCookie", "Test Value"); setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); "Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message [

[PHP] Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
I started an affiliate program to sell my scripts, and it uses cookies for tracking.. I didnt know it at the time, but as soon as the web browser's closed, the cookie info is gone. g! I need it to stay there *permanently*! =) Here's the code I have no for both setting and retrieving.. retrie

[PHP] pls help: add new extension to PHP (rpm) on RedHat

2001-11-15 Thread S.T. Wong
Hello, I'm using PHP 4.0.4pl1-9 on RedHat 7.1. The software was installed using rpm. I'd like to add the mhash extension without re-installing the entire PHP package from source. So i try following steps: - install mhash from source - obtain PHP source directory, then cd ext/mhash phpize

[PHP] Re: I suck at regular expressions!

2001-11-15 Thread _lallous
try that! New Document '; if (preg_match('/(.+?)<\/title>/is', $mem, $matches)) { echo "title is:$matches[1]"; } ?> "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to get the title of an html file... you know, t

Re: [PHP] how can I get the post content in php

2001-11-15 Thread Yorgo Sun
thinks I finded it by review the soure code. try it's empty. then think have and other way. so got your explain. I just try the older version or waitting the php4.1.0 -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ ID:yorg

Re: [PHP] Re: how can I get the post content in php

2001-11-15 Thread Tamas Arpad
I think I saw on this list that there's a $HTTP_RAW_POST_DATA (or similar) varibale. Sorry the net is slow like hell at work, I can't search for more info. But I think if you search for "raw" on the general mailing list's archive you will find it. Arpi > XML file is text file. If I op

Re: [PHP] how can I get the post content in php

2001-11-15 Thread Andrey Hristov
$HTTP_RAW_POST_DATA (problems with 4.0.6 because in it some changes had been made). If the content type is known by PHP then this var is empty, otherwise you have the data in it. Works perfect with 4.0.0. I think that since 4.0.7 there is a ini option about that Regards, On Thursday 15 Nove

Re: [PHP] multiple include

2001-11-15 Thread Papp Gyozo
if (!defined('_SYS_TYPES.H')) { include('sys/types.h'); } - Original Message - From: "Briet Vincent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 10:31 AM Subject: [PHP] multiple include > Hi all, > > I would like to do som

[PHP] multiple include

2001-11-15 Thread Briet Vincent
Hi all, I would like to do something like that : #ifndef _SYS_TYPES_H #include #endif Is it possible in php ? Thx poz

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
XML file is text file. If I open the file with php like call $fp, that is a long string with some special char. post method can send a long string to the server. how php can receive that long string is my problem. if can do that, php can parser the xml file send form remote computer. I want php p

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Johan Holst Nielsen
> I think you understand my problem. > > I will use a client program to POST the XML data to a php file on the > server base HTTP > in php file will get the post request, > > the question is, how can i get the xml data in post request Hmm, I dont think I understand? Where do you want to do with

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
The problem lies with the fact that you have a variable 'name' that gets posted in the form as well as a session variable 'name' that is passed to the script when it is executed again. As far as I remember the session variable supercedes the posted variable, so the session variable would overwrite

[PHP] And ...

2001-11-15 Thread jtjohnston
And ... if this helps: http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/phpinfo.php Jtjohnston wrote: > For the record, I have tried: > > //$temp = $name; > session_name("TESTpostcard"); > session_start(); > > $temp = $name; > session_register("name"); > $name = $temp; > > > I hav

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
I think you understand my problem. I will use a client program to POST the XML data to a php file on the server base HTTP in php file will get the post request, the question is, how can i get the xml data in post request -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECT

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Johan Holst Nielsen
>the program just can let me get the post string like my example > I want post the xml file content to a php file, then I want get the post > string that it's xml content. > > hehe, thanks for your help Did you solve your problem? I dont think i understand you, but i tries to give a little s

Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Johan Holst Nielsen
Richard S. Crawford wrote: > Not quite. I have the same problem. I tried at test on my localhost. Following works for me: $string = "Sometime i dont wanna know"; if(eregi("(.+)", $string, $arr)) { echo "Title: ".$arr[1]; } else { echo "unknown title"; } This works for me? Regards, Jo

[PHP] I have tried ...

2001-11-15 Thread jtjohnston
For the record, I have tried: I have read: http://www.php.net/manual/en/function.session-register.php > This is my problem: > http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/test_session.php > > Type something. > Press submit. > Change your text and re-submit. > > $name doesn't re-sa

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
Hello Johan the program just can let me get the post string like my example I want post the xml file content to a php file, then I want get the post string that it's xml content. hehe, thanks for your help -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:1

Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Richard S. Crawford
Not quite. I have the same problem. At 11:36 PM 11/14/2001, Johan Holst Nielsen wrote: >Richard S. Crawford wrote: > > > I am trying to get the title of an html file... you know, the string > > between the < title > and < /title > tags... > > > > Here is the function I've got so far: > > > > fun

<    1   2