i've been told that the files must be owned by the
same person that owns the httpd. using ps ef |grep
httpd, it says "grep httpd USERNAME=
ENV=/home/police/.bashrc HISTSIZE="
my unix login is police. so, what does this mean as
far as trying to get my chmod command to work?
thanx
Okay the the script is attached below. i am baffled at the problem. as you
can see the script does a rather simplistic generation of passwords. it
then writes them into two files.
the problem is the first time i run (i am running it stand alone) it works
fine and the result is two files with
I have query -
$res = mysql_query("SELECT
skits.*,category.cat_id,category.cat_name FROM skits,category WHERE
MATCH (title,descr,skits) AGAINST ('%$search_idea%') and skits.lang
like 'English' and skits.category like category.cat_id limit $limit,10 ");
I expect to get results sorted by relev
On Friday 31 August 2001 15:22, Manuel Lemos wrote:
> > I actually mention PHP-GTK in my sessions. I mention it as an
> > anecdote, much like I mention some of the other interesting modules
> > and projects in PHP (e.g., PEAR). I'm really not sure why people
> > think I'm trying to bury PHP-GTK.
if your datas are stored in a DB you should specify the precision of the
float in the table : float(8,2)
> Anyone have functions for formatting numbers being multiplied by variables
> and whatnot to two decimal points - rounded up? As for displaying total
> cost, etc?
> __
At 16:22 31-08-01, Manuel Lemos wrote:
>Oh, man, do you really do that? That is worse than not mention it at
>all. You may be joking but not everybody may understand it that way.
>Doing that you ruining the credibility of those efforts that take PHP
>far out what originally it was meant for. If yo
At 14:52 01-09-01, Christian Reiniger wrote:
>On Friday 31 August 2001 15:22, Manuel Lemos wrote:
> > > I actually mention PHP-GTK in my sessions. I mention it as an
> > > anecdote, much like I mention some of the other interesting modules
> > > and projects in PHP (e.g., PEAR). I'm really not s
Hi, Folks !!
I am in trouble. I need to convert a mdb database to mysql.
Can PHP handle this? Where can I learn about it?
Thanks in advance.
[]´s
Rogerio Coelho.
Equipeweb - CompuLand Design
http://www.equipeweb.com.br
Tel/Fax:(xx) 24 237-2088
--
PHP General Mailing List (http
I needed this recently as well and found some converters right here:
http://www.mysql.com/documentation/mysql/bychapter/manual_Contrib.html#SEC60
7
They usually are run from within the MDB macros but it helped me convert my
database over :)
Jeff
- Original Message -
From: "Rogerio Coelh
On Sat, 1 Sep 2001, Rogerio Coelho - Equipeweb - CompuLand ISP wrote:
>Hi, Folks !!
>
> I am in trouble. I need to convert a mdb database to mysql.
> Can PHP handle this? Where can I learn about it?
>
> Thanks in advance.
It doesn't need PHP to convert access to mysql.
Just go
On Fri, 31 Aug 2001, Jeff Oien wrote:
> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
>
> @copy("$img1", "/blah/$username/$img1_name")
> or die("File upload didn't work.");
>
> and they are getting the die
How can a random string of only letters and numbers be generated?
I'm stumped so far on how to avoid including symbols.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrat
Hi,
If you have random string including symbols just take them of with
regexp. Look at the manual for regular expresion functions. Hope it
helps.
Sean C. McCarthy
SCI, s.L. (www.sci-spain.com)
bill wrote:
>
> How can a random string of only letters and numbers be generated?
>
Hi Bill,
Here's a quick hack, should get you on your way :
function randomString($len)
{
global $seed;
$tmp = '';
$chars = 'abcdefghijklmnopqrstuvwxyz';
$chars .= strtoupper($chars);
$chars .= '0123456789';
if (empty($seed)) {
mt_srand ((float) microtime() * 100);
$seed
Philip,
With a few tweaks, it works great, thanks!
Here's what worked:
function randomString($len)
{
global $seed;
$tmp = '';
$chars = 'abcdefghijklmnopqrstuvwxyz';
$chars .= strtoupper($chars);
$chars .= '0123456789';
if (empty($seed)) {
mt_srand ((float) microtime() * 10
It appears the only change you made was :
> $tmp .= $chars[mt_rand(0,$chars_len)];
>From :
> > $tmp .= $chars{mt_rand(0,$chars_len)};
Which is strange. the [] use on strings has been depreciated in favor
of {} as of php4 but I don't know at what version {} came into being
exactly. Wh
Hi Philip,
Yes, I have a choice of PHP3 or 4 and this script happened to be in PHP 3 so
I just tweaked it. I didn't realize that one day
$chars[mt_rand(0,$chars_len)] would "no longer work", but at least it is
backwards compatible now. I've made a mental note of that for future
reference.
PHP
On Sat, 1 Sep 2001 14:01:57 +0200, BRACK ([EMAIL PROTECTED]) wrote:
>I have query -
>
>$res = mysql_query("SELECT
>skits.*,category.cat_id,category.cat_name FROM skits,category WHERE
>MATCH (title,descr,skits) AGAINST ('%$search_idea%') and skits.lang
>like 'English' and skits.category like catego
I built a Perl-style regex to match function calls in C-like
languages where $name is the functions name. The functions
are assumed to accept a single string as parameter.
Here it is.
/$name\s*\(\s*\"(.*)\"\s*\)\s*;/s
The expression is successfully preg_match'ed on a stream
of code, but whe
Daniel,
It doesn't get much easier than Philip Greenspun's "Loquacious"
(http://www.greenspun.com/com/home.html). Philip begins the description of
his free comment server thusly:
"You have a Web server with static pages. You want users to be able to
add comments dynamically to any of your pages
php-general Digest 2 Sep 2001 01:19:48 - Issue 851
Topics (messages 65598 through 65619):
loop? or conditional problem
65598 by: syaggie
FULLTEXT search sorting results
65599 by: BRACK
65617 by: Mark Maggelet
Re: The future of PHP
65600 by: Christian Reini
--->How To Make It *BIG* on the Net...QUICKLY...with NO Money!
This is NEW and INCREDIBLY EXCITING!! Join Free, WORLD-WIDE!
(Zero investment!) No hassles, no selling, no pressure.
Like NOTHING you have ever seen on the net today! No limits...
You can join for FREE and MAKE MONEY!! W
In the Leon Atkinson Core PHP book, in his ereg example he states that ereg
will only return the first match on a line. Can anyone confirm or deny this?
Thanks,
Josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
> i've been told that the files must be owned by the
Which files? For what?...
> same person that owns the httpd. using ps ef |grep
> httpd, it says "grep httpd USERNAME=
> ENV=/home/police/.bashrc HISTSIZE="
> my unix login is police. so, what does this mean as
> far as trying to get my chmod
Your SELECT statement is returning way more rows than you expect, I think,
since it will return the number of users times the number of members minus
however many there are that have the same id...
I don't think you wanted that...
I suspect you want a sub-select where you don't get any users who
Hi,
I have a strange problem with ereg() and ereg_replace(). I have a
Linux RH 7.1 machine running apache and php4. On this server, if
use ereg() or ereg_replace() with "{" or "}", for example,
ereg_replace( "{key}", "word", $a_string);
The web server will return following warnning msg:
Warn
Dear [EMAIL PROTECTED],
> BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! > >
> Before you say ''Bull'', please read the following.>
> This is the letter > you > have been hearing about
> on the news lately. Due to> the popularity of > this
> letter on the Internet, a national weekly news>
> progr
Forgot to mention ... the only way to access the database on B is to connect
to "localhost" there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL P
In article <01b201c13354$0ca601c0$0105050a@pony>,
[EMAIL PROTECTED] (Stonix) wrote:
> ereg_replace( "{key}", "word", $a_string);
>
> The web server will return following warnning msg:
>
> Warning: Invalid content of \{\} in /var/www/html/scrip.php on line #
In regex, the curly braces are spec
Hi. I use allways the include built in function to conditionally select
the php script that build the web page.
I need to add a header at he beginning of an already working script, but
the directive include don't work:
So I'm using
<% virtual ("../../../../headlvl4.shtml");
i want try to open the test.dbf files ..
but have the problem
Call to undefined function: dbase_open() in
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [
Hi,
On Linux/Unix systems you may use Semaphore and shared memory functions.
http://www.php.net/manual/en/ref-sem.php
or simply use sessions. However, session variables are stored in flat files
or in db.
- Original Message -
From: senthilvellan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
Hi folks!
Let's say you have two servers, on the first one ("A") you have your website
containig all those nice php scripts and co but only a crazy small database
(2 megs), on the second one ("B") you have a really big database available
but the problem, that the provider won't allow you to acces
33 matches
Mail list logo