[PHP] Re: header("Location:...") much faster then http-equiv="refresh"? too fast?

2001-11-21 Thread Fred
How and when mysql performs a delete depends on several things including, the type of table that is used, configuration parameters and the wording of the delete query. There are some situations in which deletes are put into a que and performed only after there are no connections to the table. Si

Re: [PHP] Re: Authentication Options: Was AddType x-httpd-php ...

2001-11-21 Thread Fred
I cannot quote any statistics for you, but I think I can answer your question anyway. When you use htaccess along with htpassword or authmysql, everytime a person requests a page in a protected dirtectory apache has to access the htaccess file, determine the type of authentication to use and then

RE: [PHP] Installing PHP with windows

2001-11-21 Thread Nicolas Guilhot
You can also have a look to EasyPhp http://www.easyphp.org/ which installs Apache, PHP and MySQL on Windows box. -Message d'origine- De : Rob Bennion [mailto:[EMAIL PROTECTED]] Envoye : mercredi 21 novembre 2001 21:55 A : [EMAIL PROTECTED] Objet : [PHP] Installing PHP with windows Hi I

[PHP] header("Location:...") much faster then http-equiv="refresh"? too fast?

2001-11-21 Thread Avi Schwartz
Hi, I have a strange problem. I have a page that displays a list of records. When the user clicks on the delete link by one of the records, a php script is taking care to delete that specific record and then redirects back to the record list. I use PEAR::DB with MySQL. When I use header("L

Re: [PHP] Flash programming

2001-11-21 Thread John Monfort
I've seen several sites that did the opposite--use PHP in Flash. Try a search for 'php and flash'. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+__

Re: [PHP] mail smtp class file

2001-11-21 Thread Michael P. Carel
thank you for that but we need a customized mailer system for our development and im just new with this type of system, i just want to make sure that i really understand the program flow of the mailer script .This is just a start and the sample script is very simple to understand for a n

Re: [PHP] Re: Authentication Options: Was AddType x-httpd-php ...

2001-11-21 Thread Jeff Hill
Well, your the expert, so I'll look into this further, but do you have any statistics, or a guess, as to the load auto_prepending an entire site would add to a server? I've always been under the impression that adding PHP to every page will add significant load. I'm not familiar enough with sess

Re: [PHP] php- cgi

2001-11-21 Thread Michael Sims
At 03:54 PM 11/21/2001 +, Caspar Kennerdale wrote: >I have a script that when I execute via a browser retrieves information. > >Ultimately I want this automated. There has been mention on these lists >about compliling php as cgi, which I think may help I saw the following somewhere and saved

[PHP] reseting cookie_lifetime

2001-11-21 Thread Justin England
I have: session.cookie_lifetime = 1200 in my php.ini. I am using the PHP session functions that are working fine, except I can't find out how to reset the lifetime timer. For example, I log in, my script creates the session, and I do my work. After 20 minutes of working, the session expires a

RE: [PHP] Need regular match help - possibly

2001-11-21 Thread Martin Towell
for the first case - using "\n", try : ereg_replace('\n+', '\n\n\n', $str) for the second case - using "", try : eregi_replace('()+', '', $str); Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 2:56 PM To: [EMAIL PROTECTED]

[PHP] Need regular match help - possibly

2001-11-21 Thread Gaylen Fraley
I need a routine that will allow me to trap multiple and/or line feed characters and convert them to a constant number. As an example, let's say that you have text that has 10 carriage returns and/or line feeds. I want to limit this to 3. So, I need to be able to parse the line to detect the m

[PHP] mail smtp class file

2001-11-21 Thread Michael P. Carel
Hi there, I've tried using the SMTP class file that was given by PHPGalaxy.com previously in the mailing list, and have difficuties in using it. upon the execution of the script im recieving the mail but the content of the mail was the HEADER. Here's the script: And the email content was this:

RE: [PHP] PHP Arrays conflicting with Javascript, PLease advise?!?

2001-11-21 Thread Martin Towell
use something like: customer_info["customer_info[shipto_address_line1]"].value = customer_info["customer_info[billto_address_line1]"].value; ie. each form element can be referenced by name within the elements array: frm.name --> frm["name"] -Original Message- From: Steve Maron

[PHP] Need a job done

2001-11-21 Thread Marts
Hay all, I have been working on a PHP script for a while now, it is due for work by friday. I am going to need some serious help to get it done. Please let me know if you can help and also money that you will want. Just email [EMAIL PROTECTED] for full details and scripts. Thanks in advance M

[PHP] Flash programming

2001-11-21 Thread Martin Towell
Anyone know how one can "import" a flash file into PHP for use with "ming" or something similar? It's an easy to make a flash animation with ming, but I'd like to be able to modify an existing flash file. thnx Martin

[PHP] Re: How to run php files on windows millenium?

2001-11-21 Thread T B
He can either use Personal Web Server, or use another server. I personally use Xitami (http://www.xitami.com/) it's open source, lightweight, stable, and easy to configure. PHP's documentation has directions on how to configure PHP to work with Xitami. Tiffany <[EMAIL PROTECTED]> wrote in messag

[PHP] PHP Arrays conflicting with Javascript, PLease advise?!?

2001-11-21 Thread Steve Maroney
Hey guys, Im have a couple of form elements with the names of php arrays. Instead of just using , Im defining the array keys. Before the form is submitted to the PHP script, Im using javascript to modify the element values. The array brackets that are part of the element name are conflicting w

[PHP] How to run php files on windows millenium?

2001-11-21 Thread Joelmon2001
Hello, my friend has windows ME, but no personal web server When I use php, I use personal web server on win 98 WHen he downloads php on his pc with windows me, can he use notepad to make php files, and use http://localhost still to view them online? Or must he use personal web server? What can

Re: [PHP] Re: AddType x-httpd-php to Root Dir ...Solution

2001-11-21 Thread Fred
I always write my own authentication scripts in PHP using PHP's built in session management. If you want to protect entire directories or sites, just add the authentication routine to your auto_prepend file and it will work for any page you are trying to authenticate. If set up correctly it work

Re: [PHP] Re: AddType x-httpd-php to Root Dir ...Solution

2001-11-21 Thread Jeff Hill
Thanks for the suggestion, but no, it was something else. What else it was, I don't know. I took the plunge and did the "when in doubt, upgrade" route -- the server is now: Apache/1.3.22 -- AuthMySQL/2.30 -- PHP/4.0.6 -- mod_ssl/2.8.5 -- OpenSSL/0.9.6b Now, 24 hr. of straight work upgrading, the

Re: [PHP] array_merge();

2001-11-21 Thread Edgardo Rossetto
It works, thanks. Edgardo "Brian Clark" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Edgardo, > > @ 8:09:26 AM on 11/21/01, Edgardo Rossetto wrote: > > > I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) > > and i need to

RE: [PHP] Different syntax = different performance (concatenating assignment)

2001-11-21 Thread Martin Towell
I don't know if this happens in PHP, but this is similar to C's "add one to variable". ie. You have three ways of adding one to a variable 1) a = a + 1 2) a += 1 3) a++ or ++a from what I was told, 1) is slower than 2) which is slower than 3). So it would seem that this is the same sort of thin

