[PHP] mysql_insert_id + mysql_pconnect = race condition??

2001-11-21 Thread Marc Swanson
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 connection between my php

[PHP] HTTP_REFERER

2001-11-21 Thread Peter
Can anyone tell me under what circumstances this is set? As far as I can tell it only gets set on clicking an A tag from a referring page, but shouldn't it also get set if I POST a form from the referring page? In my tests this doesn't happen. I'm tried using PHP 4.05 / 4.06 on Win2K CGI

[PHP] RE: How do I convert from perl to php?

2001-11-21 Thread Tim Ward
$required = array($name, $address, $phone); foreach($required as $value) { if (!$value) echo(You left one empty.); } well that's how I'd do exactly that, although if you know the variables then why not just... if (!$name || !$address || !$phone) echo(You left one empty); that's quicker,

RE: [PHP] mysql export to excel

2001-11-21 Thread De Necker Henri
What is the problem?I know it works! -Original Message- From: Stanley [mailto:[EMAIL PROTECTED]] Sent: 21 November 2001 12:34 To: [EMAIL PROTECTED] Subject: [PHP] mysql export to excel Hi, Can anyone tried to export mysql database to excel spreedsheet? pls advise. urgent! Thanks!

RE: [PHP] mysql export to excel

2001-11-21 Thread Jon Haworth
PHPmyAdmin can export to .csv, which can be read into Excel with no troubles. Get it at http://www.phpwizard.net/projects/phpMyAdmin/ HTH Jon -Original Message- From: Stanley [mailto:[EMAIL PROTECTED]] Sent: 21 November 2001 10:34 To: [EMAIL PROTECTED] Subject: [PHP] mysql export to

Re: [PHP] some questions on sessions (long)...

2001-11-21 Thread Christian Dechery
How about the sessions? doesn't sessions also needs to send header data (before any other output)? the sessions are registered normally.. At 17:07 12/11/01 -0800, Christopher William Wesley wrote: Your problem probably is including the miec.php from the .shtml document. Does the .shtml

[PHP] getting started

2001-11-21 Thread Douglas McKenzie
Hi, 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 parsed, just the code shown. What am I doing wrong/still need to do? Do you

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

2001-11-21 Thread George Whiffen
Dear All, I had always thought of concatenating assignment and concatenation + assignment to the same variable as really just syntatical variations i.e. I thought that $data = $data . some strings; and $data .= some strings; were just alternate syntaxes for the same operation. I've always

[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

[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

[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 Edgardo Rossetto

[PHP] [] php-general ?

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

[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

[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=1ref=001category1=trtipscat egory2=acategory3=.$Grab[2][$i].)or die (Error); It is run inside an if loop and $Grab[2][$i] contains an e-mail address. However it

[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

[PHP] Going blind?

2001-11-21 Thread afrodriguez
The following scrip is not updating the database: ?php // file: root/reg/add/add_4.php, updated: 12/01/01 $connection=@mysql_connect(localhost,wagner,z) or die (No connection!); $db=@mysql_select_db(sbwresearch,$connection) or die (No database!); $qry=update con_inf set

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

[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

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 world

[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

[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

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

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 his

[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 Users to

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=1ref=001category1=trtipscat egory2=acategory3=.$Grab[2][$i].)or die (Error); It may not fix it, but try wrapping the URL in \ It is run inside an if

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] [±¤°í] 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 accomplish

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: ?php function

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?? http://www.php.net/manual/en/function.header.php http://www.php.net/manual/en/language.variables.predefined.php

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:

[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

[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

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 111

[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: script language=Javascript !-- document.form1.submit(); //-- /script 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

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

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 with

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

[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

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

[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

[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

[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's 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 months to

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

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

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

[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

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

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

[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: 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 is a

[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

[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

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

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

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

[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 the header output

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

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

[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

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

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

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

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

[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

[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

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

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

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

[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

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

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

[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 (web uid

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]

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

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

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 thing

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 know if

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

[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

[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 input type=text name=myArray[], 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

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

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

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 Maroney

[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: ? function sendmsg($to, $subject,

[PHP] Need regular match help - possibly

2001-11-21 Thread Gaylen Fraley
I need a routine that will allow me to trap multiple br 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

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 br, try : eregi_replace('(br)+', 'br', $str); Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 2:56 PM To: [EMAIL

[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

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

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

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

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?

  1   2   >