[PHP] ntp client??

2003-06-12 Thread Paul
Hey Guys, I've had a look around but no luck watsoever. If someone could give me a short answer on this one? Is it possible to make a php ntp client? If so give me your opinion on getting it done please? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread Lang Sharpe
You can't embed function calls in strings like this $sString = {addslashes($blah)},{addslashes($blah)}; you have to go $sString = addslashes($blah) . ',' . addslashes($blah); Lang John Taylor-Johnston wrote: Lars, Thanks. I am getting this error however: Parse error: parse error,

[PHP] Warning with XtOffsetOf during make

2003-06-12 Thread andre . lagadec
On Solaris 2.7 with Apache 1.3.27 and PHP-4.2.3, I configure PHP with this command : './configure' \ '--with-config-file-path=/usr/local/apache/conf' \ '--with-gd=/usr/local' \ '--enable-gd-native-ttf' \ '--with-png-dir=/usr/local' \

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 21:00, John Taylor-Johnston wrote: Lars, Thanks. I am getting this error however: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in It does not like addslashes() because of the {}? What is a sensible work around? Or do I even need

RE: [PHP] Sessions and login

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 14:09 session_register('user'); $_SESSION['user'] = ebusUser; Just one other quick point here: if you use the $_SESSION array, you don't need to -- and, in fact, should not -- use

Re: [PHP] SQL SERVER QUESTION

2003-06-12 Thread Brian McGarvie
Or the fact that various datatypes take up various storage needs Clint Tredway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How about the need to add prices together, or store binary data, or using a bit for true false... There are numerous reasons for datatypes in a

[PHP] Re: Warning with XtOffsetOf during make

2003-06-12 Thread andre . lagadec
Hi, Excuse-me, I have 2 warnings : one with php_var_unserialize and an other with XtOffsetOf. Here is the warning with XtOffsetOf During 'make', I get this warning : /bin/sh /produits/packages/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/produits/packages/php-4.2.3/sapi/apache

Re: [PHP] Downloading a file.

2003-06-12 Thread Dustin Pate
Jeff Harris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Jun 11, 2003, Alex Earl claimed that: | Does anyone know what to do to make it saved as: mysoft-1.0-truc.zip | | And I would like to display a page telling Thanks for download or | something...but if I had to the end:

[PHP] Re: cache