Re: [PHP] Deleting from MySQL with more than one 'where' variable?

2001-11-21 Thread Mike Eheler
Are you getting an error, or is it simply not deleting the fields that should match that criteria? Mike cosmin laslau wrote: > Ok, there's a table with 4 fields, I want to delete from it when two > of the variables passed (through the function below) match up with the > table's contents. How

[PHP] Session and header()

2001-11-21 Thread Jordan Elver
Hi, I've got a login script that uses sessions. To end a login session, I simply delete the session variables and do a session_destroy() which seems to logout everyone ok. The problem comes when I do a header() call afterwards to redirect after logging out. It seems the header() call stops my

Re: [PHP] Installing PHP with windows

2001-11-21 Thread Fred
You can certainly install apache on windows. If you just want a test bed and do not care about security or configurability, you can download and install PHP-Triad. This windows package will install working versions of Apache, MySQL and PHP. It was specifically designed for people like you who w

SV: [PHP] Installing PHP with windows

2001-11-21 Thread Johan Nilsson
no you dont have to install linux, apache works really fine under windows read more at http://httpd.apache.org/docs/windows.html good luck /johan -Ursprungligt meddelande- Från: Rob Bennion [mailto:[EMAIL PROTECTED]] Skickat: Wednesday, November 21, 2001 13:05 Till: [EMAIL PROTECTED]

