[PHP] Re: just a link in php email

2002-03-08 Thread Jan Grafström
Hi Andrea! I use this. $message="http://www.sever.com\";>link"; $message = stripcslashes($message); $headers .= "Return-Path: <[EMAIL PROTECTED]>\n"; $headers .= "Reply-To:$admail\n"; $headers .= "From: $admail\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Content-Type: text/html; charset=iso-

[PHP] Execute bash shell script in php

2002-03-08 Thread Your Amit
hi folks, i m trying to execute a plain shell script(bash shell) in php by using exec function(i tried even backtick operator). It is displaying me the echo commands but not doing any other processing which is there in the script. Moreover,the same scripts works when i execute it as a command l

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

2002-03-08 Thread Jan Grafström
Hi Nick! http://www.php.net/manual/en/function.str-replace.php Regards, Jan "Nick Richardson" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Been working on this one for quite awhile, and it's probably a fairly easy > solution, but i can't find it... so th

Re: [PHP] CSS

2002-03-08 Thread Ashley M. Kirchner
jtjohnston wrote: > Has anyone any code that creates a CSS file? A GUI? You might want to read this: http://www.phpbuilder.com/columns/tim2821.php3 -- H | "Life is the art of drawing without an eraser." - John Gardner +-

[PHP] CSS

2002-03-08 Thread jtjohnston
Has anyone any code that creates a CSS file? A GUI? As in: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] two different MySQL connections without always select_db?

2002-03-08 Thread Nick Richardson
i dont know if this will work, but you can try selecting them in the query... i.e.: select * from database.table I am by no means a guru on sql queries, but it may work. -Original Message- From: PHP freak [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 8:39 PM To: [EMAIL PROTECT

[PHP] Re: cal_days_in_month()

2002-03-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > 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 sam

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread hugh danaher
Sean, hen I first got interested in programming datadriven websites way back in 2001, I read the article at the attached link: http://www.lycos.com/sitemap.asp. Learned a lot. Now that I know a bit more, why the hell would someone using ASP talk about the virtues of php and mysql? Hope this he

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread Tyler Longren
I suggest you buy a book. There's too much to simply tell you how to do it. I recommend PHP Essentials by Julie C. Meloni. That was the first PHP book I bought, and was really helpful. tyler - Original Message - From: "GENESiS DESiGNS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
Sam, The questions you write are good. I am not sure why they can't. I just assumed that if I make lines of code like: \$$col and populate them like: $column1 $column2 $column3 that I would have to then evaluate them on a different page. Am I incorrect? Thanks, Jonathan Duncan - Ori

Re: [PHP] cal_days_in_month()

2002-03-08 Thread Jason Wong
On Saturday 09 March 2002 03:29, CB wrote: > 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. recompile php with the "--enable-calend

Re: [PHP] patch installation

2002-03-08 Thread Jason Wong
On Saturday 09 March 2002 05:21, abw wrote: > 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

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
Bogdan, Thank you for your comment, it actually made me think of a possible solution for something else I am working on. However, it is just as I thought, I am being too vague. I am most likely making my whole situation more complicated than I need. Another idea is just to do a "select *" and

[PHP] Re: problem with mysql persistent connections; already read the FAQ!

2002-03-08 Thread michael kimsal
Dustin Puryear wrote: > We are running Apache 1.3.20 with PHP 4.0.6/rfc1876-patch built as a > module. We are using PHP on a load-sharing cluster with n web servers. > Our cluster supports an application that makes extensive use of mysql > connections via the PHP mysql_* functions. > > The applic

[PHP] two different MySQL connections without always select_db?

2002-03-08 Thread PHP freak
How would you keep two different MySQL connections to two different MySQL databases (on two different MySQL servers) up and available with two different pointers (id), and not need to always do "select_db()" to switch between them? I thought that if I did this: --- php: - $

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Bogdan Stancescu
I don't quite understand why you chose such a complicated solution - I may be missing something, in which case sorry for wasting your time. But why don't you just dynamically build the select statement and then use the _fetch_array() -- and walk that array instead? Just my 2c Bogdan Jonathan

[PHP] Can someone tell me about database....

2002-03-08 Thread GENESiS DESiGNS
Hello, Can anyone tell me about database driven web sites? I want to learn how to do that. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
I am trying to figure out a way to dynamically create some lines of PHP code and then have it executed. This is because I want a page to display different columns in a table depending on whatever link is clicked. There are hundreds of different combinations of column headings so I don't want to

[PHP] problem with mysql persistent connections; already read the FAQ!

2002-03-08 Thread Dustin Puryear
We are running Apache 1.3.20 with PHP 4.0.6/rfc1876-patch built as a module. We are using PHP on a load-sharing cluster with n web servers. Our cluster supports an application that makes extensive use of mysql connections via the PHP mysql_* functions. The application was tested on a single web s

[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

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

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

[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 '/tmp/

[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 , i n

[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

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:

[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 http://www

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

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 b

[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()

[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, Put in the basket and those works normal in navigator 4.7 and IE 6 but in Netscape 6.2 the links open in a new window. I worked around this setting target=_top in all

[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

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 P

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 P

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 P

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 P

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 s

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

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 c

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

[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

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

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

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

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

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: m

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 CL

[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 (!mysql_connect("

[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

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

[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: 1.

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 Deve

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:

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

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

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

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

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

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

[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'])) { $_SESSION['d

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

[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. A

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

[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. A

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

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

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

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

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

[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

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 t

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 mac

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 i

[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] 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("#(()|$search)#se", '"\2"=="\1"? > "\1":"$replace"', $txt); > > to replace some text in $txt. The problem: Pa

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 elemen

[PHP] Replacing words

2002-03-08 Thread Martin Thoma
Hello! I use $txt = preg_replace("#(()|$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 letter

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

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

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 PROT

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

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

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? > > Tha

[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: http://www.php.

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 h

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: DATE_ADD(date_regist

[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: http

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

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

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

[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

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

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

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 Disco

  1   2   >