[PHP] Re: Problems with the fopen() function

2001-11-11 Thread Tim Harvey - 5 Star Hosting

I tried what Matt suggested but it doesn't work. Anybody else got any
suggestions?

- Original Message -
From: Tim Harvey [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Sunday, November 11, 2001 3:44 AM
Subject: Problems with the fopen() function


 Can somebody PLEASE help me with this problem I'm having.

 This is a script to search the web. It sends the parematers q,c  i to
the
 SeacrhHippo server using the fopen function. When the script executes
the
 following error messages are displayed:

 Warning: php_hostconnect: connect failed in /usr/home/public_html/test.php
 on line 118
 Warning: fopen(http://www.searchhippo.com/qxml?q=testc=i=,r;) - Bad
 file descriptor in /usr/home/public_html/test.php on line 118




-- 
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] Random Row From Database

2001-11-11 Thread Christian Reiniger

On Sunday 11 November 2001 05:18, HEW Staff wrote:
 Hi,

 I'm trying to pull a random row from my database and display the
 contents.

 I know that the code:
 SELECT * FROM TABLENAME WHERE RAND() LIMIT 1
 should work.

(1) [EMAIL PROTECTED] has nothing to do with this. So don't crosspost to 
there.

(2) No, it shouldn't work
WHERE RAND () means where some random number evaluates to true (i.e. 
is nonzero)
you want ORDER BY RAND () LIMIT 1

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

...1000100011010101101010110100111010113...

--
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] | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry

If I have the string like this str1 | str2

Then | is found

However, if I do the above as str1|str2 without spaces

Then | can not be found

I appreciate any hints on a work around.



-- 
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] warning eror

2001-11-11 Thread brett

Can someone please tell me what to look for when this error appears:
Warning: Cannot use a scalar value as an array in 
/home/sites/site7/web/admin/repeat.php on line 141

It just came about in a page that has worked fine until now.  But that is how problems 
usually arrive, I think it is fine and leave it alone and all hell breaks loose.  If 
anyone has any input I would appreciate it.

Brett



[PHP] Re: | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry


It works now!! It was some problems with DreamWaver ..

Kal Amry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 If I have the string like this str1 | str2

 Then | is found

 However, if I do the above as str1|str2 without spaces

 Then | can not be found

 I appreciate any hints on a work around.





-- 
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 Digest 11 Nov 2001 09:44:26 -0000 Issue 988

2001-11-11 Thread php-general-digest-help


php-general Digest 11 Nov 2001 09:44:26 - Issue 988

Topics (messages 74125 through 74160):

Re: global variable for all scripts
74125 by: Kurt Lieber

mail() attach jpeg
74126 by: jtjohnston

Date help (no not that kind)
74127 by: sundogcurt

gdImageGif compile errors with 4.0.6
74128 by: Forrest Aldrich

Re: rules for headers?
74129 by: Chris Hobbs

Re: Apache User Groups?
74130 by: Chris Hobbs

Form Name Attribute Help!
74131 by: Kal Amry
74132 by: jimw.apache.org
74133 by: Chris Hobbs
74136 by: Kal Amry

Re: mail() attach png
74134 by: jtjohnston

Session probs with SSI
74135 by: Christian Dechery

Class for database-access doesn't work
74137 by: Alexander Czernay

gdImageGif errors
74138 by: Forrest Aldrich

Where can I find a routine ..
74139 by: Roy W

Drawing line onto an image
74140 by: Torkil Johnsen
74143 by: Rasmus Lerdorf

SetCookie return
74141 by: Christian Dechery
74142 by: Rasmus Lerdorf

converting string to double
74144 by: Kal Amry
74145 by: CC Zona
74146 by: Christian Dechery

Re: HTTP_POST_VARS: Data there, but can't get to it
74147 by: Christopher William Wesley
74149 by: Tom Rogers

Help with array in class needed
74148 by: Alexander Czernay

Problems with the fopen() function
74150 by: Tim Harvey
74151 by: Matt Friedman
74156 by: Tim Harvey - 5 Star Hosting

Recompiling under new kernel
74152 by: Gaylen Fraley

Random Row From Database
74153 by: HEW Staff
74157 by: Christian Reiniger

e modifier
74154 by: Brian Clark
74155 by: Kal Amry

| delimiter can not be found with strpos nor with explode
74158 by: Kal Amry
74160 by: Kal Amry

warning eror
74159 by: brett

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



On Saturday 10 November 2001 01:29 pm, you wrote:
 if i like to move my scripts to /www/my_newdir i habe to change the
 include() function in every script

A few options:

1.  Don't use absolute paths -- use relative paths.  Then you don't have to 
worry about it as long as the overall structure of your site stays the same.

2.  set a variable or named constant to the value of your path and then use 
that throughout your site.  For example:

DEFINE(MY_PATH,/www/my_newdir);

include(MY_PATH);

This works well when you have one file that contains all your named constants 
and other stuff that needs to be accessible on a global basis.  You then 
include that one file (using relative paths) at the top of every php page.  
If you need to change a value, you change it once in your global file and be 
done with it.

3.  It's fairly trivial to do an automated search and replace across multiple 
files.  Just do this and let the computer replace all occurances of 
include(/www/my_olddir) to include(/www/my_newdir)

hth

--kurt




Anyone have an example of mail() attaching a png or jpeg?

I'm doing this:

...
ImagePNG($image);
imagedestroy($image);





