Re: [PHP] file locks

2002-04-10 Thread rarmin
Liam Gibbs wrote: > < trying to access is locked by other script (via > flock()) or not. I need to make script wait untill > other script running in a parallel thread releases the > lock on the file.>> > > Without testing, would this work? Just a suggestion > (read: shot in the dark) that may wo

[PHP] Re: how to send an email to everone listed in a file

2002-04-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi all. I really wish I could contribute here and help > people out too but i don't know a fraction of the > stuff that you gurus do. > I try not to bug you all with too many questions and > try to figure it out/learn on my own as much

[PHP] MySQL connection from non-localhost

2002-04-10 Thread David Johansen
I was just wondering if there was a way to connect to a MySQL server on a server other than the one that your php script is on. I tried just putting in the URL of the site in place of localhost but that didn't work. Is there anything special that I have to do to get it to work? Thanks, Dave --

[PHP] Re: MySQL connection from non-localhost

2002-04-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I was just wondering if there was a way to connect to a MySQL server on a > server other than the one that your php script is on. I tried just putting > in the URL of the site in place of localhost but that didn't work. Is there > anythi

[PHP] Php + Mysql Hosting problem

2002-04-10 Thread Simonk
I have made a web site containing Php and Mysql script And I have applied for a free web hosting account in www.spaceports.com there are two folder i can use: Public_html Cgi-bin which one i should put mysql files in? and what user name and password should i use for connecting mysql server? the

Re: [PHP] XML HELP

2002-04-10 Thread Michael Virnstein
Why don't you use this class...it's really good! http://sourceforge.net/projects/phpxpath/ "Analysis & Solutions" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey Christopher: > > On Mon, Apr 08, 2002 at 09:14:08PM -0400, Christopher J. Crane wrote: >

[PHP] session variables and unset

2002-04-10 Thread Valdas Andrulis
Hello, I have 3 scripts: ## i2.php ## i.php ## i1.php When I open http://host/i2.php on my browser I get 0, though I expect it to be 4. If I uncomment session_unregister("counter"); I get 4 as expected. PHP version 4.1.2. Anyone can explain this behavior? Also can anyone try this with sa

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-10 Thread M
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel > > imagecreatefromstring() seems to be the candidate... howev

[PHP] using php for keywords

2002-04-10 Thread Marc
hi how can i use php to list keywords in search engines ?!? how to index a website keywords via php =) plz mail thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Empty HTML problem

2002-04-10 Thread K.Tomono
Hello. Would you try to confirm your server's native response as below? telnet your.server 80 GET /your/authentication_code.php HTTP/1.0 Authorization: Basic base64encoded_ID/PW -- (request header ends with \n * 2) > -- > > > HEAD> > > --

php-general Digest 10 Apr 2002 10:27:56 -0000 Issue 1278

2002-04-10 Thread php-general-digest-help
php-general Digest 10 Apr 2002 10:27:56 - Issue 1278 Topics (messages 92311 through 92358): Re: Manipulate the address field in the browser? 92311 by: Dan Harrington 92313 by: Maxim Maletsky Re: AS/400 data access 92312 by: Dan Vande More 92316 by: Matt au

[PHP] Re: Scoping functions in PHP

2002-04-10 Thread Michael Virnstein
No, there's nothing like private or public functions/methods. There's no way preventing someone using your private functions/methods. "Eric Starr" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000e01c1e041$d931cc20$[EMAIL PROTECTED]">news:000e01c1e041$d931cc20$[EMAIL PROTECTED]... I am a Java progra

[PHP] Re: allowed tags reg exp

2002-04-10 Thread liljim
Hi try this (untested) and friends with their html equivelants. $input = htmlenitities($input); $input = preg_replace("!<(b|i|u)>(.*?)!is", "<$1>$2", $input); echo $input; ?> I use something like this on one of my sites, though I check as the user inputs the info whether or not there

