Re: [PHP] new mail() function

2001-02-03 Thread Richard Lynch
I recently downloaded the ArGoSoft mail server that someone on this list once suggested when trying to use the mail command on a window's system running php. Another option for a low-traffic mail system might be to download the Pegasus email client, and use its command-line interface for

Re: [PHP] Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)

2001-02-03 Thread Richard Lynch
in my PHP.ini (which stays under c:\WINNT) I have include_path = "P:\includes; " ; UNIX: "/path1:/path2" Windows: "\path1;\path2" doc_root = ; the root of the php pages, used only if nonempty under "P:\includes" are PHPLIB and some few scripts that I need to auto_prepend

Re: [PHP] Performance hit with certain apache configs?

2001-02-03 Thread Richard Lynch
I'm wondering if anyone has any info regarding any performance hits taken as a result of changing the default type to application/x-httpd-php in Apache's httpd.conf, or if there are any _other_ implications of doing this. Any info would be appreciated, as would a cc: cuz I'm not subbed at

Re: [PHP] Java variables - PHP varialbles

2001-02-03 Thread Richard Lynch
Can someone tell me how we can assign the content of a PHP variable to a Java variables in a script (and vice versa). PHP - JavaScript is easy: ?php echo "\nSCRIPT LANGUAGE=JavaScript\n"; echo "document.foo = $foo;\n"; echo "\n/SCRIPT\n"; ? The other way around is a bit

Re: [PHP] Email Attachment