[PHP] Re: show user and home directory

2001-11-21 Thread Richard Lynch
Dave Vanauken wrote: > After doing authentication we can retrieve the username using > PHP_AUTH_USER > > wish to determin what that user's home directory is on the server from > within > PHP... obviously working the > 'pw usershow '.$PHP_AUTH_USER > through exec results in permission problems (

Re: [PHP] Installing PHP with windows

2001-11-21 Thread Rob Bennion
Richard, I have got to admit I don't really understand much about servers and their software. What I want to do is to be able to create and test php pages 'offline' like I currently do with my asp pages using PWS. Would I be able to install apache with my windows set up or would I have to install

Re: [PHP] Installing PHP with windows

2001-11-21 Thread Richard S. Crawford
You can download the win32 PHP binaries from www.php.net. I know it works because I've got it running on my win2k box. But I'm also running Apache so I don't know if it will work with PWS. I'd be interested in knowing. If it doesn't work with PWS, why not just install Apache? It's free and

[PHP] Installing PHP with windows

2001-11-21 Thread Rob Bennion
Hi I want to try out PHP and wanted to know if it is possible to install it on a windows machine and use it with personal web server. Any help would be appreciated. thanks Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Re: php mysql blob fields

2001-11-21 Thread Mark
Yes, that's a big one :) also, to save the headache of reading and escaping the image correctly you can let mysql do the work: update table set field=LOAD_FILE('/path/to/image.gif'); On Wed, 21 Nov 2001 12:16:47 -0800, Fred wrote: >If insert works and update does not, I would guess it is because

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Mark
Yes, but unless you're doing something like a shopping cart, php sessions are probably overkill. For this all that he needs to do is have a login box that checks to see if the username/password are ok, and saves them in a cookie if they are. then at the top of every script you load the user's p

Re: [PHP] Deleting from MySQL with more than one 'where' variable?

2001-11-21 Thread Richard S. Crawford
What kind of error are you getting? Your SQL looks fine to me. I can think of a couple of reasons why this might not be working; there may be a difference in how the field names are spelled, or there may not be any rows in usr_stats where the spec column contains a value of $field. Hm, you

[PHP] Deleting from MySQL with more than one 'where' variable?

2001-11-21 Thread cosmin laslau
Ok, there's a table with 4 fields, I want to delete from it when two of the variables passed (through the function below) match up with the table's contents. However, I have only been able to get it to work with one 'where' clause, not two. Here's my code for one: function delete_one_sub($sel

[PHP] Re: php mysql blob fields

2001-11-21 Thread Fred
If insert works and update does not, I would guess it is because you spelled the table name wrong in the update query. Fred Rodrigo Peres <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a table in mysql that stores some images my fields in this

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Fred
I agree, if you want to do anything special with logins do not rely on htaccess, write your own auth scripts. On the other hand, I would not recommend using cookies either, unless it is in conjuntion with sessions. PHP has great session management funtions and they should be used at the exclusion

Re: [PHP] Process bar

2001-11-21 Thread Arvydas V.
But it doesn't work with IE 6 (but i need this to work... :( ) > > Hello, > > I have to solve one problem - my script searches simply text document, so - if >this document is big enought - i have to "replace" timeout of my script, besides - i >have to make, that then this proceeds some kind of

Re: [PHP] php mysql blob fields

2001-11-21 Thread Mark
a bunch of things: 1) when you read the image you need to use "rb" mode since it's binary data 2) addslashes() isn't good enough. try mysql_escape_string instead. 3) the way you're doing it the handle to the image file never gets fclosed(), I don't know if that's really a problem tho 4) if your i

[PHP] php mysql blob fields

2001-11-21 Thread Rodrigo Peres
Hi, I have a table in mysql that stores some images my fields in this table are: ImageID,Image_Name, Image_Size, Image_Type, Image_Data (this is the blob). The problem is, when i insert a new image everything goes fine, but I can't update it!!! Why? to insert I'm using this if($image != "none")

[PHP] Using semaphores in C & PHP

