[PHP] MySQL Error.

2001-08-16 Thread ERISEN, Mehmet Kamil
Hello All, I receive the following warning message. When I reload the page, the message is the error message does not show up again. Funny thing is, that there are other parts of the page generated from the same database using the same mysql_pconnect and they are fine. I am using a standard $

Re: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
On Thu, 16 Aug 2001, Renze Munnik wrote: > On Thu, Aug 16, 2001 at 05:41:47PM +0200, Darius Ivanauskas wrote: > > What we have here: registering variable $Session into current session. > > This code works perfectly if session id is propogated normally. > > Bu what i need is to set session_id an

Re: [PHP] Startup

2001-08-16 Thread ERISEN, Mehmet Kamil
Hello All, I receive the following warning message. When I reload the page, the message is the error message does not show up again. Funny thing is, that there are other parts of the page generated from the same database using the same mysql_pconnect and they are fine. I am using a standard

Re: [PHP] Startup

2001-08-16 Thread Krzysztof Helbin
Dnia Fri, 17 Aug 2001, Roman napisał(a): > I install apache 1.3.20, php 4.0.6 and mysql on Red Hat Linux 7.0 but > I must start thei manualy. I want to start this services automatically when > starts the linux. How ? try this: as type 'setup', from menu select 'System services'

Re: [PHP] Startup

2001-08-16 Thread Daniel Rezny
Hello Roman, Friday, August 17, 2001, 8:46:45 AM, you wrote: R> I install apache 1.3.20, php 4.0.6 and mysql on Red Hat Linux 7.0 but R> I must start thei manualy. I want to start this services automatically when R> starts the linux. How ? R> roman give a link to /etc/rc.d/rcxx where xx is a

RE: [PHP] Startup

2001-08-16 Thread Lawrence . Sheed
you're startup files are typically in /etc/rc.d/init.d on redhat be *very* careful though! Create a script which starts whatever you need in there. create a text file which starts apache. eg pico startapache #start apache apachectl start save file chmod +x it to make it executable do the

[PHP] Startup

2001-08-16 Thread Roman
I install apache 1.3.20, php 4.0.6 and mysql on Red Hat Linux 7.0 but I must start thei manualy. I want to start this services automatically when starts the linux. How ? roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] Help.

2001-08-16 Thread rajarajeswari balasubramanian
Hi, I have created a database with the backend of Mysql and i am accesing the database using PHP scripts. In the database there is one field, which has the information of the structure of a molecule as a Coordinate data. when i am using the mysql_fetch_array() command to retrive the data, it's

RE: [PHP] hacks we should know about

2001-08-16 Thread Lawrence . Sheed
/ might be a correct path not a hack attempt. here's something normalizes a directory for a given path passed to it. eg /index.txt eg ../../../ will get parsed out. such as in the http://www.somesite.com?page=../../../../etc/passwd Originally written for a directory browse script i use for a

Re: [PHP] hacks we should know about

2001-08-16 Thread ReDucTor
- Original Message - From: "Bob" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, August 17, 2001 2:17 PM Subject: Re: [PHP] hacks we should know about > rasmus, if password.inc is being parsed by php then how would you get the > code???

Re: [PHP] Formatting Percents

2001-08-16 Thread Evan Nemerson
When you print out the value just use printf("%.2f",$bprice); Like in C On Thursday 16 August 2001 21:31, you wrote: > Hello everyone, > > I am having a problem and can't seem to find an answer. Maybe someone here > can help. I have a gift store that has prices of items. Well each item has

Re: [PHP] Is there a special character I here? (Regular Expressions)

2001-08-16 Thread Rasmus Lerdorf
> I am starting on php, coming from Perl. One thing I really like on the way > we can use regex in Perl is the shorthand: > > \w --> [a-zA_Z0-9_] > \W --> [^a-zA_Z0-9_] > \d --> [0-9] > \D --> [^0-9] > \s --> white space characters > ... > > Is this shorthand handled in php? Sure, all the preg* f