I am trying to determine if todays date ($today) is within a week 
($startcheck) of a given date ($dob). This is what I have so far.

$todaydate = (date(Y-d-m));
$today = strtotime($todaydate);
// $today prior to strtotime = 2001-10-11
$startcheck = strtotime(2001-08-11);
$dob = strtotime(2001-15-11);

//$today is CLEARLY between the two dates I'm testing with but no is 
always returned.

if($today = $dob  $startcheck = $today) {
print yes;
}
else {
print no;
}

Here are the values assigned to the vars, why is $today so much smaller 
than $startcheck and $dob?

1002783600 = today
1005452940 = startcheck
1005451980 = dob

win32 php4

Thanks in advance







I'm trying to compile php-4.0.6 on FreeBSD-4.4-STABLE for Apache, and I've 
tried using both version 1 and 2 of the gd library; however, the compile 
continues to crash with undefined calls to gdImageGif.

I can see that in the code there are mentions of a drop-in replacement 
gd_png for this call -- however, I'm not a programmer and couldn't really 
figure it out.

Is this a known problem?  If so, is there a work around? 





Just for kicks, try this instead:

if (!isset($newimage))
{...

jtjohnston wrote:


 However it crashes if $newimage=1
 My image doesn't display.


 ?php
 
 if(!$newimage)
 {
 header(Content-type: text/html);
 echo hibr;
 echo rendu: $rendubr;
 }else{
 
 header(Content-type: image/png);
 $image = imagecreate(500, 350);
 //etc...
 }
 ?
 
 


-- 
___  ____    _
Chris Hobbs   / \ \/ / |  | |/ ___\|  __ \
Head Geek| (___  \ \  / /| |  | | (___ | |  | |
WebMaster \___ \  \ \/ / | |  | |\___ 

[PHP] #!/usr/local ignore option?

2001-11-11 Thread Michael Rice

Hi All,
I have a kind of unique problem that I've had trouble finding information 
on around the net. I have a site that I pay a hosting company for that 
expects my php scripts to have #!/usr/local/bin/php at the beginning of 
each script which works fine. Now, I'd like to keep a development server 
at home that uses Apache 22 and the latest php. 

I followed the installation instructions carefully can got php running 
great at home. The only problem is that it serves up the #!/usr... at the 
beginning of file, which wouldn't bother me except that it causes major 
problems with redirects.

Any ideas on how to tell my development server to ignore that line or to 
reconfigure my apache/php in some such that it won't serve up that line??

I promise that I did due diligence in looking around but came up empty 
handed... keyword searching has its limitations...

Thanks very much in advance.

-- 
Sent through GMX FreeMail - http://www.gmx.net


-- 
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] HTML Question

2001-11-11 Thread Boaz Yahav



Hi

Check out this attached 
image.
This is the source HTML : 


HTMLBODY 
FORM SELECT 
DIR="RTL"OPTION 
VALUE="1"1 
/SELECT 
BR 
SELECTOPTION 
VALUE="1"1 
/SELECT 
/FORM/BODY/HTML


Notice that the upper pull down 
has a small space on the left side of the arrow.
Anyone has an idea why the RTL 
makes that?



-- 
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] Re: warning eror

2001-11-11 Thread CC Zona

In article 008a01c16a91$9da01200$89383842@home,
 [EMAIL PROTECTED] (Brett) wrote:

 Can someone please tell me what to look for when this error appears:
 Warning: Cannot use a scalar value as an array in 
  on line 141

On (or before) line 141 of /home/sites/site7/web/admin/repeat.php, an array 
function is being used on a non-array value, and that won't work.

-- 
CC

-- 
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] Re: Class for database-access doesn't work

2001-11-11 Thread John Lim

Leave out the second $.

Eg, $this-database is correct.

Next time when debugging, set error_reporting(E_ALL);
This will catch this error I believe.

Bye, John

Alexander Czernay [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I just tried to write a simple class for opening a MySQL-database with
PHP.
 The database get's opened, but the handle isn't transfered back. I can
then
 use the database, but only if I don't specify the handle in mysql_query.

 Any ideas?

 Code:
 db.php:
 ?
 class Database {
  var $connect;
  var $database;

  function Database($host=local) {
   switch ($host) {
case local :
 $this-$connect = mySQL_connect(host,user,pass);
 $this-$database = mysql_select_db(db, $this-$connect);
 break;
   }
  }

  function getConnect() {
   return $this-$connect;
  }

  function getDatabase() {
   return $this-$database;
  }
 }
 ?

 test.php:
 html
 head
 /head

 body

 ?
 include(lib/db.php);

 $db = new Database();
 $connect = $db-$getConnect;

 $result = mysql_query(select * from data);
 while ($data = mysql_fetch_array($result)) {
  extract($data);
  echo -.$id.-br;
 }


 ?

 /body
 /html






-- 
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] Re: ASP, ODBC, IIS 5, and PHP

2001-11-11 Thread John Lim

Run in CGI mode. The ISAPI is still a bit unstable. Sigh.

Kevin Pratt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I appear to be having a problem where when I run a PHP script that uses
ODBC
 calls my ASP/ODBC driven pages stop functioning.  When I run a PHP script
 that does not use ODBC there does not seem to be any problems with my
 ASP/ODBC pages.  I was wondering if anyone out there has ever run in to a
 problem similar or if there are different issues running PHP ASP ODBC and
 IIS 5 on Win2k Advanced Server.

 Thanks
 Kevin Pratt





