[PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Julia A . Case

I'm having some trouble with PHP4 on a FreeBSD 3.2 machine.  PHP3 compiles 
and works fine, but PHP4 gives a floating point error (both as a module 
and static).  PHP4 under FreeBSD 4.2 works fine.

Any ideas,
Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Julia A . Case

Thanks, it works now.

Julia

Quoting Rasmus Lerdorf ([EMAIL PROTECTED]):
> Try a snapshot from http://snaps.php.net
> 
> This should be fixed.
> 
> -Rasmus
> 
> On Fri, 26 Jan 2001, Julia A . Case wrote:
> 
> > I'm having some trouble with PHP4 on a FreeBSD 3.2 machine.  PHP3 compiles
> > and works fine, but PHP4 gives a floating point error (both as a module
> > and static).  PHP4 under FreeBSD 4.2 works fine.
> >
> > Any ideas,
> > Julia
> >
> > --
> > [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
> > [Programmer at large] [  but is that what ships are really for.]
> > [   Admining Linux  ] [   To thine own self be true.   ]
> > [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
> >
> >
> > --
> > 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 PROTECTED]
> >
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] PHP/MySQL question

2001-01-29 Thread Julia A . Case

Is it possible to move through an array that is returned as a recordset 
and then move back to the beginning of the array.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] string vs. integer...

2001-02-07 Thread Julia A . Case

How do I detrmine of a value is a string or a integer?  I'm trying to 
tell the differnce between "machine.domain.com" and "192.168.2.1" I was 
going to explode on "." and parse through the data and validate it.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] Telnet with php?

2001-02-09 Thread Julia A . Case

I've been messing with popen and telnet recently and I can see the machine connect 
and show a response but I never get to a login prompt.  I'll be fiddling with this 
some more, maybe we can work on it together?

Julia

Quoting Brandon Orther ([EMAIL PROTECTED]):
> Hello,
> 
> Is there a way to telnet with php?  If so does anyone know a good place to
> find a tutorial on it?
> 
> Thank you,
> 
> 
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> 
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] adding lib files...

2001-02-14 Thread Julia A . Case

If I have a lib.so file can I just link it in with php and have access to the 
functionality in lib.so?  If not can someone show me the way to adding things to 
php?

Julia 
(sorry if this is a stupid question)

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] PHP CGI-Binary

2001-02-25 Thread Julia A . Case

Ok, I give up...  how do I build PHP as a CGI-Binary?  I've spent two days 
searching the configure file for this.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] sockets...

2001-02-25 Thread Julia A . Case

Ok, I'm trying to open a socket connection to port 23 (telnet)...  the 
script just seems to hang on connect...  though I can connect and talk 
with ports 25 (smtp), port 80 (http), port 110 (pop3) and port 443 (https) 
so the code isn't too bad...  Is there something special about the telnet 
port?

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] using ssh via popen

2001-01-14 Thread Julia A . Case

Can anyone shed any light on why the following code doesn't work?  I'm 
trying to interact with ssh through PHP's popen function.

Julia

";

maxpsi(0);

?>

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] Sendmail User ID

2001-01-18 Thread Julia A . Case

  $mailsent = mail("[EMAIL PROTECTED]", "Subject",
$mesg, "From: [EMAIL PROTECTED]\n")

Try this,
Julia

Quoting Yurais Fernandez Leal ([EMAIL PROTECTED]):
> 
> Hi
> 
> I have a web site that sends virtual greetings cards
> 
> But the mails are been sent as nobody@webserver
> 
> nobody is the user that runs the web server.
> 
> Should I run the web server as a different user so that the mails get
> sent as this user instead of nobody ?
> 
> 
> I've play with the headers in the mail() function with no success.
> 
> Any idea ?
> 
> 
> -- 
>  
>Yurais Fernández Leal, Systems Administrator
>   Public Health Network Santiago de Cuba
> [EMAIL PROTECTED]
>   http://www.scu.sld.cu/
>Phone: (53) 226-54204
>(home) (53) 226-51556
> FAX:  (53) 226-54204
>ICQ: 33792610
> 
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] MySQL database

2001-05-16 Thread Julia A. Case

first off, is the MySQL database running?  you can do a ps -xa | grep 
mysql to see...  second you need to enter a username and password on the 
mysql_connect line..

Hope this helps,
Julia