Re: [PHP] OT win95/apache/ query

2001-08-16 Thread David Robley
On Fri, 17 Aug 2001 13:57, rm wrote: > Couple of months ago my HD died, I replaced it, > re-installed win95, reinstalled apache and php. This > evening I have to create a .htaccess file for a > production web site to generate custom error messages > like > > ErrorDocument 404 /errordocs/404 > E

RE: [PHP] OT win95/apache/ query

2001-08-16 Thread Lawrence . Sheed
Windows is a little stupid try this from windows start/run/command echo > .htaccess you now have a blank .htaccess file, copy it to wherever you need and edit it with whatever contents you need. -Original Message- From: rm [mailto:[EMAIL PROTECTED]] Sent: August 17, 2001 12:27 PM To:

Re: [PHP] Is there a special character I here? (RegularExpressions)

2001-08-16 Thread Guilherme Pinto
I am starting on php, coming from Perl. One thing I really like on the way we can use regex in Perl is the shorthand: \w --> [a-zA_Z0-9_] \W --> [^a-zA_Z0-9_] \d --> [0-9] \D --> [^0-9] \s --> white space characters ... Is this shorthand handled in php? Thanks, Guilherme On 8/16/01 5:17 PM,

Re: [PHP] Formatting Percents

2001-08-16 Thread David Robley
On Fri, 17 Aug 2001 14:19, David Smith wrote: > What I have in code. > > If the retail price is $139.95 and I use the following: > > $aprice = $hotbuys["price"] * .15; // Determine Discount > $bprice = $hotbuys["price"] - $aprice; // Subtract Discount > > $bprice = 118.9575 > > How can I format

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
DOH, wouldn't you know it. As soon as I sent these messages I found my answer... $sellprice = round ($bprice, 2); -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 11:50 PM To: David Smith; [EMAIL PROTECTED] Subject: RE: [PHP] Formatting Perc

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
What I have in code. If the retail price is $139.95 and I use the following: $aprice = $hotbuys["price"] * .15; // Determine Discount $bprice = $hotbuys["price"] - $aprice; // Subtract Discount $bprice = 118.9575 How can I format that to just 118.96? -Original Message- From: David

RE: [PHP] Putting Include files outside of document root

2001-08-16 Thread David Smith
If you upload your index.htm file into the /dir folder and it shows then this is your document root folder. I would say if you place something in /myname then that would be outside your document root. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16

[PHP] Putting Include files outside of document root

2001-08-16 Thread Tom Malone
I know this will sound like a dumb question to most, but I am new to *nix OS's - If my document root is something like /home/myname/dir/ (as per phpinfo()), and I put my include files in /home/myname/includes/, is that actually outside of the document root, or is anything under /home/myname/ actu

[PHP] Formatting Percents

2001-08-16 Thread David Smith
Hello everyone, I am having a problem and can't seem to find an answer. Maybe someone here can help. I have a gift store that has prices of items. Well each item has a retail price that I have added to the DB. Let's say I want to sell the products at a discount of 15% but I don't want to

[PHP] mysql_db_name not working (followup)

2001-08-16 Thread Peter Ostry
> The command "mysql_db_name" is not working in our installation. > We get no error, but no database listing either if we use this command. > - Now I know more: mysql_tablename is not working either - we tested both commands in a separate file. I wonder what else is not working... phpMyAdmi

[PHP] OT win95/apache/ query

2001-08-16 Thread rm
Couple of months ago my HD died, I replaced it, re-installed win95, reinstalled apache and php. This evening I have to create a .htaccess file for a production web site to generate custom error messages like ErrorDocument 404 /errordocs/404 ErrorDocument 500 /errordocs/500 etc win 95 will

Re: [PHP] hacks we should know about

2001-08-16 Thread Rasmus Lerdorf
> rasmus, if password.inc is being parsed by php then how would you get the > code??? won't it just be a blank page??? oh i thought up one more ... Include files are written to be included. They are tested and debugged in the scope of the file that is including it. Parsing such an include fil