-- 
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] Re: warning eror

2001-11-11 Thread Kal Amry


This is a Cobalt box! well you should edit the code and look at line 141 -
What error it mentions.

Telnet to the box, and cd to that directory

then vi repeat.php to edit the file

then Type 141 and then Shift G

That should take you the line but if you are not familiar with vi the  do
not continue just exit by doing :q! Enter

It seems that this file is part of a php opensource or whatever application
so if you didn't code it I recoment u seek other alternatives - One could be
to copy the original file if you have it backed up and then back up that
repeat file on the server and then copy the original to the server and see
if that solve the problem!!

What error are you getting anyhow. If it is parse error then I doubt it is
line 141.

Brett [EMAIL PROTECTED] wrote in message
008a01c16a91$9da01200$89383842@home">news:008a01c16a91$9da01200$89383842@home...
Can someone please tell me what to look for when this error appears:
Warning: Cannot use a scalar value as an array in
/home/sites/site7/web/admin/repeat.php on line 141

It just came about in a page that has worked fine until now.  But that is
how problems usually arrive, I think it is fine and leave it alone and all
hell breaks loose.  If anyone has any input I would appreciate it.

Brett




-- 
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] Re: warning eror

2001-11-11 Thread Kal Amry


I didn't see the description of the error so take that into consideration
when reading my post, yet I agree Zona.

Cc Zona [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 In article 008a01c16a91$9da01200$89383842@home,
  [EMAIL PROTECTED] (Brett) wrote:

  Can someone please tell me what to look for when this error appears:
  Warning: Cannot use a scalar value as an array in
   on line 141

 On (or before) line 141 of /home/sites/site7/web/admin/repeat.php, an
array
 function is being used on a non-array value, and that won't work.

 --
 CC



-- 
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] e modifier

2001-11-11 Thread Papp Gyozo

PHP 4.0.5, as far as I know. 

