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
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
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
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
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
--
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
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
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
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);
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
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
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 - 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
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
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
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
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,
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
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
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.
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.
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
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
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
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
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
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;
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
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
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
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
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
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
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
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
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
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
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?
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
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.
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
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
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
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
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
[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
46 matches
Mail list logo