Re: [PHP] hacks we should know about

2001-08-16 Thread Bob
rasmus, if password.inc is being parsed by php then how would you get the code??? won't it just be a blank page??? oh i thought up one more ... 4. checking for html tags and php scripting when accepting data from text boxes Rasmus Lerdorf wrote: > > hi i found it very helpful to know about h

RE: [PHP] hacks we should know about

2001-08-16 Thread Lawrence . Sheed
my 2 cents Anyone with a clue doesn't use /etc/passwd anymore *shadow password file*, so thats kind of depreciated... Your php process should not be running as root - typically you will give apache its own group, and apache + php will only be able to access files which that group has permission

[PHP] Errcode: 2 when running LOAD DATA LOCAL INFILE on server

2001-08-16 Thread Yeong CN
Hi. This is the script I write to upload a .csv file into my online mysql database : $sql_query="LOAD DATA LOCAL INFILE '$textfile' INTO TABLE purchase FIELDS TERMINATED BY ',' (purchase_order,job_no,username,model,quantity,due_date,sent_date,courier_service,remark)"; $sql_query=($sql_query);

Re: [PHP] hacks we should know about

2001-08-16 Thread Rasmus Lerdorf
> hi i found it very helpful to know about hacks such as the below list > and was wondering if anyone had any more dumb mistakes they could tell > us before we make them. > > 1. http://www.somesite.com/source.php3?url=/etc/passwd > 2. http://www.somesite.com?page=../../../../etc/passwd > 3. not se

[PHP] Errcode: 2 when running LOAD DATA LOCAL INFILE on server

2001-08-16 Thread Yeong CN
Hi. This is the script I write to upload a .csv file into my online mysql database : $sql_query="LOAD DATA LOCAL INFILE '$textfile' INTO TABLE purchase FIELDS TERMINATED BY ',' (purchase_order,job_no,username,model,quantity,due_date,sent_date,courier_service,remark)"; $sql_query=($sql_query)

[PHP] hacks we should know about

2001-08-16 Thread Bob
hi i found it very helpful to know about hacks such as the below list and was wondering if anyone had any more dumb mistakes they could tell us before we make them. 1. http://www.somesite.com/source.php3?url=/etc/passwd 2. http://www.somesite.com?page=../../../../etc/passwd 3. not setting .inc fi

Re: [PHP] File uploads in PHP

2001-08-16 Thread Data Driven Design
This is a very good tutorial on the subject. http://www.thickbook.com/extra/php_fileupload.phtml Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: "Dr. Evil" <[EM

[PHP] Re: problem with a hacker

2001-08-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Craig Henderson) wrote: > Today a hacker managed to overwrite the text file I was using to > store all the messages, which really isn't that big a surprise considering > the permissions to the folder it is kept in are wide open thanks to my > ho

[PHP] File uploads in PHP

2001-08-16 Thread Dr. Evil
My PHP script needs to receive some files. I've seen sites which accept them; they have a Browse button which lets the user select a file to send. That's what I want to do. I have a few questions about this. First of all, this is with php4.06. Secondly, the files are all going to be images,

[PHP] Re: problem with a hacker

2001-08-16 Thread Hugh Bothwell
"Craig Henderson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My question is, is there anything that I can do so that only PHP scripts on > the server are able to access the file? Or am I going to have to contact my > hosting company and see if they can fi

Re: [PHP] Is there a special character I here? (Regular Expressions)

2001-08-16 Thread Philip Olson
It's probably a good idea to learn a bit about regular expressions. In short, PHP gives us two types of regular expressions to play with, POSIX and PCRE. For more information : PCRE : http://php.net/manual/en/ref.pcre.php POSIX : http://php.net/manual/en/ref.regex.php The following

Re: [PHP] problem with a hacker