2001-11-21 Thread Jorge Renato Machin Ibarra
Hi! I'm writting an application that uses shared memory and semaphores in PHP and C/C++. PHP script writes data in memory and the C program read it. I have no problems with the PHP script, but I can not acquire semaphores with C/C++. So, I wrote a sample program to test the semaphores. It's supp

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Mark
using apache to do the authorization is the cheap and easy way. If you want something more advanced you should use a cookie. There's probably tons of sample code on phpbuilder.com On Wed, 21 Nov 2001 11:30:49 -0700, Nelson Goforth wrote: >In my project I have basic HTML pages with PHP/MySQL driv

[PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Nelson Goforth
In my project I have basic HTML pages with PHP/MySQL driven content. In a subdirectory I have pages that allow users to change the content of the pages and other administrative functions. This subdirectory is protected with Apache mod_auth. What I would like to do is allow authorized users to

[PHP] Re: PHP / MYSQL & AUTHORWARE

2001-11-21 Thread Richard Lynch
> Geoff <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> want to do is link the two. In other words. PASS the information to >> Authorware from the Web Pages, that way I could display the database >> information within a display icon or manipulate the data vi

Re: [PHP] php- cgi

2001-11-21 Thread Richard Lynch
Brian Clark wrote: > way you'd configure a cgi-bin for perl-cgi scripts, but I don't know > if running php as an apache module AND as a cgi is going to fly. PHP as both CGI and Module on the same box works just fine. In fact, using multiple mime types and file extensions, you can have as many

[PHP] Re: error_log problems

2001-11-21 Thread Richard Lynch
Alberto Mucignat wrote: > > hi all > > i've tried to redirect error logging in a different file than the web > server error file. in php.ini file: > error_log=/var/log/httpd/php_error_log > but it doesn't work correctly: it doesn't create/write the file > php_error_log You will need to create

[PHP] Re: Cache Control

2001-11-21 Thread Richard Lynch
Jeff Sittler wrote: > In ASP, I ahve used: > <% > Response.CacheControl = "no-cache" > Response.AddHeader "Pragma", "no-cache" > Response.Expires = -1 > if Session("svUsername") = "" then response.redirect > "../login/accessDenied.asp" > %> If you still have that site in ASP around, look at

[PHP] Re: mail list

2001-11-21 Thread Richard Lynch
Yura wrote: > so my question is how do i make MySQL database to receive emails > automaticaly? You use something like "procmail" to catch the emails as the come in to a specific email address and then spew them at a PHP script to insert them to the database. You'll need to start reading "send

[PHP] Re: Invalid preceding regular expression

2001-11-21 Thread Richard Lynch
Phantom wrote: > What is a << Warning: Invalid preceding regular expression >> mean when > running a page? Some characters have special meaning in regex, and some combinations are simply invalid. You are iterating through one character at a time, and passing in such a "combination" to regex.

[PHP] Re: mailing list script?

2001-11-21 Thread Julio Nobrega Trabalhando
Check it out www.hotscripts.com/PHP, under the section 'Scripts and Programs'. You will find a lot of ready to run php scripts that will do exactly what you want... And not what you said you want ;-) -- Julio Nobrega No matter where you go, &this. "Yura" <[EMAIL PROTECTED]> wrote in messa

[PHP] mailing list script?

2001-11-21 Thread Yura
Hi, I already run php site www.body-builders.org but I wanned to add to it mailing list like this one at php.net I understand general algorithm of it but as newbuy I don't know how MySQL database can receive mail and then add it to the base? so my question is how do i make MySQL database t

[PHP] Re: HTTPs ????

2001-11-21 Thread Richard Lynch
Scott Fletcher wrote: If the 's' in the HTTPs in the subject is indicating that you are trying to do this with an SSL server via the 'https' protocol, you are on the wrong track... You see, before you send all those headers to the SSL server, you'd have to first talk back and forth and negoti

[PHP] Re: PEAR: nextID() mysql

2001-11-21 Thread Richard Lynch
Chris Dorr wrote: > My ignorance with databases will probably show here, but I haven't been > able to solve this myself so I thought I'd post. > > I'm working on converting a DB driven site using mysql specific commands > to the PEAR DB method. > > One of the fields I have in my mysql database

[PHP] Re: PHP / MYSQL & AUTHORWARE

