[PHP] My mail have a problem!!

2002-10-31 Thread joskey
My mail have a problem, I can receive this mail list, but can send to it, who can tell me a better free mail which support pop3 and smtp? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My mail have a problem!!

2002-10-31 Thread John Nichel
U *wonders if he should point out the obvious* joskey wrote: My mail have a problem, I can receive this mail list, but can send to it, who can tell me a better free mail which support pop3 and smtp? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: File Upload Problem

2002-10-31 Thread David Robley
In article 01c2805a$8a2a11a0$4b0a0a0a@skink, [EMAIL PROTECTED] says... G'day David My problem is that files uploaded through a form are increasing in size. Doesn't that look like the EOL characters are being translated after the fashion of ftp ascii transfers?

Re: [PHP] SAP documentation

2002-10-31 Thread Gerald Roehrbein/Pctdmn
Hello, you can access SAP tables direct via the native database interface for example via the Oracle interface. All you have to know is what is inside the different tables and you have to get the password or a read only account to SAP tables from your DBA. ;-) For example the creditor tables

Re: [PHP] parse error

2002-10-31 Thread Marek Kilimajer
line 60 and 61 should read: echo 'temp/'.$userfile_name[$i-1]; $fp=fopen('temp/'.$userfile_name[$i-1],w+); Andres, Cyrille wrote: here is my code : // for each file to upload : $j=0; echo $hotelNr[$j] et $j; while($hotelNr[$j] != ) { //display the caracteristics of each file to download

[PHP] Re: Plus sign changing to space in html form

