> I am running php on apacheon linux. Right now my php scripts
> access the data as the user that is running apache. I would like
> them to access the data as the user who is the owner of the script.
> Can this be done? How? Is this a good idea (IE: are there hiden
> programs to watch out for)
Try the suggestions for dealing with crashes at http://bugs.php.net
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Orig
You should call mt_srand((double) microtime() * 100) once, and only
once, in any given script.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmus
> $cmd="mysqldump .. > somefile.sql";
>
> if( !fopen("somefile.sql","r") ) { print error message };
>
> $cmd is correct... I've copy-pasted it tons of times in the command shell
Were you the "nobody" user when you did that? It really doesn't count for
much if you weren't, cuz PHP runs as "no
> >OK, true. But, this is necessary if you want PHP to automatically
> >connect to different DBs.
> >A plus to portability and a minus to... (to what?)
The first minus is to performance -- You route through more and more layers
of functions as you add databases and functionality.
The next minus
http://php.net/imap/
You may want to read all the other pages that are parallel with that one.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.
You're better off using:
if (isset($xx)) instead, but you can change error_reporting
Read php.ini
Or, http://php.net/error_reporting
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vo
You want to look into MySQL's LIMIT clause. There are quite a few scripts
as examples in the code archives:
http://php.net/links.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vol
So, send a link?
Or, convince Yahoo not to strip out the attachment?
Or convince your friend to use a different way to get this email?
There really isn't anything PHP can do to fix the problem of Yahoo email
filters.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL P
Dear Friend,
Are you looking for your first Internet business...or your last?
If it's your first, I bet you'd like it to be your last! Your last
would be the one that allows you to achieve your full time
income on a part time basis, is stable, will be there for your
heirs, and give you the
My Database functions are all wrapped up in an easy to use class. The
methods look something like this:
$db = new DB;
$q = "SELECT * FROM ATable";
$db->query($q);
while ($db->next_record()) {
$db->p("SomethingOrOther");
}
For the PHP script itself, the content management system I wrote up
http://www.paphe.com/php/tutorials/230101.php
an encryption class
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick an
On 06-Oct-2001 Chip wrote:
> When you write a php script to access a database,edit records, etc., is the
> entire thing 1 giant PHP page or a bunch of different ones? If it can be
> written both ways, which is the better way to do it?
>
I tend to write based on function:
userland.php
adminlan
> When you write a php script to access a database,edit records,
> etc., is the
> entire thing 1 giant PHP page or a bunch of different ones? If it can be
> written both ways, which is the better way to do it?
Using seperate files eases code maintenance and prevents parsing of
redundant code.
-
> When you write a php script to access a database,edit
> records, etc., is the entire thing 1 giant PHP page or a
> bunch of different ones?
A giant one
If it can be written both ways,
> which is the better way to do it?
Depends how big is your 'giant'.
It is all about your coding style
When you write a php script to access a database,edit records, etc., is the
entire thing 1 giant PHP page or a bunch of different ones? If it can be
written both ways, which is the better way to do it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hello everyone,
Knowing how much most of you like using double quotes I though to test
it a bit.
I was writing an article for PHPBeginner.com and made this interesting
proven conclusion:
Concatenating single quotes is faster unless you concatenate them more
than two.
Then game changes into the
I don't think get_lock will work here anyway since the only way to
use it is with persistent connections, and there's no guarantee the
person will get the same connection with the second request, he
probably won't. without persistent connections the lock will die when
the script finishes.
On Fri,
On 06-Oct-2001 Chip wrote:
>> Well, if you only update the fields that changed then who cares? The
>> fields that Jill changes are going to overwrites Jack's changes anyway.
>> Locking the record and having Jack finish before Jill can start isn't
>> going to change the end result which would be
> So once a user logs into a MySQL Server via PHP, if they don't logout, they
> stay logged in forever???
Depends how you write your application. If you are using persistent
connections you log in and out of mysql durig a single request. If you
use persistent connections you log in once and
So once a user logs into a MySQL Server via PHP, if they don't logout, they
stay logged in forever???
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > A. Browser Closed Before Finishing Edit:
> > From what I have read Get_Lock
> A. Browser Closed Before Finishing Edit:
> From what I have read Get_Lock locks are automatically released
> when connections terminate. I'm new to this so am unsure if MySQL will
> terminate the connection when the browser is closed. If not does MySQL
> disconnect users after a
I'm running php 4.0.6.7rc2-3 with freetds 0.52-3 support on a debian linux
server. This is a winning combination to work with MSSQL2000. However
I'm running into some odd behavior when performing multiple queries on the
same connection (link) identifier.
I create a connection to the dbms and se
Hmmm...that is true
It would still prevent Jill from editing. I'll probably add a locked_by
field to convey the user info.
For Dead Locks:
A. Browser Closed Before Finishing Edit:
From what I have read Get_Lock locks are automatically released
when connections terminate. I'm
> OK that example is poor I admit...but do you see the reasoning behind
> locking? If a lock was in place Jill would't be able to edit her post
> because she would get a message stating that Admin Jack was allready editing
> it.
GET_LOCK has no way of conveying that information. You would need
> Well, if you only update the fields that changed then who cares? The
> fields that Jill changes are going to overwrites Jack's changes anyway.
> Locking the record and having Jack finish before Jill can start isn't
> going to change the end result which would be that Jill's changes are
> going
> 1. Jack opens record A to change an entry.
> 2. Jill opens record A to change an entry.
> 3. Jack finishes his changes and saves the data.
> 4. Jill finishes her changes and saves the data.
Well, if you only update the fields that changed then who cares? The
fields that Jill changes are going
Well here is the situation.
1. Jack opens record A to change an entry.
2. Jill opens record A to change an entry.
3. Jack finishes his changes and saves the data.
4. Jill finishes her changes and saves the data.
Jill just over wrote whatever Jack did. The only method I could think of to
prevent
It is really a bad idea to design a system where locking is required. Are
you sure there is no way to build the system to not require locking
through the use of atomic updates and such?
Anyway, yes, GET_LOCK is just another query as far as PHP is concerned.
You can pass it to MySQL via mysql_que
"Matthew Walker" <[EMAIL PROTECTED]> wrote:
> So, can someone give me the spot to look in the documentation to find
> out how to make this switch?
There are multiple solutions. In a nutshell here's what I do. I add
directives to the VirtualHost block for the site which point web requests
for ce
Thanks for the replies,
Don't worry about the Mandrake specific stuff; I'm on Redhat. although it
seems to the same as what you're talking about;
My shadow is in format:
fakeaccount:$1$5PXJfLSQ$LSxsnZfHzBrkDdT2NZefK.:11600:0:9:7:::
(the password was 'password')
I probably would not have
I'm preparing to write a DB app using PHP as the programming interface. I
need to be able to lock records at certain points. I was wondering if the
following is possible using PHP.
1. I want to use the GET_LOCK(str, timeout) function to lock records based
on the record ID. Can GET_LOCK be cal
This could very well work into an ongoing working relationship, so please
respond if you think you can help!
HERE'S THE DEAL:
I'm looking to exchange my extensive website design and graphic skills with
someone with PHP or Cold Fusion skills that can help finish the backend
database for a Real Est
Last time I checked, there is a class for creating tar files in PEAR...
Check your PHP installation...
Once you create a tar file, I'm sure you can filter it through zlib to
create a .tar.gz file.
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Friday, October
Hola como estas
estamos interesados en comprar publicidad en tu página mediante nuestro sistema de
banners online.
El cual consiste en que pongas un banner de MercadoLibre en tu site, y nosotros te
pagamos 50 pesos por cada usuario que se registre de tu página a la nuestra
activamente, adem
Matthew Walker wrote:
> So, can someone give me the spot to look in the documentation to find
> out how to make this switch?
Rasmus explained it earlier to me:
Nothing to it. All you really need to know is that $PATH_INFO will contain
/1/2/3 simply pick out what you need using something li
So, can someone give me the spot to look in the documentation to find
out how to make this switch?
-Original Message-
From: Chris Hobbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Submitting variables via /'s
Joao Prado
Joao Prado Maia wrote:
>>"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>I want to move away from
>>>file.php?var1=1&var2=2&var3=3
>>>...and go to
>>>file.php/1/2/3
>
> That is actually a good idea to build dynam
In Perl I used "/\S/" to check for blank lines read from a file.
Now I'm learning PHP. How do I know what is a 'standard'
regexp that ereg() can handle and how do I know what is
Perl-specific syntax so that I must use preg_grep() instead?
For example, can I use ereg("\S",$buffer) to check for a
I have a table set as auto_update for the primary ID field, but sometimes
the PHP script adds fields which don't fill up all of the ID numbers, as I
delete a few records manually. is there any way to ensure all primary id
field nos. are filled up
is this a potential problem
--
Regards,
Georgie Ca
I want users to be able to select files from a folder and then a php script
would wrap em up in a tar file. Can zlib funtions do this?
the files are small gifs, if that helps
tia
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film
this question is common, accually so common that someone asked this same
question earlier today, read the previous posts before asking. phpbuilder
also has a tutorial, look around the web before posting too.
if (!isset($HOW_MANY))
$HOW_MANY = 10;
if (!isset($position))
$position = 0;
why is this amazing ?
--
Chris Lee
[EMAIL PROTECTED]
"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After getting the PHP source from the CVS and compiling I tested with
> phpinfo(). The result was amazing :
> ===cutted=
php doesn't support automatic dereferencing of arrays, so you can't just
throw the index on the back, but you could do this:
$julianday = array_slice(localtime(),7,1);
but then $julianday's an array...so you could wrap an array_pop around
that..although it gets you your val in one line, i th
with exec() I wouldnt assume that all the PATH info is there, just to be
sure, use hardcoded paths.
exec("/usr/bin/mysqldump > /tmp/somesql.txt", $return);
print_r($return);
--
Chris Lee
[EMAIL PROTECTED]
"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EM
there are functions like current() next() etc but they wont help you in this
case. I just wrote my own.
function index($array, $index)
{
return @$array[$index];
}
$now = index(localtime(), 7);
--
Chris Lee
[EMAIL PROTECTED]
"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PR
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
046901c14d62$b4c7a0c0$c801a8c0@Lynchux100">news:046901c14d62$b4c7a0c0$c801a8c0@Lynchux100...
> 100 lines of 200 chars each is 2 which is 20K which is chump change
for
> RAM...
>
> Unless you are on a super busy page on a super high-volume se
In Perl I have done this:
$julianday=(localtime)[7];
Is there an equivalent syntax for PHP or do I just do:
$now=localtime();
$julianday=$now[7];
I don't need it - I'm just curious about the syntax.
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geoph
On Fri, 5 Oct 2001, John A. Grant wrote:
> "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > I want to move away from
> > file.php?var1=1&var2=2&var3=3
> > ...and go to
> > file.php/1/2/3
> [...]
>
> Why? W
You [EMAIL PROTECTED], or someone using your email
[EMAIL PROTECTED] address, posted to my Blastomatic site. This is a
one time
emailing to ask you to verify your email address. Just reply
to this email address to verify or follow the below instructions.
**
check out error reporting at php.net
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to eliminate "Warning: Undefined variable: " messages
Hi All,
Is these any parameter in php.ini tha
Hi,
I get a segmentation fault in the log-files of apache when I use
"imap_open".
What have I done (rather long e-mail)?
Debian - woody (without apache-php-imap)
imap-2001.FINAL.tar.Z
make slx
cd c-client
ln -s . lib
ln -s . include
ln -s c-client.a libc-client.a
apache-1.3.20
confi
Note, this is not currently possible under the CGI, only as a module.
Best regards,
Andrew Hill
> -Original Message-
> From: John A. Grant [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 05, 2001 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Submitting variables via /'s
>
>
>
"John A. Grant" wrote:
> Why? What's wrong with ?var1=1&var2=2
Where did you hear me say there was something wrong with it? It's a
personal choice.
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to move away from
> file.php?var1=1&var2=2&var3=3
> ...and go to
> file.php/1/2/3
[...]
Why? What's wrong with ?var1=1&var2=2
--
John A. Grant * I speak
In PHP4, unset($myarray['3']['someindex'}) removes this element (inside a class
function passed $myarray). I need to do the same for PHP3 - what is the simplest way
to accomplish this?
I guess I'm looking for a function that supports PHP3 or PHP4, say:
function unset_arr ($array) {
if (
On Fri, 05 Oct 2001 11:23:34 -0700, Todd Cary wrote:
>Can PHP work with a Share on another computer or do the scripts have
>to
>be on the same computer as IIS/Apache? When I put the scripts into
a
>Shared directory, I get a CGI error.
try using 'net use' to give the share a drive letter, then us
Hi All,
Is these any parameter in php.ini that I need to set so that I wont get
"Warning: Undefined variable: xx in yyy.php on line zz" messages?
Thank you,
Sridhar Moparthy
On Fri, 5 Oct 2001 14:12:46 -0400, Prottoss wrote:
>What would be the most effective way to create blocking of users by
>ip using
>mysql. In such as way that the "blocking system" allows for masks
>such as
>24.127.89.*
>24.*.*.*
>etc...
>
>So far the what I've come up with is either breaking the i
I'm running with some trouble with exec(), system() and it's friends...
I have a MySQL backup script that somewhere have something like
$cmd="mysqldump .. > somefile.sql";
if( !fopen("somefile.sql","r") ) { print error message };
$cmd is correct... I've copy-pasted it tons of times in the
Andrey: What is this select supposed to do? I fail to see how this would
help a person who has hit max_size on an auto_increment field.
Bas: The other alternative that would be to occasionally update sid for all
the rows, reseting them to 1,2,3,etc. You could do that with the following:
set @v
tks Andrey.
I have a dll that encode and decode any file, this dll use a algorithim
that
I made it.
PHP has some API, Entry Point or another way that permit I use a dll to
decode a php script before that script be executed?
tks again.
> - Original Message -
> From: "Andrey Hristov"
Yes there is php encoder available but it is not free -> go to
http://www.zend.com whers Open Software meets eBussiness.
Also there si phpcompiler. I didn't tested it. Go to google.com and try to
find "phpcompiler.zip" sooner you will find it but be patient.
Andrey Hristov
IcyGEN Corporation
Can PHP work with a Share on another computer or do the scripts have to
be on the same computer as IIS/Apache? When I put the scripts into a
Shared directory, I get a CGI error.
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Escape the [] with \.
$pattern='\[find\]';
echo preg_replace("/$pattern/","[find]");
Andrey Hristov
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
On Friday 05 October 2001 21:17, you wrote:
> Hello!
>
> I just want to replace a string with another, but I have problems, when the
> st
Hi,
my name is Jaison and I need to know...
Can I encode or compile a Php program to protect the source and execute than?
tks.
Interesting. After hlaf a minute an idea came to my brain.
create table blocked( from_ip bigint unsigned, to_ip bigint unsigned);
=from_ip and $REMOTE_ADDR<=to_ip;"));
?>
Hope this helps.
$REMOTE_ADDR have to be integer => use ip2long().
For single IP the ints in the row are equivalent. from_ip
http://php.net/str_replace
if you're just replacing a static string, this will be faster and
easier...only use regex's when you really need them
jack
-Original Message-
From: W. Kiecksee [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: [PH
Hello!
I just want to replace a string with another, but I have problems, when the
string contains a [ or something similar. I just need a method to replace
"[cool]" with "text". When I use:
$mustbereplaced = "[cool]";
$message = preg_replace("/$mustbereplaced/", "hello", $message);
only cool wil
What would be the most effective way to create blocking of users by ip using
mysql. In such as way that the "blocking system" allows for masks such as
24.127.89.*
24.*.*.*
etc...
So far the what I've come up with is either breaking the ip into 4 INTs and
then running an SQL query to check if t
> > Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
> > since Apache fills that in with the script it executes. Or you could
> > simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
> > end of $PHP_SELF.
>
> Aha! Good. Now, does anyone have a li
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> As a couple others posted, if you want it to be PHP, then phpMyAdmin,
> http://sourceforge.net/projects/phpmyadmin.
>
I just found that one...thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
Rasmus Lerdorf wrote:
> Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
> since Apache fills that in with the script it executes. Or you could
> simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
> end of $PHP_SELF.
Aha! Good. Now, does anyo
As a couple others posted, if you want it to be PHP, then phpMyAdmin,
http://sourceforge.net/projects/phpmyadmin.
-Original Message-
From: MrBaseball34 [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Database editor
In article <
Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
since Apache fills that in with the script it executes. Or you could
simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
end of $PHP_SELF.
-Rasmus
On Fri, 5 Oct 2001, Ashley M. Kirchner wrote:
>
>
I've seen documentation on this somewhere, but now I can't remember
where.
I want to move away from
file.php?var1=1&var2=2&var3=3
...and go to
file.php/1/2/3
...and still be able to do what I need to be done (extract the
variables and use them as I need them.)
After getting the PHP source from the CVS and compiling I tested with
phpinfo(). The result was amazing :
===cutted=
http://www.php.net/";>PHP Version 4.0.8-dev
===cutted=
--
Andrey Hristov
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
--
PHP
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool
> someone mentioned is not the one and only Win32 tool for this :)
>
> FreeMason will let you edit tables and such. Step up to Mascon to get
> things like adm
Hey Mick,
of course its ok...we've all done it that way (cept a few whose names you'll
learn soon enough ;-) )
a few suggestions:
1. www.php.net has most everything you could ask for...also, if you have a
function you want to learn more about, type it like this:
http://www.php.net/function_name (
Question: Does the pagination method using mysql_data_seek method pull in
the entire result set, only to be used to display x number of rows?
"Joel Ricker" <[EMAIL PROTECTED]> wrote in message
00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms">news:00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms...
>
Hello
After several days of reading various articles on the web I've 'finally' got
a basic database working. The database is for a massive collection of my
vinyl records. Therefore I would like to limit the results to about 20 per
page and move forward/backward with 'next' and 'previous' links.
- Original Message -
From: "Andrey Hristov" <[EMAIL PROTECTED]>
> select * from some_table Limit 10,30;
Something to point out, in some of the older versions of MySQL, Offset
starts counting at 0, while in the newer versions, it starts counting at 1.
You'll want to check the documentat
there are tutorials posted all over the inet, and all over this news group.
take a look around.
Ive left out the details and stuck with the basics, modify as needed, you'll
need to :)
if (!isset($HOW_MANY))
$HOW_MANY = 10;
if (!isset($position))
$position = 0;
$prev = $position -
select first.*,second.*,third.* from first left join second
using(for_key_first_second) left join third using(for_key_2_3);
On Friday 05 October 2001 18:50, you wrote:
> Hello,
>
> > you can always reset the auto_increment value (I think that is as simlple
>
> as
>
> > "set insert_id=1;" but you
select * from some_table Limit 10,30;
syntaxis
limit ,
Andrey Hristov
IcyGEN Corporation
Building Solutions
On Friday 05 October 2001 18:52, you wrote:
> I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying
> to find an elegant solution to paging x number of records at a t
ooops , sorry
On Friday 05 October 2001 18:48, you wrote:
> > On Friday 05 October 2001 18:10, you wrote:
> > > Use crypt()/decrypt() couple.
> > >
> > > Andrey Hristov
>
> From the PHP doumentation on crypt:
>
> There is no decrypt function, since crypt() uses a one-way algorithm." so
> that woul
I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying
to find an elegant solution to paging x number of records at a time through
a result set returned to a php page from MySQL.
Any ideas?
TIA,
Bill
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
$imagefile contains the name of the file in the temp dir. So the name is some
mess like phpx . If you want the file you do copy() or something other.
After the script is done the file is deleted. I prefer using $HTTP_POST_VARS
do var_dump($HTTP_POST_VARS) to see debug info.
Andrey Hristov
I
Thank Richard.
So far, I just punted. My site runs on a dedicated box and doesn't
have to service a lot of users so I just wrote a one line C program
to print a single value using a specified format (default is %.4e)
and use exec() to call it.
printe [format] value
Here's how I encapsula
> On Friday 05 October 2001 18:10, you wrote:
> > Use crypt()/decrypt() couple.
> >
> > Andrey Hristov
>From the PHP doumentation on crypt:
There is no decrypt function, since crypt() uses a one-way algorithm." so
that wouldn't have worked.
Joel
--
PHP General Mailing List (http://www.
Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool
someone mentioned is not the one and only Win32 tool for this :)
FreeMason will let you edit tables and such. Step up to Mascon to get
things like administrative editing.
http://www.scibit.com/Products/Software/Utils/M
All,
I am putting together a simple upload program where an
HTML form calls a php script passing a file which is
then used to upload. I am running this locally
currently, prior to rolling out to a test server.
My problem is this. The variable $filename I am
passing from the form to the php scrip
Hello
I've just joined the list and sending this message as a test :-)
I'm 'very' new to PHP and therefore here to learn ... I hope that's ok?
Mick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I know that enclosing form field names in [] makes them available as an
array
if the form were dynamically built like
PERSONS NAME (from database via $member_id )
next PERSONS NAME (from database via $member_id )
next PERSONS NAME (from database via $member_id )
etc
etc
I "think" I w
From: "Nathan" <[EMAIL PROTECTED]>
> Here are some simple xor encoding functions that I wrote. This will keep
> the average joe from peaking at your data.
Exactly what I was looking for.
Thanks
Joel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
On Friday 05 October 2001 18:10, you wrote:
> Use crypt()/decrypt() couple.
>
> Andrey Hristov
> IcyGEN Corporation
> BUILDING SOLUTIONS
> http://www.icygen.com
>
> On Friday 05 October 2001 17:53, you wrote:
> > Here are some simple xor encoding functions that I wrote. This will keep
> > the aver
I am running php on apacheon linux. Right now my php scripts
access the data as the user that is running apache. I would like
them to access the data as the user who is the owner of the script.
Can this be done? How? Is this a good idea (IE: are there hiden
programs to watch out for)
Here are some simple xor encoding functions that I wrote. This will keep
the average joe from peaking at your data.
function decode($data){
$data = base64_decode($data);
/* XOR data */
for($i = 0; $i < strlen($data); $i++){
$data[$i] = ~ $data[$i];
"Jaxon" <[EMAIL PROTECTED]> wrote:
> Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I
want
> to use it with more than just MySQL (e.g. Postgres and SQLServer)
Not ODBC, but phpMyAdmin has a PostgreSQL cousin, phpPgAdmin. You used to
be able to find it at www.greatbridge.org
Actually, there is a unix-like fork() function in an extension. exec() will
execute another process, but it isn't really a fork().
Look at the pcntl extension and check out pcntl_fork(). I've been working
with it for a few days and it works pretty well. It's still marked
EXPERIMENTAL, so don
1 - 100 of 143 matches
Mail list logo