[PHP] PDF generation

2002-03-08 Thread Jean-Arthur Silve
Hello, I use PDF function to generate a PDF file. It works fine except I cannot generate a document with more than 10 pages ! For each page I use pdf_begin_page($pdf, 595, 842); I close each page with pdf_end_page Any ideas ?? jean-arthur

[PHP] (htaccess) not letting php to parse

2002-03-08 Thread Lauri Vain
Hi there, I would prefer to take away the possibility for PHP to parse my documents in the /uploaded/ directory. What has to be written into the .htaccess file for PHP *not* to parse *anything* therein (not .php, not .phtml, not .html, not .php3, not .blah... in a word -- NOTHING). It would

Re: [PHP] using a variable to a function call

2002-03-08 Thread Matt Williams
On Thursday 07 March 2002 19:21, Lars Torben Wilson wrote: // The direct way: $foo-{$test . '_foo'}(); Thanks Lars This was what I was looking for, just couldn't remember the syntax -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail() getenv() problems (after 4.1.2 update)...

2002-03-08 Thread Keith Waters
I'm having the same problem - I've been using the mail() command for quite some time now and it's been working 100% and executing immediately. Suddenly, this morning, it is taking about 60 seconds to send mail, delaying the display of the php web page by that same amount of time. I have

[PHP] Number of Vars in session

2002-03-08 Thread Beta
Can somebody tell me how many variables can i store in one session, or how many KB can one session resist -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] General