2002-10-31 Thread Phoebe Bright
I am battling with the same problem on both IE and Netscape on Mac OS 10.2. Is this a Mac thing? I ammended your code in the hope that something was being passed that only looked like a space.. ?php echo $_POST['test'].'br'; for($n=1;$n=strlen($_POST['test']);$n++) { echo

Re: [PHP] infinate loops

2002-10-31 Thread Marek Kilimajer
where is $row['BillPeriod'] set? and what is its value? Chris Knipe wrote: Lo, Quite desperate now... Or at least, I'm starting to get there... Can anyone perhaps see why this loop is not exiting??? $quit=$now; $glet=getdate($row['RenewDate']); // debug echo howlong: . $howlong;

Re: [PHP] paper size print problem

2002-10-31 Thread Marek Kilimajer
ask at a windows-user list R B wrote: I want to set up a specific size of paper to print a report. I made this with a PDF document and in screen looks like the size that i need, but when i print it, the printer doesn't respect the size and always print with the letter or default acrobat size.

Re: [PHP] problem with global vars

2002-10-31 Thread Marek Kilimajer
globals don't don't persist between requests Tomas Kubis wrote: Hello, I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with doesnt work. Please help me! in php.info register globals=On For example I have one script: first.php ? global $a; $a=150; Header(Location:

[PHP] This is a test mail for my mail list!

2002-10-31 Thread jianking
TEST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can OCIBindByName bind an in/out placeholder of plsql

2002-10-31 Thread DIGINEXT
I discovered recently that it was impossible to bind an output placeholder plsql (an input work only). Configuration 1 : Suse + Oracle 8i17 + oci (oracle) + PHP4.2.3 Configuration 2 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.3 Configuration 3 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.2

[PHP] Re: can OCIBindByName bind an in/out placeholder of plsql

2002-10-31 Thread DIGINEXT
I discovered recently that it was impossible to bind an output placeholder plsql (an input work only). Configuration 1 : Suse + Oracle 8i17 + oci (oracle) + PHP4.2.3 Configuration 2 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.3 Configuration 3 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.2

[PHP] Re: can OCIBindByName bind an in/out placeholder of plsql

2002-10-31 Thread DIGINEXT
I discovered recently that it was impossible to bind an output placeholder plsql (an input work only). Configuration 1 : Suse + Oracle 8i17 + oci (oracle) + PHP4.2.3 Configuration 2 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.3 Configuration 3 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.2

Re: [PHP] mixed

2002-10-31 Thread Marek Kilimajer
Shaun wrote: Hi, In asp there is a session timeout function that allows the session to end after the session is INACTIVE for x seconds/minutes ! How do i do this in php ? session_cache_expire(value_in_minutes); documentation is not very clear about it, but I guess it needs to be set before

Re: [PHP] At last an error message!

2002-10-31 Thread Marek Kilimajer
The function needs more or less parameters than supplied, in this case either 2 or 3, check the manual Steve Jackson wrote: function get_order_id_receipt($orderid, $shipping) { //Get order ID from DB to pass to receipt. $conn = db_connect(); $datequery = select date from receipts where

RE: [PHP] Capitalizing names etc. part II - found a solution

2002-10-31 Thread Ford, Mike [LSS]
-Original Message- From: -[ Rene Brehmer ]- [mailto:metalbunny;metalbunny.net] Sent: 30 October 2002 19:54 [snip, snip, snip...] My structure also ensure that if someone's called something like Mackenzie for first name, it will not be incorrectly cap'ed, as it only does the

RE: [PHP] mixed

2002-10-31 Thread John W. Holmes
In asp there is a session timeout function that allows the session to end after the session is INACTIVE for x seconds/minutes ! How do i do this in php ? You can set the lifetime of the session in php.ini. session.gc_maxlifetime is the time after which, inactive sessions will be deleted.

Re: [PHP] Php web hosting

2002-10-31 Thread -[ Rene Brehmer ]-
Hi Steve Jackson, On Wed, 30 Oct 2002 20:36:50 +0200, you wrote about [PHP] Php web hosting something that looked like this: Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL

[PHP] Re: Plus sign changing to space in html form

2002-10-31 Thread Phoebe Bright
Here is a fudge that uses Javascript to convert the + into {PLUS} then PHP converts it back again. The only problem is Javascript is only converting the first +, so a+b+c becomes a+b c. ?php $testVal=str_replace({PLUS},+,$_POST['test']); echo $testVal; php? script function SaveHiddenChars() {

[PHP] RE: Php web hosting

2002-10-31 Thread Richard Archer
I use phpwebhosting and I've always found them to be very quick with their support response. They're also very friendly and helpful, and happy to go that little bit further for you. Need a feature that isn't listed? No harm in asking them and they'll generally do whatever they can to provide it

[PHP] Re: can OCIBindByName bind an in/out placeholder of plsql

2002-10-31 Thread Fabien JOSEPH
I discovered recently that it was impossible to bind an output placeholder plsql (an input work only). Configuration 1 : Suse + Oracle 8i17 + oci (oracle) + PHP4.2.3 Configuration 2 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.3 Configuration 3 : HPUX11 + Oracle 8i17 + oci(oracle) + PHP4.2.2

Re: [PHP] Multiple Addresses Mailer

2002-10-31 Thread -[ Rene Brehmer ]-
Hi Manuel Lemos, On Thu, 31 Oct 2002 02:28:31 -0300, you wrote about Re: [PHP] Multiple Addresses Mailer something that looked like this: You are contradicting yourself. Most mailing list programs put all recipients in Bcc: and queue only on message, so it is the same thing that you are

Re: [PHP] Re: Multiple Addresses Mailer

2002-10-31 Thread -[ Rene Brehmer ]-
Hi Manuel Lemos, On Wed, 30 Oct 2002 18:03:13 -0300, you wrote about [PHP] Re: Multiple Addresses Mailer something that looked like this: I want to be able to send mail so that each recipient thinks that this mail was ONLY sent to him/her. Put all recipients in the Bcc: instead of To:

Re: [PHP] My mail have a problem!!

2002-10-31 Thread -[ Rene Brehmer ]-
Hi joskey, Your mail came through fine ... but if you want to run a mail-server, and have got either windows or novell netware, take a peak at Mercury, it's free, has POP and SMTP, and inludes a listerver and advanced filtering: www.pmail.com It's extremely stable, only license quirk is that

[PHP] RE: Capitalizing names etc. part II - found a solution

2002-10-31 Thread Richard Archer
Hi Rene, You should consider the fact that, even as surnames, names like Mackintosh and Mackenzie (and as someone else suggested here 'Macon') generally should NOT have a capital letter. Mackintosh is an English name, not Scottish, and people who spell it with a capital K have gotten their

[PHP] storing inc.php outside doc root

2002-10-31 Thread rolf vreijdenberger
hi, I want to include a file that is one directory above my web document root on the server. eg. www.mydom.com/file.php wants to include a file that is one dir higher, so that file is not accesible via the web. how can I access this file, if I specify a include(../inc.php); it doesn't work. I also

Re: [PHP] storing inc.php outside doc root

2002-10-31 Thread Marek Kilimajer
What error do you get, this should generaly work rolf vreijdenberger wrote: hi, I want to include a file that is one directory above my web document root on the server. eg. www.mydom.com/file.php wants to include a file that is one dir higher, so that file is not accesible via the web. how can

RE: [PHP] How to prevent failure email from being sent?

2002-10-31 Thread Richard Archer
Noah, If you delete the webmaster email key you might find that it makes up some non-existent e-mail address based on your server name. You could try adding an 'Errors-To: [EMAIL PROTECTED]' header in the e-mail which is supposed to tell the receiving server to send any errors to a specific

RE: [PHP] Re: File Upload Problem

2002-10-31 Thread Richard Archer
I've had 2 thoughts on this one. They're fairly uneducated an just meandering speculation, but it's my tuppence-worth so... My initial thought was this: I believe the Content-Type: MIME header is added by your browser. HTTP standards say that anything sending a file over HTTP is supposed to tell

RE: [PHP] Free compiler for Win

2002-10-31 Thread Richard Archer
http://www.ioncube.com/encoder/online_encoder.php It's not free, but it's a LOT cheaper than the Zend Encoder. Regards, Rich -Original Message- From: R B [mailto:rbphp;hotmail.com] Sent: 31 October 2002 12:57 am To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Free

[PHP] How do you select?

2002-10-31 Thread Steve Jackson
I want to the select the very last record from my MySQL DB. How do I do it? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com http://www.violasystems.com/ [EMAIL PROTECTED] Mobile +358 50 343 5159

RE: [PHP] Re: CSS pulls me back in

2002-10-31 Thread Liam . Gibbs
is Constants.inc in the same directory as Stylesheet.php? It's in the same directory. Maybe I have to make things global? Lemme check on that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do you select?

2002-10-31 Thread Jon Haworth
Hi Steve, I want to the select the very last record from my MySQL DB. How do I do it? Depends what you mean by last. You can either do a select with an order and a limit: SELECT foo FROM bar ORDER BY timestamp DESC LIMIT 1 Or you can get the last primary key with PHP's mysql_insert_id()

[PHP] Re: How do you select?

2002-10-31 Thread Erwin
Steve Jackson wrote: I want to the select the very last record from my MySQL DB. How do I do it? If the table has an id, use select * from table order by id desc limit 0,1 Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] At last an error message!

2002-10-31 Thread Pekka Saarinen
At 10/31/2002, you wrote: function get_order_id_receipt($orderid, $shipping) { //Get order ID from DB to pass to receipt. $conn = db_connect(); $datequery = select date from receipts where customerid = '10'; $query = select orderid from receipts where customerid = '10'; $shippingquery =

[PHP] search tricks of the trade

2002-10-31 Thread Edward Peloke
Ok, I have my php/mysql site almost finished, are there any special tricks to making the site rise to the top of the list in search engines? I added all the info in the 'meta' part of the site. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Php web hosting

2002-10-31 Thread Adam Voigt
I've recently had a very good experience with a hosting company, there website is at: http://www.spenix.com/ Great feature set, superior support, and so-far perfect uptime/performance in hardware, software, and bandwidth. I definetly recommend them to anyone looking for quality hosting. Adam

RE: [PHP] Php web hosting

2002-10-31 Thread Clint Tredway
I am using www.imhosted.com for my clients at the moment. I have had some small issues but they are quick to lend a helping hand. Clint -Original Message- From: Adam Voigt [mailto:adam;cryptocomm.com] Sent: Thursday, October 31, 2002 7:47 AM To: Steve Jackson Cc: Php-General Subject:

RE: [PHP] search tricks of the trade

2002-10-31 Thread PHP List
Too many to list in an email. This site has allot of information. http://searchenginewatch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Missing

2002-10-31 Thread Adam Voigt
Ok, what am I missing? The file sdlksd doesn't exist, and the program's not dying, any ideas? #!/usr/local/php_4.2.3/bin/php -q ?php if(!file_exists(sdlksd)) die(DOH!); ? Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread jianking
Who can tell me where I can get the cracked Zend Encoder 3.0 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need help...

2002-10-31 Thread BAROILLER Pierre-Emmanuel
Received fro Yves le duaron : Try this for example ; '.$pattern.([^]*)?(\/)?(?(2)|(.*)?\/.$pattern.)'siU Please notice the U (ungreedy) to enhance the speed. This also match empty tags ... Sorry I have no login to send this to the mailing list, do this for me please ! Baroiller

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread 1LT John W. Holmes
Go away... - Original Message - From: jianking [EMAIL PROTECTED] To: PHP Mail List [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 10:00 AM Subject: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ? Who can tell me where I can get the cracked Zend Encoder 3.0 ?

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread John Wards
On Thursday 31 Oct 2002 3:00 pm, jianking wrote: Who can tell me where I can get the cracked Zend Encoder 3.0 ? Are you a muppet? This list is run by the people who make Zend Encoder! FOOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who can tell me where I can get the cracked ZendEncoder3.0 ?

2002-10-31 Thread Cory Hicks
Be gone already! On Thu, 2002-10-31 at 09:00, jianking wrote: Who can tell me where I can get the cracked Zend Encoder 3.0 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/)

[PHP] wow

2002-10-31 Thread Evan Nemerson
http://www.auschron.com/issues/dispatch/2000-08-11/xtra_feature2.html -- If there is no higher reason--and there is none--then my own reason must be the supreme judge of my life. -Leo Nikolaevich Tolstoy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Multiple Addresses Mailer

2002-10-31 Thread olinux
I've never met an ISP that would refuse bulk mailing, as long as you can proove that you've got concent from the receivers for the messages. My mail server handles all the concent things itself, and sofar my ISPs have not complained about the up to 3 digit amounts of message that go out

[PHP] RE:[Not even in the topic ballpark] [PHP] wow

2002-10-31 Thread Jay Blanchard
-Original Message- From: Evan Nemerson [mailto:evan;coeus-group.com] Sent: Thursday, October 31, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] wow http://www.auschron.com/issues/dispatch/2000-08-11/xtra_feature2.html -- If there is no higher reason--and there is none--then my

[PHP] date validation problem!

2002-10-31 Thread ppf
Hi all: I am having some problem with date validation I am trying to validate the date in a form Field I had provided a text field for date, so have to expect all the different possible entry, When i tried with checkdate() method it needs the parametes in (int month,int date, int year). It make

Re: [PHP] wow

2002-10-31 Thread Evan Nemerson
Ladies and Gentlemen, I would like to apologize for an eMail I just sent (Message-ID: [EMAIL PROTECTED]) to the php-general mailing list. The content of this eMail contained a link to a news article which detailed an absurd Texas law. I tried to send it to a friend (currently living in Texas)

RE: [PHP] date validation problem!

2002-10-31 Thread Jon Haworth
Hi, I had provided a text field for date, so have to expect all the different possible entry, This is generally a *very* bad idea. If a visitor to your site enters 4/3/01, do they mean the 4th March or the 3rd April? I find the best thing to do is provide three drop-downs: one contains

[PHP] Is there an ISP that supports GD Library 2.0?

2002-10-31 Thread René Fournier
I'm going to need it for a site I'm working on Any suggestions are much appreciated. --- René Fournier, [EMAIL PROTECTED] Toll-free +1.888.886.2754 Tel +1.403.291.3601 Fax +1.403.250.5228 www.smartslitters.com SmartSlitters International #33, 1339 - 40th Ave NE Calgary AB T2E 8N6 Canada

[PHP] String to Ascii

2002-10-31 Thread Ben Chivers
Hi, I'm wanting to change a character string from text into ascii code. I tried using the function: ebcdic2ascii() only to find out that it isn't supported with the latest versions of php, only version 3. I would appreciate any help from anyone with this topic. -- Many Regards, Ben Chivers

Re: [PHP] Missing

2002-10-31 Thread Chris Hewitt
Adam Voigt wrote: #!/usr/local/php_4.2.3/bin/php -q ?php if(!file_exists(sdlksd)) die(DOH!); ? I think it works. I get DOH! printed when I try this. What do you get? I'm doing this from a web browser rather than command line though, so I don't use your #!/usr... line. HTH Chris --

Re: [PHP] Missing

2002-10-31 Thread Adam Voigt
For some reason, if I didn't change it to: die(DOH!\n); it wouldn't work, I guess in console mode, you have to shunt an extra newline character (\n) before it will work. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 11:28, Chris Hewitt wrote: Adam Voigt wrote:

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread Brian V Bonini
My, my. We have a rocket scientist amongst us -Original Message- From: jianking [mailto:liaus;10mail.net] Sent: Thursday, October 31, 2002 10:00 AM To: PHP Mail List Subject: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ? Who can tell me where I can

Re: [PHP] Variable over url

2002-10-31 Thread Sascha Cunz
Ops, of course. Sascha Am Donnerstag, 31. Oktober 2002 04:07 schrieb Chris Shiflett: I think you mean turn on register_globals. :-) Sascha Cunz wrote: try ?php echo $_GET['tmp']; ? or turn off register_globals in your php.ini file. Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel

[PHP] Stop At Return

2002-10-31 Thread Adam Voigt
I'm running PHP in console mode, on a script which uses: $f = fopen(php://stdin,r); $data = fread($f,12); fclose($f); To get an IP address (a max of 12 characters), so the question is, how do I stop taking input when they hit return (ie, if there IP is less then the max 12 it will keep waiting

[PHP] strtotime bug? end of the month.

2002-10-31 Thread Jeff Bearer
date(Y-m-d,strtotime(+1 month)) returns December 1st! This happens when you add 1 month to any day that doesn't exist in the next month. Quite annoying that you have to handle it like this: date(Y-m-d,strtotime(+1 month,strtotime(date(Y-m-1 -- Jeff Bearer, RCHE Webmaster,

Re: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Adam Voigt
Not a very good solution, but +4 weeks works. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 11:33, Jeff Bearer wrote: date(Y-m-d,strtotime(+1 month)) returns December 1st! This happens when you add 1 month to any day that doesn't exist in the next month. Quite annoying that you have

Re: [PHP] Is there an ISP that supports GD Library 2.0?

2002-10-31 Thread Evan Nemerson
Hurrican Electric does... here's a php -m from them: Running PHP 4.1.2 Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies [PHP Modules] xml standard session posix pcre mysql imap gd ftp db zlib [Zend Modules] Not Implemented I had to use pdflib once, and after talking to them for a

Re: [PHP] String to Ascii

2002-10-31 Thread Evan Nemerson
ebcdic2ascii() is an Apache-specific function which is available only on EBCDIC based operating systems (OS/390, BS2000). -php.net/ebcdic What kind of text??? Usually, the text is in ASCII? Do you want to convert to the actual numerical representation (ie A == 0x41)? If so, you can try

Re: [PHP] Stop At Return

2002-10-31 Thread Evan Nemerson
Try fgets()... fread() is binary safe, so it doesn't terminate at \x0d\x0a. fges, on the other hand, does. On Thursday 31 October 2002 08:41 am, Adam Voigt wrote: I'm running PHP in console mode, on a script which uses: $f = fopen(php://stdin,r); $data = fread($f,12); fclose($f); To get

Re: [PHP] Is there an ISP that supports GD Library 2.0?

2002-10-31 Thread evan
Sorry... hurricane electric- www.he.net On Thursday 31 October 2002 08:37 am, Evan Nemerson wrote: Hurrican Electric does... here's a php -m from them: Running PHP 4.1.2 Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies [PHP Modules] xml standard session posix pcre mysql

Re: [PHP] strtotime bug? end of the month.

2002-10-31 Thread 1LT John W. Holmes
date(Y-m-d,strtotime(+1 month)) returns December 1st! This happens when you add 1 month to any day that doesn't exist in the next month. Quite annoying that you have to handle it like this: date(Y-m-d,strtotime(+1 month,strtotime(date(Y-m-1 How about echo

Re: [PHP] date validation problem!

2002-10-31 Thread 1LT John W. Holmes
I am having some problem with date validation I am trying to validate the date in a form Field I had provided a text field for date, so have to expect all the different possible entry, When i tried with checkdate() method it needs the parametes in (int month,int date, int year). It make the

[PHP] Changing the key

2002-10-31 Thread John Meyer
How do I change the key in an array without having a duplicate key=$value? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing the key

2002-10-31 Thread 1LT John W. Holmes
How do I change the key in an array without having a duplicate key=$value? You could maybe use array_flip, change the value, then array_flip again. Or create your new key=value and unset() the old one. $array[$new_key] = $array[$old_key]; unset($array[$old_key]); ---John Holmes... -- PHP

RE: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Michael Hazelden
How about - and a little more complex ... $mydate = date(d)!=1 date(d,strtotime(+1 month))==1 ? date(Y-m-d,strtotime(+1 month)-86400) : date(Y-m-d,strtotime(+1 month)); to summarise - if you perform your +1 month and it creates a day of 1, but the current day isn't 1 - do the same calculation,

[PHP] How to set paper size for PDF?

2002-10-31 Thread Drew Kime
I can set the page size with pdf_begin_page(), but if I set it to legal size I still have to change the printer setting to select the correct paper. Otherwise it just scales the page down to fit letter paper. Someone has insisted they've seen PDFs that automatically select the proper paper,

[PHP] unlink function

2002-10-31 Thread Andres, Cyrille
Hello everyone, I upload some files on my server. If the number of lines of a file exceeds 159, I want to erase the file. Actually the unlink() function doesn't work, I have this error : Warning: Unlink failed (Permission denied) in D:\Data\WebSSL\tm\RFP\upload2.php on line 78. My code is :

Re: [PHP] unlink function

2002-10-31 Thread Adam Voigt
Unlink function isn't broken, you just don't have the correct rights set on the files, so PHP can't erase them, fix the permissions and that will take care of that error. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 12:46, Andres, Cyrille wrote: Hello everyone, I upload some files on

[PHP] stipslashes

2002-10-31 Thread ed
Is stripslashes($_POST); the same as stripslashes($_POST['var1']); stripslashes($_POST['var2']); stripslashes($_POST['var3']); Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread Brandon Orther
Hello, Does anyone know a way around all the ^M at the end of each line that my php file writes to on a linux box? Brandon Orther WebIntellects Design/Development Manager mailto:brandon;webintellects.com [EMAIL PROTECTED] 800-994-6364

Re: [PHP] unlink function

2002-10-31 Thread Evan Nemerson
It probably isn't supported in windows. Unlink is (in C) in the unistd.h file. It provides a way to remove a file based on the unlink syscall (which i sincerly doubt is available from Win32). Looking at php.net/unlink... yep fourth comment: unlink() function dosen't work with windows98, but it

[PHP] command to determine the end of a page?

2002-10-31 Thread Jeff Bluemel
is there a php command that could determine if the end of a page has been reached according to their print driver? I'm need to print out a report that could be multiple pages. I need to be able to put column headings page numbers. thanks, Jeff -- PHP General Mailing List

Re: [PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread Evan Nemerson
a what does your code look like??? What happens when you $fp = fopen(temp, a+); for ( $x=0 ; $x10 ; $x++ ) fputs($fp, $x\n); fclose($fp); ??? On Thursday 31 October 2002 09:44 am, Brandon Orther wrote: Hello, Does anyone know a way around all the ^M at the end of each line

Re: [PHP] command to determine the end of a page?

2002-10-31 Thread Adam Voigt
I tried to do what your talking about, never found a way, other then guessing where it would end with a lot of test runs. We ended up switching to writing out PDF's which is much more scientific where you can just check X,Y coordinates to see where you are on the page. Adam Voigt [EMAIL

Re: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Jeff Bearer
Actually I only needed date(Y-m) so my solution works fine, and I didn't consider the problems with hard coding 1 into it. But thanks for the replies. On Thu, 2002-10-31 at 11:33, Jeff Bearer wrote: date(Y-m-d,strtotime(+1 month)) returns December 1st! This happens when you add 1 month

Re: [PHP] command to determine the end of a page?

2002-10-31 Thread Evan Nemerson
Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... On Thursday 31 October 2002 10:08 am, Jeff Bluemel wrote: is there a php command that could determine if the end of a page has been

RE: [PHP] command to determine the end of a page?

2002-10-31 Thread Jay Blanchard
[snip] Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... [/snip] You may want to try the FPDF class ... http://www.fpdf.org HTH! Jay -- PHP General Mailing List (http://www.php.net/)

[PHP] required field

2002-10-31 Thread Edward Peloke
I know you can do it with javascript but is there a way in php or straight html to make a field in a form required? I would like to validate it on submit. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread Brandon Orther
The lines that are having a ^M are pulling from a TEXT field of a mysql database. The \n I am saving come out great. So I guess I found that my issue is that text fields I am pulling. Is there a way to make the new line in a text field the same as a \n when pulling from a database?

RE: [PHP] required field

2002-10-31 Thread Jay Blanchard
[snip] I know you can do it with javascript but is there a way in php or straight html to make a field in a form required? I would like to validate it on submit. [/snip] If server side validation works for you then you can check to see if the proper variable isset() and if not it can return to

RE: [PHP] command to determine the end of a page?

2002-10-31 Thread Carl Brandenburg
I am very unfamiliar with printing from PHP, but could you just guess how many lines per page you want to print and after that many lines issue a page break then print your header for the next page? Once you have it working you can tweak the line per page to where they fill a whole sheet of paper.

Re: [PHP] command to determine the end of a page?

2002-10-31 Thread Jeff Bluemel
only problem with that is I believe it is going to change depending on what printer the user has. what looks good on mine may not be quite right for the next person. Carl Brandenburg [EMAIL PROTECTED] wrote in message news:ADEKJJAMOOACODPFNFAPAECLCDAA.tongo;bossig.com... I am very unfamiliar

Re: [PHP] command to determine the end of a page?

2002-10-31 Thread Jeff Bluemel
actually Jay - I think inadvertently you answered my question better then I was really looking for. I originally wanted to do this with PDF, but the costs for pdflib were just too high, and I wouldn't find an open source/free solution. I will have to take a look at fpdf, and see if I can use it.

[PHP] mail()

2002-10-31 Thread Edward Peloke
I am attempting to use the mail function. I have set the smtp in the php.ini file to my smtp server but when I run the script, I get the error Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail function is called.

RE: [PHP] command to determine the end of a page?

2002-10-31 Thread Jay Blanchard
[snip] only problem with that is I believe it is going to change depending on what printer the user has. what looks good on mine may not be quite right for the next person. [/snip] The FPDF class (http://www.fpdf.org) has a SetAutoPageBreak() function which sets the page break at a certain

RE: [PHP] command to determine the end of a page?

2002-10-31 Thread R B
When you use, FPDF class (i think others pdf class too), you can setup the paper size in the document (pdf), but the printer don't care this paper size configuration and prints with the default paper size, and my printer don't have a custom size setup. Do you know who to print with custom

Re: [PHP] required field

2002-10-31 Thread 1LT John W. Holmes
I know you can do it with javascript but is there a way in php or straight html to make a field in a form required? I would like to validate it on submit. No, you just have to write some PHP code to verify that something was entered for the input and validate it based on whatever you think

Re: [PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread 1LT John W. Holmes
You're probably writing \r\n instead of just \n. ---John Holmes... - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 12:44 PM Subject: [PHP] ^M at the end of each line when I use php to write file Hello,

Re: [PHP] stipslashes

2002-10-31 Thread 1LT John W. Holmes
Is stripslashes($_POST); the same as stripslashes($_POST['var1']); stripslashes($_POST['var2']); stripslashes($_POST['var3']); Nope. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stipslashes

2002-10-31 Thread Marco Tabini
But you could do this: function f($value, $key) { $value = stripslashes ($value); } array_walk($_POST, 'f'); On Thu, 2002-10-31 at 13:41, 1LT John W. Holmes wrote: Is stripslashes($_POST); the same as stripslashes($_POST['var1']); stripslashes($_POST['var2']);

Re: [PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread Marek Kilimajer
Don't put it into the databese ;) Brandon Orther wrote: The lines that are having a ^M are pulling from a TEXT field of a mysql database. The \n I am saving come out great. So I guess I found that my issue is that text fields I am pulling. Is there a way to make the new line in a text field

[PHP] Form Question

2002-10-31 Thread PHP List
Hi, I am hopeing someone can help me with this. This is more of a javascript problem I suppose. I have a bunch of check boxes on a from that I have given a name of rgItems[] so I can access them as an array in php. But I can't find a way to clear all the checkboxes on the form at once. a reset

[PHP] number_format question

2002-10-31 Thread ed
I using number_format where I need to turn a number say 123456789 into 123,456,789 and it works just fine. I also need it to strip the decimal out if someone enters it. I.E 123456.00 would become 123,456 the command I'm using right now is: number_format($number, ,); If I enter 123456.00 it

RE: [PHP] number_format question

2002-10-31 Thread Jay Blanchard
[snip] I using number_format where I need to turn a number say 123456789 into 123,456,789 and it works just fine. I also need it to strip the decimal out if someone enters it. I.E 123456.00 would become 123,456 the command I'm using right now is: number_format($number, ,); If I enter 123456.00

RE: [PHP] number_format question

2002-10-31 Thread ed
If I try that I get a wrong parameter count error. Ed On Thu, 31 Oct 2002, Jay Blanchard wrote: [snip] I using number_format where I need to turn a number say 123456789 into 123,456,789 and it works just fine. I also need it to strip the decimal out if someone enters it. I.E 123456.00

RE: [PHP] number_format question

2002-10-31 Thread Jay Blanchard
[snip] If I try that I get a wrong parameter count error. [/snip] number_format ( float number [, int decimals [, string dec_point [, string thousands_sep]]]) number_format($number, 0, '', ','); Try that ... Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >