RE: [PHP] XSLT; XML => PHP code

2002-03-28 Thread Darren Gamble
Good day, To have PHP evaluate string contents as an expression, use eval(). The usual disclaimer comes with this function... be careful. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-494

Re: [PHP] XSLT; XML => PHP code

2002-03-28 Thread Erik Price
On Thursday, March 28, 2002, at 04:52 PM, Darren Gamble wrote: > Good day, > > To have PHP evaluate string contents as an expression, use eval(). Thanks for the pointer, I have never used this function before. I'm not sure what it means by "as with any function that outputs directly to the

RE: [PHP] XSLT; XML => PHP code

2002-03-28 Thread Darren Gamble
Good day, eval() is a very powerful function. You should be careful that users can't find some way to execute arbitrary code by providing input that your program did not expect. Also, if your string doesn't have the correct syntax, your program will terminate. Darr

[PHP] CyberCash Module Problems

2002-03-28 Thread Gabriel Richards
I have attempted to compile PHP with the CyberCash module. I have run ./configure --with-cybercash=mckdir, and all appeared to go fine, but when I call the cybercash functions I get a fatal error call to undefined function. I've tried to spot the line that says Checking for CyberCash . Yes, b

Re: [PHP] Getting user name in text area

2002-03-28 Thread James Taylor
Well, let's see here.. $query = mysql_query("select name from users where uid = {$_SESSION['uid']}", $db); while ($name = mysql_fetch_row($query) { echo "$name[0]\n"; } hope that helps Jennifer Downey wrote: >Hi all, > >Here is what I have and what I am trying to do. > >I would like the us

[PHP] Getting user name in text area

2002-03-28 Thread Jennifer Downey
Hi all, Here is what I have and what I am trying to do. I would like the user name to be printed in the Username text box but can't seem to get it there. I don't want the user to have to type there username in, just click the submit button and it is entered into the db. Can anyone show me what

[PHP] require or include ?

2002-03-28 Thread javier
When should I use require or include? I read that include copies the content from the file to the script that is calling it. And require is like #include in C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting user name in text area

2002-03-28 Thread Rick Emery
Username: \n"; print ""; ?> -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting user name in text area Hi all, Here is what I have and what I am trying to do. I would like the us

RE: [PHP] require or include ?

2002-03-28 Thread Rick Emery
require() is used when you want the file included regardless of whether any information is used from it. include() may be conditional. -Original Message- From: javier [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] require or include

[PHP] user group around massachusetts?

2002-03-28 Thread Gabriel Ricard
I'm just wondering if anyone here knows whether or not the New England PHP user group still exists at all? If not, is there another group around the Boston area? - Gabriel Ricard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating forums in php

2002-03-28 Thread Boaz Yahav
http://www.phorum.org ? Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Creating foru

Re: [PHP] NNTP Services

2002-03-28 Thread bvr
open http://www.php.net/manual/en/ press Ctrl-F and type 'nntp' .. click ok. bvr. news.php.net wrote: >Hello everyone > >I have a problem to post messages to newsgroups. How can i do it. > >thanks >Muhammad Fawad > > > -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] PLEASE SEE MY MSG

2002-03-28 Thread Alexandre Soares
> Hi All, > > > This is my first participation in this group, so my question is I > write a function in c, but I need use this function and more joined in a > library make using the command ar rc alexlib.a x.o, but this procedure show > a error when I use this in my browser, please anyone

[PHP] Mail problems on Mac

2002-03-28 Thread Anders Henke
Hi folks! When I send mail (using the mail-function) and the subject line contains non-english letters like å, ä, ö the special caracters turns into strange symbols. This only happens on Mac OS, wich is pretty strange. Have anyone else encounter this problem? Does anyone have a solution for it, o

[PHP] Help sending a Plain Text email Attatchment

2002-03-28 Thread Kevin Stone
For some reason this is not working. I do not have enough experience with email headers to know why. Suffice to say it is not sending the $message string as an attachment. Instead it is ending up in the standard body of the email. And whatever ends up on the body is only a fraction of what is

