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

[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] 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] 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".

[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

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] 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] 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

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] 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

[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] 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

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] 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] 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] 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] 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 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

[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] 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

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

[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] 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] 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

[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

[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

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] 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] 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] 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] 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

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

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] 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] 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

[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

[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] 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] 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

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

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

[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] 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

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

[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

[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

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] 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] 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

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, 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

[PHP] XSLT; XML => PHP code

2002-03-28 Thread Erik Price
I am using XSLT functions in PHP to transform a string (whose data is a string of XML) into another string. Ideally, the second string will consist of PHP code. I would like this outputted PHP code to be executed within the same script as the that which performs this transformation. Here is

[PHP] browscap.ini

2002-03-28 Thread webbie
Is there somewhere a standardized/universal browscap.ini? It seems to me that everyone simply snatches one from someone else and then builds on top of it. The most recent browscap.ini files that I find out there are still missing Lynx and Mozilla handlers. It would be nice if there were a type

RE: [PHP] Loading Images

2002-03-28 Thread Darren Gamble
Good day, Yep, this is possible all right. I use this to display my rrdtool images. Just have the php program as the target for the image, and then supply the right header. For a gif image: header("Cache-control: private, no-cache"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Past d

Re: [PHP] Loading Images

2002-03-28 Thread Rouvas Stathis
As long as preventing users to download a picture you display, my .02Eu opinion is that is is a fruitless task. A determined user will _always_ find a way to store the picture you send him. After all, you do send data to him, therefore the data can be manipulated at will:-) As far as some code to

RE: [PHP] Loading Images

2002-03-28 Thread Kevin Stone
Huh.. hmm.. maybe this is possible after all. I'll have to test that out when I get home. If it works it could sure save me a headache or two. By the way most counters/trackers that I've seen are just simple javascripts which gather the browser information then request a tiny image from the ser

[PHP] FreeMovie/PHP 1.1.2 is out

