[PHP] chmod error?

2002-04-10 Thread John Weez
Hi all...I want to change the ownership of a file that is created via php..so i uses chmod command in my php script.. Upon execution of the script i get an error saying command not permitted with a line number pointing to my chmod command. I'm running apache as user nobody for security

Re: [PHP] chmod error?

2002-04-10 Thread Henrik Hudson
Hello. First off, to change ownership you want chown, not chmod. Also, chown isn't always permitted depending on the cicrumstances of who owns the directory or the specific file to begin with. If you're web server is running as nobody it will only be able to create files in a directory

Re: [PHP] file locks

2002-04-10 Thread rarmin
Liam Gibbs wrote: Is there a way for a script to tell if the file it's 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

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

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

[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: ok I

[PHP] session variables and unset

2002-04-10 Thread Valdas Andrulis
Hello, I have 3 scripts: ## i2.php ?php session_start(); $counter = 1; session_register(counter); header(Location: /i.php); ? ## i.php ?php session_start(); $counter = 0; ### uncomment this to see the difference # session_unregister(counter); session_register(counter); unset($counter);

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... however a comment

[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) -- !DOCTYPE HTML PUBLIC

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

[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

[PHP] Re: allowed tags reg exp

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

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

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

[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

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

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

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

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

[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 $Value1, $Value2;

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 needed in

[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

[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 = $convertedbr; echo bYou should receive/b$nbsp $converted b$currency/b; Ron Allen [EMAIL PROTECTED] wrote in message [EMAIL

[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

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

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

[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

[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

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

[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

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

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

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.

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 2:38

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

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

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

RE: [PHP] Clicking Once -- buttons?

2002-04-10 Thread Martin Towell
use javascript onClick=this.disabled=true; I think that's correct -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Clicking Once -- buttons? Is there a way I can ensure the end user clicks the

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Martin Towell
[snip mail header info] Hello, why don't you just do an include hello.html; at the end of the file? Because, there are so many files. thanks. [snip mail footer info] but you'd have to put set_ini() in each of your files (unless you're putting it in an auto prepended file) -- PHP