[PHP] best way to read a file

2002-03-28 Thread Erik Price
This is a really simple question that I've wondered for a while now... what is the best way to read a file? There are so many different functions for reading files that I have no idea which I should use. readfile() returns its values to standard output -- I don't want to use this, since my sc

Re: [PHP] running commands as root from a script

2002-03-28 Thread Steve Edberg
I have done a similar thing by executing another script via sudo using the PHP command passthru() (or you could use exec(), system(), whatever's appropriate). See http://www.courtesan.com/sudo/ for more info. The whole setup was (and is) a bit of a kluge, but the script didn't need t

RE: [PHP] best way to read a file

2002-03-28 Thread Kevin Stone
Actually if you have output buffering active then the easiest hassle free way to read a file into a variable is like this.. Pretty cool eh? Hope that helps. -- Kevin Stone [EMAIL PROTECTED] -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2

Re: [PHP] best way to read a file

2002-03-28 Thread bvr
you didn't mention file() that one can be pratical because it returns an array of lines (linefeed intact, implode with empty string), but can be memory consuming for large files, because the entire file is in memory the at the same time. some times you don't need the entire file (at a time) ..

Re: [PHP] require or include ?

2002-03-28 Thread Javier
If I include for ex. common.php in a script and this script also calls common.php what should I use require or include? On Thu, Mar 28, 2002 at 04:44:04PM -0600, Rick Emery wrote: > require() is used when you want the file included regardless of whether any > information is used from it. inclu

[PHP] password protected pages with cookies

2002-03-28 Thread Vlad Kulchitski
Hi, I have a very general question about my php project. Basically, it's about secure pages for administering site. The way I do it is authorizing users against their credentials in the mysql database. Then if authentication passed successfully, I register a session with a specific name and do

Re: [PHP] Why?

2002-03-28 Thread bvr
2. Definition and Etymology bar /bar/ n. [JARGON] 1. The second metasyntactic variable, after foo and before baz. "Suppose we have two functions: FOO and BAR. FOO calls BAR" 2. Often appended to foo to produce foobar. foo /foo/ 1. interj. Term of disgust. 2. U

[PHP] Help with Acrobat FDF support

2002-03-28 Thread Robert Stoeber
I just found the very cool looking new FDF functions to support Acrobat forms. According to the documentation at www.php.net I have to download & install the FDF SDK. Found the latest SDK and I put two files from the C directory of the SDK at: /usr/lib/php4/libfdftk.so /usr/include/fdftk.h The

Re: [PHP] require or include ?

2002-03-28 Thread bvr
both include the file, but use require() when it is required, and include() when it's not. In the new behaviour these two make no further difference. bvr. Javier wrote: >If I include for ex. common.php in a script and this script also calls >common.php what should I use require or include? >

[PHP] Can I search for a partial match in an array ?

2002-03-28 Thread Dalton Hunter
Hi, I want to search for a partial match in an array? Does in_array() or search_array() support this or is there another way? For example if I have 30 file names in an array in the format ... file1.txt file2.txt pic1.gif pic2.gif ... how can I check to see if any values in the array start with t

[PHP] Get Current Filename

2002-03-28 Thread Patrick Hartnett
Trying to build a database which uses the webpage name as one of the selection criteria. (building page specific menus). How do I get the current file name? Can't seem to find any help on this. -Patrick _ MSN Photos is the easi

Re: [PHP] best way to read a file

2002-03-28 Thread Erik Price
On Thursday, March 28, 2002, at 07:34 PM, bvr wrote: > not really ambiguous, (actually, that's what I was saying, that they are -less- ambiguous, and more specific, but no big deal on that little matter). > and I think these functions being flexible enough to handle other > resource types c

Re: [PHP] Can I search for a partial match in an array ?

2002-03-28 Thread bvr
preg_grep("/^file/", $arr) bvr. Dalton Hunter wrote: >Hi, I want to search for a partial match in an array? Does in_array() or >search_array() support this or is there another way? For example if I have >30 file names in an array in the format ... > >file1.txt >file2.txt >pic1.gif >pic

Re: [PHP] Include Error on PHP 4.1.2

2002-03-28 Thread bvr
Fix 'include_path' in php.ini I think you want it to look in the current directory (.\) as well. bvr. Alberto Wagner wrote: >I can't include anything on my php scripts > >Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear') > >How to fix it? > > > > -- PHP Gene

[PHP] Get Current Filename HOWTO

2002-03-28 Thread Patrick Hartnett
It seems I spoke to quick...here is how to get the current file name. $this_file = $_SERVER['REQUEST_URI']; echo( $this_file ); the result is formatted as follows: /applications.php _ MSN Photos is the easiest way to share an

RE: [PHP] Get Current Filename

2002-03-28 Thread Vail, Warren
Try; $filename = basename($PHP_SELF); assuming you don't need the full path Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Patrick Hartnett [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:53 PM

Re: [PHP] Can I search for a partial match in an array ?

2002-03-28 Thread Dalton Hunter
Thanks, worked great! "Bvr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > preg_grep("/^file/", $arr) > > bvr. > > Dalton Hunter wrote: > > >Hi, I want to search for a partial match in an array? Does in_array() or > >search_array() support this or is there

[PHP] Talking XML over SSL with PHP?

2002-03-28 Thread Devin Atencio
I am trying to write a program that will talk to UPS. It appears that the requirements is that i must talk SSL and then submit XML type documents as a POST. Would it be easy in PHP to talk SSL via Socket Layer? Any help would be appreciated. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] best way to read a file