2001-02-03 Thread Richard Lynch
I know how to send a standard email, but I`m having a bit of trouble adding an attachment, can anyone put me right? this is my code which works fine... $subject="Hi"; $email="[EMAIL PROTECTED]"; $from="[EMAIL PROTECTED]"; $message="Hi this is me testing my PHP mail script";

Re: [PHP] Transitioning from php3 to php4

2001-02-03 Thread Richard Lynch
I have several sites that need to be upgraded from php3 to php4. In order to test compliance of the php3 code on php4, I need to know exactly which functions have different usage / results on php4. I know that include() and rand() work differently, any others? Does anyone know of an

Re: [PHP] rephrasing: start session in frame-index, continue in pages

2001-02-03 Thread Richard Lynch
index.php: ? session_start read in $array from csv file ? frameset... menu content and now: how can i continue the session in the content pages? In each content page, add: ?php session_start(); ? You may wish to session_register('array'); in your index.php page if you're trying

Re: [PHP] Dnloading FDF docs / acrobat integration

2001-02-03 Thread Richard Lynch
The problem is: When a user clicks on the link, the fdf document either 1) is displayed in plain text (despite the proper header being sent) or 2) acrobat reader opens but displays an error saying the file can not be found. I can right click on the link, and choose to save to disk. Once I

Re: [PHP] PHP a lightweight language?

2001-02-03 Thread Richard Lynch
I'm interested in the proposition made recently on this list that PHP is somehow a 'lightweight' language that some people don't take seriously. I 'lightweight' is good :-) PHP has less "clutter" than, say, Perl, where there are so many functions and overloaded symbols that no two Perl

Re: [PHP] Mysql Question

2001-02-03 Thread Richard Lynch
Can i know the date of the last table update in a Mysql database? You can add a field named 'modified' that is of type 'timestamp' and use: select max(modified) from blah; I don't know of any documented way to check the last modified time for a whole table. -- Visit the Zend Store at

Re: [PHP] Zend Debug Server

2001-02-03 Thread Richard Lynch
Does anybody know how should I recognise if Zend Debug Server is running ??? Either ?php phpinfo();? says something like "...with Zend DebugServer..." or it doesn't. It's in the Zend engine section next to the Zend logo. If it's not running, check your httpd logs to see why. -- Visit the

Re: [PHP] pg_Exec: Warning: 1 is not a valid PostgreSQL link resource.

2001-02-03 Thread Richard Lynch
We have a host (host A) with PostgreSQL 7.0.3. and PHP 4.0.4 under Red Hat We have another host (host B) with PHP 4.0.3pl1 under Debian We are having an incomprehensible error with this code when the content of $sql is and "update" ... $resultado=pg_Exec($conexion,$sql); ... 1)

Re: [PHP] Probem with headers. HELP ME!!!

2001-02-03 Thread Richard Lynch
I want to make a php script that outputs a file in a secure dir (outside of web root), this scripts checks the permisions of the user to download the file, i use phplib, and my probmem is when i call it from a browser the filename to save is set always to test.php, can i send a header to

Re: [PHP] fucntion if not working bug error

2001-02-03 Thread Richard Lynch
I think I found a bug with the pdf_open_image_file() function. I am running php4.0.4 pl1 with pdflib 3.03. I cannot open any .gif or .tif files. Tell more about the potential bug and your setup and/or search in http://bugs.php.net for similar bugs. As it is, nobody can help you too much...

Re: [PHP] exec() won't start SAS job

2001-02-03 Thread Richard Lynch
I'm unable to get exec() to start a small SAS job on my RH 6.2 box. (I've got file permissions set correctly) The code: File permissions of what for whom? $command="sas -noterminal -log $SASProgDir$JobName.log ". " -print $SASProgDir$JobName.lst $SASProgDir$JobName.sas";

Re: [PHP] i want permanently connect in imap_open()

2001-02-03 Thread Richard Lynch
i open mailbox with imap_open when i move next page, mailbox close. and i must open mailbox again. i want connection contiue, even if i move next page Don't think you can. HTTP is inherently stateless... Even if you could, when would the mailbox close? You can't rely on your web-surfers

Re: [PHP] Immediately write me!! Row size in mysql

2001-02-03 Thread Richard Lynch
Write me immediately how I find a row size in mysql table if i create a table in this manner create table size(f1 int,f2 date ,f3 varchar(25),f4 varchar(100), f5 text , f6 int, f7 tinyint(1), f8 tinyint(1) ,f9 tinyint(3), f10 varchar(25)) You read the MySQL manual and add up the numbers?...

Re: [PHP] apache/SUexec/PHP

2001-02-03 Thread Richard Lynch
I noticed today that PHP apps run as the WWW user, not the User/Group specified in httpd.conf for virtualhosts. (Module version of PHP running in Apache 1.3.17). Is there any way to get the PHP module to assume the identity similar to the SUexec module will do for CGI? Not in Apache 1.3.x

Re: [PHP] Select list with PHP

2001-02-03 Thread Richard Lynch
while ($row = mysql_fetch_array($sql_result)) { echo"trtd"; echo $row["paint"]; echo"/tdtd"; echo $row["bucket"]; echo"/tdtd"; echo"form action=\"http://www.\" method=\"POST\""; $Color = $row["Color"]; if ($Color == $Color) { Here is one problem: You can't use $Color for the current

Re: [PHP] sessions without cookies

2001-02-03 Thread Richard Lynch
How can you get something like: header ("Location: $PHP_SELF?"); to redirect with the sessid in the url? In my tests, it redirects, but does not append the sessid. I have compiled with --enable-trans-sid. Transparent sid is working, I can use it on links like: A HREF="?php echo

Re: [PHP] php-nuke?

2001-02-03 Thread Richard Lynch
What is php-nuke? It's a "Template" system written in PHP where you kinda click-and-drag to build a PHP page. How could I make a php-page execute something (itself?) without entering the site... it starts evry hour?! The most resource-friendly way is to compile PHP as a CGI, and then use

Re: [PHP] Oracle sessions

2001-02-03 Thread Richard Lynch
Hi, My oracle sessions are getting full all the time... I use a OCILogoff at the end of my script... What could be the problem. I dont use a persistent logon. Wild Guess: You have transactions that are not getting committed nor rolled back? -- Visit the Zend Store at

Re: [PHP] my bugaboo.

2001-02-03 Thread Richard Lynch
I have a routine where we input text to fields. When there is an apostrophe it handles it correctly. When the form is brought back for editing, the field values show up in the input fields, with all apostrophes intact, just as it should be. When I upload this script to my isp, it doesn't

Re: [PHP] Bah, XML

2001-02-03 Thread Andrew Golovin
Hello, szii! Sunday, February 04, 2001, 04:48:52, you wrote: ssc Why is this failing? ssc If I comment out the xml_set_element_handler() call, it's okay... ssc If I comment out the xml_parse() call, it's okay... ssc If I leave both of them in...it core dumps. i meet same problem with

[PHP] Sydney Australia PHP meet talk brag See phpsydney.com for details

2001-02-03 Thread PHP Sydney
What more could you want. Sydney's glorious weather. PHP's magnificent scripting language. The keenest PHP users. All at one meeting. February 20. Willoughby. Talk about your experience. Feb 20 will feature PHP3 to PHP4 and e-commerce. Brag about your successes. Brag about your failures, Brag

Re: [PHP] Replacing A Word in HTML page

2001-02-03 Thread Steve Werby
"phpLover" [EMAIL PROTECTED] wrote: I want to read an HTML page from another site and replace certain characters with capital letters and show them in another dynamically generated web page on my site. I know this is possible in Perl, but can this be done in PHP? If yes, then how? It's

[PHP] % operator

2001-02-03 Thread Dhaval Desai
Hi! what is the use of % Is it called modulo..what is it's use in PHP.? Thanx! Dhaval Desai __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List

<    1   2