Re: [PHP] random letters and numbers

2001-04-24 Thread J. Jones
On Mon, Apr 23, 2001 at 11:10:48PM -0700, Randy Johnson wrote: > Is there a way to generate a random set of characters ranging from 8 to 12 > characters and numbers where it is crucial that the letters and numbers are > truly random because I need to create temporary files for people to download >

Re: [PHP] ereg_replace

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 06:21:20PM -0400, Wade wrote: > I am attempting to do an ereg_replace(), but the charachter I want to > replace is a \. Any Ideas how I make the following work? > > $F_name = ereg_replace ("\", "", $acc_fname); > echo $F_name; > > Thanks, > Wade > use \\ -- PHP Ge

Re: [PHP] A simple problem!

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 11:24:26PM +0530, Subodh Gupta wrote: > Can You figure out the mistake here...?? > > print << \n > color="#$colour[$colouroffset]">$name:\n // The problem is here.. >the value of $colour[$colouroffset] is not align=left>$dbvalue\n

Re: [PHP] FTP problem..

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 10:10:58AM -0400, Chad Day wrote: > I'm trying to write a script to ftp the contents of one directory structure > onto another server.. I'm having problems recursing the directories, either > it a) doesn't do it or b) gets stuck in a loop. > > Here's the function I'm havin

Re: [PHP] is_link() behavior

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 05:31:04AM +0200, Martin Skjöldebrand wrote: > > Warning: stat failed for /tmp/this_is_a_symlink (errno=2 - No such file or > > directory) in ./test.php on line 3. > > Do you have permission to read the /tmp catalog? Otherwise you may get that > error I suppose. > > M.

Re: [PHP] file_exists with remote file???

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 12:20:01AM -0300, Paulo - Bruc Internet wrote: > Can anyone help me? > > The sintax of function file_exists is: > > if(file_exists("t.txt")) > { > print... > } > > Does anybody knows how can work with remote files? > This is not working: > if(file_exists("http://www.

[PHP] is_link() behavior

2001-04-23 Thread J. Jones
ve yet to discover that provides that behavior, without verifying the link's target? I ask this because much of linux's /proc contains (intentionally) broken symlink's and is_link()'s behavior is making the scouring of /proc very difficult on me. ;) Thanks for any input.. J. Jones