2001-08-16 Thread John Meyer
>I'm currently running my site on a win2k server, I'm using PHP for my tag >board. Today a hacker managed to overwrite the text file I was using to >store all the messages, which really isn't that big a surprise considering >the permissions to the folder it is kept in are wide open thanks to my

[PHP] Slow LDAP Queries (PHP 4.0.4p1 RH 7.1)

2001-08-16 Thread Emilio Panighetti
I have OpenLDAP and PHP 4.0.4p1 on a RedHat 7.1 (plain distribution, didn't recompile anything, and I use MOD_LDAP to authenticate users to an intranet site. I want PHP pages to show the real username so I have this function I call when I want to know the username. the mod_ldap queries and ldap q

[PHP] problem with a hacker

2001-08-16 Thread craig henderson
I'm currently running my site on a win2k server, I'm using PHP for my tag board. Today a hacker managed to overwrite the text file I was using to store all the messages, which really isn't that big a surprise considering the permissions to the folder it is kept in are wide open thanks to my hosti

[PHP] Regular Expression ? from newbie

2001-08-16 Thread Craig Westerman
Consider the following table that I grabbed from another web site using: http://www.abc123xyz.com'; $lines_array = file($url); $lines_string = implode('', $lines_array); ?> === banana .46 .55 pear .38 .51 apple .59

[PHP] cgi - switch not working?!

2001-08-16 Thread Jamie Burns
hi... i have compiled php as a cgi binary on my linux box. i want to be able to tell the binary which ini file to use on the command line, which i thought would be the -c switch. entering: ./php -? reveals: Usage: php [-q] [-h] [-s [-v] [-i] [-f ] | { [args...]} -q

Re: [PHP] Is there a special character I here?

2001-08-16 Thread ERISEN, Mehmet Kamil
I use a javascript to do that for my forms: if (window.RegExp) { var reg = new RegExp("^[_0-9a-z]*$","gi"); if (!reg.test(f.elements['username'].value)) { alert("Kullanici adi harf ve/veya rakamlardan olusmalidir. Lutfen Duzeltiniz!"); f.elements['username'].focus(); return(false)

[PHP] Is there a special character I here?

2001-08-16 Thread Brandon Orther
Hello, I am looking for a way to check a string if it has anything other than Numbers or Letters. Does anyone know how to do this? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.co

[PHP] Green eggs and Magic Quotes

2001-08-16 Thread Justin
Let's see if I can elaborate a little on my previous problem... I work with 3 ISPs, 2 of which have Magic Quotes turned off (can someone tell me why an ISP would want to have magic quotes turned off???). If I feed a large dump from one database into another (using phpMyAdmin) then on the one wit

Re: [PHP] Problem with a query? or Syntax?

2001-08-16 Thread Chris Hayes
> $num_de_rows = mysql_num_rows ($r); > this line <-if ( $num_de_rows > 0 ) { (i create some html > tables here) } > The error im getting is: > Warning: Supplied argument is not a valid MySQL result resource in > /home/passive-/public_html/pic_archive.php on line 172 I am not su

[PHP] Re: PHP within .html files

2001-08-16 Thread Chris Hayes
> It's not very usual for the simple reason that many people who have access > to a PHP web server don't use it, they just use normal HTML. The problem > with having HTML execute as PHP is that it uses the PHP module when it > mightn't need to. On my webserver the extensions which are parsed as PH

Re: [PHP] Win One of 25 Dream Vacation Getaways!! .

2001-08-16 Thread PHP List
Ge, does this mean we ALL won? :O - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 2:40 PM Subject: [PHP] Win One of 25 Dream Vacation Getaways!! . > You have been specially selected to qualify for the following: > > Premium Va

[PHP]Urgent Question

2001-08-16 Thread Chris Cocuzzo
hey- this has ABSOLUTELY no relation to php in any way, however I wanted to ask. I'm about to order a computer for school. I need opinions on Gateway vs. Dell and vice versa. So far, I'm leaning towards gateway(more bang for the buck) thanks chris -- PHP General Mailing List (http://www.php.n

[PHP] PHP and Perl script in same file?

2001-08-16 Thread Tom Beidler
Can php and perl code reside in the same file? When the document is served up it parses the PHP and then the Perl? -- 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 administrators, e

Re: [PHP] Problem with a query? or Syntax?

2001-08-16 Thread Rasmus Lerdorf
> The site is (www.passive-aggressive.org/pic_archive.php). The problem > only happens when i select 08 as the month (i have a dropdown in which 08 is an invalid octal number which will evaluate to 0 -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] passing variables from PHP to Perl script

2001-08-16 Thread Tom Beidler
I'm trying to integrate an Internet Telephony service for a client. I have a number of variables I need to dump into the clients database and then to pass to the Internet Telephony service via a Perl script they have provided for me that will reside on the client's server. Can I somehow pass them

[PHP] Win One of 25 Dream Vacation Getaways!! .

2001-08-16 Thread CATHY4233
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://www.1xin.net/wintrip Confirmation Number#Lh340 Please confirm your entry within 24 ho

[PHP] Problem with a query? or Syntax?

2001-08-16 Thread .::romina:tulisi::.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello... Im having a problem with a php code that was running (and is running smoothly until today i guess). The code that's giving me the error is this: $sql = "select * from archivo where fecha between $fechaprima and $fechasegu";

SV: SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Well, I'll have to change the max execution time in the script. You can do that dynamically, or in the php.ini file. /Jimmy - Original Message - From: Sheridan Saint-Michel <[EMAIL PROTECTED]> To: php-general <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 8:20 PM Subject: Re: SV: [

[PHP] Re: PHP within .html files

2001-08-16 Thread Marc Hanlon
It's not very usual for the simple reason that many people who have access to a PHP web server don't use it, they just use normal HTML. The problem with having HTML execute as PHP is that it uses the PHP module when it mightn't need to. On my webserver the extensions which are parsed as PHP are .p

[PHP] Interesting links

2001-08-16 Thread Elias Santiago
PHP IDE for Linux Only a.. Coffeecup Editor (the best IDE for PHP on Linux) PHP editor b.. HTML/PHP editors Quanta c.. HTML/PHP editors Blue Fish d.. HTML editors AswEdit On Windows a.. PHP IDE and Editor "PHP Coder" and mirror b.. Zend PHP IDE c.. IDE for PHP scripting (Web browser)

Re: [PHP] Oracle module installation

2001-08-16 Thread Rasmus Lerdorf
> I am under the (possibly flawed) assumption that you need to > have the oracle client installed on the web server in order > to use the oracle PHP module. Since I don't want to use the > client on this machine at all, I would prefer to use the Perl > DBI/DBD modules to connect to the data

Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-16 Thread Elias Santiago
Found MS explanation! (at least the only place I've found the reason WHY %s %s must be used) http://support.microsoft.com/support/kb/articles/Q276/4/94.ASP I know, this is a KB article for Python, but look closely at the line that says: "(The two "%s" after the executable are required for conso

Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-16 Thread Elias Santiago
I've had PHP 3 to 4.01 and now 4.06 running under NT4 SP6a and now with W2K & IIS 5. From my experience, the %s %s is a requirement of IIS (not PHP). This according to Microsoft rules (apparently %s %s is CASE SENSITIVE): http://support.microsoft.com/support/kb/articles/Q245/2/25.ASP The %s %s h

[PHP] Is jacascript enabled?

2001-08-16 Thread Seb Frost
What's thee easiest way to check this? - seb -- 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 administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] bold current menu item (fwd)

2001-08-16 Thread Daniel Adams
Another way you could do it would be to check each item in the $GLOBALS["argv"] variable (or $argv). - Dan -- -- Forwarded message -- Date: Thu, 16 Aug 2001 14:18:09 -0400 (EDT) From: Daniel Adams <[EMAIL PROTECTED]> To: Jason Dulberg <[EMAIL PROTECTED]> Cc: [EMAIL PROTE

RE: [PHP] bold current menu item

2001-08-16 Thread Daniel Adams
I suppose you could check the $GLOBALS["REQUEST_URI"] variable with a regular expression or something. - Dan On Thu, 16 Aug 2001, Jason Dulberg wrote: > The menu that's taken from the database is basically a list of links like > this > > $s="select * FROM molds m, prodlookup p WHERE p.ci

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Sheridan Saint-Michel
Doesn't that make your script take A REALLY LONG TIME to run? If you do sleep(1) after each call to mail() and send out 1000 e-mails that would be a little over 16 and a half minutes of sleep. At 5000 you are up to over 80 minutes. Isn't this a problem? Sheridan Saint-Michel Website Administra

RE: [PHP] bold current menu item

2001-08-16 Thread Jason Dulberg
The menu that's taken from the database is basically a list of links like this $s="select * FROM molds m, prodlookup p WHERE p.cid=$cid and p.pid=m.id ORDER BY p.pid"; $menu=mysql_query($s); while ($stuff = mysql_fetch_array($menu)) { extract($stuff); echo "".$title.""; } So basi

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Dennis Moore
Another alternative is to send the email message via majordomo or some other mail list management utility. The trick is how to manage the list (subscribe and unsubscribe). You have to make the decision whether or not you want to use the MLM or your PHP/database application as the primary control

Re: [PHP] Need to dynamically globalise variables

2001-08-16 Thread Rasmus Lerdorf
Use the $GLOBALS array. On Thu, 16 Aug 2001, Tom Hodder wrote: > > I have a function like this... > > function register_db_to_globals( $row ) > { > while( list( $key, $val) = each( $row ) ) > { > global $$key; // (I've tried this with $key as well >

[PHP] Oracle module installation

2001-08-16 Thread Mike Kelland
I am under the (possibly flawed) assumption that you need to have the oracle client installed on the web server in order to use the oracle PHP module. Since I don't want to use the client on this machine at all, I would prefer to use the Perl DBI/DBD modules to connect to the database

[PHP] Need to dynamically globalise variables

2001-08-16 Thread Tom Hodder
I have a function like this... function register_db_to_globals( $row ) { while( list( $key, $val) = each( $row ) ) { global $$key; // (I've tried this with $key as well print "$key : $val "; } } where the function prints this; j

RE: [PHP] Sending alots of mail

2001-08-16 Thread Tyrone Mills
I use qmail to handle all my PHP generated mail. It does a wonderful job. One small coding error sent almost 1000 e-mails to one address in about 30 seconds. It's fast! -Original Message- From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 9:46 AM To: Daniel A

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
Actually I remember that I did have the same problem. I had to use sleep() also even though I was only sending a few hundred rather than a few thousand. - Dan On Thu, 16 Aug 2001, PHP List wrote: > Thats interesting. > I tried to do the same thing with 5000 emails using sendmail, and I

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
I've heard that qmail is better for a lot of things and easier to configure, but I've never actual used it. Perhaps I'll give it a try next time i set one up. - Dan On Thu, 16 Aug 2001, Jimmy Bäckström wrote: > Hmm that's what I thought about. But I think the system I'll be using uses

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
No I'm not passing credit card numbers. I have to receive the variables from the payment processing company because my clients ISP is not using cURL and I can't do a secure post of the info to them. > From: "Data Driven Design" <[EMAIL PROTECTED]> > Date: Thu, 16 Aug 2001 13:21:53 -0400 > To: "T

[PHP] mysql_db_name not working

2001-08-16 Thread Peter Ostry
The command "mysql_db_name" is not working in our installation. We get no error, but no database listing either if we use this command. - // This is the code which does NOT work: $dbs = mysql_list_dbs(); $num_dbs = mysql_numrows($dbs); for($i=0; $i<$num_dbs; $i++) { $db = mysql_dbname($dbs, $i

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Data Driven Design
You're not sending CC numbers in the url as plain text are you? That's a REALLY BAD idea. You should store the information in your database before you go to processing the CC (name, address, etc.) and don't store CC numbers, the liability is much more than you're being paid. If you store it ahead

[PHP] Reload a page when a user press the back button

2001-08-16 Thread Mauricio T?llez Jim?nez
Hi all, I don't know if this is a PHP related question, but here it is: I'm developing a PHP / MySQL site, and, in one page the admin of the site has the power to add categories to the database in a field. To check if the entry is already set, there is a control with all the entries in the d

[PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
I'm trying to integrate a payment processing service for a client. The client would like to store the values passed from the payment processing service in a database on the clients server. I'm using a Meta Tag redirect from the payment processing service to my client to pass the variables. Unfort

Re: [PHP] php_value in htaccess, internal server error

2001-08-16 Thread Egan
On Thu, 16 Aug 2001 11:14:17 +0930, David Robley <[EMAIL PROTECTED]> wrote: >On Thu, 16 Aug 2001 03:08, Egan wrote: >> I need to set some PHP values like: >> >> php_value session.save_path /a_more_secure_dir >Yuo might try allowovveride options Yes, thanks. I was trying to avoid "allowoverr

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Can't you queue mails somehow? So that all mails isn't sent at the same time? -- 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 administrators, e-mail: [EMAIL PROTECTED]

RE: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tom Hodder
You could write all the emails to a database with columns toAddress,fromAddress,subject,body and any others you might want, and then write a cron job to check the database every 10 mins for records it might also be possible to read the process list into a variable and then only start new sendma

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread PHP List
Thats interesting. I tried to do the same thing with 5000 emails using sendmail, and I found that only about 1/2 were actually sent, it seems like the multiple calls to mail caused some of them to be ignored. I had to sleep for a couple of seconds before each call to mail() in order to get them al

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hmm that's what I thought about. But I think the system I'll be using uses qmail. I've heard that qmail does things better than sendmail? /Jimmy - Original Message - From: Daniel Adams <[EMAIL PROTECTED]> To: Jimmy Bäckström <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, Au

Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf
Or just specify the socket path right in your mysql_connect() call. -Rasmus On Thu, 16 Aug 2001, Jay Paulson wrote: > well i just compiled php again and that still didn't solve the problem... i > guess i just need to keep recompiling php until i get that variable set to > the right thing? > > t

[PHP] Fw: http methods

2001-08-16 Thread Edney Marcel Imme
Hi. Can anyone send me examples from http methods? (PUT, HEAD, GET, POST, DELETE, TRACE). Tks Edney Marcel Imme [EMAIL PROTECTED] Fone: Celular: 91124616 == "Voce quer REALMENTE que o e-commerce de certo no Brasil ? Então compre

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tim
I have a system where we send periodic batches of 60,000 messages at a time, so it's definitely doable. It helps to put some throttling in there (i.e. a sleep() periodically) to be kind to your e-mail server. - Tim On 16 Aug 2001 18:34:11 +0200, Jimmy Bäckström wrote: > Hmm I knew that =) > I j

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tyler Longren
Yeah...probably too much. Sending 5000 individual e-mails would really bog the system down...no matter what it is. Personally, I wouldn't do it. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 16 Aug 2001 18:34:11 +0200 Jimmy Bäckström <[EMAIL PROTECTE

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hmm I knew that =) I just wondered if it's such a good idea. 5000 mail is very much you know. /Jimmy - Original Message - From: Tyler Longren <[EMAIL PROTECTED]> To: Jimmy Bäckström <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 6:25 PM Subject: Re: [PHP] Sen

Re: [PHP] Sending alots of mail

2001-08-16 Thread Jome
I have done this, and it's not a bad idea as long as you aren't sending spam. It's rather easy to do this, just do a mysql_query() from the database where you select the subscribers field and then do a while which sends out emails via the mail()-function. You may experience problem with max ex

Re: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
I did something like that once. Mine sent only about a few hundred at a time and it was still quite a strain on the system because you have a TON of sendmail processes started and running at the same time. Just be aware of the possible system load. - dan On Thu, 16 Aug 2001, Jimmy Bäckst

Re: [PHP] Sending alots of mail

2001-08-16 Thread Tyler Longren
This was just discussed last week. Here's how: $connection = mysql_connect("host","user","pass"); $db = mysql_select_db("db_name", $connection); $sql = mysql_query("SELECT * FROM table_name ORDER BY email ASC"); while ($row = mysql_fetch_array($sql)) { $email = $row["email"]; $nam

[PHP] [PHP-WIN] Re: [PHP] Re: [PHP-WIN] Installation failed ! PleaseHelp!

2001-08-16 Thread Angie Tollerson
Jim, Could you give us an example and explanation as to why no %s %s is unstable? How has this failed you ? because I've never had a problem with not having it in there that I know of. PHP has always executed for me properly, NT 4.0 and w2k. But if it is unstable I don't want to find out late

[PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hi list! I'm about to write an application that takes about 5000 mailadresses from a database, and then sends a mail to each one of them. I haven't done this kind of apps before, so I don't know if it's a good idea. Does anyone have any suggestions? /Jimmy

Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-16 Thread Phil Driscoll
On Thursday 16 August 2001 4:45 pm, Powell, Jim (EER) wrote: > > Second, make the application extensions point to php.exe (you > > don't need the > > %s %s stuff). > > This I have to disagree with. Without the %s %s, you are rolling dice as > to whether the page will work or not. I never had th

RE: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-16 Thread Powell, Jim (EER)
> First of all, the ISAPI module is not stable. It will just > cause you grief so > remove it from your filters list. Now this is a true statement, especially with IIS, it just don't work. > > Second, make the application extensions point to php.exe (you > don't need the > %s %s stuff). Thi

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and uploa

[PHP] Re: Online Psychology Tests

2001-08-16 Thread Hugh Bothwell
"Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of online psychology tests where the answers are > interpreted by a php script? Does anyone use php for this purpose? Don't know of any offhand, but so long as it's just multiple ch

[PHP] Re: Zend Optimizer

2001-08-16 Thread Jonathan Hilgeman
Zend Optimizer will speed up the code, but I do not believe it crunches the size of files. If you need smaller files for a graph, use PNG or JPEG - not the GIF format. The GIF format is old and unoptimized in PHP/GD, so it gets really big in size unless you have something like ImageMagick to optim

Re: [PHP] Sort a an array?

2001-08-16 Thread Sheridan Saint-Michel
Change $query = "select * from $table"; to $query = "select * from $table order by Jobtitle"; Assuming (from your code) you want them alphabatized by Jobtitle of course =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: All

RE: [PHP] PHP within .html files

2001-08-16 Thread Jon Haworth
Apache can be set up to parse whatever files you like as .php (you could have .paul if you like...) - presumably your host has enabled this. If you have access to .htaccess files (or the main server config, httpd.conf), you can set this up on any Apache server with the line AddType application/x-

RE: [PHP] Sort a an array?

2001-08-16 Thread Jon Haworth
The best way to do this, which is conveniently also the easiest, is to do it within your SQL query. $table = "tablename"; $field = "fieldname"; $query = "select * from $table order by $field"; or, for descending sort: $query = "select * from $table order by $field desc"; HTH Jon -Origin

[PHP] global variables in functions

2001-08-16 Thread Tom Hodder
Hi, I have a function like so function updateForm() { global $link; $query = "UPDATE badgers SET lname = '$lname', fname = '$fname' WHERE

RE: [PHP] Sort a an array?

2001-08-16 Thread Sam Masiello
Instead of trying to sort the result AFTER it returns from the query, you could use an ORDER BY clause in your query to sort the results prior to trying to output it? You could change your query to something like: "SELECT * FROM tablename ORDER BY fieldname" HTH Sam Masiello Software Quality

  1   2   >