[PHP] mailing list using mail()

2002-04-10 Thread Petre Agenbag
Hi, the combination of PHP and mysql and the ease of use of the mail() function obviously leads me to believe that it *should* be a singe to use php to send customised messages to all my users , of whom I have details in a mysql table by simply running a "select * from table" and then using a

[PHP] mysql

2002-04-10 Thread Mason Batley
Hi guys, I've been looking on the net and the php docs for a simple mysql query solution, can someone please let me know the best way to get the values of a query that only returns 1 record? All the select query examples on the net are examples of multiple records being returned, and therefor, t

RE: [PHP] mysql

2002-04-10 Thread Brian Drexler
select * from table_name where criteria=whatever limit 1; -Original Message- From: Mason Batley [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 12:02 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql Hi guys, I've been looking on the net and the php docs for a simple mysql query

[PHP] Re: mailing list using mail()

2002-04-10 Thread Michael Virnstein
> Should I just use one message and append the BCC: line of the one message? this could probably be the best way. "Petre Agenbag" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > the combination of PHP and mysql and the ease of use of the mail() > f

[PHP] using .htaccess to repoint

2002-04-10 Thread Adrian Murphy
Hi, my isp uses wildcard dns to point to the root. I want to put a .htaccess file in the root to repoint the wildcard requests to a sub-folder but leave the normal request alone. plese help or tell me an article i can read(i've looked but haven't found one specifically dealing with this.) adrian.

RE: [PHP] using .htaccess to repoint

2002-04-10 Thread Stampe, Lars
Hi, This might be helpful http://rob-mike.php4hosting.com/mike/htaccess/ Lars -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 12:29 To: [EMAIL PROTECTED] Subject: [PHP] using .htaccess to repoint Hi, my isp uses wildcard dns to point to the root.

[PHP] printf

2002-04-10 Thread Ron Allen
I am looking at how to format output Here is what I have. There is a simple currency conversion that I do and the output is just a string of numbers I would like it so that it puts a comma for every 3 spaces...Any clues..oh knowing newsgroup -- PHP General Mailing List (http://ww

[PHP] Re: mailing list using mail()

2002-04-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > the combination of PHP and mysql and the ease of use of the mail() > function obviously leads me to believe that it *should* be a singe to > use php to send customised messages to all my users , of whom I have > details in a mysq

[PHP] Re: mysql

2002-04-10 Thread David Robley
In article <002401c1e10d$96850910$e700a8c0@horizon>, [EMAIL PROTECTED] says... > Hi guys, > > I've been looking on the net and the php docs for a simple > mysql query solution, can someone please let me know > the best way to get the values of a query that only returns 1 record? > > All the sel

[PHP] Re: printf

2002-04-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am looking at how to format output > > Here is what I have. There is a simple currency conversion that I do and > the output is just a string of numbers > I would like it so that it puts a comma for every 3 spaces...Any > clues..

[PHP] Re: mailing list using mail()

2002-04-10 Thread Yasuo Ohgaki
Michael Virnstein wrote: >>Should I just use one message and append the BCC: line of the one message? > > > this could probably be the best way. Right, but some MTA cannot handle too large header(s). Why don't you use list server in first place? For example, ezmlm support database backends if

[PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Brian Drexler
Here is my code: mysql_connect("localhost","username","password"); $result=mysql_db_query("Database","select * from table_name where criteria=whatever limit 1"); while($r=mysql_fetch_array($result) { $Value1=$r["TableFieldName1"]; $Value2=$r["TableFieldName2"]; echo "$Valu

Re: [PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Luke van Blerk
No its not. mysql_fetch_array will return an array if a record is found or false if not. Regards Luke - Original Message - From: "Brian Drexler" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 1:58 PM Subject: [PHP] Is While need

[PHP] Re: printf

2002-04-10 Thread Steve Fitzgerald
Use number_format() to put a comma between the thousands $foo = 123456789; print number_format($foo); //will print 123,456,789 Ron Allen wrote: > I am looking at how to format output > > Here is what I have. There is a simple currency conversion that I do and > the output is just a string of nu

[PHP] Re: printf

2002-04-10 Thread Ron Allen
This is what I have and it is not working $converted1 =round($usdamount * $convamount, 2); $converted = number_format($converted1); //echo "$amount * $convamount = $converted"; echo "You should receive$nbsp $converted $currency"; "Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

[PHP] Sessions and Opera

2002-04-10 Thread Steve Fitzgerald
While testing a login page with different browsers I noticed that Opera (vers5.02) didn't allow me access to the site despite using the correct input, so I wrote the following pages to test Opera's performance. It seems that Opera doesn't pass registered variables to the new page. IE & NS both pr

[PHP] Re: printf

2002-04-10 Thread Ron Allen
Figured out why it wasn't working, but I need to be able to display the 2 decimals afterwards "Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking at how to format output > > Here is what I have. There is a simple currency conversion that I

[PHP] Re: printf

2002-04-10 Thread Ron Allen
figured that out as well You need to put the number_format($number,2) afterwards Thanks to both you! "Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking at how to format output > > Here is what I have. There is a simple currency convers

[PHP] Re: Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Michael Virnstein
It seems that you don't understand why mysql_fetch_array is most often used inside a loop. The loop is not required! if you don't put mysql_fetch_array inside a loop, you can only get the first row and that's it, because calling mysql_fetch_array will return the next row in your result. if you exp

[PHP] Re: Sessions and Opera

2002-04-10 Thread Julio Nobrega Trabalhando
Cookies disabled? Or cache? Have you tried a 'fresh' Opera install or a newer version? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Steve Fitzgerald" <[EM

RE: [PHP] XML HELP

2002-04-10 Thread Crane, Christopher
ok I tried this code and the array is still empty. By the way, my code looked the way it did because the browser or my mail client cut it off. I had each of the functions on one line for easy reading but because of the wrap I changed it to how you had it, which is how I would normally do it if eac

[PHP] MSIE 6.0 Cookie/Privacy Question

2002-04-10 Thread Richard Spangenberg
Hi, I have noticed that my cookies work just fine in MSIE 6.0 if the browser's privacy setting is set to low. However, in all other settings it is not responding. I am using a remote file JS call to set the cookie. The browser will only read cookie from the host that the page is loaded from an

[PHP] Re: Sessions and Opera

2002-04-10 Thread Steve Fitzgerald
Cookies it was. Thanks Julio Nobrega Trabalhando wrote: > Cookies disabled? Or cache? Have you tried a 'fresh' Opera install or a > newer version? > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://sourceforge.net/projects/toca > > Ajudei? Salvei? Que tal um presentinho? > http://www.s

Re: [PHP] Re: mailing list using mail()

2002-04-10 Thread Anzak Wolf
Is there anyway you could break this up into managable chunks maybe. I'm currently doing something similar in that I'm writing a PHP based list server app that uses a heirarchical grouping system, but mine is broken done into smaller chunks based on group and user permissions. What if you did

Re: [PHP] Re: MySQL connection from non-localhost

2002-04-10 Thread Barry C. Hawkins
Dave, Did you use the URL: http://www.domain.com Or did you use the fully-qualified domain name (FQDN): www.domain.com For connecting to the MySQL server, the connection functions expect an FQDN, not a URL. But, you may already know that. Just checking. Regards, Barry C. Ha

Re: [PHP] Re: Sessions and Opera

2002-04-10 Thread Tomy Wagner
and btw the browsers dont save the registered vars they are stored on the server side... :) the browser only stores a cookie containing the session id ... Tomy Wagner - Original Message - From: "Steve Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002

RE: [PHP] AS/400 data access

2002-04-10 Thread Collins, Robert
Credit for the instructions goes to Matt Schroebel not myself. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Dan Vande More [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:

Re: [PHP] Re: mysql

2002-04-10 Thread Erik Price
On Wednesday, April 10, 2002, at 07:45 AM, David Robley wrote: >> I've been looking on the net and the php docs for a simple >> mysql query solution, can someone please let me know >> the best way to get the values of a query that only returns 1 record? >> >> All the select query examples on th

[PHP] PHP Sessions/P3P Questions

2002-04-10 Thread Richard Spangenberg
Hi, I am using PHP Sessions in my coding. I have noticed that my cookies work just fine in MSIE 6.0 if the browser's privacy setting is set to low. However, in all other settings it is not responding. I bleive this is because of the P3P privacy setting. Is this a major issue, or are the higher

[PHP] formatting a numeric string

2002-04-10 Thread Erik Price
I have the following code -- $phone_number = "8005551212"; $phone_array = explode("", $phone_number); $phone_number = sprintf("(%s%s%s) %s%s%s-%s%s%s%s", $phone_array[0], $phone_array[1], $phone_array[2], $phone_array[3], $phone_array[4], $phone_array[5], $phone_array[6], $phone_array[7], $phon

Re: [PHP] formatting a numeric string

2002-04-10 Thread Edward van Bilderbeek - Bean IT
try: print ereg_replace("^([0-9]{3})([0-9]{3})([0-9]*)$", "(\\1) \\2 - \\3", $phone_number); Greets, Edward - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 4:13 PM Subject: [PHP] formatting a numeric string > I have

[PHP] Re: formatting a numeric string

2002-04-10 Thread liljim
Hi Erik. Try this: ~James "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have the following code -- > > $phone_number = "8005551212"; > $phone_array = explode("", $phone_number); > $phone_number = sprintf("(%s%s%s) %s%s%s-%s%s%s%s", $phone_a

[PHP] Re: PHP Sessions/P3P Questions

2002-04-10 Thread Michael Kimsal
Richard Spangenberg wrote: > Hi, > > I am using PHP Sessions in my coding. I have noticed that my cookies work > just fine in MSIE 6.0 if the browser's privacy setting is set to low. > However, in all other settings it is not responding. I bleive this is > because of the P3P privacy setting. I

Re: [PHP] formatting a numeric string

2002-04-10 Thread pong-TC
[EMAIL PROTECTED] writes: >I have the following code -- > >$phone_number = "8005551212"; >$phone_array = explode("", $phone_number); >$phone_number = sprintf("(%s%s%s) %s%s%s-%s%s%s%s", $phone_array[0], >$phone_array[1], $phone_array[2], $phone_array[3], $phone_array[4], >$phone_array[5], $phone

[PHP] simple function question.

2002-04-10 Thread Jeff Bearer
this is a very simple question. I'm trying to figure out if there is a one line way to do this: I want to pass a variable to the function only if it matches a certin value, I know I can do this: if($a=='H') my_function($bob,'Y'); else my_function($bob); but If it's possible I'd like to do it w

Re: [PHP] simple function question.

2002-04-10 Thread pong-TC
[EMAIL PROTECTED] writes: >this is a very simple question. I'm trying to figure out if there is a >one line way to do this: > >I want to pass a variable to the function only if it matches a certin >value, I know I can do this: > >if($a=='H') my_function($bob,'Y'); >else my_function($bob); You can

[PHP] fwrite

2002-04-10 Thread Ron Allen
Using fwrite how would I insert a line return -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorry Folks, wanted to make sure that this address was not included in myRelay Block Settings

2002-04-10 Thread Daniel Negron/KBE
Sorry Folks, wanted to make sure that this address was not included in my Relay Block Settings -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fwrite

2002-04-10 Thread Jason Wong
On Wednesday 10 April 2002 22:44, Ron Allen wrote: > Using fwrite how would I insert a line return \r ==> return \n ==> linefeed -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develo

Re: [PHP] fwrite

2002-04-10 Thread Ninety-Nine Ways To Die
$fp = fwrite($myfile,chr(13)); -- On Wed, 10 Apr 2002 16:44:44 Ron Allen wrote: >Using fwrite how would I insert a line return > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > See Dave Matthews Band live or win a signed gui

[PHP] One last thing for the day

2002-04-10 Thread Ron Allen
Any idea on how to obtain a computer name...Windows environment using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compiling php-4.1.2 on Mac OS 10.1.3 w/udpated tools

2002-04-10 Thread Barry C. Hawkins
Colleagues, Has anyone out there had success in compiling PHP 4.1.2 on Mac OS 10.1.3 (not server)? I tried the workarounds posted on http://www.entropy.ch/software/macosx/php/ but I keep getting the following error during the make operation: /usr/bin/libtool: internal link edit command

Re: [PHP] One last thing for the day

2002-04-10 Thread Scott St. John
$network = new COM("WScript.Network"); $computername = $network->ComputerName; On Wed, 10 Apr 2002, Ron Allen wrote: > Any idea on how to obtain a computer name...Windows environment using > PHP? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Sessions and Opera

2002-04-10 Thread Tom Rogers
Hi Some versions of opera will cache the first login page so if you submit to the same page it will still show the login dialog. The way I got around it was to add "?" to the post url .. ie action="index.php?" that fooled it to reload the page correctly. Tom At 10:22 PM 10/04/2002, Steve Fitz

[PHP] Re: [PHP-INST] php and POST

2002-04-10 Thread Matt
If you changed the php.ini to set the register_globals to on, did you also restart apache? I'm sure you are aware that register globals is now turned off by default in php 4.1+. Look at phpinfo() and make sure register_globals is *really* on. You really ought to be writing code with $_POST[], re

[PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
Hi all! I am trying to build a Visitor_Log.txt file for my page, which will write specific information about users that visit the page (time of day they visited, browser they are using, operating system, etc) to a txt file on my server. My question is... how do I write these values to the file

[PHP] Secure storage of credit card information

2002-04-10 Thread Someone Somewhere
I'm working on a e commerce site and I need to store the credit card info of people who purchase stuff, on the site. How can I encrypt the credit card # put it in a dbase and decrypt it when I need to Using Php4.* and Mysql. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] printf

2002-04-10 Thread Alexander Skwar
»Ron Allen« sagte am 2002-04-10 um 13:49:15 +0200 : > I would like it so that it puts a comma for every 3 spaces...Any Uhm, I'd rather use number_format than printf. See http://www.php.net/manual/en/function.number-format.php Alexander Skwar -- How to quote: http://learn.to/quote (german

Re: [PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Alexander Skwar
»Brian Drexler« sagte am 2002-04-10 um 07:58:59 -0400 : > My question is thisis the while statement needed when I'm only returning > one record? No, it's not. Since you know that you'll either get 0 or 1 row, you don't need the while loop. Instead I'd call mysql_num_rows to see if there was

RE: [PHP] session variables and unset

2002-04-10 Thread Johnson, Kirk
I get '4', as expected, on v.4.0.6. Kirk > -Original Message- > From: Valdas Andrulis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 3:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] session variables and unset > > > Hello, > > I have 3 scripts: > > ## i2.php > session_

Re: [PHP] chown error?

2002-04-10 Thread John Weez
Ah yes my brain was tired..I meant chown. I want to change the ownership of the newly created file to an existing user. The form has a field where they input their login name and the nam,e of the newly created directory. The PhP script is passed teh varibles but fails to change ownership to

Re: [PHP] Visitors Log Help

2002-04-10 Thread Andrew Brampton
Well that should write as soon as that php is requested... BUT U might want to put some file locking in there to make sure 2 people don't visit at the exact same time and corrupt your Vistor_Log.txt BTW If are using apache a better option might be to look into the custom log files it can make, I

Re: [PHP] Secure storage of credit card information

2002-04-10 Thread Thalis A. Kalfigopoulos
Lookup in the manual about the mcrypt functions On Wed, 10 Apr 2002, Someone Somewhere wrote: > I'm working on a e commerce site and I need to store the credit card info > of people who purchase stuff, on the site. How can I encrypt the credit card > # put it in a dbase and decrypt it when I

[PHP] unsetting an instance from within its class

2002-04-10 Thread Erik Price
Is there a way to unset or destroy an object instance from a method within its class? I'm trying to write a method that destroys its instance but I'm not sure how to refer to the object itself from within the class. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL P

Re: [PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
As I'm sort of new to this, can you expand on "file locking"? As of now, I'm running Apache on my home PC, but my host most likely will not allow me access to it's apache log files. That is the main reason I want to do this, and also because I'm studying PHP and this looks like a good way to

Re: [PHP] mailing list using mail()

2002-04-10 Thread Peter H. Lemieux
> the combination of PHP and mysql and the ease of use of the mail() > function obviously leads me to believe that it *should* be a cinch to > use php to send customised messages to all my users , of whom I have > details in a mysql table by simply running a "select * from table" and > then using

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Nathan Cassano
If I where in your shoes I would encrypt the accounts with Mcrypt, setup a separate database, on a separate computer, communicating on a low speed serial line (4800 baud) using ppp, fully fire walling the connection and doing mass logging. Mcrypt Encryption Functions http://www.php.net/manual/e

[PHP] password for PDF files

2002-04-10 Thread Bogdan Popescu
Hello everybody, can anybody tell me whether is it possible to generate PDF files with a password (both for opening and for modifying). -- TIA, Bogdan mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] arguments against php / mysql?

2002-04-10 Thread Mallen Baker
Hi - the company we're talking to about doing some work on a simple site / database is trying hard to persuade us that Windows-based PHP / mysql is not the route to go. The arguments are as follows: 1. XXX's experience that MySQL is less than 100% stable when running on a windows platform (mai

Re: [PHP] XML HELP

2002-04-10 Thread Analysis & Solutions
Hey Christopher: > function CharacterHandler($Parser, $Line, $StockStuff) { > array_push($StockStuff, $Line); > print "$Line\n"; > } ... snip ... > while ( list(,$Sym) = each($Symbols) ) { > global $StockStuff; Global is used INSIDE functions to allow variables to be brought in and out of th

Re: [PHP] MSIE 6.0 Cookie/Privacy Question

2002-04-10 Thread Analysis & Solutions
Yo Rich: On Wed, Apr 10, 2002 at 08:41:04AM -0400, Richard Spangenberg wrote: > > I have noticed that my cookies work just fine in MSIE 6.0 if the browser's > privacy setting is set to low. However, in all other settings it is not > responding. > > I am using a remote file JS call to set the co

[PHP] How to send an email to everone listed in a file

2002-04-10 Thread Anthony Rodriguez
Dear David, You're going to have 2 problems: (1) You're going to overload the outgoing mail server. I've done it. Now i use a newsletter-type mailing list. (2) Invalid e-mail addresses will be returned to your hosting provider, not to the "From: ..."address. I'm looking for an answer to thi

RE: [PHP] arguments against php / mysql?

2002-04-10 Thread Cal Evans
1 is outdated information. I've had a production server up for a year now without a hitch. (Linux, Apache/MySQL/PHP) I'm sure others have a much longer track-record than mine. #2: True. Don't use IIS, use Apache. Then you can run PHP as a module of Apache, not as a CGI. Better but still has iss

RE: [PHP] unsetting an instance from within its class

2002-04-10 Thread Cal Evans
Never actually tried to do this (Never actually thought it was a good idea) but: this = null; may do the trick. Then again it may cause your php page to blow chow all over your screen. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message--

Re: [PHP] arguments against php / mysql?

2002-04-10 Thread Rasmus Lerdorf
It's pretty hard to argue in favour of Windows. But stick Linux or FreeBSD in there as your OS and you will have a rock-solid, inexpensive and well-supported platform that will put just about anything you can build on a Windows server to shame. -Rasmus On Wed, 10 Apr 2002, Mallen Baker wrote:

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Cal Evans
DISCLAIMER: Use this advice at your own risk. If you take my advice and your cc numbers still get stolen, your fault, not mine. By continuing to read this, you agree to these terms. Put them in a separate database, on a different server, behind a firewall, that is ONLY running MySQL and sh. Shut

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Storing credit card numbers is dangerous, look at the mcrypt functions like previously mentioned. I would encrypt the user's credit card number with a key based on their account password this gives you the ability to not store the encryption key on the webserver. You should mangle it, encrypt i

Re: [PHP] arguments against php / mysql?

2002-04-10 Thread Jackson Miller
I have been using Win2K with Apache/MySQL/PHP for about 8 months for an intranet site. It is a mission critical intranet database for keeping track of attendance/grades for a high school. I have had no problems (read: not a single one!) HTH -Jackson On Wed, 2002-04-10 at 12:30, Mallen Baker w

[PHP] Re: Formatting timestamp date in MySQL

2002-04-10 Thread Mike Robinson
You should consider using mysql's built-in DATE_FORMAT function. Why pull data, parse it, and format it, when you can retrieve it formatted the way you want in one call. Double/triple handling of data is a bad thing. "Nyon" <[EMAIL PROTECTED]> wrote in message 001c01c1dfbd$a7403320$[EMAIL PROTEC

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Cal Evans
Jason, You are of course correct in your statement that running the database on a separate server does not solve the problem. I contend that it is a problem that cannot be solved. The best we can hope for is to make it so difficult that all but the most persistent give up. Move the CC info ont

[PHP] PHP/ASP/Siteminder

2002-04-10 Thread peter ferrigan
Hi there. I am rather new to PHP and I am trying to implement the following on a Solaris 8, Apache 1.3.24 Server. We use siteminder here as our authentication method for the website. Siteminder passes back certain user information that I can then display on the website to customize it for the u

Re: [PHP] arguments against php / mysql?

2002-04-10 Thread Steve Edberg
Other people have made similar arguments, but just thought I'd throw in my 2c: I had a couple of years experience running MySql (3.22.something) on WinNT4sp5, 3-4 years with PHP as a CGI (going all the way back to PHP2 aka PHP/FI) and ~9 months using Apache/PHP on Windows. As of last fall, I h

[PHP] Re: arguments against php / mysql?

2002-04-10 Thread Michael Kimsal
Mallen Baker wrote: > Hi - the company we're talking to about doing some work on a simple > site / database is trying hard to persuade us that Windows-based PHP > / mysql is not the route to go. The arguments are as follows: > Windows-based PHP might not be the way to go. We've deployed PHP

[PHP] help with detective work?

2002-04-10 Thread Nick Wilson
Hi all, I've just moved host and am having a shocking time of it. there is a php script here: http://www.explodingnet.com/articles/latest/7/ There is nothing wrong with the code as you can see below but what on earth could be causing this. I'm very unhappy with this ISP but before I ball them ou

Re: [PHP] Visitors Log Help

2002-04-10 Thread Andrew Brampton
To be honest I've never done file locking in PHP, but the concept goes: If User A opens log.txt and starts writing a string to it, but half way through user B opens its and reads the file, User B will only get a half written log.txt file. Then if B tries to do some writing it may end up writing a

Re: [PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
I don't think I need to concern myself with that as of yet, since my site barely gets any hits per day, I don't think there is the possibility of two people accessing it at the same exact time. Thanks though :o) Martin >>> "Andrew Brampton" <[EMAIL PROTECTED]> 04/10/02 03:06PM >>> To be hones

Re: [PHP] help with detective work?

2002-04-10 Thread Barry C. Hawkins
Nick, My guess is either permissions on the directory/files of your DocumentRoot for Apache and/or the Shared Object and MIME configurations of the Apache server where your script is located. Yuck, -- Barry C. Hawkins Systems Consultant [EMAIL PROTECTED] On Wed, 10 Apr 2002 20:53:59 +0200

Re: [PHP] mailing list using mail()

2002-04-10 Thread Anzak Wolf
> > > the combination of PHP and mysql and the ease of use of the mail() > > function obviously leads me to believe that it *should* be a cinch to > > use php to send customised messages to all my users , of whom I have > > details in a mysql table by simply running a "select * from table" and > >

Re: [PHP] Visitors Log Help

2002-04-10 Thread Andrew Brampton
To be honest I've never done file locking in PHP, but the concept goes: If User A opens log.txt and starts writing a string to it, but half way through user B opens its and reads the file, User B will only get a half written log.txt file. Then if B tries to do some writing it may end up writing a

Re: [PHP] Secure storage of credit card information

2002-04-10 Thread heinisch
At 10.04.2002 11:48, you wrote: >I'm working on a e commerce site and I need to store the credit card info >of people who purchase stuff, on the site. How can I encrypt the credit card ># put it in a dbase and decrypt it when I need to > >Using Php4.* and Mysql. The first thing I would sugges

Re: [PHP] Re: arguments against php / mysql?

2002-04-10 Thread Barry C. Hawkins
Mallen, It sounds like you might have some non-technical or open-source execs to talk to, and that a non-MS platform is not an option (yet :^) ). If so, here are some more "managerial"-type arrows for your quiver: 1.) MySQL was one of the top 2 databases in a Ziff-Davis major vendor "shoo

Re[2]: [PHP] Re: arguments against php / mysql? - CORRECTION

2002-04-10 Thread Barry C. Hawkins
Substitute "open-source averse execs" for "open-source execs"; sorry about that. -- Barry C. Hawkins Systems Consultant All Things Computed [EMAIL PROTECTED] On Wed, 10 Apr 2002 15:43:51 -0400 "Barry C. Hawkins" <[EMAIL PROTECTED]> wrote: Mallen, It sounds like you might have some non-

RE: [PHP] mailing list using mail()

2002-04-10 Thread Sebastian A.
That's a good question and one that I have too. As far as I know mail() is supposed to utilize sendmail... -Original Message- From: Anzak Wolf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 7:27 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PH

Re: [PHP] Re: arguments against php / mysql?

2002-04-10 Thread Michael Kimsal
Barry C. Hawkins wrote: > Mallen, It sounds like you might have some non-technical or > open-source execs to talk to, and that a non-MS platform is not an > option (yet :^) ). If so, here are some more "managerial"-type > arrows for your quiver: > > 1.) MySQL was one of the top 2 databases

[PHP] Re: Sub groups ? - Programming structure...

2002-04-10 Thread Hugh Bothwell
"Gordon Stewart" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, - I'm used (in years gone by) to the Qbasic programme, where i can > create 'sub' routines, & view each routine on its own - Without reference / > Viewing the other code.. (I think its good

[PHP] newbie html forms primer help

2002-04-10 Thread ROBERT MCPEAK
I need some help with html forms. I primer on html forms and variables is much needed. Anybody have some code snipets to share? I'm getting acquainted with $HTTP_POST_VARS but need some help in accomplishing a couple of things. I'd like to collect all "checkbox" input variables and stick the

[PHP] SESSIONS in javascript

2002-04-10 Thread Morten Nielsen
Hi, I got a PHP page where I define a SESSION. I then include a javascript page where I would like to use the value which is stored in the SESSION. The problem is that the php tags doesn't work in javascript. Can anyone tell me how to do that? Regards, Morten -- PHP General Mailing List (htt

  1   2   >