Quoting [Inf] F!RE-WALL ([EMAIL PROTECTED]):
> Yo,
> 
> I'd like to use a MySQL database on my website. If I look at the PHP details
> of my site (see for yourself at http://infinity.shrimpwars.be/phpinfo.php)
> it says under the MySQL section: "enabled". Well, if I create a testpage
> with this as content:
> 
>  mysql_connect("localhost", "", "")
> or die ("unable to connect to database");
> ?>
> 
> I get this:
> 
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111) in
> /clans/infinity/mysql.php on line 2
> unable to connect to database
> 
> If I run the script on my local machine I get this:
> 
> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in e:\webserver\phptest\mysql.php on line 2
> unable to connect to database
> 
> 
> What is wrong? Do note that I don't know much about MySQL, I'm still
> learning :-P
> 
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] RE: Lists are back up

2001-06-18 Thread Julia A. Case

Quoting ckieninger ([EMAIL PROTECTED]):
> thanks 
> 
can you renable the gtk-php mailing list.

Thanks,
Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  



Re: [PHP] HELP problems running PHP4 script in CRON

2001-06-19 Thread Julia A. Case

I think your troubles are that you need a 
#!/path/to/php

or you can start it with
php -f file.php

Julia

Quoting Splashy ([EMAIL PROTECTED]):
> Hi,
> 
> Please find script below and hopefully tell me why when I run it over the
> web it works perfectly but when I run it using cron or in a telnet session
> it errors saying no such file or directory.
> 
> THIS IS THE ERROR
> /*
> ./fetch_news.php: ?: No such file or directory
> ./fetch_news.php: syntax error near unexpected token
> `fetchnews($mysourcefile,$m
> youtputfile,$myflashvar)'
> */
> 
> THIS IS THE SCRIPT
>  #Requires 3 Params
> #$mysourcefile = path to content source html file
> #$myoutputfile = path to content output html file
> #$myflashvar  = Flash variable you wish to assign the content to eg:mynews,
> mytechnology
> 
> function fetchnews($mysourcefile,$myoutputfile,$myflashvar)
> {
>  $mysource=fopen($mysourcefile,"r") or die ("Couldn't open the Source
> file");
>  $myoutput=fopen($myoutputfile,"w") or die ("Couldn't open the Output
> file");;
>  fwrite($myoutput,$myflashvar);
>  while (!feof($mysource))
>   {
>$myline=fgets($mysource, 1024);
>$stripquotes=eregi_replace("'","`",$myline);
>$stripcolors=eregi_replace("COLOR=\"#.*\"","",$myline);
>if (eregi('^',$stripcolors))
> 
> {
>  $newanchor=eregi_replace("","",$stripcolors);
>  fwrite($myoutput,"$newanchor");
> }
>   }
>  fclose($myoutput);
>  fclose($mysource);
> }
> ?>
>  fetchnews("http://www.moreover.com/cgi-local/page?c=Graphics%20industry%20ne
> ws&o=html","graphicsnews.php","mynews=");
> ?>
> 
> All help and advise is as always gratefully received!
> Splashy.
> 

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  



[PHP] Developer mailing list

2001-06-22 Thread Julia A. Case

Hi, I'm trying to write a module for PHP and need a little help, I went to 
http://lists.php.net to see if there was a developer list, but only found the 
defualt Apache web page...  Can someone direct me in the proper direction?

Thanks,
Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] compiling with the gd library

2001-06-22 Thread Julia A. Case

I have a client that wants to have the gd library compiled into php, I got a modern 
version of the gd lib (1.8.4 and 2.0.1) and both state that they dropped support for 
gifs...  but the ext/gd/gd.c tries to use gif calls...  I'm confused.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] SQL statement for clearing a table

2001-06-22 Thread Julia A. Case

try 

delete from table;

Julia

Quoting Wilbert Enserink ([EMAIL PROTECTED]):
> Hi all,
> 
> anybody knows the mysql statement for clearing the contents of a table and
> lieving the table itself intact?
> 
> Wilbert
> 
> -
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> [EMAIL PROTECTED]
> -
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] gd library

2001-06-22 Thread Julia A. Case

This message never showed up on the list so I appologize if it shows up 2x.

I have a customer that wants to use the gd library with PHP, I got 2 different 
versions (1.3.8 and 2.0.1) and both say that they no longer support GIF formats...  
but when I try to compile the ext/gd/gd.c file I get errors on GIF function calls.

Is there a way around this?

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




[PHP] math question

2001-06-23 Thread Julia A. Case

$theta = 15*pi/360;
gives a value of 0 for $theta...  it should be something like 0.131...

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] php 4.06 as an apache DSO Error