2001-11-21 Thread Fred
Check out the WDDX functions. They were made for precisely this purpose (if I understand you correctly). Your PHP scripts would use WDDX to serialize the variables and Authorware would deserialize them. Of course, I don't have a clue what Authorware is and it may or may not include support for

[PHP] Re: Username:Password??? (Using fsockopen...)

2001-11-21 Thread Richard Lynch
Scott Fletcher wrote: > How do I send the username and password to the port and recieve a > response saying hte username & password is accepted or fail??? Sockets in and of themselves do not send/accept/receive/reject username/passwords. Once the socket is open, you send the right stuff an

[PHP] Re: fopen "r+" not working - how to add to beginning of txt file

2001-11-21 Thread Richard Lynch
Brian Tully wrote: > i've been going crazy trying to figure out how to add news items to the > top of an already existing txt file containng previous news posts. While > I'd love to change the system so everything is database-driven (as most of > the rest of the site is), this news area has so mu

[PHP] Re: Help with PHP_AUTH_USER needed.

2001-11-21 Thread Richard Lynch
De Necker Henri wrote: > Hi there!I want to know how to reload the following script of mine by > using a cookie.If the cookie expires the user must lgin again.I can get it > right to reload the authentication script > This is my code im using in my secure pages : > > require_once("inc/db.inc");

[PHP] Re: schedule a task

2001-11-21 Thread Yura
I didn't do it myself YET so you may concider my suggestion as a utopia. However the idea is to record the date of visit of each visitor of your site and then compare last two records (last two visits) as soon as dates are different (dd.mm. - you need to compare only dd) your database ba

Re: [PHP] How do I convert from perl to php? - Reality Check & Taxation

2001-11-21 Thread Brandon Lamb
The point of keeping it easier is what if i want to give my script to a friend, do you REALLY want to explain to a non-programmer how to add another if statement or condition when they could simply add the field to the array? And actually you only have to change the name in 2 places. 1. you defin