2003-06-12 Thread Dustin Pate
Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] what code can I put at the begining of a php page so that the result from the cache is never shown ? The following code should eliminate the cache for every broswer out there. ?php header(Expires: Mon, 26 Jul 1997

[PHP] referer counter

2003-06-12 Thread Thomas Hochstetter
Hi guys, I am writing a counter that checks where the hit comes from, and if it comes from the same site, it will not count . I have a question related to performance: In the script (as yet) I have to open the txt file twice at this stage, because I first need to read from it and then write to

RE: [PHP] undefined variable: action

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Ryan M [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 20:22 Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the

Re: [PHP] referer counter (scope part)

2003-06-12 Thread Chris Hayes
At 11:29 12-6-03, you wrote: function ref($url) { $this-incr($pc,$fp,$nc); $this-write($nc,$cfile); } function incr($pc,$fp,$nc) { if($pc != )

[PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
I have a question about automated email: In my sendmail configuration i have: Alias: Testit Feeds to Program /usr/local/bin/php /usr/local/apache/sites/xxx.com/tasks/automail/test.php testit is set up to an address, so if i send to [EMAIL PROTECTED] the above is indeed ran, my question is how

[PHP] Re: ntp client??

2003-06-12 Thread Brian McGarvie
I've had a look around but no luck watsoever. If someone could give me a short answer on this one? Is it possible to make a php ntp client? If so give me your opinion on getting it done please? do you mean to query a time server? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Email....

2003-06-12 Thread Jason Wong
On Thursday 12 June 2003 18:12, Brian McGarvie wrote: I have a question about automated email: In my sendmail configuration i have: Alias: Testit Feeds to Program /usr/local/bin/php /usr/local/apache/sites/xxx.com/tasks/automail/test.php testit is set up to an address, so if i send to

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
Assuming that your sendmail alias was setup properly then the whole email will be available in STDIN, see manual Using PHP from the command line for details. Cheers! Works a treat now to parse the bugger :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
Assuming that your sendmail alias was setup properly then the whole email will be available in STDIN, see manual Using PHP from the command line for details. Working kind of :) Get one line from it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
Working kind of :) Get one line from it Kinda... I get it to return one line... The code: ?php define('STDIN',fopen(php://stdin,r)); $str = fgets(STDIN); mail([EMAIL PROTECTED],Test,Test Test...\n\nOriginal Email:\n\n$str); ? Emails me: Test Test... Original Email: From [EMAIL

[PHP] Looking for Function / Procedure, best practices

2003-06-12 Thread Tariq Murtaza
Dear All, Hope someone could shed some light over. :) I am looking for something like strip_tags ($str, brhri) but in reverse operation. This will strip all tags except brhri tags, but I need to strip these tags only (brhri) keeping the rest unchanged. Any help / hint will be highly

[PHP] Re: ntp client??

2003-06-12 Thread Paul
yes. I hope this isn't a really dumb question. Brian McGarvie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've had a look around but no luck watsoever. If someone could give me a short answer on this one? Is it possible to make a php ntp client? If so give me your opinion on

[PHP] Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Greetings all, I got a headache doing this, i need to get vars inside an sql query. For example : $query = select * FROM `table` where id='$value' order by name; preg_match_all(/^('\$(.*)')/si, $query,$matches); any help plz ? Thanks, Hatem

[PHP] Re: Looking for Function / Procedure, best practices

2003-06-12 Thread Brian McGarvie
I am looking for something like strip_tags ($str, brhri) but in reverse operation. This will strip all tags except brhri tags, but I need to strip these tags only (brhri) keeping the rest unchanged. You'll be wanting regular expressions then :) http://uk2.php.net/ereg_replace just build

[PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread DvDmanDT
That doesn't work as the new string already is like select * FROM `table` where id='2' order by name assuming $value was 2... Hatem Ben [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Greetings all, I got a headache doing this, i need to get vars inside an sql query. For example :

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Chris Hayes
At 13:54 12-6-03, you wrote: I got a headache doing this, i need to get vars inside an sql query. For example : $query = select * FROM `table` where id='$value' order by name; preg_match_all(/^('\$(.*)')/si, $query,$matches); That doesn't work as the new string already is like select * FROM

RE: [PHP] PHP Email....

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 11:42 Kinda... I get it to return one line... The code: ?php define('STDIN',fopen(php://stdin,r)); $str = fgets(STDIN); mail([EMAIL PROTECTED],Test,Test Test...\n\nOriginal

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Oh, ok this is how i want to do it exactly : query.php ?php $query = select * FROM `table` where id='$value' order by name; ? parse.php ?php $fcontents = join('' , file('query.php')); preg_match_all(/^('\$(.*)')/si, $fcontents,$matches); print_r($matches) ? Thanks

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Sorry this is more correct : -- starting query.php select * FROM `table` where id='$value' order by name -- ending query.php Hatem Ben [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Oh, ok this is how i want to do it exactly : query.php ?php $query

[PHP] a simple class,please advise:)

2003-06-12 Thread hui
i wrote a simple easy class, please give me some advise and help my skills, thank you^_^ (using 'DB/DataObject.php,Smarty...) ?php require_once('DB/DataObject.php'); define('AUTH_PREFIX','__auth__'); class Auth { var $_sessionname; var $name; var $login_time; function

Re: [PHP] piping email directly into PHP

2003-06-12 Thread Brent Baisley
You may also want to look into dbmail (dbmail.org), which is a mail server that uses Postgres or Mysql as it's repository. I haven't played with it yet, but I would think you would be able to query the database like any other database you create. On Wednesday, June 11, 2003, at 05:31 PM,

[PHP] A simple request from a simple person

2003-06-12 Thread Roberts, Mark (Tulsa)
Obviously relatively new to php I would like to know how to do a simple redirect from a php page. For example in ASP I do response.redirect(thispage.com) Want to do the same thing in php. I have tried to go through the documentation, but can't seem to get focused on the proper and

RE: [PHP] A simple request from a simple person

2003-06-12 Thread Jay Blanchard
[snip] I would like to know how to do a simple redirect from a php page. [/snip] Look up 'header' on php.net header(Location: wherever.php); exit(); HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP methods of striping tags and tag contents

2003-06-12 Thread Marek Kilimajer
Should be: $results = preg_replace(@(tag|tag2)(.*?).*?/\\1@sm,,$html); Remember you need to find the matching tag, so use backreference. Burhan Khalid wrote: Hello dwalker, Thursday, April 24, 2003, 11:50:16 PM, you wrote: Firstly, don't ask for reading confirmation reciepts -- especially on a

[PHP] Re: shorthand if notation

2003-06-12 Thread Pete Morganic
Its a ternary operator look at http://www.phpbuilder.com/board/showthread.php?threadid=10235547 http://www.phpbeginner.com/columns/maxim/ternary pete Adrian Greeman wrote: I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum ? $bkgndClass =

[PHP] General question...

2003-06-12 Thread Valentin
hi all, is it possible with php: first to pass request to another URL and after that to get the html responce as a string and put it into php $variable? best, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: form name and submit test

2003-06-12 Thread Pete Morganic
Put a hidden field in the form and give it the same name as the forms eg input type=hidden name=form_name value=sign_up_form I'm pretty sure the form name is not sent to the server - but i may be wrong pete Amanda McComb wrote: If I have multiple forms on a page, and each form has it's own

Re: [PHP] General question...

2003-06-12 Thread Jason Wong
On Thursday 12 June 2003 21:53, Valentin wrote: Please use a descriptive subject! is it possible with php: first to pass request to another URL and after that to get the html responce as a string and put it into php $variable? Simplest: fopen() For alternatives, search archives. -- Jason

Re: [PHP] Re: Using register_globals

2003-06-12 Thread Jim McNeely
I'm a bit of a neophyte with php, and I've read through lots of prior posts and the php.net online docs, but some of this is still not registering in my head. TIA for your patience. I've got a script I include at the head of each of my scripts that checks $_POST['username'] and

Re: [PHP] General question...

2003-06-12 Thread Valentin
hi Jason, In my site I use a payment system, but unfortunately, there is a moment when the client must enter his card data into the page owned by the company that makes transactions (sorry for this descriptive bad english). The problem is that the design of this page is quite different then mine

RE: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Monu Ogbe
Hi, I'll join the conversation, because I have a similar problem. PHP interpolates variable values in strings if these are enclosed in double quotes: e.g., $string = select * FROM `table` where id='$value' order by name; PHP does not interpolate variables contained in strings delimited

RE: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Jay Blanchard
[snip] $string = select * FROM `table` where id='$value' order by name; [/snip] I know it ain't pretty, but the coding style we have accepted is this $string = select * FROM `table` where id = ' . $value . ' order by name ; or (we requite caps on reserved words)... $string = SELECT *

Re: [PHP] General question...

2003-06-12 Thread Marek Kilimajer
Do you think the users will trust your site that much they will be willing to give you their credit card information? How would they know you won't keep this information? Valentin wrote: hi Jason, In my site I use a payment system, but unfortunately, there is a moment when the client must enter

RE: [PHP] piping email directly into PHP

2003-06-12 Thread Adrian Teasdale
Thanks Brent, now that's an interesting angle I'd not thought about :) Thanks for this Ade -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 13:30 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] piping email directly into PHP

[PHP] Re: A simple request from a simple person

2003-06-12 Thread KK
header(location: mypage.php); Mark Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Obviously relatively new to php I would like to know how to do a simple redirect from a php page. For example in ASP I do response.redirect(thispage.com) Want to do the same thing in php.

RE: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Monu Ogbe
Ben, heredocs seem to do just what you are asking. http://www.onlamp.com/pub/a/php/2003/04/10/php_heredocs.html If I can include() a file inside this construct, then it will solve my problem too :-? Monu -Original Message- From: Monu Ogbe Sent: 12 June 2003 14:12 To: [EMAIL

Re: [PHP] General question...

2003-06-12 Thread Valentin
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you think the users will trust your site that much they will be willing to give you their credit card information? How would they know you won't keep this information? I'm going to make only cosmetic changes like

Re: [PHP] A simple request from a simple person

2003-06-12 Thread Marek Kilimajer
Location header requires full uri (at least that's what is in the rfc): header(Location: http://www.server.com/wherever.php;); exit(); Jay Blanchard wrote: [snip] I would like to know how to do a simple redirect from a php page. [/snip] Look up 'header' on php.net header(Location: wherever.php);

[PHP] Easier way to delete all entries in an array?

2003-06-12 Thread James E Hicks III
There's got to be an easier way, is there? for ($i=0; $i count($the_array); $i++){ array_pop($the_array); } James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Easier way to delete all entries in an array?

2003-06-12 Thread Chris Hayes
At 16:13 12-6-03, you wrote: There's got to be an easier way, is there? for ($i=0; $i count($the_array); $i++){ array_pop($the_array); } $the_array=array(); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP extensions and multiple source files?

2003-06-12 Thread Marek Kilimajer
Simply list *.c all files as arguments to gcc: gcc one.c two.c three.c -shared -o my_ext.so Ed wrote: Howdy folks! Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file? I searched for examples

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
I agree with you Jay, but those cases are already done, and i got no problem with RE there Thanks anyway Hatem - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Monu Ogbe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 3:17 PM Subject: RE: [PHP] Re: Vars

[PHP] Re: PHP and XML-RPC on MS Windows

2003-06-12 Thread Evandro Sestrem
Erich, Yes, it's possible to do the same. What XML-RPC implementation to PHP are you using? Evandro Sestrem Erich Kolb [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] What do I have to do in order to use the XML-RPC functionality on a Windows based machine? It was fairly easy

Re: [PHP] General question...

2003-06-12 Thread Brian McGarvie
it detracts from the experiance of user consistency if you are suddenly in a nice site then presented with a crappy looking payment page ;) Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you think the users will trust your site that much they will be willing to

[PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
I'm asking again the same question, coz i guess my question wasn't clear. i just need to retreive vars inside query.txt, my regular expression seems to be correct for me, but i don't find why it doesn't wrk -- Starting query.txt select * FROM `table` where id='$value' order by name --

[PHP] Re: your mail

2003-06-12 Thread Philip Olson
Looks still broken to me :) yup, but I don't get the problem, everything seems fine on my box.. maybe a problem with vim comments ? can you commit the _right_ WS fix ? thanks in advance :) TABS are EVIL! :) Regards, Philip -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Vars inside an sql query [Regular expression question]- Again

2003-06-12 Thread Marek Kilimajer
preg_match_all(/^('\$(.*)')/si, $fcontents,$matches); ^^ you don't allow any character between start of the string and single quote. preg_match_all(/^.*('\$(.*)')/si, $fcontents,$matches); Hatem Ben wrote: I'm asking again the same question, coz i guess my question wasn't clear.

RE: [PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Monu Ogbe
Right then. Here's what I have done, and it works: ===Contents of query.txt=== ?php $fcontents = QUERY select * FROM `table` where id='$value' order by name QUERY; ? ===End Contents of query.txt=== Then: ===Contents of parse.php=== ?php include('query.txt');

Re: [PHP] Easier way to delete all entries in an array?

2003-06-12 Thread Wendell Brown
On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks III wrote: There's got to be an easier way, is there? for ($i=0; $i count($the_array); $i++){ array_pop($the_array); } Maybe this: unset( $the_array ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
It's not working also - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:23 PM Subject: Re: [PHP] Vars inside an sql query [Regular expression question] - Again

RE: [PHP] Easier way to delete all entries in an array?

2003-06-12 Thread Monu Ogbe
Or perhaps, $the_array = array(); Monu -Original Message- From: Wendell Brown [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 16:31 To: James E Hicks III; [EMAIL PROTECTED] Subject: Re: [PHP] Easier way to delete all entries in an array? On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks

Re: [PHP] Re: Using register_globals

2003-06-12 Thread Philip Olson
Won't this topic just die? :) register_globals is not insecure, users are insecure. Yes, you can write insecure code with it on or off, and secure code with it on or off. By users I mean people who write code, and people who use it (the evil users are the ones that use the website, and pass

RE: [PHP] Easier way to delete all entries in an array?

2003-06-12 Thread James E Hicks III
The following has solved my problem. Thanks to all who helped. $the_array=array(); -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Easier way to delete all entries in an array? At 16:13

Re: [PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
Well, it's finally working, but still very confusing ... thanks all ?php $fcontents = join('' , file('query.txt')); preg_match_all('/(\'\$(.*)\')/si', $fcontents,$matches); print_r($matches) ? Regards, Hatem - Original Message - From: Hatem Ben [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] General question...

2003-06-12 Thread Jason Paschal
ppl, you're missing the point. you keep re-stating his problem. he knows it's not good to make the 3rd party gateway so obvious. he's looking for a way to make it transparent, so it looks like it's actually part of his site. i think there should be a way to do it. maybe use the fsock stuff

[PHP] array

2003-06-12 Thread Diana Castillo
If I write a code like this, $room_type=array(); $room_type[0][0]=4; echo BRvalue in array is .$room_type[0][0]; yet I dont get any results out, what did i do wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Vars inside an sql query [Regular expression question]- Again

2003-06-12 Thread Marek Kilimajer
Now I noticed you did not escape backslash that was supposed to escape the dolar sign. preg_match_all(/^.*('\\\$(.*)')/si, $fcontents,$matches); ^ ^ Hatem Ben wrote: Well, it's finally working, but still very confusing ... thanks all ?php $fcontents = join('' ,

[PHP] Re: array

2003-06-12 Thread R'twick Niceorgaw
Your code works fine here (Apache 1.3.27/PHP 4.3.2) However you can try $room_type=array(); $room_type[0]=Array(); $room_type[0][0]=4; echo BRvalue in array is .$room_type[0][0]; HTH R'twick Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I write a code like this,

Re: [PHP] array

2003-06-12 Thread Philip Olson
On Thu, 12 Jun 2003, Diana Castillo wrote: If I write a code like this, $room_type=array(); $room_type[0][0]=4; echo BRvalue in array is .$room_type[0][0]; yet I dont get any results out, what did i do wrong? Nothing wrong with this code, it will work. Your error must be somewhere else.

Re: [PHP] array

2003-06-12 Thread Leif K-Brooks
Nothing as far as I can tell. It works fine for me. Diana Castillo wrote: If I write a code like this, $room_type=array(); $room_type[0][0]=4; echo BRvalue in array is .$room_type[0][0]; yet I dont get any results out, what did i do wrong? -- The above message is encrypted with double

Re: [PHP] array

2003-06-12 Thread Diana Castillo
you ´re right, I had used the same variable name as something else in between ! thanks. - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Diana Castillo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:58 PM Subject: Re: [PHP] array Nothing as far as

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread -{ Rene Brehmer }-
At 22:31 11-06-2003, Jennifer Goodie wrote: // pull fields from form query $to = [EMAIL PROTECTED]; $name = $HTTP_POST_VARS['name']; $address = $HTTP_POST_VARS['address']; $listname = $HTTP_POST_VARS['listname']; $action = strtoupper($HTTP_POST_VARS['action']); //

[PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the following case: form portion of upload.htm -- FORM NAME=Uploading ENCTYPE=multipart/form-data ACTION=confirmation.php METHOD=POST onSubmit=return

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread -{ Rene Brehmer }-
It's not future when I send them ... my clock's within the 15 second limit my NTP sync allows... but maybe the time difference causes ezmlm to do some dancing when sending it out ?? I know listserv based lists can get confused about the time differences... but thanks anyway ;-) Rene At 22:50

Re: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Marek Kilimajer
Don't forget uploaded files are removed after confirmation.php finishes. You need to move them to a temporary directory. Artoo wrote: Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the following case: form portion of upload.htm

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread John Taylor-Johnston
Lars, Much thanks. Life saving :) Ignatius, I like your idea. Thanks to you too. John if (isset($var[$key]['Option'])) { // Flag that we got one this time round. $found = true; // Get the translated name from $var.

Fw: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Kevin Stone
- Original Message - From: Artoo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:16 AM Subject: [PHP] uploading files after passing vars between forms Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the

Re: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
I didn't know that Thanks for the info. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Don't forget uploaded files are removed after confirmation.php finishes. You need to move them to a temporary directory. Artoo wrote: Hey I'm confused! Do I use

[PHP] Re: General question...

2003-06-12 Thread Bobby Patel
You can try using the cURL package with PHP. I use it with a system call. $curl_path = /usr/bin/curl; # or full path of curl $post = 'amount=3.40merchant_id=2351235'; #POST key value pairs with , these variables will be POSTed to site $command = $curl_path -d \$post\ $gateway_url;

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
I totally agree with your first sentence *grin*. Anyways, I won`t be able to use your class because my server is kind of locked in their network, meaning I don`t have the possibility to connect outside, only to their servers (NT servers). And as Exchange servers don`t use SMTP (meaning the whole

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Mark
--- Diana [EMAIL PROTECTED] wrote: I totally agree with your first sentence *grin*. Anyways, I won`t be able to use your class because my server is kind of locked in their network, meaning I don`t have the possibility to connect outside, only to their servers (NT servers). And as Exchange

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Felipe Desiderati
Felipe Desiderati wrote: try this: if (ereg(^[0-9]+$, $_POST[var_int)) echo is int; That's not the best regexp. It doesn' take into account negative integers and isn't there a [[:numeric:]] or something like regexp that would work better. I'm looking for the simplest method and

Re: [PHP] Re: How to format a strign with a generic mask??

2003-06-12 Thread Felipe Desiderati
Thanks, helps a lot!! []´s Felipe Felipe Desiderati [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need a simple function that takes a string and formats with a generic mask. Like this example above: $string1 = 12345678 $string2 = 11062003 echo format_string

[PHP] w32api functions?

2003-06-12 Thread DvDmanDT
Hello everyone... I was wondering why the w32api functions were removed? And will they come back? Else, will the 4.2.3 version work with 4.3.2? I really want those functions for educational purposes you see... Thanks in advance // DvDmanDT -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
Hi, my company set their server up not to talk SMTP (disabled all -- that guy told me), and my tries to connect or talk to any of their Exchange servers failed :( so he must be true. Got onto their NT servers though ;) All the company uses Outlook Exchange, they use mapi to talk to each other.

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
snip Sorry, I don´t know that you needed an effective snipet. And you are right, I only writed for positive integers. Try something like apply 2 type cast simunltaneous. if ( (string) ((int) $_POST[var_int]) == $_POST[var_int]) echo is int; Why not just use the is_int() function?

RE: [PHP] w32api functions?

2003-06-12 Thread Roedel, Mark
Removed? $PHPDIR/ext/w32api still seems to exist in the 4.3.2 I just installed. Did you compile your own, or download a prebuilt binary? --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to

Re: [PHP] w32api functions?

2003-06-12 Thread DvDmanDT
Prebuilt.. Compiling myself is to complicated... But check the manual... 4.2.0-4.2.3 is the only versions suporting it it says... Mark Roedel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Removed? $PHPDIR/ext/w32api still seems to exist in the 4.3.2 I just installed. Did you

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread CPT John W. Holmes
snip Sorry, I don´t know that you needed an effective snipet. And you are right, I only writed for positive integers. Try something like apply 2 type cast simunltaneous. if ( (string) ((int) $_POST[var_int]) == $_POST[var_int]) echo is int; Why not just use the is_int()

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
snip Sorry, I don´t know that you needed an effective snipet. And you are right, I only writed for positive integers. Try something like apply 2 type cast simunltaneous. if ( (string) ((int) $_POST[var_int]) == $_POST[var_int]) echo is int; Why not just use the is_int()

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread DvDmanDT
To be honest, I haven't really understood what three of them does... Is it the same value without type casting? Jean-Christian Imbeault [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Dvdmandt wrote: It's not that killing... :p preg_match(#^-?[0-9]+$#,$_POST[var_int]); Not

[PHP] 4.3.2 -- does connection_status() actually work?

2003-06-12 Thread Per Jessen
Shouldn't the following work - or rather why doesn't it : ignore_user_abort(0); for( $i=100; $i; $i-- ) { if ( connection_status() ) exit(0); print blurp.br/; flush(); sleep(1); } print Done.br/; This is

Re: [PHP] w32api functions?

2003-06-12 Thread DvDmanDT
Just wanted to download sources... But that's kinda impossible... 404 on every single mirror, both bz and gz... Hmm... I guess I'll go for snaps then... :p Someone, please fix this... Dvdmandt [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Prebuilt.. Compiling myself is to

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Jason Wong
On Friday 13 June 2003 03:49, DvDmanDT wrote: To be honest, I haven't really understood what three of them does... Is it the same value without type casting? It takes into account the variable type as well: (1 == '1') // true (1 === '1') // false -- Jason Wong - Gremlins Associates -

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Brent Baisley
Jumping in a little late here, but what about is_numeric()? Haven't tried it, but the php manual for is_int says: Note: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric(). On Thursday, June 12, 2003, at 03:31 PM, CPT

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
Jumping in a little late here, but what about is_numeric()? Haven't tried it, but the php manual for is_int says: Note: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric(). The problem with is_numeric() is that

[PHP] Error display

2003-06-12 Thread John Nichel
I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error display

2003-06-12 Thread Alex Earl
I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? I believe there is a print_errors or show_errors directive in the php.ini file. Check on php.net for sure. Alex -- PHP General Mailing List

Re: [PHP] Error display

2003-06-12 Thread John Nichel
Belay this question. Found it. display_errors = On John Nichel wrote: I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Error display

2003-06-12 Thread John Nichel
Alex Earl wrote: I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? I believe there is a print_errors or show_errors directive in the php.ini file. Check on php.net for sure. Alex Thanks guys. --

[PHP] Vmailmgr Functions

2003-06-12 Thread John Nichel
On PHPBuilder.com, they have functions listed for Vmailmgr in their manual, whereas on PHP.net, no such functions exist. Do these functions exist but not documented on PHP.net? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread Jeff Harris
On Jun 12, 2003, -{ Rene Brehmer }- claimed that: |You have an extra \r\n. There is one contained in the variable $from so the |line $headers .= From: .$from.\r\n; is putting \r\n\r\n which signifies |the end of the headers and the begining of the message body. | |Stupid me ... so simple, of

  1   2   >