2001-06-23 Thread Julia A. Case

Make sure your configure statement contains something like this

--with-apxs=/path/to/apxs

Julia

Quoting Daniel Guerrier ([EMAIL PROTECTED]):
> I'm trying to install PHP 4.06 as a DSO with apache
> 1.3.20 on redhat 7.1 and it produces this error.  No
> of which are the problem.  What else can it be??
> 
> Configuring SAPI modules
> 
> checking for Apache module support via DSO through
> APXS...
> ./configure: /software/apache/bin: is a directory
> Sorry, I was not able to successfully run APXS. 
> Possible reasons:
> 
> 1. Perl is not installed;
> 2. Apache was not compiled with DSO support
> (--enable-module=so);
> 3.  'apxs' is not in your path.
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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 PROTECTED]




Re: [PHP] Pricing Advice Needed

2001-06-29 Thread Julia A. Case

This varies greatly depending on where you are...  For example here on Long Island I 
can make $60-80 / man hour, but in New York City I can make as much as $150 / man 
hour...  It also depends on what you are doing.

Hope this helps,
Julia

Quoting Alva Chew ([EMAIL PROTECTED]):
> Hi everyone,
> 
> Just don't really know where to post this, so here goes:
> 
> I am working as a freelance programmer. Problem is I don't really have a
> clue how the pricing mechanism in the industry works. I have heard
> calculations based on man hours and lines of code, so perhaps anyone one can
> tell me on the average, how much should I be charging per man hour, or per
> line of code?
> 
> Sincere thanks and regards,
> Alva Chew, Singapore
> 
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] passwd in php....

2001-06-30 Thread Julia A. Case

I don't think this is going to work, passwd requires you to input the 
passwword, not just pass it as an option on the command line.

On top of that, you have to be root to change a password other than yours.

Julia

Quoting Bruno Freire ([EMAIL PROTECTED]):
> Hi...
> 
> My name is Bruno.
> 
> Somebody Knows how to use passwd in php?
> I mean, create linux users on my httpd server using a php page.
> 
> I already try the EXEC(), but i had no sucess..
> 
> Any help will be needed
> 
> Thanks everyone

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] Please Help......

2001-06-30 Thread Julia A. Case

This could be difficult or not even possible...  first you would need to 
add entries to the DNS zone file (and update the serial number) and then 
reload the DNS database, and this is only if you run your own DNS and not 
have your provider do it for you, like many of us do.

Then you would have to update the /etc/httpd/conf/httpd.conf file with the 
correct info for the sub-domain and then restart apache

And if you intend to have the new user upload content for the new 
sub-domain you would need to add a user and set a password, and as I 
stated in a previous message running passwd from php isn't possible as it 
requires you to enter a password, you can't supply one on the command 
line, and it needs to run as root to change the password of another user.

Julia

Quoting Man He ([EMAIL PROTECTED]):
> Hi all,
> 
>Can anybody give me a guideline or idea on how to write a PHP scriot 
> which is used to create a domain or sub-domain and a default page and a same 
> time. My OS is Red Hat Linux 6.1.
> 
>For example, in my program, when i press "activate' button, the script 
> will create me a sub-domain try.php.com and a default page index.php is 
> created for that sub-domain. Thanks for advice..
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] reading records alphebetically

2001-06-30 Thread Julia A. Case

Try using a query like

select * from table_name where name like '$letter%';

Julia

Quoting Jamie Saunders ([EMAIL PROTECTED]):
> Hi,
> 
> I have a MySQL database set-up containing a few hundred records.  I'm trying
> to make a script that reads the 'name' field of the records and displays
> only the records of which the name field begins with a specific letter:
> 
> if ($letter = A) {
> display all records of which field 'name' beings with A
> } else if ($letter = B) {
> ...
> 
> I'm just starting out on this, so please excuse my ignorance :)
> 
> Jamie Saunders
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] php not run as cgi.

2001-06-30 Thread Julia A. Case

You can change the group to the group the webserver runs as and then make 
the file mod 660 (this way the webserver can read but other people can't)

Hope this helps,
Julia

Quoting Jack ([EMAIL PROTECTED]):
> hi everyone,
>  Does anyone know the best way to secure php source code so it is not
> group/world readable?
> I can read other users' php source code by writing a simple php script.
> I do not prefer to run php as cgi because all user's php file need to
> add the header
> #/usr/bin/php again.
> 
> Thanks.
> 
> Jack
> 
> -- 
> 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 PROTECTED]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] mail function fails