2002-03-28 Thread Jacek Artymiak
FreeMovie/PHP 1.1.2 is out at http://freemovie.sourceforge.net Enjoy, Jacek -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-28 Thread Rouvas Stathis
Prachait Saxena wrote: > > Hello > > I would like to Know, where Site or Link i can get complied .so [dll] files. > of linux > > as i have php_sockets.dll which works very fine in Windows enviroment. but > on linux > > Can you suggest any other option for this. > > I am using dl("php_soc

Re: [PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
>> -Original Message- >> From: Dan Tappin [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, March 28, 2002 12:36 PM >> >> My only concern is that I am adding another mysql_connect and > > Why do it twice? The connection will still be there later in the script. Yes... I realized that after

RE: [PHP] Getting just the filename

2002-03-28 Thread Vail, Warren
One of the things I like about PHP, is if you think of something that you need like this, someone else has already thought about it and provided a function to do it. Try; http://www.php.net/manual/en/function.pathinfo.php Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
> While I try and request for a recompile of the system, is there an > alternate way out? Why don't you use the PCRE functions instead. The equivalent preg would be: preg_match("/__([a-z0-9_]+)__/i", "Hello __WO_RD__ Test", $Matches) > By the way, what is the significance of the switch --wit

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
The files are hosted on a 3rd party hosted ISP. On my local machine it works fine. While I try and request for a recompile of the system, is there an alternate way out? By the way, what is the significance of the switch --with-regex=system Rasmus and Miguel, Thanks for your help. With Regards

RE: [PHP] Getting just the filename

2002-03-28 Thread Rick Emery
string basename (string path [, string suffix]) i recommend you read the manual before posting -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting just the filename Hello, Is there a simpl

[PHP] Getting just the filename

2002-03-28 Thread Sharat Hegde
Hello, Is there a simple way of getting just the filename from strings which give the filename along with the path. For example, I need "test.txt" from "c:\myfiles\test.txt" It should also work with the / character, in other words, give "test.txt" from "/htdocs/myfiles/test.txt" With Regards,

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
In your configure flags you have: --with-regex=system Why did you do this? Recompile without that switch and see if things change. -Rasmus On Thu, 28 Mar 2002, Sharat Hegde wrote: > Yesthere may be something else going wrong. The source code of the test > file I have is: > >if (e

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Yesthere may be something else going wrong. The source code of the test file I have is: "; else print "Match Not Found"; ?> The source is on my server in a test directory at http://www.byronholidays.com/inikatest/testereg.php3 or http://www.byronholidays.com/inikat

[PHP] where i get .so [dll] file of linux ?

2002-03-28 Thread Prachait Saxena
Hello I would like to Know, where Site or Link i can get complied .so [dll] files. of linux as i have php_sockets.dll which works very fine in Windows enviroment. but on linux Can you suggest any other option for this. I am using dl("php_sockets.dll"); while writing my code for windows an

[PHP] Re: Sessions/Cookies and HTTP Auth

2002-03-28 Thread Steve Clay
Just as a note, recent builds of Mozilla have a cookie manager that is the best for seeing exactly what's going on with your cookies. You can list by name or host and see all the properties of each. Know when your session cookies are sent/deleted, know if PHP is allowing use of the same SESSID i

Re: [PHP] new $_SESSION variables vs. session_register/unregister

2002-03-28 Thread Steven Jarvis
Uh... doh! I was reading this: Note: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable. incorrectly. In my haste, I was basically not parsing the parentheses. I see now that I just treat the $_SESSION variables like any other var

[PHP] new $_SESSION variables vs. session_register/unregister

2002-03-28 Thread Steven Jarvis
The manual says: > If you are using $HTTP_SESSION_VARS/$_SESSION, do not use > session_register(), session_is_registered() and session_unregister(). If that's the case, how do I unregister $_SESSION variables? Do I just use unset() or is there another way? I'm pretty new to PHP and I'm just g

RE: [PHP] Emulating POST ?

2002-03-28 Thread Rick Emery
http://sourceforge.net/projects/snoopy/ -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Emulating POST ? I need to somehow write a PHP Script that will POST XML type stuff to UPS like this:

RE: [PHP] Emulating POST ?

2002-03-28 Thread Johnson, Kirk
http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 http://marc.theaimsgroup.com/?l=php-general&m=92353052714384&w=2 Kirk > -Original Message- > From: Devin Atencio [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 28, 2002 12:14 PM > To: [EMAIL PROTECTED] > Subject: [PHP] E

[PHP] Emulating POST ?

2002-03-28 Thread Devin Atencio
I need to somehow write a PHP Script that will POST XML type stuff to UPS like this: TEST262223144CAT testUser testPW Example 1 1.0001 Track activity 1Z12345E1512345676 How could I do this? Any help would be greatly appreciated? -- PHP Genera

[PHP] Cannot find php.ini

2002-03-28 Thread Todd Cary
My NT server has the OS in the directory, WINNT2, and the php.ini is not being read that is in that directory. What am I missing? Todd -- Dr. Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
I just tried it on 4.1.x and it is working fine. On Thu, 28 Mar 2002, Sharat Hegde wrote: > Rasmus, > > The code worked fine in PHP Version 3.x > > It does not work with PHP Version 4.1.1. That is where I have a problem. > > With Regards, > Sharat > > >From: Rasmus Lerdorf <[EMAIL PROTECTED]> >

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Miguel Cruz
Works for me in 4.1.1 (and 4.1.2) too. Are you sure there's not something else going on? Can you provide an unadulterated code sample pasted directly from your problem script? miguel On Thu, 28 Mar 2002, Sharat Hegde wrote: > The code worked fine in PHP Version 3.x > > It does not work with P

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Rasmus, The code worked fine in PHP Version 3.x It does not work with PHP Version 4.1.1. That is where I have a problem. With Regards, Sharat >From: Rasmus Lerdorf <[EMAIL PROTECTED]> >To: Sharat Hegde <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [PHP] Regular Expression Problem co

Re: [PHP] setcookie with array (was serialize)

2002-03-28 Thread Miguel Cruz
On Thu, 28 Mar 2002, Rodrigo Peres wrote: > if(isset($submit)) { > $x = addslashes($HTTP_POST_VARS); > $y = serialize($x); > setcookie("posted",$y) > } 1) You probably should call serialize on the array to turn it into a string before trying any string transformations like addslashes.

Re: [PHP] FTP RAW

2002-03-28 Thread Analysis & Solutions
> I have written the code to upload using RAW FTP commands. Cool! How'd you get it to work? --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I

RE: [PHP] SQL Question

2002-03-28 Thread Miguel Cruz
On Thu, 28 Mar 2002, Sebastian A. wrote: > When you say "ORDER BY that", is it also possible to do that via letters > such as ORDER BY 'S', because from what I understand, ORDER BY has to be > a column. The object of "order by" should be something that changes for each row, or else the statement

Re: [PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 01:25, Max Wilson wrote: > Is that all? > > > Probably something like: > > > > > > AddType application/x-httpd-php .php4 .php3 .phtml .php .inc > > AddType application/x-httpd-php-source .phps Did you want more? OK, you need to restart the httpd server as well. --

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

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 01:44, Darren Gamble wrote: > Good day, > > A bit off topic, but you can run a Perl script setuid. You have to pass a > flag to Perl to let it know that it's OK, though (it's -U, I believe) which > would appear in your first "she-bang" line. > > I've never had to run a PHP

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

2002-03-28 Thread Darren Gamble
Good day, A bit off topic, but you can run a Perl script setuid. You have to pass a flag to Perl to let it know that it's OK, though (it's -U, I believe) which would appear in your first "she-bang" line. I've never had to run a PHP script setuid. I would imagine that one would have to write it

Re: [PHP] SQL Question

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 00:30, Sebastian A. wrote: > When you say "ORDER BY that", is it also possible to do that via letters > such as ORDER BY 'S', because from what I understand, ORDER BY has to be a > column. In my example, 'this', 'that', 'the', & 'other' are all columns. So yes, ORDER BY x

[PHP] Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-28 Thread DL Neil
Hi Patrick, [I have put this back on the list, because greater minds might come up with a better explanation!?] There appears to be an issue with "gm" time functions. gmmktime() is supposed to take a GMT date and return a GMT UNIX TimeStamp (as per mktime() but with no DST parameter). Conversely

[PHP] running commands as root from a script

2002-03-28 Thread Ken Nagorski
Hi there, I have a little problem. I need to run a few commands for Courier from a script. What I have is a php based application that makes it easy to create and manage virtual domains and the addresses for them from the web. However when You "Apply the changes" everything is written to /tmp dir

[PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
I am trying to add error trapping to my site. In particular I want to direct visitors to an error page when for what ever reason a MySQL connection can not be made. Rather than a page full of errors I want a generic 'we are temporarily closed performing maintenance etc.. etc' Basically after a

[PHP] question

2002-03-28 Thread Chris Frommann
I was directed to this email address to ask a question, hope I'm not mailing the wrong person. Anyways, how would I get "T" in the date() function to display EST instead of Eastern Standard Time? Thanks, Chris

Re: [PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Max Wilson
Is that all? > Probably something like: > > > AddType application/x-httpd-php .php4 .php3 .phtml .php .inc > AddType application/x-httpd-php-source .phps > > > On Thursday 28 March 2002 23:40, Max Wilson wrote: > > I have an Apache server built with mod_php4.c linked into the executable. > >

[PHP] arrays of strings - accessing elements of array elements

2002-03-28 Thread Lee P Reilly
Hi, Dodgy subject header or what... I have array of strings called $composition, and I itterate through this using: $composition[$i] Is there any way to echo the first character of the string by doing something like: $composition[$i][0] or ($composition[$i)][0] ? I can easily just do s

RE: [PHP] SQL Question

2002-03-28 Thread Marcus Rasmussen
You could do it this way WHERE column LIKE 's%' ORDER BY column Now you'll get all rows sorted and where column is staring with an 's' or 'S' - On 28-03-02 at 17:30 Sebastian A. wrote: --

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

2002-03-28 Thread Rick Emery
this appears to be a coding issue. show your code...we can't read your mind... -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:45 PM To: PHP Subject: [PHP] classes- getting their slowly but surely I think just a quick query, hopefu

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

2002-03-28 Thread Caspar Kennerdale
just a quick query, hopefully someone can help (sorry for these repeat schooboy questions) re classes- Can you create an instance of a class and use its 'value' within an instance of another instance of the same class? For example I have created two classes- html.class and db.class I am creat

RE: [PHP] SQL Question

2002-03-28 Thread Rick Emery
What do you mean ORDER BY 'S' ?? yes, it can be a column or combination of columns and data. What are you trying to DO? -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 10:30 AM To: PHP General List (PHP.NET) Subject: RE: [PHP] SQL Question

Re: [PHP] setcookie with array (was serialize)

2002-03-28 Thread Jason Wong
On Thursday 28 March 2002 23:25, Rodrigo Peres wrote: > Hi list, > > Regarding my last post about serialize, I've tried many things but couldn't > make it function. > > I'm trying to store the data from a form in order to allow my user to stop > the process of filling the form and retrieve later w

[PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Max Wilson
I have an Apache server built with mod_php4.c linked into the executable. e.g. bash-2.03$ httpd -l Compiled-in modules: http_core.c mod_env.c mod_php4.c mod_perl.c What changes do i need to make to http.conf before I can use php in web pages which will work please? -- Thanks lot

AW: [PHP] How is code in PHP interpreted, from 1st line to last? i do nt think so

2002-03-28 Thread Moschitz Martin
>As my message says, no, in HTML you don't have text and images together. >The image is retrieved from the server by the client in a completely >different request. >The "main" request basically says "An image goes here. Go ask over there to >go get that image." so, do you have any solution for

[PHP] Group moderation formula

2002-03-28 Thread SP
Everyone gets an arbitrary 100 points "ranking" to start with. Everyone can vote for or against a proposal. If you vote for a proposal and it gets approved by the majority then you get more points. If you vote against a proposal and it gets approved then you lose points. The more points you ha

RE: [PHP] How is code in PHP interpreted,from 1st line to last? i do nt think so

2002-03-28 Thread Darren Gamble
Good day, No, there is no real way in HTML to have this work. You would be best off looking at WHY you need the image to be done first, and change your programming appropriately to take into account how HTML works. A very messy solution would be to have an "include" statement that generates an

  1   2   >