RE: [PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
Thanks I'll give it a go -Original Message- From: Brian Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 16:26 To: PHP is not a drug. Subject: Re: [PHP] php- cgi Hi Caspar, @ 11:11:25 AM on 11/21/01, Caspar Kennerdale wrote: > yes ideally with cron- I know nothing a

[PHP] Re: Error Code for fsockopen()??? What it mean?

2001-11-21 Thread Richard Lynch
Scott Fletcher wrote: > I use this script and I recieve an error code, what does this mean in > english? I can understand the "0" or the "1", but "2" > > fsockopen (HOSTNAME, &$errno, &$errstr) or die("$errno: $errstr"); I am pretty sure that if you do "man errno" in a shell prompt a

[PHP] Re: Date Problem

2001-11-21 Thread George Whiffen
Mindhunter wrote: > > Hi, > > I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001. > Now I want to add 3 months to the date. I have tested mktime and strftime > etc and no matter what I do I get the year as 1970. (Systemdate works > fine). How would I go about adding 3 mon

[PHP] Re: using php exec command

2001-11-21 Thread Richard Lynch
Mark Lo wrote: > I would like to know how to use the exec command to assign a new > system > users. I have sent out this questions so many times, but doesn't get any > reply. Does It means this is ridiculous to assign a new system user using > PHP EXEC command. Pretty much, yeah. It

[PHP] Re: AddType x-httpd-php to Root Directory Fouls Authentication

2001-11-21 Thread Richard Lynch
Jeff Hill wrote: > AddType application/x-httpd-php html > > All users who enter any subdirectory with a .htaccess authentication > requirement get a 401 error instead of the pop-up authentication request > they should get (I use authmysql). The same thing happens if I try > changing my Apache ht

[PHP] Re: ODBC to Access with Autonumber Field

2001-11-21 Thread Richard Lynch
> Does anyone have an example of Inserting a record to a table in an Access > database where one of the fields is an Autonumber field, and most Just don't specify that field at all on the insert, just like MySQL (and any other database). That part of it is the same across every SQL database I

[PHP] Re: mysql_insert_id + mysql_pconnect = race condition??

2001-11-21 Thread Richard Lynch
Marc Swanson wrote: > In my code I have a few places where I use mysql_pconnect to open a > persistant database connection to mysql in order to reduce overhead. I > also use mysql_insert_id to fetch insert ids for various insert commands. > > Since mysql_pconnect uses the SAME database connecti

[PHP] show user and home directory

2001-11-21 Thread Dave VanAuken
After doing authentication we can retrieve the username using PHP_AUTH_USER wish to determin what that user's home directory is on the server from within PHP... obviously working the 'pw usershow '.$PHP_AUTH_USER through exec results in permission problems (web uid not allowed to run PW

Re: [PHP] php- cgi

2001-11-21 Thread Brian Clark
Hi Caspar, @ 11:11:25 AM on 11/21/01, Caspar Kennerdale wrote: > yes ideally with cron- I know nothing about it really other than a > little bit i've read- but my isp says they can execute a perl file > and not a php file via cron. ISP's can be strange about that stuff, but it's understandable

[PHP] Re: HTTP_REFERER

2001-11-21 Thread Richard Lynch
> Can anyone tell me under what circumstances this is set? When the browser feels like setting it :-( It's entirely up to the browser to send that information. Some browsers go so far as to send it when you type a new URL into the location bar. Others only on the A tag. This makes HTTP_REFER

RE: [PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
yes ideally with cron- I know nothing about it really other than a little bit i've read- but my isp says they can execute a perl file and not a php file via cron. I was interested to see whether or not compliing as a cgo would circumnavigate this- but i'm as much in the dark about that. I have

Re: [PHP] php- cgi

2001-11-21 Thread Brian Clark
Hi Caspar, @ 10:54:13 AM on 11/21/01, Caspar Kennerdale wrote: > I have a script that when I execute via a browser retrieves information. > Ultimately I want this automated. There has been mention on these lists > about compliling php as cgi, which I think may help By automated do you mean wi

[PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
I have a script that when I execute via a browser retrieves information. Ultimately I want this automated. There has been mention on these lists about compliling php as cgi, which I think may help This also may help out with some timeout issues that arise. can anyone point me in the right dire

Re: [PHP] SuSE 7.1 mySQL

2001-11-21 Thread Brian Clark
@ 10:33:25 AM on 11/21/01, Brian Clark wrote: BC> (I *think* these instructions should work) For SuSE you might also need to do this before installing those RPMs: $ ln -s /etc/rc.d /etc/rc.d/init.d BC> Install newest RPMS from http://www.mysql.com : BC> $ rpm -i \ BC> MySQL-VERSION.i386.rpm

[PHP] Re: auto form submit

2001-11-21 Thread Daniel Berwig
A way to do it is puting a javascript like this at the end of the page: where form1 is the form name you have in the page. When the page is loaded, it will then submit the form. "Wm" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL P

Re: [PHP] SuSE 7.1 mySQL

2001-11-21 Thread Brian Clark
Hi Christoph, @ 10:15:03 AM on 11/21/01, Christoph Starkmann wrote: > connected to databases I try posting it here... > I tried to install mySQL under SuSE 7.1, but when trying to start the dbs, > the only thing I get is an error that > "no connection can be established to > mysql.sock at port 1

[PHP] PHP / MYSQL & AUTHORWARE

2001-11-21 Thread geoff
Hi all I've asked the Authorware user group but got no response, and am wondering whether anyone else has tried this. I use mainly PHP (sometimes ASP) and MYSQL to read/write database information via Web pages in my normal web work. It works fine. When using Authorware I can display the same web

[PHP] error_log problems

2001-11-21 Thread Alberto Mucignat
hi all i've tried to redirect error logging in a different file than the web server error file. in php.ini file: error_log=/var/log/httpd/php_error_log but it doesn't work correctly: it doesn't create/write the file php_error_log while if in the php.ini file i put: error_log = syslog it works

Re: [PHP] getting started

2001-11-21 Thread Brian Clark
Hi Douglas, @ 5:59:31 AM on 11/21/01, Douglas McKenzie wrote: > I've installed php4 but can't get it working. There is a .php file under > the web root, httpd.conf knows about the .php extension but the file is > not geting parsed, just the code shown. Here's what's in my httpd.conf: Directory

Re: [PHP] HTTP Headers

2001-11-21 Thread Brian Clark
Hi Paul, @ 7:42:49 AM on 11/21/01, Paul - Zenith Tech Inc wrote: > Using phpinfo() I can see that the header "Last-Modified" exists. > How do I go about accessing the header??

Re: [PHP] array_merge();

2001-11-21 Thread Brian Clark
Hi Edgardo, @ 8:09:26 AM on 11/21/01, Edgardo Rossetto wrote: > I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) > and i need to know if there's a similar function o way to do this. There's probably a faster/elegant way to do this, but this should work: -- -Brian

Re: [PHP] [±¤°í] php-general´Ô ¾È³çÇϽʴϱî?

2001-11-21 Thread Brian Clark
Hi ¿ìÀü¹«¿ª, @ 8:28:37 AM on 10/26/01, ¿ìÀü¹«¿ª wrote: > ±¤°í ¸ÞÀÏ ÀÔ´Ï´Ù. ¾È³çÇϽʴϱî ! www.woojeon.net ¿î¿µÀÚÀÔ´Ï´Ù. > Çã¶ô¾øÀÌ ¸ÞÀÏÀ» µå·Á ´ë´ÜÈ÷ Á˼ÛÇÕ´Ï´Ù. Á¤ÁßÈ÷ ¾çÇØ¸¦ ºÎʵ右´Ï´Ù. > ¿øÇÏÁö ¾Ê´Â ¸ÞÀÏÀ̶ó¸é ¾Æ·¡ÀÇ "¼ö½Å°ÅºÎ" ¹öưÀ» ´­·¯ Áֽøé Absolutely, there's no other way to accompl

Re: [PHP] Global instance of class

2001-11-21 Thread Brian Clark
Hi Silvia, @ 8:44:09 AM on 11/21/01, Silvia Mahiques wrote: > The code file (.php) that has this first reference is: > $global_var = new one_class(); > If I include this file (.php) in another php file, a new instance is > created again, and I want a unique instance in all project

Re: [PHP] exec() help

2001-11-21 Thread Brian Clark
Hi KPortsmout, @ 8:37:22 AM on 11/21/01, [EMAIL PROTECTED] wrote: > exec("/usr/local/bin/wget > http://www.getresponse.com/cgi-bin/add.cgi?misc=1&ref=001&category1=trtips&cat > egory2=a&category3=".$Grab[2][$i]."")or die ("Error"); It may not fix it, but try wrapping the URL in \" > It is run

[PHP] SuSE 7.1 mySQL

2001-11-21 Thread Christoph Starkmann
Hi there! I know this is not directly a PHP question, but as long as PHP is so closely connected to databases I try posting it here... I tried to install mySQL under SuSE 7.1, but when trying to start the dbs, the only thing I get is an error that "no connection can be established to mysql.sock

[PHP] Re: Authenticating Users with their Windows Login

2001-11-21 Thread George Whiffen
Feroze Md. Arif wrote: > > Hi, > > First of all, my apologies if this question has been asked earlier. I am in > a hurry and I haven't checked the archives (Actually, I am in the process of > doing it but am trying to cover all the bases). > > I know that PHP has functions which will allow Use

Re: [PHP] Process bar

2001-11-21 Thread George Whiffen
Arvydas V. wrote: > > Hello, > I have to solve one problem - my script searches simply text document, so - if this >document is big enought - i have to "replace" timeout of my script, besides - i have >to make, that then this proceeds some kind of process bar must scroll until script >finishes

Re: [PHP] exec() help

2001-11-21 Thread Stefan Rusterholz
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 21, 2001 2:37 PM Subject: [PHP] exec() help > Hi, > > I am running the following function in my PHP script: > > exec("/usr/local/bin/wget > http://www.getresponse.com/cgi-bin/add.cgi?misc=1&r

[PHP] Re: getting started

2001-11-21 Thread David Tod Sigafoos
On Wed, 21 Nov 2001 10:59:31 +, [EMAIL PROTECTED] (Douglas McKenzie) wrote: >I've got Apache and MySql up and running on RedHat 7.1. > >I've installed php4 but can't get it working. There is a .php file under >the web root, httpd.conf knows about the .php extension but the file is >not geting

[PHP] Re: Date Problem

2001-11-21 Thread David Tod Sigafoos
On Wed, 21 Nov 2001 09:31:33 +0200, [EMAIL PROTECTED] (Mindhunter) wrote: >I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001. >Now I want to add 3 months to the date. I have tested mktime and strftime >etc and no matter what I do I get the year as 1970. (Systemdate works >

Re: [PHP] How do I convert from perl to php? - Reality Check & Taxation

2001-11-21 Thread George Whiffen
> So I would have to write a seperate if condition for each form input field i wanted >to require? that doesn't make for a very dynamic script... > > > if(!(isset($name) && isset($address) && isset($phone)) { > > echo "You left one empty."; > > } Reality Check: We write code to solve real

[PHP] Re: executing another php.script

2001-11-21 Thread David Tod Sigafoos
I want to thank everyone who responded, both to the list and to my personal box. Also a special thanks to a couple who continued to try to get me to understand that .. as a Rose may smell the same no matter what you call it .. a 'function' may do what you want even if you don't understand the na

Re: [PHP] Going blind?

2001-11-21 Thread Johan Holst Nielsen
> > >$result=@mysql_query($qry,$connection); > Try make a line after this: echo mysql_errno().": ".mysql_error(); What is the output? Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Going blind?

2001-11-21 Thread afrodriguez
The following scrip is not updating the database: Can some tell me why? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admini

[PHP] Re: Newbie Question

2001-11-21 Thread Lee Willmann
Ok, I think I have the solution to your problem. Try using nl2br() on the data in that field.. Example: I have a message table that allows one user to send an instant message to another user on my site. There are several fields, one of which being a TEXT column (MySQL db). I use a simple textare

[PHP] PayFlowPro and OpenSSL

2001-11-21 Thread Dominic Schanen
Hello, I'm trying to install the Linux PayFlowPro SDK with OpenSSL. However, it appears that the SDK is linked to OpenSSL v. 0.9.5a and the version we currently have installed (and is recommended) is OpenSSL v 0.9.6b. Does anyone have a solution to re-link the SDK with OpenSSL v 0.9.6b or any oth

[PHP] exec() help

2001-11-21 Thread KPortsmout
Hi, I am running the following function in my PHP script: exec("/usr/local/bin/wget http://www.getresponse.com/cgi-bin/add.cgi?misc=1&ref=001&category1=trtips&cat egory2=a&category3=".$Grab[2][$i]."")or die ("Error"); It is run inside an if loop and $Grab[2][$i] contains an e-mail address. H

[PHP] Global instance of class

2001-11-21 Thread Silvia Mahiques
Hello friends! I want to access a global instance of a class from diferents php files. How can I do this? Is it possible? The code file (.php) that has this first reference is: $global_var = new one_class(); If I include this file (.php) in another php file, a new instance is c

[PHP] [광고] php-general님 안녕하십니까?

2001-11-21 Thread 우전무역
±¤°í ¸ÞÀÏ ÀÔ´Ï´Ù. ¾È³çÇϽʴϱî ! www.woojeon.net ¿î¿µÀÚÀÔ´Ï´Ù. Çã¶ô¾øÀÌ ¸ÞÀÏÀ» µå·Á ´ë´ÜÈ÷ Á˼ÛÇÕ´Ï´Ù. Á¤ÁßÈ÷ ¾çÇØ¸¦ ºÎʵ右´Ï´Ù. ¿øÇÏÁö ¾Ê´Â ¸ÞÀÏÀ̶ó¸é ¾Æ·¡ÀÇ "¼ö½Å°ÅºÎ" ¹öưÀ» ´­·¯ ÁÖ½Ã¸é ´Ù½Ã´Â ±ÍÇϲ² °¡Áö ¾Êµµ·Ï È®½ÇÇÏ°Ô Ã³¸® ÇϰڽÀ´Ï´Ù. ±ÍÇϲ² ¾à°£ÀÇ °Ç°­Á¤º

[PHP] Re: array_merge();

2001-11-21 Thread Edgardo Rossetto
"Edgardo Rossetto" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi: > > I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) > and i need to know if there's a similar function o way to do this. > > Please help me! > > Bye > > Edga

[PHP] array_merge();

2001-11-21 Thread Edgardo Rossetto
Hi: I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) and i need to know if there's a similar function o way to do this. Please help me! Bye Edgardo Rossetto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] HTTP Headers

2001-11-21 Thread Paul - Zenith Tech Inc
Using phpinfo() I can see that the header "Last-Modified" exists. How do I go about accessing the header?? Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administr

  1   2   >