2001-07-02 Thread Julia A. Case

/usr/sbin/sendmail should be SUID root, if your isn't change that and it 
should work fine.

Julia

Quoting Shrout, Ryan ([EMAIL PROTECTED]):
> I don't think that is it anymore.  I have a new discovery.  Upon running the
> actually PHP script from the console, the code works!  But only when I am
> logged in as root.  When logging is as anyone else, the mail() function
> fails with a Permission Denied on /usr/sbin/sendmail
> 
> So, it would appear that sendmail is not configured to allow others to use
> it?  Is there a quick easy way to fix this?
> 
> Thanks!
> 
> Ryan
> 
> -Original Message-
> From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 10:57 AM
> To: Shrout, Ryan
> Subject: RE: [PHP] mail function fails
> 
> 
> RPM's tend to hose installations.  May I suggest:
>   rpm -qa | grep php
>   rpm -e [insert php rpm name here]
>   rpm -e [apache rpm]
>   
>   get the source for apache 1.3.20 (http://www.apache.org)
>   get the source for php and compile per installation docs on php
> website
> 
> You will enjoy the results alot more.
> 
> -Original Message-
> From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 9:46 AM
> To: 'Michael Geier, CDM Systems Admin'
> Subject: RE: [PHP] mail function fails
> 
> 
> Well, just using Red Hat 7.1 and sendmail with PHP 4.0.5.  Sendmail was
> installed default in the RH installation, and then I installed the latest
> PHP RPM afterwards.
> 
> Oh well.
> 
> Ryan
> 
> -Original Message-
> From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 10:45 AM
> To: Shrout, Ryan
> Subject: RE: [PHP] mail function fails
> 
> 
> Are you trying to use a MTA besides Sendmail?
> 
> Some info would be helpful, such as:
>   OS
>   MTA (Sendmail Qmail, etc)
>   PHP version
> 
> If you installed PHP without sendmail installed, mail() will not work.  
> That doesn't mean that you can't use a different MTA.
> 
> When I switched to Qmail on a new server, a had a problem with mail() 
> not working.
> 
> I reinstalled OS (redhat 7.1) with sendmail, installed PHP (4.05),
> installed QMAIL per docs concerning replacing sendmail, changed 
> php.ini file to reflect sendmail_path = /var/qmail/bin/qmail-inject.
> 
> HTH
> ---
> Michael Geier
> CDM Sports, Inc. - Systems Administrator
> email: [EMAIL PROTECTED]
> phone: 314.991.1511 x 6505
> pager: 314.318.9414
> 
> -Original Message-
> From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 9:23 AM
> To: PHP Mailingliste
> Subject: RE: [PHP] mail function fails
> 
> 
> Darn, still didn't work.
> 
> Anyone else have a suggestion?  Or a way to view an error message of some
> kind?
> 
> Ryan Shrout
> 
> -Original Message-
> From: Tim Taubert [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 9:51 AM
> To: PHP Mailingliste
> Subject: RE: [PHP] mail function fails
> 
> 
> mh..
> 
>  if (mail("[EMAIL PROTECTED]", "Quote Request", "test")) {
> echo "Email sent!";
> } else {
> echo "Email NOT sent!";
> }
> ?>
> 
> this worked successfully... don't have any other ideas..
> 
> bye tim
> 
> -
>Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
> - 
> 
> -Original Message-
> From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 3:30 PM
> To: PHP Mailingliste
> Subject: RE: [PHP] mail function fails
> 
> 
> I tried that in this format:
> 
> if ( mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
> [EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion()) ) {
> echo "Email sent!";
> } else {
> echo "Email NOT sent!";
> }
> 
> and still get the Email NOT sent and no emails go anywhere.  Is there
> another solution?  How about a way to get an error message of some kind?
> 
> Ryan
> 
> -Original Message-
> From: Tim Taubert [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 9:09 AM
> To: PHP Mailingliste
> Subject: RE: [PHP] mail function fails
> 
> 
> hey ryan try something like this
> 
> mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
> [EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion());
> 
> hope this helps
> 
> cya tim
> 
> -
>Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
> -
> 
> -Original Message-
> From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 3:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] mail function fails
> 
> 
> I am having a problem with the PHP mail() function.  Here is the code:
> 
> if (mail ("[EMAIL PROTECTED]", "Quote Request",  $message)) {
> echo "Email sent!";
> } else {
> echo "