2002-03-08 Thread Gunther E. Biernat
Guys, I want to randomly pick one of a number of values, with given probability for each item, e.g. abc 50% def 25% ghi 25% The obvious way is to take a list where the 50% item is given twice and then randomly pick one, but what if I want to use a probability of 51.3% (and don't tell me of a

php-general Digest 8 Mar 2002 10:34:10 -0000 Issue 1214

2002-03-08 Thread php-general-digest-help
php-general Digest 8 Mar 2002 10:34:10 - Issue 1214 Topics (messages 87696 through 87749): Referer Is Empty 87696 by: Steven Walker 87726 by: Bogdan Stancescu Re: Rasmus, O'Reilly, Programming PHP 87697 by: Paul Roberts 87707 by: Erik Price 87717

[PHP] Date

2002-03-08 Thread Yogesh
Hi! can someone please tell me how to get the current date? Well, the thing is, i want to manage a subscription, so, in my database, i have a field called date_registered which will be assigned to the date that any user registers... so, i have to capture that date value which can vary

[PHP] Database abstraction layer oci

2002-03-08 Thread DrouetL
Hi everybody. I would like your opinion on the Database Abstraction Layer you prefer (I will use it with Oracle 8i) I know that there is Metabase end Pear DB What's your opinion on both or others ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Date

2002-03-08 Thread RIVES Sergio
Hi try the function getdate() check this page for examples : http://www.php.net/manual/en/function.getdate.php i hope it could help you. Yogesh a écrit : Hi! can someone please tell me how to get the current date? Well, the thing is, i want to manage a subscription, so, in my database,

[PHP] MySQL

2002-03-08 Thread Roman Duriancik
I have mysql table with 3 columns I need update all data in one rows that all data in this rows will be same but without space.How I do this ? Example before table: ID memodata 1 21 ab vbd 2 ds 1 c 23 3 .. after table: ID memo data 1 21

RE: [PHP] Re: User accounts

2002-03-08 Thread Tim Ward
Surely an empty string is == false. In fact I'd be interested if anyone can come up with a situation where !$x doesn't return the same as empty($x) i.e. can anyone get a value of $x such that !$x !== empty($x) Tim Ward Internet Chess www.chessish.com http://www.chessish.com

[PHP] Re: mail() getenv() problems (after 4.1.2 update)...

2002-03-08 Thread Paul
Keith, can you tell me if you're also having the same issue with getenv() as I am? I am glad it's not just me experiencing this issue, as no-none replied I was beginning to wonder! Paul Keith Waters [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm having the

Re: [PHP] (htaccess) not letting php to parse

2002-03-08 Thread Matt
- Original Message - From: Lauri Vain [EMAIL PROTECTED] Hi there, I would prefer to take away the possibility for PHP to parse my documents in the /uploaded/ directory. Why don't you append someother suffix to the file when it's uploaded? -- PHP General Mailing List

Re: [PHP] Date

2002-03-08 Thread Matt
- Original Message - From: Yogesh [EMAIL PROTECTED] Hi! can someone please tell me how to get the current date? See: http://www.php.net/manual/en/function.mktime.php Now, how can i perform addition with the date so that i mail that user 3 months after the date he registered that his

[PHP] PHP Server platform

2002-03-08 Thread Dani
Hi, I'm new to server issue, I would like to know what is the difference between Linux and Unix? If I want to setup a server which one is the most commond one and good one? Lunix or Unix or Apache? sorry if this sounds like a silly question, but I don't know about it and I would like to

[PHP] Query bug, what is wrong?

2002-03-08 Thread Daniel F. Castro
?php $qname = $HTTP_POST_VARS['ct_nome']; $qkey = $HTTP_POST_VARS['ct_kw']; $qdia = $HTTP_POST_VARS['ct_dia']; $qmes = $HTTP_POST_VARS['ct_mes']; $qano = $HTTP_POST_VARS['ct_ano']; $qautor = $HTTP_POST_VARS['ct_autor']; $qeng =

Re: [PHP] Query bug, what is wrong?

2002-03-08 Thread Jason Wong
On Friday 08 March 2002 21:29, Daniel F. Castro wrote: ?php $qname = $HTTP_POST_VARS['ct_nome']; $qkey = $HTTP_POST_VARS['ct_kw']; $qdia = $HTTP_POST_VARS['ct_dia']; $qmes = $HTTP_POST_VARS['ct_mes']; [snip] What's wrong with it? What was the

Re: [PHP] Query bug, what is wrong?

2002-03-08 Thread Daniel F. Castro
The error msg is You have an error in your SQL syntax near 'ARQUIVO,NULL)' at line 1 Daniel Ferreira Castro Jason Wong [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED]... On Friday 08 March 2002 21:29, Daniel F. Castro wrote: ?php $qname = $HTTP_POST_VARS['ct_nome'];

Re: [PHP] Query bug, what is wrong?

2002-03-08 Thread Jason Wong
On Friday 08 March 2002 21:56, you wrote: The error msg is You have an error in your SQL syntax near 'ARQUIVO,NULL)' at line 1 Try entering that query into mysql at the command line. Does it work? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Mark's Dental-Chair Discovery:

[PHP] Re: PHP Server platform

2002-03-08 Thread J Smith
Linux is a form of Unix, one that is available free, as in it costs nothing, you are free to copy it and use it on as many computers as you like, and you can, if you are so inclined, make changes to the operating system as the full source code for the kernel is available to you. There are

RE: [PHP] Database abstraction layer oci

2002-03-08 Thread Andrew Hill
I suggest simply using ODBC. Best regards, Andrew Hill Director of Technology Evangelism http://www.openlinksw.com/virtuoso/whatis.htm OpenLink Virtuoso Internet Data Integration Server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08,

[PHP] Configuring /etc/syslog.conf to redirect PHP errors to a separate file

2002-03-08 Thread Michael Sims
I hope this isn't too obvious of a question, but I've been looking around for the past hour and can't seem to find an answer to this. Currently I have set the error_log = syslog directive in my php.ini file (this is on a Redhat 7.2 machine running PHP 4.1.2, and the syslog deamon that comes

[PHP] opendir problem on solaris

2002-03-08 Thread Nick selby
Hi, I've got a script that is installed on a Solaris machine that is having difficulties, and I'm wondering if anyone can help. The script is trying to access and read files within a directory, pull some at random and put them in a webpage. The path is correct, the directory is set to 755

RE: [PHP] Database Error

2002-03-08 Thread Robert V. Zwink
Check syntax for mysql_query() function. You don't need to pass the database name. See here: http://www.php.net/manual/en/function.mysql-query.php You're query method then becomes: function query($query) { $connection = mysql_connect($this-hostname, $this-user, $this-pass) or die (Cannot

RE: [PHP] Query bug, what is wrong?

2002-03-08 Thread Robert V. Zwink
You probably need to wrap the strings you are trying to input with quotation marks. Try modifying this line (add \) : $query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES (\$qname\,\$qdes\,\$qFILE\,'ok'); Robert Zwink http://www.zwink.net/daid.php -Original Message-

[PHP] Changing an XML-file

2002-03-08 Thread Léon Hoeneveld
I want to use XML-files not just for reading but also for writing. In fact I want to update values in an XML-file as if they were database tables. Does anyone have an example or link for that? Regards, Léon Hoeneveld -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Date

2002-03-08 Thread Pablo
On 3/8/02 4:55 AM, Yogesh ([EMAIL PROTECTED]) wrote: Now, how can i perform addition with the date so that i mail that user 3 months after the date he registered that his registration has expired? Are you using MySQL? If so, you may find the DATE_ADD() function useful:

Re: [PHP] A silly question. :P

2002-03-08 Thread Billy S Halsey
Greetings Sean, The ! in front of strcasecmp means, if strcasecmp returns zero. If you look at the reference manual for strcasecmp and strcmp, you'll see that it returns zero if the two strings are equivalent -- somewhat of a strange return value, but (1) that's how C/C++ do it; and (2) it

[PHP] how to calculate frequency of words in array?

2002-03-08 Thread Simon De Deyne
Does anybody has a clever way to summarize the number of different words (with multiple occurences) from an array into an array with all the different words and the times they occured? Thanks a lot! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] how to calculate frequency of words in array?

2002-03-08 Thread Andrey Hristov
array_count_values() Best regards, Andrey Hristov On Friday 08 March 2002 04:45 pm, you wrote: Does anybody has a clever way to summarize the number of different words (with multiple occurences) from an array into an array with all the different words and the times they occured? Thanks a

RE: [PHP] MySQL

2002-03-08 Thread Robert V. Zwink
How about: UPDATE table SET data = REPLACE(data, , ) For more information about the UPDATE query: http://www.mysql.com/doc/U/P/UPDATE.html For more information about MySQL string functions: http://www.mysql.com/doc/S/t/String_functions.html Robert Zwink http://www.zwink.net/daid.php

[PHP] TEXT BOX + USER

2002-03-08 Thread Dani
Hi, I have got a webiste where a user can update data using a text box. the user usualy use ENTER to create new lines or paragraphs. I want to save the data enter by user into MySQL database INCLUDING the new paragraph so that when I display the data on a webpage, the paragraph is still there.

[PHP] BIG PROBLEm with headers

2002-03-08 Thread Krzysztof Kocjan
Hi I have problem with downloading any file from my site using IE 5.5 and HTTPS protocol. My php script works fine with Netscape 6.2 and HTTP/HTTPS protocols and with IE 5.5 but only with HTTP protocol. I can't find problem. I use Apache 1.3.20, PHP 4.0.6, mod_ssl 2.8.4 and OpenSSL 0.9.6 on

RE: [PHP] Alphabet

2002-03-08 Thread Robert V. Zwink
What could be simpler than: $range = implode( , range('A', 'Z')); echo $range; result: A B C D . . . Am I missing something here? All this loop, chr() ord() stuff going on. . . Robert Zwink http://www.zwink.net/daid.php -Original Message- From: Robert V. Zwink [mailto:[EMAIL

Re: [PHP] A silly question. :P

2002-03-08 Thread Erik Price
On Thursday, March 7, 2002, at 11:50 PM, GENESiS DESiGNS wrote: I would like to know why you put this character (!) in front of this: Nearly unanimously to all programming languages, the bang (!) symbol indicates not or negative or inverse or not true. So you use it when you want to

[PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Vlad Kulchitski
Hi guys, I know it's a wrong place to ask about this, but I am sure someone here faced the same problem. I am trying to get the site to look consistent in Netscape Navigator and it's giving me hard times. Either tables or/and cell background doesn't show up or spacing between two tables is

Re: [PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Richard S. Crawford
A URL would be helpful On Fri, 2002-03-08 at 07:44, Vlad Kulchitski wrote: Hi guys, I know it's a wrong place to ask about this, but I am sure someone here faced the same problem. I am trying to get the site to look consistent in Netscape Navigator and it's giving me hard times.

[PHP] Replacing words

2002-03-08 Thread Martin Thoma
Hello! I use $txt = preg_replace(#((?php .*?/A)|$search)#se, '\2==\1? \1:$replace', $txt); to replace some text in $txt. The problem: Parts of words are replaced, too. How can I make preg_replace replace only words, which means, that the word is followed by space . , -, but not by other

RE: [PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Darren Gamble
Good day, A 10-second search on Google comes up with: http://www.omninet.net.au/~kg/docs/demyst9.html Personally, I can tell you that the biggest difference between the two browsers is the way that Netscape 4.X uses styles. In particular, it generally doesn't inherit styles from other

Re: [PHP] Replacing words

2002-03-08 Thread Andrey Hristov
Read the docs. Look at the assertion part. ?= and the opposite of it. Best regards, Andrey Hristov On Friday 08 March 2002 05:51 pm, you wrote: Hello! I use $txt = preg_replace(#((?php .*?/A)|$search)#se, '\2==\1? \1:$replace', $txt); to replace some text in $txt. The problem: Parts of

[PHP] finding include path

2002-03-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Is there an easy way to determine the include path as set in php.ini *without* actually looking at the php.ini file? Many thanks - -- - --- www.explodingnet.com |Projects, Forums

Re: [PHP] finding include path

2002-03-08 Thread Jason Wong
On Saturday 09 March 2002 00:06, Nick Wilson wrote: Hi Is there an easy way to determine the include path as set in php.ini *without* actually looking at the php.ini file? phpinfo(); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* The control of the production of wealth is

Re: [PHP] Configuring /etc/syslog.conf to redirect PHP errors to a separate file

2002-03-08 Thread Jason Wong
On Friday 08 March 2002 22:13, Michael Sims wrote: I hope this isn't too obvious of a question, but I've been looking around for the past hour and can't seem to find an answer to this. Currently I have set the error_log = syslog directive in my php.ini file (this is on a Redhat 7.2 machine

RE: [PHP] finding include path

2002-03-08 Thread Daniel Kushner
ini_get('include_path') -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 11:06 AM To: php-general Subject: [PHP] finding include path -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Is there an easy way to determine the include

[PHP] Re: PHP Mail() Question

2002-03-08 Thread LaserJetter
Its probably a problem with your mail server software not being able to send email out. I think you need t tell it to connect to another email server outside of your network Mindless Bot [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I hope maybe you

[PHP] Symbolic Links, Includes, and Relative Paths

2002-03-08 Thread Jonathan Hilgeman
I'm on a red hat system, and I've soft-linked two directories: /www/dir1/subdir /www/dir2/subdir -- /www/dir1/subdir Now, inside subdir is a file that tries to include(../info.php); which prints out some information about the file paths and my database stuff. So there's: /www/dir1/info.php

[PHP] Does $HTTP_REFERER show where you was last time or where the user clicked on a link to mine?

2002-03-08 Thread SED
Hi, Does $HTTP_REFERER show where you was last time or where the user clicked on a link to mine? Regards, SED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bug with session or normal procedure???

2002-03-08 Thread Rodrigo Peres
Hi list, I'm developing an CMS, and I started a session with PHP 4.1.1 With I use this in javascript alert(document.forms[0].elements[0].name) it returns PHPSESSID and if i use alert(document.forms[0].elements[0].value), it returns a number. It's a bug??? I'm using IE5 in macos 9.2.2 Thank's

[PHP] number_format

2002-03-08 Thread Scott St. John
Hi everyone, I am trying to format a number for a report, the one consistant thing is the three decimal places. But I need to strip them, then fill in zero's from the left. So, if the number coming in is 8.000 I need to convert to 00800, 11.070 would convert to 01107. I have tried a

RE: [PHP] number_format

2002-03-08 Thread Alastair Battrick
why not multiply the number by 1000 and then use str_pad($in,6,0,STR_PAD_LEFT) Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 08 March 2002 17:02 To: [EMAIL PROTECTED]

Re: [PHP] Configuring /etc/syslog.conf to redirect PHP errors to a separate file

2002-03-08 Thread Michael Sims
At 12:07 AM 3/9/2002 +0800, Jason Wong wrote: I'd love to be able to send any errors from PHP to a completely separate file, say something like /var/log/php_errors. Does anyone know of a way to do this? I gather it has to do with using /etc/syslog.conf to redirect messages from a

[PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Hi. I'm used to a function in ASP which is HTMLBuffer. This allows the script to send HTML code to the browser while the script is running. I've seen that PHP scripts don't send any HTML until the script finishes. I'd really like to see what's happening in my script while it is being executed.

[PHP] Bank of America eStores

2002-03-08 Thread Shu Chow
Has anyone had any experience with Bank of America's eStore credit card processing service? A client of mine would like to use BofA because that's their bank, and it's very affordable. Specifically, I need clarification on how the Settlement Post works, if it can be automated right after

[PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Hi. I'm used to a function in ASP which is HTMLBuffer. This allows the script to send HTML code to the browser while the script is running. I've seen that PHP scripts don't send any HTML until the script finishes. I'd really like to see what's happening in my script while it is being executed.

Re: [PHP] TEXT BOX + USER

2002-03-08 Thread Richard Baskett
Take a look at the 'nl2br' function. This will help you do what you want to do ;) Rick Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley Hi, I

[PHP] Right way to do the MySQL thing

2002-03-08 Thread David Johansen
I was just wondering what the right way to do the MySQL connection thing is. Am I supposed to do it everytime through in the php code, should I make it a session variable, or is a global variable the way to go? Right now this is the code that I have if (empty($_SESSION['db'])) {

Re: [PHP] BIG PROBLEm with headers

2002-03-08 Thread Analysis Solutions
Hi Krzysiek: I have problem with downloading any file from my site using IE 5.5 and HTTPS protocol. My php script works fine with Netscape 6.2 and HTTP/HTTPS protocols and with IE 5.5 but only with HTTP protocol. I suspect your script has nothing to do with it. A while back, I had

[PHP] Again Session

2002-03-08 Thread Sven Jacobs
Hey I have 2 values stored in my session, how do I pull them back out ?

Re: [PHP] Re: dealing with # in urls

2002-03-08 Thread Mark
On Thu, 07 Mar 2002 23:33:00 -0800, CC Zona wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Mark) wrote: in php.ini there is a variable called arg separator.input that looks like it can help but when I add the line: arg separator.input = # I still get $id = 0#top Did you restart

Re: [PHP] BIG PROBLEm with headers

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 01:06 PM, Analysis Solutions wrote: I have problem with downloading any file from my site using IE 5.5 and HTTPS protocol. My php script works fine with Netscape 6.2 and HTTP/HTTPS protocols and with IE 5.5 but only with HTTP protocol. I suspect your script

[PHP] session_id database

2002-03-08 Thread mailing list
I am new to PHP so please excuse my ignorance. I want to manage and create session id's for my shopping cart with a MySQL database. I have a database with a session_id column that is auto-increminting. Is there any example of anyone using a mysql database to manage session_id's? Regards,

Re: [PHP] Again Session

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 01:15 PM, Sven Jacobs wrote: Hey I have 2 values stored in my session, how do I pull them back out ? $_SESSION['name_of_first_value'] $_SESSION['name_of_second_value'] in PHP 4.1 or greater. And hay is for horses. Erik Erik Price Web Developer

Re: [PHP] session_id database

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 01:12 PM, mailing list wrote: I am new to PHP so please excuse my ignorance. I want to manage and create session id's for my shopping cart with a MySQL database. I have a database with a session_id column that is auto-increminting. Is there any example

Re: [PHP] HTML Buffer

2002-03-08 Thread Andrew Brampton
flush() outputs everything in the buffer, and I think U can turn buffering off completly, but I'm too lazy to open my PHP chm help file ;-) andrew - Original Message - From: Mario Montoya Martínez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 5:48 PM Subject: [PHP]

RE: [PHP] number_format

2002-03-08 Thread Scott St. John
Ok, I think I got it using this: $anum = number_format($fie31,2); $anum = str_replace($replace_char, $replace_strings, $anum); On Fri, 8 Mar 2002, Alastair Battrick wrote: why not multiply the number by 1000 and then use str_pad($in,6,0,STR_PAD_LEFT) Alastair Battrick Senior Developer

[PHP] just a link in php email

2002-03-08 Thread Andrea Caldwell
Hi All, I've been researching the mail() function and from what I've read, some people embed HTML into their mail() without using classes. All I need to do is add a link in an email... can anyone advise how I would do this? Which headers would I need? I was using: $headers = MIME-Version:

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-08 Thread DL Neil
Hi Erik, On Wednesday, March 6, 2002, at 05:11 AM, DL Neil wrote: My 'rules' are simple: If the date/time is for processing, keep it as a timestamp (consider which type). If the timestamp is being used to keep track of RDBMS activity, then use a TIMESTAMP column. By RDBMS

[PHP] php CLI

2002-03-08 Thread matthew clay shultz
hi, when i run script from the CLI, it doens't recognize the oracle library functions. why is tthis and what can i do aobut it? thanks everyone! matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Right way to do the MySQL thing

2002-03-08 Thread George Whiffen
The simplest way to do the connection thing is, as is often the case in php, to do nothing i.e. forget it. If you don't specify a connect id MySQL happily uses the last one opened, so the only thing you need do with the return from mysql_connect is check it for errors i.e. if

RE: [PHP] php CLI

2002-03-08 Thread Hunter, Ray
What type of system are you running this on? Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: matthew clay shultz [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 12:38 PM To: [EMAIL PROTECTED] Subject: [PHP] php CLI hi, when i run script from the

RE: [PHP] php CLI

2002-03-08 Thread matthew clay shultz
its a solaris box, with apache and oracle. its got php4.0.4 on it right now, about to upgrade i believe.. On Fri, 8 Mar 2002, Hunter, Ray wrote: What type of system are you running this on? Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: matthew

Re: [PHP] A good PHP Shop

2002-03-08 Thread George Whiffen
Here's a mini-checklist on tricky bits, some of which are as much about payment as much as cart: 1. Delivery Packing especially pricing on composite loads, destination, different speeds. 2. Sales taxes. 3. Quantity discounts, discount vouchers, reusable vouchers, loyalty cards. 4. Affiliate

[PHP] cal_days_in_month()

2002-03-08 Thread CB
Hi! I get an errormessage when trying to use cal_days_in_month(). Fatal error: Call to undefined function: cal_days_in_month() The server is runnig PHP 4.1.2, Apache 1.3.23 on some kind of Linux dist. When I run the same file on my laptop it works. The laptop is running PHP 4.1.1, Apache

[PHP] Re: uploading images

2002-03-08 Thread George Whiffen
Filippo Veneri wrote: When uploading image files to my powerpc linux box (derived from redhat 7.1) running apache + php4.0.4pl1 something wierd happen. Images get corrupted by (IMHO) php itself. It adds the following 2 lines at the top of the file: Content-Type: image/jpeg^M ^M

[PHP] Re: User accounts

2002-03-08 Thread George Whiffen
David Johansen wrote: I'm new to this php thing and I would like to set up a web page were the users can login and edit their preferences and all that stuff. I have the basic login stuff worked out and I was passing the username and password as a hidden input in the form, but then the

[PHP] Re: Help needed with speading up a function.

2002-03-08 Thread George Whiffen
William, You need a mathematician not a computer programmer. This is classic number theory which must have been very well explored. I have a very vague recollection that there may be partial proofs that there are no primes between x and y or no more than n primes between w and z for low ranges

Re: [PHP] HTML Buffer

2002-03-08 Thread Anas Mughal
Are you interested in remote debugging? --- Mario Montoya Martínez [EMAIL PROTECTED] wrote: Hi. I'm used to a function in ASP which is HTMLBuffer. This allows the script to send HTML code to the browser while the script is running. I've seen that PHP scripts don't send any HTML until

[PHP] Graphing Question

2002-03-08 Thread Chris Seymour
Hi All, Does anyone know of a graphing package that will allow a line graph with labels on the data points? Thanks in advance. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] number_format

2002-03-08 Thread Anas Mughal
Look into printf and sprintf. --- Scott St. John [EMAIL PROTECTED] wrote: Hi everyone, I am trying to format a number for a report, the one consistant thing is the three decimal places. But I need to strip them, then fill in zero's from the left. So, if the number coming in is

[PHP] patch installation

2002-03-08 Thread abw
I have downloaded the patch for the security bug found with the file uploading. One server has php 4.0.6 and the other has 4.1.1, but my problem is that the patch does not have any instructions. I was going to use the patch command, but I don't know what parameters to use. This question was

Re: [PHP] Re: Help needed with speading up a function.

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 04:27 PM, George Whiffen wrote: Hope you are/are not trying to crack ciphers! George, you know way more about math than I do, but I do know that trying to crack them is a good way to make sure they work, or make them stronger! Erik (who thinks his pay rate

Re: [PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Well, yes. But I think I may still need to output things to the browser while the script is runing in the final version. Thanks Andrew Brampton, thanks Billi Halsey, thanks Anas Mughal. Anas Mughal ha escrito: Are you interested in remote debugging? --- Mario Montoya Martínez [EMAIL

Re: [PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Well, yes. But I think I may still need to output things to the browser while the script is runing in the final version. Thanks Andrew Brampton, thanks Billi Halsey, thanks Anas Mughal. Anas Mughal ha escrito: Are you interested in remote debugging? --- Mario Montoya Martínez [EMAIL

Re: [PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Well, yes. But I think I may still need to output things to the browser while the script is runing in the final version. Thanks Andrew Brampton, thanks Billi Halsey, thanks Anas Mughal. Anas Mughal ha escrito: Are you interested in remote debugging? --- Mario Montoya Martínez [EMAIL

Re: [PHP] HTML Buffer

2002-03-08 Thread Mario Montoya Martínez
Well, yes. But I think I may still need to output things to the browser while the script is runing in the final version. Thanks Andrew Brampton, thanks Billi Halsey, thanks Anas Mughal. Anas Mughal ha escrito: Are you interested in remote debugging? --- Mario Montoya Martínez [EMAIL

[PHP] Re: HTML Buffer

2002-03-08 Thread Philip Hallstrom
Take a look at flush(). It might help... it might not if the web server doesn't want to send the data until it's buffers are full... at least that's my undertanding. On Fri, 8 Mar 2002, Mario Montoya [iso-8859-1] Martínez wrote: Well, yes. But I think I may still need to output things to the

[PHP] sessions and netscape 6.2

2002-03-08 Thread Jan Grafström
Hi! I am building a shop and on first page I set a sessions var $_SESSION['myvar']=myword; On the same page I have links like, a href=product1.php??php echo SID?items=1id=? echo $prodnr[0]?Put in the basket/a and those works normal in navigator 4.7 and IE 6 but in Netscape 6.2 the links open in

[PHP] Problem with MSSQL

2002-03-08 Thread pong-TC
Hello All I just reinstalled PHP 4.1.1 on IIS5 (win2000) over the old version by using the installer. I installed as a cgi. Then, I got problems with mssql_connect function. It doesn't work as it did before. Here is the error message: Fatal error: Call to undefined function: mssql_connect()

Re: [PHP] Problem with MSSQL

2002-03-08 Thread Joshua Hoover
Check your php.ini file in your C:\WINNT directory. Make sure that you have php_mssql.dll extension uncommented in your php.ini file. Then check to see where the php.ini is looking for the extensions. If you installed PHP in C:\PHP, then the line for extension_dir in your php.ini file would

[PHP] Replacing Sablotron backend with libxslt (gnome) backend for XSLT extension

2002-03-08 Thread Robert
After reading /ext/xslt/README.XSLT-BACKENDS in the source, specifically snip Config.m4 --- The XSLT extension's magic really occurs in the config.m4 file. Here you must add a couple of things in order for your

[PHP] Where to get freetype2.x precompiled for windows 2000

2002-03-08 Thread Andy
Hi guys, does anybody know where to get freetype 2 for win2k as a binary? I did try it on freetype.org and through google but all links seem to lead to nothing. Maybe someone has the .dll already installed on his machine. If so, please send me a copy I would appreciate it. Thanx for any help

[PHP] Re: Graphing Question

2002-03-08 Thread Michael Kimsal
Chris Seymour wrote: Hi All, Does anyone know of a graphing package that will allow a line graph with labels on the data points? Thanks in advance. Chris Try JPGRAPH at: http://www.aditus.nu/jpgraph/ Michael Kimsal http://www.phphelpdesk.com Taking the ? out of ?php 734-480-9961

Re: [PHP] Query bug, what is wrong?

2002-03-08 Thread hugh danaher
I think it should be single quote marks around the variables like you've used around the ok: $query = INSERT INTO projeto (nome,setor,arquivo,status) VALUES ('$qname','$qdes','$qFILE','ok'); Hope this helps, Hugh - Original Message - From: Robert V. Zwink [EMAIL PROTECTED] To: Daniel

[PHP] Re: session_id database

2002-03-08 Thread Andy
Hi Adrian, there is an excellent article on that by: * * PHP4 DBM Session Handler * Version 1.00 * by Ying Zhang ([EMAIL PROTECTED]) Describing all you need. Check out www.phpbuilder.com or weberdev.com and search for

[PHP] Finding variable names in strings, and replacing with values?

2002-03-08 Thread Nick Richardson
Been working on this one for quite awhile, and it's probably a fairly easy solution, but i can't find it... so thought i would ask. I'm opening a file, and going through it line by line. I need for find places where the line contains %value% and replace it with $value. So if the line says body

[PHP] mysql_connect() help

2002-03-08 Thread Ellis M. Mendez-Hidaka
Greetings, I'm a newbie with apache and PHP. I was able to setup apache, php and mysql in RH Linux and have my website running. I was trying to test the BD connectivity capabilities of PHP but I keep receiving this error message: { Warning: Can't connect to local MySQL server through socket

Re: [PHP] mysql_connect() help

2002-03-08 Thread ruler
What I did is made a symlink from /var/run/mysql.sock to /tmp/mysql.sock example: ln -s /var/run/mysql.sock /tmp/mysql.sock Or if /var/run/mysql.sock doesn't exist, find / -name mysql.sock Then symlink that to /tmp Hope that helps. - Original Message - From: Ellis M. Mendez-Hidaka

Re: [PHP] patch installation

2002-03-08 Thread abw
I guess that would have been nice! Solaris 8 x86 with Apache 1.3.22. Both servers use the same operating system and web server. what type of system are you running. A little bit more information would be helpfull. Jim Lucas www.bend.com - Original Message - From: abw [EMAIL

[PHP] Checking to see what value error_reporting is set at?

2002-03-08 Thread eric.coleman
Is it possible to return what error_reporting is set at currently? If not, think they would be able to throw it into the newest build of php? Thanks, Eric

  1   2   >