2002-03-28 Thread bvr
>> not really ambiguous, > > (actually, that's what I was saying, that they are -less- ambiguous, > and more specific, but no big deal on that little matter). ok, misunderstood > > Every time I try to use one of these functions, I get an error message > from my browser (not from PHP) that th

Re: [PHP] Get Current Filename HOWTO

2002-03-28 Thread bvr
note that this var. includes the query string, for example: /applications.php?cat=browsers bvr. Patrick Hartnett wrote: > It seems I spoke to quick...here is how to get the current file name. > > $this_file = $_SERVER['REQUEST_URI']; > echo( $this_file ); > > the result is formatted as foll

Re: [PHP] best way to read a file

2002-03-28 Thread Justin French
while we're on the topic, what's the best way to append an CSV line onto the end of a text file? ---mail.csv--- Justin,French,[EMAIL PROTECTED]\n Fred,Flintstone,[EMAIL PROTECTED]\n Barny,Rubble,[EMAIL PROTECTED]\n --- I'd like to append a new line:: $newline = "Hank,Foo,[EMAIL PROTECTED]\n";

Re: [PHP] Talking XML over SSL with PHP?

2002-03-28 Thread bvr
It is going to be very easy ! On http://www.php.net/manual/en/function.fopen.php read: ...As of PHP 4.3.0 (not yet released), if you have compiled in support for OpenSSL, you may use "https://"; to open an HTTP connection over SSL... Meanwhile you could do this with CURL which is slightly mor

Re: [PHP] fputcsv ?????? (was: best way to read a file)

2002-03-28 Thread bvr
A fputcsv() would be nice, doesn't seem to exist (yet) though ? bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fputcsv() (was: best way to read a file)

2002-03-28 Thread bvr
Didn't test. http://www.php.net/manual/en/function.fgetcsv.php *blair at squiz* 14-Aug-2001 07:19 Here is a function that takes an array and adds a CSV line to the passed file pointer. #- function fputcsv ($fp, $array, $deliminator=",") { $line = "";

Re: [PHP] best way to read a file

2002-03-28 Thread Erik Price
On Thursday, March 28, 2002, at 08:14 PM, bvr wrote: > Try not to use MSIE when developing or install the debug thingie, > otherwise you will not get sensible feedback on what went wrong during > page load.. Good advice, I'll try with Mozilla. > Anyway, it's probably not the memory limit, b

Re: [PHP] Creating forums in php

2002-03-28 Thread David Duong
Maybe, http://www.phpbb.com -David. "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.phorum.org ? Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Me

[PHP] tough XSLT question

2002-03-28 Thread Erik Price
Okay, well, for anyone who might have read my earlier thread about file-reading problems, that's history. Turns out that the whole time it was a case of not calling xslt_process correctly. Here's what I've discovered, for posterity in the archives... for me at least, the "simpler" method of

Re: [PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Jason G.
Hello, It sounds like a problem with your HTML output. First, look at the source of the generated page, and find out if your html is formatted correctly. Then look at the php code to find out the problem. -Jason Garber At 04:44 PM 3/28/2002 -0800, Caspar Kennerdale wrote: >just a quick query

Re: [PHP] Can I search for a partial match in an array ?

2002-03-28 Thread Lars Torben Wilson
On Thu, 2002-03-28 at 16:50, Dalton Hunter wrote: > Hi, I want to search for a partial match in an array? Does in_array() or > search_array() support this or is there another way? For example if I have > 30 file names in an array in the format ... > > file1.txt > file2.txt > pic1.gif > pic2.gif >

Re: [PHP] Help with Acrobat FDF support

2002-03-28 Thread Rasmus Lerdorf
You have to build the FDF extension to include FDF support by adding the --with-fdftk to the PHP build flags. -Rasmus On Thu, 28 Mar 2002, Robert Stoeber wrote: > I just found the very cool looking new FDF functions to support Acrobat > forms. According to the documentation at www.php.net I ha

[PHP] Mysql adding extra fields.

2002-03-28 Thread David Duong
How do I add extra fields after it has already been set? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysql adding extra fields.

2002-03-28 Thread Miguel Cruz
On Thu, 28 Mar 2002, David Duong wrote: > How do I add extra fields after it has already been set? 1) Read the manual conveniently available at http://www.mysql.org; this is not rocket science. 2) ALTER TABLE mytable ADD boogers_per_hour INT; miguel -- PHP General Mailing List (http://www.p

[PHP] CyberCash Please

2002-03-28 Thread Gabriel Richards
Hello. Would someone who has had experience and/or success with PHP and CyberCash please contact me. Thank you. Gabe - Ender Technology Corp. Websites, Database Applications, Hosting (310) 516-7411 [EMAIL PROTECTED] http://www.endertechnology.com/ -- PHP General Mailing List (http://www

[PHP] Check for text

2002-03-28 Thread Martin Kampherbeek
Someone submits an url through a form. Now I want to check in a script to see if there is some tekst in it. For Example: Someone submits http://www.mydomain.com/test.htm In this htm file I want to check the text "hello".

Re: [PHP] Mysql adding extra fields.

2002-03-28 Thread hugh danaher
Try, [type] can be int or char () or blob or real or something else drawn from the mysql manual $query="ALTER table_name ADD column_name [type] AFTER other_column_name"; $result=mysql_query($query); if (!$result) die("couldn't alter table".mysql_error()); Hope this helps, Hugh - Origi

[PHP] Program Looping ?

2002-03-28 Thread Jason Caldwell
I've written a script that checks my email. However, when I run the script (from the command line) -- I want it to loop with a 5 minute delay and the ability to stop the program anytime by pressing a key on the keyboard (say) the ~ key. Anyone know how to do this? thanks. jason -- PHP Gen

RE: [PHP] Program Looping ?

2002-03-28 Thread Demitrious S. Kelly
Well you'd have to work with inputs, etc... for the key... but the look isn't hard $loop=1; $sleep=300; while ( $loop == 1 ) { code(); sleep($sleep); if ( %%keypresscode%% ) { $loop = 0; } } I'd probably just touch a file somewhere when I want it t

<    1   2