- Original Message - 
From: "Brian Clark" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 11, 2001 6:15 AM
Subject: [PHP] e modifier


 Does anyone know when the PCRE modifier 'e' was added into PHP? Is it
 version dependant, or has it been there since 3.0?
 
 In 3.0.18 with `PCRE library version: 2.05 21-Apr-1999' I get:
 
   Warning:  Unknown option 'e' in [...]
 
 But in 4.2.0-dev it is, of course, fine.
 
 -Brian
 
 
 -- 
 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 webmail

2001-11-11 Thread Colm Rafferty

Dear all
can I view a pop3 mail account without using IMAP?
If there is can someone point me to such a resource
the function imap_open() will not work on my cgi server
Thanks
Colm Rafferty




-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 11, 2001 01:35
To: HEW Staff; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Random Row From Database


try this...

select * from tablename order by rand() limit 1

it works perfectly... at least for my needs...

At 15:18 11/11/01 +1100, HEW Staff wrote:
Hi,

I'm trying to pull a random row from my database and display the contents.

I know that the code:
SELECT * FROM TABLENAME WHERE RAND() LIMIT 1
should work.

However, there are 19 rows in the database and only the first row ever
shows
up.

Is there a way to do this to ensure uniqueness?

The code I am using at the moment also filters so that rows are pulled from
the database given certain other criteria such as:

SELECT * FROM TABLENAME WHERE PayerID=$id AND RAND() LIMIT 1

All of the rows in the database contain the same PayerID and this column is
not the Primary Key.

Any help much appreciated.
Jonathan S Hardiman
President/CEO
Hardiman Enterprises Worldwide



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


_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br


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




RE: [PHP] php webmail

2001-11-11 Thread Richard Heyes

 can I view a pop3 mail account without using IMAP?
 If there is can someone point me to such a resource
 the function imap_open() will not work on my cgi server

http://phpclasses.upperdesign.com has a number of pop3 access classes iirc.
-- 
Richard Heyes
If you have any trouble sounding condescending,
find a Unix user to show you how it's done. - Scott Adams 

-- 
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] sending php page by mail

2001-11-11 Thread Mark Wouters

Hi all,

Description of my problem: i want to sent a newsletter to a mailgroup.
However i also want to be able to see who read the mail at a certain
moment and who didn't. Therefor i thought putting the page online, i.e.
it's a php page which gets its data from the database. By sending a mail
to the client with it's personal emailID, i can track who reads the mail
when accessing the php page.

That part works fine, but my problem now is that i want the page to be
opened directly in the mail, so the receiver of the mail does not have
to click on a link to see it..

Someone told me to use this:
$msg_body = img src='http://www.domain.com/eletters/letters.php?ID=; .
$letterID . emailID= . $sendtoID . ';
But all i get, working like this is a broken image in the mail.
This is the headers i use sending the mail:

$headers .= From: ;
$headers .= $mailfrom;
$headers .= \nReply-To: ;
$headers .= $mailfrom;
$headers .= \nMIME-Version: 1.0\nContent-Type: text/html;
charset=iso-8859-1\n;

Did i forgot something? Is there an other way to do this?

Thank you very much for any answer!

See ya,

Max



-- 
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] Date help (no not that kind)

2001-11-11 Thread DL Neil

Hi Sundog,
Can help you with dates (but no, if you want that kind you'll definitely not be 
wanting my advice...)

- Original Message -
 I am trying to determine if todays date ($today) is within a week
 ($startcheck) of a given date ($dob). This is what I have so far.

 $todaydate = (date(Y-d-m));
 $today = strtotime($todaydate);
 // $today prior to strtotime = 2001-10-11
 $startcheck = strtotime(2001-08-11);
 $dob = strtotime(2001-15-11);

 //$today is CLEARLY between the two dates I'm testing with but no is
 always returned.

 if($today = $dob  $startcheck = $today) {
 print yes;
 }
 else {
 print no;
 }

 Here are the values assigned to the vars, why is $today so much smaller
 than $startcheck and $dob?

 1002783600 = today
 1005452940 = startcheck
 1005451980 = dob

 win32 php4


Let's start with perceptions because there's a couple here that have the potential 
to hold you on the
side-benches whilst everyone else has a date and has made it to the dance floor...

The manual (http://www.php.net/manual/en/function.strtotime.php) says, strtotime --  
Parse about any english
[sic] textual datetime description into a UNIX timestamp. The key word is any and 
the fact that it is not
all.

 //$today is CLEARLY between the two dates I'm testing with but no is
 always returned.

Er, no - it is not clear! A quick geography/horology lesson: the rest of the world 
either do not use the same
date system or do not express the Gregorian calendar the way Americans do. Today no 
one has a problem with a
date written as 11/11/2001, but when 10/11/2001 is written down, does it mean 
yesterday (10-Nov-2001) or one
month back (11-Oct-2001)? In America, the two formats are known as American 
(MM/DD/CCYY) and European
(DD/MM/CCYY) format.

Moving to the format used in the code above (2001). A format of this nature is 
widely used because it
facilitates sorting/comparisons - ah but watch those perceptions, if you were 
comparing/sorting/performing
arithmetic on two dates, one in Oct and one in Nov, then the convention will have to 
be CCYYMMDD = century,
year, month, then day! BTW you will see the logical flow of this ever decreasing 
period/increasing precision,
and how it can be kept going into CCYYMMDDHHMMSS and thereafter depending upon your 
needs, time base/available
utility functions, etc!

The function is called 'string to time'. In other words, a series of alphanumeric 
characters are passed, and a
date-time is returned (in the form of a UNIX timestamp). Given that there are many 
perceptions involved in
interpreting what the incoming string of digits means, some dates cannot be 
unambiguously expressed/resolved (eg
yesterday's date).

It's always a good idea to add some 'debug echoes' to new code, just to be sure that 
your perceptions agree with
the computer's implacable logic - I added to your code:

echo Todaydate=$todaydate~;
echo brToday=$today~ Startcheck=$startcheck~ DoB=$dob~;
echo br.
 Today=.date(Y-M-d,$today).
 ~ Startcheck=.date(Y-M-d,$startcheck).
 ~ DoB=.date(Y-M-d,$dob).~;

and this was returned:

Todaydate=2001-11-11~
Today=1005436800~ Startcheck=1005510600~ DoB=1005509700~
Today=2001-Nov-11~ Startcheck=2001-Nov-11~ DoB=2001-Nov-11~no

The last no is the original output, but before that you can see 'why' - if the date 
values/definitions are
modified, the code works exactly as (I perceive, is) required.

Regards,
=dn



-- 
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] Empty form variables when uploading, Help please???

2001-11-11 Thread Sandra Rascheli

Hi everybody,

I hope someone is able to help me with this, I've been having this problem for  a 
couple of months now and I have not been able to find a solution. I have a form to 
upload a file which submits to itself, and has two submit buttons, one called 
eliminarfoto (deletephoto) and salvar (savephoto), but for some weird and 
unexplainable reason (it only happens to some users, not all of them) when they hit 
any of these two submit buttons, the form returns empty variables.

This is part of my script, has anybody had a similar problem before??? Any help would 
be greatly appreciated.

 FORM ENCTYPE=multipart/form-data ACTION=foto.php METHOD=POST
 TABLE border=0 cellPadding=2
 TR
  TD VALIGN=TOPPFONT face=Verdana size=1BFoto/B 
  (opcional,brtamaño máximo: 20k,brformatos permitidos: JPEG, GIF)/FONT/TD
  TD
  ? if ($foto) 
  { 
  echo IMG align=bottom border=0 width=140 height=160 src=\../fotos/$foto?nc= . 
time() .\br; 
  }
  ?
  INPUT TYPE=hidden name=MAX_FILE_SIZE value=100
  INPUT NAME=userfile TYPE=file
  INPUT TYPE=submit NAME=eliminarfoto VALUE=Eliminar
  INPUT TYPE=hidden NAME=foto VALUE=? echo $foto ?
  /TD
 /TR
 TR
  TD VALIGN=TOP COLSPAN=2 ALIGN=CENTER
  font face=Verdana,Arial,Helvetica,Sans-serif size=2 
  INPUT TYPE=SUBMIT NAME=salvar VALUE=Continuar -/TD
  
 /TR
 /TABLE
 /FORM




[PHP] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Steven Sullivan

Sandra,

I've been trying to get a file upload form to work, but am not having any
success. So, I dropped the file part from the form, leaving just text input,
and have discovered that when I use the POST method, my variables may or may
not be available on the receiving page. GET works fine. I've tried using
HTTP_POST_VARS and ..._RAW_..., but both are empty. The variables simply do
not come through every time. I am running the latest version of Apache
(1.3.x, not 2.x) and PHP 4.0.6. I've been unable to find any information on
this problem.

 - Steven Sullivan
___
Sandra Rascheli [EMAIL PROTECTED] wrote in message
004601c16982$53bf8590$706223c8@srascheli">news:004601c16982$53bf8590$706223c8@srascheli...
Hi everybody,

I hope someone is able to help me with this, I've been having this problem
for  a couple of months now and I have not been able to find a solution. I
have a form to upload a file which submits to itself, and has two submit
buttons, one called eliminarfoto (deletephoto) and salvar (savephoto),
but for some weird and unexplainable reason (it only happens to some users,
not all of them) when they hit any of these two submit buttons, the form
returns empty variables.

This is part of my script, has anybody had a similar problem before??? Any
help would be greatly appreciated.

 SNIP



-- 
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] #!/usr/local ignore option?

2001-11-11 Thread GB Clark II

On Sunday 11 November 2001 04:49, Michael Rice wrote:
 Hi All,
 I have a kind of unique problem that I've had trouble finding information
 on around the net. I have a site that I pay a hosting company for that
 expects my php scripts to have #!/usr/local/bin/php at the beginning of
 each script which works fine. Now, I'd like to keep a development server
 at home that uses Apache 22 and the latest php.

 I followed the installation instructions carefully can got php running
 great at home. The only problem is that it serves up the #!/usr... at the
 beginning of file, which wouldn't bother me except that it causes major
 problems with redirects.

 Any ideas on how to tell my development server to ignore that line or to
 reconfigure my apache/php in some such that it won't serve up that line??

Hi,

I'm willing to be that you have PHP installed as a module in apache whereas 
your hosting company is using the CGI version for some reason.

You will need to install the CGI version of PHP and tell the system to treat 
your scripts as a CGI instead of as a PHP module script.

GB
-- 
GB Clark II | Roaming FreeBSD Admin
[EMAIL PROTECTED] | General Geek 
   CTHULU for President - Why choose the lesser of two evils?

-- 
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] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Sandra Rascheli

Hi Steven,

Thanks a lot for answering. Have you uploaded files successfully with the
GET method? I was wondering if the problem may be because I submit the form
to itself and not to another PHP page. All the examples I see, the form gets
submitted to a different php page.

The strange thing in my case is that the problem is erratic, it happens to a
reduced number of users on my website but most of them are able to upload
files succcessfully. But I have asked the users who have had the problems to
see what browsers, versions they're using, but I have not been able to find
a connection regarding the problem.

I am going crazy with this, since I am not able to reproduce the error
myself so I cannot make any tests whatsoever. In my computer it works fine,
I just wished it worked in all the others!!!

If you find any information regarding the problem please let me know. I will
do the same.

Do you think may be I should try the GET method instead of the POST method?

Thanks again, Sandra

- Original Message -
From: Steven Sullivan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 11, 2001 10:56 AM
Subject: [PHP] Re: UPLOADING BLUES: Empty form variables when uploading


 Sandra,

 I've been trying to get a file upload form to work, but am not having any
 success. So, I dropped the file part from the form, leaving just text
input,
 and have discovered that when I use the POST method, my variables may or
may
 not be available on the receiving page. GET works fine. I've tried using
 HTTP_POST_VARS and ..._RAW_..., but both are empty. The variables simply
do
 not come through every time. I am running the latest version of Apache
 (1.3.x, not 2.x) and PHP 4.0.6. I've been unable to find any information
on
 this problem.

  - Steven Sullivan
 ___
 Sandra Rascheli [EMAIL PROTECTED] wrote in message
 004601c16982$53bf8590$706223c8@srascheli">news:004601c16982$53bf8590$706223c8@srascheli...
 Hi everybody,

 I hope someone is able to help me with this, I've been having this problem
 for  a couple of months now and I have not been able to find a solution. I
 have a form to upload a file which submits to itself, and has two submit
 buttons, one called eliminarfoto (deletephoto) and salvar (savephoto),
 but for some weird and unexplainable reason (it only happens to some
users,
 not all of them) when they hit any of these two submit buttons, the form
 returns empty variables.

 This is part of my script, has anybody had a similar problem before??? Any
 help would be greatly appreciated.

  SNIP



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




[PHP] MIME format

2001-11-11 Thread jtjohnston

Can someone help?
I'm trying to figure out how to attach my image.png that I create on the
fly.
This would work if I had mime text. What's wrong with this? How do I
conver $image to mime format or ... how shlould I approach this problem?

?php

---snip---
 ImagePNG($image);

mail([EMAIL PROTECTED], Test Image, Test
message,Content-Type: multipart/mixed;
 boundary=15E3B1D587950C2CAADCBF93

This is a multi-part message in MIME format.
--15E3B1D587950C2CAADCBF93
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



--15E3B1D587950C2CAADCBF93
Content-Type: image/png;
 name=postcard10.png
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename=postcard10.png

$image

--15E3B1D587950C2CAADCBF93--

);

echo mail sent;
?



-- 
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] executing another php.script

2001-11-11 Thread David Tod Sigafoos

I am sure that I am just .. missing this ..

From one script I wish to 'execute' another script.  How is this done?

Setting a link and clicking is not the answer .. one script loops
through all the 'selected' rows and I want to 'execute' another script
for each row .. can this be done?

thanks

DSig
David

-- 
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] User authentication problem.

2001-11-11 Thread CaMeL

I found a lot of scripts which regarding this user authentication.
But most of them are using mysql for their userlist 

What if I got a server which have users in it, and I want to reuse the
same list of users and password in the server.

What should I do ?

Thankyou


Jian An


-- 
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] executing another php.script

2001-11-11 Thread Richard S. Crawford

I'm not clear on what it is that you are trying to accomplish.  Could you 
restate your question, please?

At 08:43 PM 11/11/2001, David Tod Sigafoos wrote:
I am sure that I am just .. missing this ..

 From one script I wish to 'execute' another script.  How is this done?

Setting a link and clicking is not the answer .. one script loops
through all the 'selected' rows and I want to 'execute' another script
for each row .. can this be done?

thanks

DSig
David


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


--
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] emailing attachments

2001-11-11 Thread Don

Hi,

I have a class that allows me to send e-mail with an attachment.  I have a form that 
gathers information and I would like to allow the user to attach a file from his local 
drive.  Is there a PHP routine that allows the user to browse his drive and choose a 
file?

Thanks,
Don



[PHP] php newbie - need advice

2001-11-11 Thread Scott Dudley


i'm new to php and need some advice.  i have a site currently composed
of static pages generated via a c program.  i want to convert the site
to php.  the first page is an explorer-like table listing summary
information.  when a user clicks on a row in this table, they're taken
to a detail page which presents the same information contained in the
table of the calling page as well as a verbose description and an
image.  being a neophyte, my quandry is this... i have to select all of
the data from my database table to render the explorer-like table and
since i've already hit the database, don't want to have to do so again
for the detail page.  is there a standard way to handle such a thing?  i
don't want to depend on cookies or any client-side cacheing mechanism
but want to keep it server side.  the hosting service supports only
php3.

any and all recomendations appreciated.

here's the site so you can see what i'm talking about:
http://your-az-realtor.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]




[PHP] possible safe mode bug with opendir() ?

2001-11-11 Thread operator



When in safe mode shouldn't PHP check to see if the directory that is
about to be opened with a opendir() function has the same UID as the PHP
script itself, and fail if the UIDs do not match?

Because in PHP 4.0.6 with safe_mode on, a PHP script owned by fred can
open any directory owned by any other UID, so long as the directory is
under the open_basedir.  This does not seem right to me, as it allows a
user in safe_mode to browse all the files on the entire webserver, looking
for things he might be able to peek at with a web browser.

Please advise whether this should be a bug report.

A.


-- 
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] emailing attachments

2001-11-11 Thread Martin Towell

it's HTML
input type=file name=

-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:37 PM
To: php
Subject: [PHP] emailing attachments


Hi,

I have a class that allows me to send e-mail with an attachment.  I have a
form that gathers information and I would like to allow the user to attach a
file from his local drive.  Is there a PHP routine that allows the user to
browse his drive and choose a file?

Thanks,
Don



Re: [PHP] emailing attachments

2001-11-11 Thread Don

Thanks.  I already tried that which allowed me to browse but...

In my form, I have:
input type=file name=filename

My form line is :
form method=POST name=apply action=result.html ENCTYPE=multipart/form-data

Yet when I submit, and check the value of $filename in my PHP script, it is empty???  
Therefore, the attachment in my mail class
ends up being empty and not sent!!!


 it's HTML
 input type=file name=

 -Original Message-
 From: Don [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 12, 2001 3:37 PM
 To: php
 Subject: [PHP] emailing attachments


 Hi,

 I have a class that allows me to send e-mail with an attachment.  I have a
 form that gathers information and I would like to allow the user to attach a
 file from his local drive.  Is there a PHP routine that allows the user to
 browse his drive and choose a file?

 Thanks,
 Don



-- 
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] executing another php.script

2001-11-11 Thread Martin Towell

include file;

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] executing another php.script


I am sure that I am just .. missing this ..

From one script I wish to 'execute' another script.  How is this done?

Setting a link and clicking is not the answer .. one script loops
through all the 'selected' rows and I want to 'execute' another script
for each row .. can this be done?

thanks

DSig
David

-- 
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] how do the thing?

2001-11-11 Thread Galkov Vladimir

Good time of a day!
well... as for me the construction...

switch($action)
  {
case ...
..
}

...is not very elegant when number of cases over 40-60 or more and the only
thing they must do is start one function (often with the same name). for
example:

   case 'add_user_form':
 {
  show_add_user_form();
  break;
 }

more interesting is to create txt file with records like:

add_user_formshow_add_user_form()
add_user_recoderadd_user_recoder()
...

 So read  show_add_user_form() is not a problem but how tell PHP that this
is a name of function to start but a simple text string? ...

P/S: I know about reading php manual ;-) may be in an hour or two I'll get
answer on myself but may be somebody can answer qwicker? ;-)

Thancks!
Vladimr.



-- 
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] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread Yasuo Ohgaki

[EMAIL PROTECTED] wrote:

 
 When in safe mode shouldn't PHP check to see if the directory that is
 about to be opened with a opendir() function has the same UID as the PHP
 script itself, and fail if the UIDs do not match?


 From 4.1.0, optional GID check is available.

 
 Because in PHP 4.0.6 with safe_mode on, a PHP script owned by fred can
 open any directory owned by any other UID, so long as the directory is
 under the open_basedir.  This does not seem right to me, as it allows a

 user in safe_mode to browse all the files on the entire webserver, looking
 for things he might be able to peek at with a web browser.
 
 Please advise whether this should be a bug report.

Take a look at lastest implementation see if you still have issues.

http://snaps.php.net/

--
Yasuo Ohgaki


-- 
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] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread operator


But where user fred can opendir() a directory owned by user mary
(underneath the open_basedir), that action doesn't even pass a UID check
if the UIDs are supposed to match in safe mode in order for the action to
be allowed.

How would an optional GID check help?

A.


  When in safe mode shouldn't PHP check to see if the directory that is
  about to be opened with a opendir() function has the same UID as the PHP
  script itself, and fail if the UIDs do not match?


  From 4.1.0, optional GID check is available.

 Take a look at lastest implementation see if you still have issues.

 http://snaps.php.net/

 --
 Yasuo Ohgaki




-- 
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 newbie - need advice

2001-11-11 Thread David Robley

On Mon, 12 Nov 2001 15:16, Scott Dudley wrote:
 i'm new to php and need some advice.  i have a site currently composed
 of static pages generated via a c program.  i want to convert the site
 to php.  the first page is an explorer-like table listing summary
 information.  when a user clicks on a row in this table, they're taken
 to a detail page which presents the same information contained in the
 table of the calling page as well as a verbose description and an
 image.  being a neophyte, my quandry is this... i have to select all of
 the data from my database table to render the explorer-like table and

That's probably not exactly the case; there would presumably be no reason 
why you couldn't just select those details you want for the summary table?

 since i've already hit the database, don't want to have to do so again
 for the detail page.  is there a standard way to handle such a thing? 
 i don't want to depend on cookies or any client-side cacheing mechanism
 but want to keep it server side.  the hosting service supports only
 php3.

 any and all recomendations appreciated.

 here's the site so you can see what i'm talking about:
 http://your-az-realtor.com

Out of curiosity, why do you not want to make multiple accesses to the 
DB? It would seem to be the easiest, and probably best way of dealing 
with the problem.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Earth was interesting, and worth the money I paid for it.

-- 
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] Save to Desktop

2001-11-11 Thread Sharat Hegde

Hello,

I need to capture the contents of a Form into a text file format and
automatically allow the user to Save the file to his desktop.

Here is what I am intending to do:
* Capture the form contents and save to a temporary file. This works fine.
* Provide some method of the user automatically downloading this. How do I
get this download to happen?

I want the screen which says Open File or Save to come up and then the
user can basically save to his desktop.

Can anyone help and suggest how do get the Form contents saved to the
Desktop?

Thanks for your help.
With Regards,
Sharat

*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

-- 
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] how do the thing?

2001-11-11 Thread Martin Towell

once you have read in the file and parsed it up, all you need to do then is
to find the correct string to execute and call it using :

eval($string);

happy coding
Martin T

-Original Message-
From: Galkov Vladimir [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 4:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how do the thing?


Good time of a day!
well... as for me the construction...

switch($action)
  {
case ...
..
}

...is not very elegant when number of cases over 40-60 or more and the only
thing they must do is start one function (often with the same name). for
example:

   case 'add_user_form':
 {
  show_add_user_form();
  break;
 }

more interesting is to create txt file with records like:

add_user_formshow_add_user_form()
add_user_recoderadd_user_recoder()
...

 So read  show_add_user_form() is not a problem but how tell PHP that this
is a name of function to start but a simple text string? ...

P/S: I know about reading php manual ;-) may be in an hour or two I'll get
answer on myself but may be somebody can answer qwicker? ;-)

Thancks!
Vladimr.



-- 
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] Question about using system call/gzip

2001-11-11 Thread Joelmon2001

Hello. I just want to confirm that if I use a system call to 
execute gzip, so I can zip a directory, the file can be
decompressed by windows users

for example, if I visit
bleh.php and it compresses a directory /directory
will that file that it creates, which I download, be 
able to be unpacked using a 'winzip' for example on a windows machine?

Please insert Yes :)

Thanks

Joel



[PHP] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread Yasuo Ohgaki

[EMAIL PROTECTED] wrote:

 But where user fred can opendir() a directory owned by user mary
 (underneath the open_basedir), that action doesn't even pass a UID check
 if the UIDs are supposed to match in safe mode in order for the action to
 be allowed.
 
 How would an optional GID check help?



It may, it may not. It works like user/group permission as you 
know. I don't know what you want to protect :)

Do you mean a script with opendir() shouldn't allow openning any 
directory under open_basedir if UID does not match?

I think it should be allowed. It's perfectly valid to me.

What if directory is owned by other user, but there is files owned 
by the user. Would you like to disallow to list directory? I guess 
not.

You can protect file basis, why do you need other protection for 
directories under open_basedir? Do you have good reason for this?

--
Yasuo Ohgaki

 
 
When in safe mode shouldn't PHP check to see if the directory that is
about to be opened with a opendir() function has the same UID as the PHP
script itself, and fail if the UIDs do not match?


 From 4.1.0, optional GID check is available.

Take a look at lastest implementation see if you still have issues.

http://snaps.php.net/

--
Yasuo Ohgaki


 
 



-- 
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] Question about using system call/gzip

2001-11-11 Thread David Robley

On Mon, 12 Nov 2001 16:28, [EMAIL PROTECTED] wrote:
 Hello. I just want to confirm that if I use a system call to
 execute gzip, so I can zip a directory, the file can be
 decompressed by windows users

 for example, if I visit
 bleh.php and it compresses a directory /directory
 will that file that it creates, which I download, be
 able to be unpacked using a 'winzip' for example on a windows machine?

 Please insert Yes :)

 Thanks

 Joel

Presumably you mean tar and gzip, because gzip only compresses single 
files; in which case the answer is a qualified 'yes' - qualified because 
earlier versions of Winzip (and no, I don't remember when it changed) 
don't do compressed tar files.

I believe this info is also on the Winzip site.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Now go away or I shall taunt you a second time!

-- 
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] Question about using system call/gzip

2001-11-11 Thread Joelmon2001

Gzip only compresses single files?

So what if I want to compress a directory and have it download when a page is 
accessed?

I thought gzip would allow this. To compress a specified directory
when page.php is accessed. This is confusing. I tried the zend.com articles, 
too confusing to grasp. I am a bit confused

Thanks for your time, I appreciate it





[PHP] Resetting ID in mySQL DB

2001-11-11 Thread Thomas Edison Jr.

Hi,

I'm facing a problem. I made a simple DB with simple
adding records in DB operation. I've even put up a
JavaScript validation of the Form from where you add
info. And yet, in the display table, there are many
many blank fields. I don't know how they are
generated. 

The Adding of info form is at :
http://www.mjimm.com/index.php3?page=fanlist_add.php3

The display of records is at :
http://www.mjimm.com/fanlist_view.php3

Now the Display table also Displays the ID of the
Record. If i go in my mySQL Admnin, and delete the
rows with blank or duplicate records.. the ID also is
deleted but then is alway missing from the list. That
is, if i delete Row with ID 78, the next record feeded
will start from 79 and not 78. So there's gonne be
missing ID's from Records. Which i don't want. But
which has already happened. How can i correct it?? 
I want to reset the entire IDs to reflect the true
Number of records after i delete the Empty/Blank Rows
 Duplicate Record Rows!! How can i do that! Please
help!

Cheers  Glory,
Thomas edison jr.



=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.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]




Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley

On Mon, 12 Nov 2001 16:51, [EMAIL PROTECTED] wrote:
 Gzip only compresses single files?

 So what if I want to compress a directory and have it download when a
 page is accessed?

 I thought gzip would allow this. To compress a specified directory
 when page.php is accessed. This is confusing. I tried the zend.com
 articles, too confusing to grasp. I am a bit confused

 Thanks for your time, I appreciate it

Hmm, think I spoke too soon. It appears that you can concatenate several 
files into one gzipped file - have a look at man gzip. Tarring and 
zipping is a common way of doing this, however. (Not tarring and 
feathering, usually reserved for those who give wrong advice...)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm at the corner of Walk and Don't Walk.

-- 
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] Resetting ID in mySQL DB

2001-11-11 Thread Jack Dempsey

say you have 100 records.
you delete number 36.
your db will then be 
...
34
35
37
38
...
correct?
after a delete, you could then say:
update table set id_num=id_num-1 where id  36
and this would update all relevant records

-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 1:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Resetting ID in mySQL DB


Hi,

I'm facing a problem. I made a simple DB with simple
adding records in DB operation. I've even put up a
JavaScript validation of the Form from where you add
info. And yet, in the display table, there are many
many blank fields. I don't know how they are
generated. 

The Adding of info form is at :
http://www.mjimm.com/index.php3?page=fanlist_add.php3

The display of records is at :
http://www.mjimm.com/fanlist_view.php3

Now the Display table also Displays the ID of the
Record. If i go in my mySQL Admnin, and delete the
rows with blank or duplicate records.. the ID also is
deleted but then is alway missing from the list. That
is, if i delete Row with ID 78, the next record feeded
will start from 79 and not 78. So there's gonne be
missing ID's from Records. Which i don't want. But
which has already happened. How can i correct it?? 
I want to reset the entire IDs to reflect the true
Number of records after i delete the Empty/Blank Rows
 Duplicate Record Rows!! How can i do that! Please
help!

Cheers  Glory,
Thomas edison jr.



=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.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]



-- 
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] Login verification

2001-11-11 Thread Ashley M. Kirchner


I want to make a login page in PHP, which will check the
user/password against the system's user/password file (in my case,
/etc/passwd and /etc/shadow.)  With the machine running PAM, how can I
have PHP do this?

Keep in mind I don't need to modify anything, just verify the
login.  Once verified, the script either continues on to doing other
things, or it bombs with a bad login page.

--
H | Life is the art of drawing without an eraser. - John Gardner
  +
  Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
  Director of Internet Operations / SysAdmin. 800.441.3873 x130
  Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave, #6
  http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.



-- 
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] Re: Stripping IMG tags

2001-11-11 Thread _lallous

$string = preg_replace('/img[^]*/si', '', $string);

Richard S. Crawford [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
All I need to do is strip out IMG tags from strings; I don't want to strip
out all of the HTML, just the IMG tags, so the strip_tags() function won't
be adequate.

I've tried

 eregi_replace(img[^$],,$string);

but that doesn't seem to do any good (though the regexp works fine in Perl).

Any thoughts?



Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!




-- 
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] mail() w/ mailing lists

2001-11-11 Thread _lallous

Hello,

Is is advisable that I mail lots of users from a database via one call to
mail() ?

Or else, how do you think I should split the list and send my mails?

Is there is a way to tell if the mail was returned because the email address
was invalid?


Thanks.



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