Re: [PHP] N7: Media (Page Info Tab) contents not cached bug?

2002-09-30 Thread Jean-Christian Imbeault

First off thanks for all the help!

Chris Shiflett wrote:
> 
> Sorry, I thought you were interested in the difference in behavior 
> between your Netscape 7 and IE.

Actually I am interested in knowing why the View Info Page| Media tab 
says my jpg is cached but my jpg is not ...

 > If you just want to allow caching, try header("Cache-Control:
> public").

Great. I'll do that!

> Also, you are speaking about images but showing the HTTP transaction 
> used to retrieve the HTML. You will want to examine the HTTP transaction 
> used to fetch the image itself in order to analyze the caching behavior 
> of your browser with respect to that image.

I gave the whole HTTP headers in a msg in this thread just a few minutes 
ago ... talking about a bug in N7 with jpg's and gif's.

> For images, unless you are generating them in PHP, it's going to be a 
> Web server configuration to change any headers.

Oh ... whould you know which one for Apache? It seems that gifs are not 
being cached whereas jpegs are.

> This all may make little sense, as it is extremely late here (east coast 
> US). If it confuses more than helps, just ignore it. :-)

Nope, you've been a great help so far!

I now know:

1- which header to use to turn caching on
2- that there is a problem between caching of jpeg's and gif's

I know have to f
 












[PHP] N7: Media (Page Info Tab) contents not cached bug?
Jean-Christian Imbeault


Re: [PHP] N7: Media (Page Info Tab) contents not cached bug?
Chris Shiflett


Re: [PHP] N7: Media (Page Info Tab) contents not cached bug?
Jean-Christian Imbeault


Re: [PHP] N7: Media (Page Info Tab) contents not cached bug?
Chris Shiflett


Re: [PHP] N7: Media (Page Info Tab) contents not cached bug?
Jean-Christian Imbeault











 






  
  





Reply via email to



  
  





 
 







RE: [PHP] Re: 4.0.2 => 4.2.3, form vars are empty?

2002-09-30 Thread Ford, Mike [LSS]

> -Original Message-
> From: Pekka Saarinen [mailto:[EMAIL PROTECTED]]
> Sent: 28 September 2002 10:14
> 
> For commonly used $PHP_SELF I use this:
> 
> if (isset($_SERVER)) $PHP_SELF = $_SERVER['PHP_SELF'];
> $scriptname = basename($PHP_SELF);

What's wrong with $HTTP_SERVER_VARS['PHP_SELF']?

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] %e blank with date_format() on windows

2002-09-30 Thread Ford, Mike [LSS]

> -Original Message-
> From: Gerard [mailto:[EMAIL PROTECTED]]
> Sent: 29 September 2002 18:20
> 
> "%e" with date_format doesn't print out anything on my windows 2k/xp
> machines, but does on linux. All other chars print fine. Is 
> this a locale
> setting issue or something?

Did you mean strftime() here?  In which case, the following note on
http://www.php.net/strftime might be of relevance:

Note: Not all conversion specifiers may be supported by your C library, in
which case they will not be supported by PHP's strftime(). This means that
e.g. %e, %T and %D (there might be more) will not work on Windows. 

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Not Displaying From Vars??

2002-09-30 Thread Paonarong Buachaiyo


"Stephen Craton" <[EMAIL PROTECTED]> wrote in message
000601c267ed$1cf93780$[EMAIL PROTECTED]">news:000601c267ed$1cf93780$[EMAIL PROTECTED]...
> Here's the part that's supposed to display the information. I've only
> filled in one area so far:
>
> 
> Sunday
>  sun_reg ???

// try ###
echo $_GET["sun_reg"]; // OR
echo $_POST["sun_reg"]; // OR

echo $HTTP_GET_VARS["sun_reg"]; // OR
echo $HTTP_POST_VARS["sun_reg"]; // Hope helps.
//  ###

?>
>  class="line"> 
>  class="line2"> 
>  
>  
>  
>  
>  
>  
>   
>
> Here's the form for the same area:
>
>   
> Sunday
>   name="sun_reg" type="text" class="hours" id="sun_reg" size="4"
> maxlength="3">
> 
>  class="line">
>class="hours" id="sun_over" size="4" maxlength="3">
>   
>  class="line2">
>class="hours" id="sun_vac" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_hol" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_sick" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_funer" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_edu" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_per2" size="4" maxlength="3">
>   
>  size="2" face="Arial, Helvetica, sans-serif">
>class="hours" id="sun_other" size="4" maxlength="3">
>   
>   
>
> Hope that helps!
>
> Thanks,
> Stephen
> http://www.melchior.us
> http://php.melchior.us
>
> :: -Original Message-
> :: From: John W. Holmes [mailto:[EMAIL PROTECTED]]
> :: Sent: Sunday, September 29, 2002 1:33 PM
> :: To: 'Stephen Craton'; [EMAIL PROTECTED]
> :: Subject: RE: [PHP] Not Displaying From Vars??
> ::
> ::
> :: Post your code...
> ::
> :: > -Original Message-
> :: > From: Stephen Craton [mailto:[EMAIL PROTECTED]]
> :: > Sent: Sunday, September 29, 2002 2:11 PM
> :: > To: [EMAIL PROTECTED]
> :: > Subject: RE: [PHP] Not Displaying From Vars??
> :: >
> :: > I just tried it and it doesn't work either.
> :: >
> :: > Thanks,
> :: > Stephen
> :: > http://www.melchior.us
> :: > http://php.melchior.us
> :: >
> :: > :: -Original Message-
> :: > :: From: John W. Holmes [mailto:[EMAIL PROTECTED]]
> :: > :: Sent: Sunday, September 29, 2002 1:07 PM
> :: > :: To: 'Stephen Craton'; [EMAIL PROTECTED]
> :: > :: Subject: RE: [PHP] Not Displaying From Vars??
> :: > ::
> :: > ::
> :: > :: Try $_POST['sun_reg'] or $_GET['sun_reg'], depending on the
> :: > :: method of your form.
> :: > ::
> :: > :: You probably have register globals off, that's why $sun_reg
> :: > :: isn't created. That's a good thing.
> :: > ::
> :: > :: ---John Holmes...
> :: > ::
> :: > :: > -Original Message-
> :: > :: > From: Stephen Craton [mailto:[EMAIL PROTECTED]]
> :: > :: > Sent: Sunday, September 29, 2002 2:01 PM
> :: > :: > To: [EMAIL PROTECTED]
> :: > :: > Subject: [PHP] Not Displaying From Vars??
> :: > :: >
> :: > :: > I bet you're getting sick of hearing from me but yet
> :: > :: again, I'm having
> :: > :: > trouble. I have a form that you type in a number for how
> :: > :: many hours an
> :: > :: > employee has worked. When they submit the form, it's
> :: supposed to
> :: > :: > display, again, what they typed in and record them to a
> :: > :: database to be
> :: > :: > used for a later use. The form, evidently, submits fine
> :: > :: but what my
> :: > :: > problem is, is that it won't display what they typed in.
> :: > :: >
> :: > :: > All I'm doing is putting in this:
> :: > :: >
> :: > :: > 
> :: > :: >
> :: > :: > The input field looks like this:
> :: > :: >
> :: > :: >  :: > :: id="sun_reg" size="4"
> :: > :: > maxlength="3">
> :: > :: >
> :: > :: > Does anyone see the problem? I can assign the form
> :: method to be
> :: GET
> :: > :: and
> :: > :: > it displays all the field values in the URL just fine,
> :: > :: it's just not
> :: > :

[PHP] xml_set_character_data_handler logic

2002-09-30 Thread Leendert

It appears that:

xml_set_character_data_handler($parser, 'handleData');

calls handleData() 3 times per element. Does anyone know the reason behind
this? Sounds like that could be very inefficient.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert

"Leendert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It appears that:
>
> xml_set_character_data_handler($parser, 'handleData');
>
> calls handleData() 3 times per element. Does anyone know the reason behind
> this? Sounds like that could be very inefficient.
>
>

FYI, this is the code I'm using:

SettingsFile = $settingsFile;

  $this->xmlData = implode('', file($settingsFile));

  $this->parser = xml_parser_create();
  xml_set_object($this->parser, &$this);

  xml_set_element_handler($this->parser, 'handleStartElement',
'handleEndElement');
  xml_set_character_data_handler($this->parser, 'handleData');

  xml_parse($this->parser, $this->xmlData);
  xml_parser_free($this->parser);
 }

 function handleStartElement($parser, $name, $attribs)
 {
  $this->tempElementName = $name;
 }

 function handleEndElement()
 {}

 function handleData($parser, $data)
 {
  //if(!defined($this->tempElementName))
   define($this->tempElementName, $data);
 }
}
?>

It gives me 2 notices per element that the constant is already defined,
while it shouldn't. When I do use the conditional
if(!defined($this->tempElementName))  it works fine of course. But it should
work in the first place.
Note: you need error_reporting(E_NOTICE); on to see the error.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] setuid, locked data, security

2002-09-30 Thread Christian Kaiser

Hi,

I have an account at a sun server. Until now I've used perl to write CGI 
scripts.
Is there a possibility to prevent files and directories from being read by 
other users (NFS). Since I'm not root I do not have the possibility to use 
POSIX functions to set the UID of the current process to my own. This would 
make it possible to set files as -rw--- so that no one can read it, just 
the script itself (which is set to -rwsr-xr-x).

Setting the setuid flag of a PHP script doesn't make sense, I guess.
Is there any alternative??

Any help would be appreciated!

Best Regards,

:-)hris

-- 
Christian Kaiser



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-30 Thread -<[ Rene Brehmer ]>-

I appreciate your advice, but it would not really apply to my structure
... because of the amount of files I use, I've got seperate include
folders for each section ... otherwise I'd get all weird in the head
trying to remember which files go where.

Basically it's the site in my sig that I'm converting to PHP, with a few
minor changes, made (easily) possible by the PHP. My first concern is to
make the site without a frameset, and without requiring any scripting
clientside. Once launched, I'll be looking into improving the site as much
as possible...taking as much advantage of PHP as possible ... but again, I
don't know the full extent of my options until I've gotten my webhotel...

How'd anyone be able to pull out my PHP source anyway? Since it's an http
server, it'll only respond to http requests, and since php is processed
upon request, the enitre source will be altered to just html ... don't get
that ... atleast the way I do it, the path to the included files is
hidden, 'cause it's all variable controlled ... it just plugs together the
variable with some path parts, directly in the include(...).

So for anyone to pull the includes, they'll need to know the exact path to
them, in order to retrieve them, right?

Rene

On Sat, 28 Sep 2002 18:52:47 -0400,  wrote about "RE:
[PHP] Newbie Q: Any difference what the .ext is on include() files???"
something that looked like this:

>The only thing to worry about is that if someone pulls up your include
>file, they're likely to see it as plain text and all of the code within
>it will be visible. If there is no PHP code within the file, or the PHP
>code is irrelevant (no passwords, logic, etc), then it doesn't matter. 
>
>I normally name my include files as file.inc.php. But (there is always a
>but) you have to remember that this file can be run out of context now,
>and all of the PHP code within it will be evaluated. It may or may not
>matter, but it's something to stay aware of. 
>
>A third option is to place them in an .htaccess protected directory or
>add a rule that .inc or .psrc files can't be called up through the
>browser (deny all). Depending on your web server, this may or may not be
>possible.
>
>The safest and best method to using includes is to store them outside of
>the webroot, so they can't be called by the browser at all. An easy way
>to do this is to define to variables, the html path, and the include
>path.
>
>$_CONF['html'] = '/home/groups/user/htdocs/';
>$_CONF['include'] = '/home/groups/user/includes/';
>
>And then base all of your include(), fopen(), header(), href, etc, off
>of those two variables. Makes moving your sites very easy, too, just
>change the values of those variables...

-- 
Rene Brehmer
System developer in the making...

This message was written on 100% recycled spam.

My website: http://www.geocities.com/cerberus_hotdog
Babes and computer & internet references...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] pdf question

2002-09-30 Thread Marek Kilimajer

I think you can still make a tempfile in /tmp, use this directory

Jonas Geiregat wrote:

> this is my code
> 
> $pdf = pdf_new();
>
> pdf_open_file($pdf);
> pdf_begin_page($pdf, 595, 842);
> pdf_set_font($pdf, "Times-Roman", 30, "host");
> pdf_set_value($pdf, "textrendering", 1);
> pdf_show_xy($pdf, "text here", 50, 750);
> pdf_end_page($pdf);
> pdf_close($pdf);
>
> $data = pdf_get_buffer($pdf);
>
> header("Content-type: application/pdf");
> header("Content-disposition: inline; filename=test.pdf");
> header("Content-length: " . strlen($data));
>
> echo $data;
>
> ?>
>
> I can't save the pdf file on server cause webserver doesn't have write 
> permission to the dir I normally wanted to be in
> but I just want to generate a pdf file and send it as attachement with 
> email
> how can I do this by generating the pdf in memory
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] OT-best PDF creation tool

2002-09-30 Thread Marek Kilimajer

I use FPDF www.fpdf.org , free even for commersional use and doesn't 
require any special module loaded

Ryan A wrote:

>Hey guys,
>I know this is totally off topic on a php list but I have a client who wants a PDF 
>document and since I have never made one before...which is the easiest and best tool 
>(hopefully free) to make a PDF form?
>I know a lot of you guys make websites yourselfs and most proberly worked on 
>something like this so any comments,suggestions or links are appreciated.
>Cheers,
>-Ryan.
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP running from CD through windows

2002-09-30 Thread Uma Shankari T.


Hello,

  I have installed php,apache and mysql under one folder and copied the 
same folder to the cd .apache and mysql is up and running while executing 
from the cd ..but php is not working..when i opened the php file it is 
asking for through which you want to view..I have copied the same working 
php from the local machine to cd (windows)..Can anyone tell me how to go 
about with this ??

Regards,
Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-30 Thread John W. Holmes

[snip]
> How'd anyone be able to pull out my PHP source anyway? Since it's an
http
> server, it'll only respond to http requests, and since php is
processed
> upon request, the enitre source will be altered to just html ... don't
get
> that ... 

Yeah, that's true if you give it a .php extension. But, you have to
remember that anyone can now run the php page and have it executed out
of context. It may or may not be an issue, depending on your code. 

> atleast the way I do it, the path to the included files is
> hidden, 'cause it's all variable controlled ... it just plugs together
the
> variable with some path parts, directly in the include(...).
> 
> So for anyone to pull the includes, they'll need to know the exact
path to
> them, in order to retrieve them, right?

Security through obscurity. Give someone a reason and they'll figure out
the path. I think the best solution for you right now is to go ahead and
give them a .php extension, but be aware of what will happen when that
script is run by itself, with register globals on or off. 

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Security and register globals

2002-09-30 Thread ed


Having recently switched from php 4.0.0 to 4.2.3 I quickly realized the
change in variable handling. I still experience problems using the $_POST
and $_GET globals so I currently have my register globals ON so I can have
the ability to pass variables from page to page without using the $_POST
and $_GET methods although I would really like to use them.

My current project has me creating a login interface for users to access a
form and file upload tools. I am using only 1 set of scripts for
everyone. Each user is assigned a path to their file area and these
records are kept in a MySQL database along with username, password and
contact info. As Each page is loaded the ID variable is checked and table
data is then loaded for them for use on that page. If the ID variable is
null they are given an error and redirected to the login page. This is to
keep them from bookmarking the index page for the tools.

My question is this:

 If I were to turn off register_globals and use the $_POST and $_GET
methods, what are the chances of a user getting someone else's variable
information using only one set of scripts for all. There could be up to
700 people using the script at any given time. Cookies are not an options
as many users may have them turned off and sessions have never worked for
me or at least I have never figured them out to work the way I think they
should.

TIA,

Ed



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread John W. Holmes

> Having recently switched from php 4.0.0 to 4.2.3 I quickly realized
the
> change in variable handling. I still experience problems using the
$_POST
> and $_GET globals so I currently have my register globals ON so I can
have
> the ability to pass variables from page to page without using the
$_POST
> and $_GET methods although I would really like to use them.
> 
> My current project has me creating a login interface for users to
access a
> form and file upload tools. I am using only 1 set of scripts for
> everyone. Each user is assigned a path to their file area and these
> records are kept in a MySQL database along with username, password and
> contact info. As Each page is loaded the ID variable is checked and
table
> data is then loaded for them for use on that page. If the ID variable
is
> null they are given an error and redirected to the login page. This is
to
> keep them from bookmarking the index page for the tools.
> 
> My question is this:
> 
>  If I were to turn off register_globals and use the $_POST and $_GET
> methods, what are the chances of a user getting someone else's
variable
> information using only one set of scripts for all. There could be up
to
> 700 people using the script at any given time. Cookies are not an
options
> as many users may have them turned off and sessions have never worked
for
> me or at least I have never figured them out to work the way I think
they
> should.

Using _POST or _GET doesn't make your scripts any more secure. It is
still all dependant on how you write them. If you assume that the ID
coming from _POST or _GET is the user that just logged in, then anyone
can just change the ID and get other peoples information. 

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-30 Thread @ Edwin

Hello,

On Monday, September 30, 2002 4:32 PM
Subject: Re: [PHP] Newbie Q: Any difference what the .ext is on include()
files???
[ Rene Brehmer ] wrote:
> I appreciate your advice, but it would not really apply to my structure
> ... because of the amount of files I use, I've got seperate include
> folders for each section ... otherwise I'd get all weird in the head
> trying to remember which files go where.

Of course, it's a good idea (and a good practice) to separate folders
for each section of  your site ("/images/", "/blahblah/", etc.). But,
putting
all include files in *one* folder (like "/inc/" or "/includes/" as
suggested).
Why, do you have thousands of files?

> Basically it's the site in my sig that I'm converting to PHP, with a few
> minor changes, made (easily) possible by the PHP. My first concern is to
> make the site without a frameset, and without requiring any scripting
> clientside. Once launched, I'll be looking into improving the site as much
> as possible...taking as much advantage of PHP as possible ... but again, I
> don't know the full extent of my options until I've gotten my webhotel...
>
> How'd anyone be able to pull out my PHP source anyway?

You mean the "includes"? There are many ways if you don't follow the
conventions (or suggestions) already given.

> Since it's an http server, it'll only respond to http requests, and since
> php is processed upon request,

Why, did you name all your files with a .php extension? Or, are you sure
that all your *.ext are being processed as php files?

> the enitre source will be altered to just
> html ... don't get that ... atleast the way I do it, the path to the
included files
> is hidden, 'cause it's all variable controlled ... it just plugs together
the
> variable with some path parts, directly in the include(...).

?

> So for anyone to pull the includes, they'll need to know the exact path to
> them, in order to retrieve them, right?

Right. Perhaps.

But you only need time to find out... unless you name your folders
(or included files) something like:

  /thisIsMyVeryhardT0GuessFolderHehehe/
  thisIsMyVeryhardT0GuessFolderHehehe.withVeryHardt0GuessExt
maybe it takes more time ;)

- E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] OT-best PDF creation tool

2002-09-30 Thread Justin French

Are you talking about dynamic generation of a PDF file with a server, or are
you just talking about making PDFs on your desktop computer for use on the
web?

Justin French


on 30/09/02 9:51 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:

> I use FPDF www.fpdf.org , free even for commersional use and doesn't
> require any special module loaded
> 
> Ryan A wrote:
> 
>> Hey guys,
>> I know this is totally off topic on a php list but I have a client who wants
>> a PDF document and since I have never made one before...which is the easiest
>> and best tool (hopefully free) to make a PDF form?
>> I know a lot of you guys make websites yourselfs and most proberly worked on
>> something like this so any comments,suggestions or links are appreciated.
>> Cheers,
>> -Ryan.
>> 
>> 
>> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread ed


 Correct! Problem is that I have been given explicit instructions to not
use cookies to do this. The only way I can think of doing it without
using cokkies is to pass at least one variable from page to page so the
scripts know who the user is. Getting them to the user index page with
links to the tools without knowing what the ID is was my main focus. I did
this using hidden input type variables so it's not included on the URL
when they get there. I could continue to do so if I were using all 
based links but the value could still be seen in the source for the page.

Ed


On Mon, 30 Sep 2002, John W. Holmes wrote:

> > Having recently switched from php 4.0.0 to 4.2.3 I quickly realized
> the
> > change in variable handling. I still experience problems using the
> $_POST
> > and $_GET globals so I currently have my register globals ON so I can
> have
> > the ability to pass variables from page to page without using the
> $_POST
> > and $_GET methods although I would really like to use them.
> > 
> > My current project has me creating a login interface for users to
> access a
> > form and file upload tools. I am using only 1 set of scripts for
> > everyone. Each user is assigned a path to their file area and these
> > records are kept in a MySQL database along with username, password and
> > contact info. As Each page is loaded the ID variable is checked and
> table
> > data is then loaded for them for use on that page. If the ID variable
> is
> > null they are given an error and redirected to the login page. This is
> to
> > keep them from bookmarking the index page for the tools.
> > 
> > My question is this:
> > 
> >  If I were to turn off register_globals and use the $_POST and $_GET
> > methods, what are the chances of a user getting someone else's
> variable
> > information using only one set of scripts for all. There could be up
> to
> > 700 people using the script at any given time. Cookies are not an
> options
> > as many users may have them turned off and sessions have never worked
> for
> > me or at least I have never figured them out to work the way I think
> they
> > should.
> 
> Using _POST or _GET doesn't make your scripts any more secure. It is
> still all dependant on how you write them. If you assume that the ID
> coming from _POST or _GET is the user that just logged in, then anyone
> can just change the ID and get other peoples information. 
> 
> ---John Holmes...
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] xml encodeing with new_xmldoc("1.0");

2002-09-30 Thread Davíð Örn Jóhannsson

I need to apply iso-8859-1 encodeing to the  that
this function creates: 
new_xmldoc(“1.0”). 
I tried to replace the line but ofcourse the new_xmldoc function creates
object-tree of the document and I don’t know I can reffrer to
the first line, or  or just create the document
with the encodeing
 
Thanks, David
 



[PHP] Manager SQL error

2002-09-30 Thread Christian Ista

Hello,

I'd like to catch all the queries. I'd like to use a log table, when I 
have a problem with the query, add a record with the query number, the 
query, date and time, and have a url to go to a page without error.

My idea was to create a session array with, by cell :
- the query
- query number
- date
- time
- URL to go back

Do you think it's a good idea ? Do you have an another idea to do this 
kind of think ? 

array_error[0] = $query;
array_error[1] = 1;
array_error[4] = "/main/index.php"
msql_query($query) or die(header ../add_error.php);

Have any experience in this domain (error catching)

Christian,






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread John W. Holmes

>  Correct! Problem is that I have been given explicit instructions to
not
> use cookies to do this. The only way I can think of doing it without
> using cokkies is to pass at least one variable from page to page so
the
> scripts know who the user is. Getting them to the user index page with
> links to the tools without knowing what the ID is was my main focus. I
did
> this using hidden input type variables so it's not included on the URL
> when they get there. I could continue to do so if I were using all

> based links but the value could still be seen in the source for the
page.

If that's the way you have to do it, then make the ID that identifies
the user something very hard to guess. Take a look at uniqid() in the
PHP manual. Assign the user a unique id after they supply the correct
username and password, and then pass that value around in the URLs. 

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread ed


It would be possible to do this if I then created another table to load
their profile data to and use the unique id as the identifier. It would
make it alot harder for someone to guess an ID. I would then need a way to
flush out their records from the second table when they are finished.
Easily enough done using a logout script but who actually does this
anymore. It would be possible to create a script to run through cron to
delete records from that table that are more than say 30 minutes old.

Good idea, thanks.

Ed
 


> 
> If that's the way you have to do it, then make the ID that identifies
> the user something very hard to guess. Take a look at uniqid() in the
> PHP manual. Assign the user a unique id after they supply the correct
> username and password, and then pass that value around in the URLs. 
> 
> ---John Holmes...
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: xml encodeing with new_xmldoc("1.0");

2002-09-30 Thread Manuel Lemos

Hello,

On 09/30/2002 09:54 AM, Föíö Öxî‰êójînyóon wrote:
> I need to apply iso-8859-1 encodeing to the  that
> this function creates: 
> new_xmldoc(“1.0”). 
> I tried to replace the line but ofcourse the new_xmldoc function creates
> object-tree of the document and I don’t know I can reffrer to
> the first line, or  or just create the document
> with the encodeing

That is odd there is no way to set the output encoding.

Anyway, if you are looking for a way to generate nicely formatted XML 
documents that let you set the encoding character set, you may want to 
take a look at this class. Just specify the outputencoding that you want:

http://www.phpclasses.org/xmlwriter


-- 

Regards,
Manuel Lemos


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Regular expression help converting doc to xml (somewhatOT)

2002-09-30 Thread Geoff

On Fri, 2002-09-27 at 16:53, John Holmes wrote:
This isn't accurate enough because  is not always preceeded by:
 some text. It is sometimes preceeded by  some text  or
other items.

This expression matches fairly well:
[a-zA-Z0-9\.,'\-\s]*
So it matches up to the :
 A whole bunch of text  
 Something else 

But I don't know how to do the replace part.
So essentially I need find this:
 A whole bunch of text 

and replace it with this:
 A whole bunch of text 
 
> 
> $new_text = str_replace("\n\t","\n\t",$your_text);
> 
> Assuming there is a tab in there...
> 
> You'd be better off getting an editor that'll do this for you. Textpad
> lets you search and replace with regular expressions. Other programs do
> too.
> 
> ---John Holmes...
> 
> > I have a fairly large html document that I need to convert to xml.
> > The current format is is:
> >  A whole bunch of text
> >  Something else 
> > (There is a new line in there before )
> > 
> > Which I need to convert to
> >  A whole bunch of text 
> >  Something else 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mail headers & mail filtering

2002-09-30 Thread debbie_dyer

More and more emails seem to be getting blocked by mail filtering systems looking for 
spam (but trashing legitimate mail at the same time). Does anyone have any tips for 
ensuring mails get through these systems (with regard to headers) or do we just have 
to accept now that email can no longer be relied upon as a means of communication?

Debbie



[PHP] RE: OT-best PDF creation tool

2002-09-30 Thread Jerry Artman

MacOSX!

Any Document, from any application...

Method 1- hit command-shift-4 then spacebar and use the camera to highlite
the screen, menu, dock whatever and click, a PDF will appear on your desktop
of the selected. Good for lower res.

Method 2- Select print from whatever application and in the print services
dialog, choose output and select pdf. High resolution.

Method 3- Use Acrobat, you know, the real FULL application. It has all the
bells and whistles you or your client could want, hyperlinks, forms, even
authentication.

Jerry Artman
Budget and Reimbursement
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] image viewing in the mail client

2002-09-30 Thread Ramesh Nagendra Pillai

Hai All

I have developed an application to send newsletter
periodically using simple mail function in PHP, the
newsletter is in HTML format and also have some
images. The problem is when we see the newsletter in
the inbox, images are not coming.

So I added base reference to image, its working fine
but if we are viewing it any mail client image is not
coming. Please any one tell me how to overcome this
problem.

I tried to attach images in the headers, its not
working Can anyone please help me out

Regards
Ramesh N



__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mime type list

2002-09-30 Thread christian haines

hi all,

i have been looking around on the net for a relatively complete
mime-type listing (possibly showing extensions) but have not come across
anything.
does anyone know of such a list or where i could obtain one?

who looks after such a list might be a better question.

many thanks
christian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] OT-best PDF creation tool

2002-09-30 Thread Marek Kilimajer

I'm taling about dynamic generation with the server, but now I see Ryan 
likely ment some desktop soft.

Justin French wrote:

>Are you talking about dynamic generation of a PDF file with a server, or are
>you just talking about making PDFs on your desktop computer for use on the
>web?
>
>Justin French
>
>
>on 30/09/02 9:51 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
>
>  
>
>>I use FPDF www.fpdf.org , free even for commersional use and doesn't
>>require any special module loaded
>>
>>Ryan A wrote:
>>
>>
>>
>>>Hey guys,
>>>I know this is totally off topic on a php list but I have a client who wants
>>>a PDF document and since I have never made one before...which is the easiest
>>>and best tool (hopefully free) to make a PDF form?
>>>I know a lot of you guys make websites yourselfs and most proberly worked on
>>>something like this so any comments,suggestions or links are appreciated.
>>>Cheers,
>>>-Ryan.
>>>
>>>
>>>
>>>  
>>>
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] general apache list

2002-09-30 Thread electroteque

where can i find it ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] error in php script

2002-09-30 Thread prasanna shetye

Hello
   I have downloaded am email client named twiggi for linux . It 
has a configuration file which creates database and generates a 
config.php file . After running this file site starts to work . 
But when I surfed the index.php file or test.php file of site it 
gives error ..

warning : failed opening ../index.php file in for inclution
include_path =[../php/include] in Unknown on line 0.

Can you help to solve this problem?

Have a nice time!



Have a nice time!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] about the way socket_select works...

2002-09-30 Thread Mário Filipe

Hi

This may seem a stupid question but here goes.

I'm working on my masters thesis and I'm programming a small daemon to
gather some statistics from the network using PHP. My idea was to have a
tcpstat process started via popen. Since this thing is going to be
concurrent I thought about using socket_select on the file descriptor
coming from popen, along with some open sockets that I have, but it
didn't work.

Question: socket_select works only for sockets?

Thanks
-- 
Mario Filipe 
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP Session register variable not always restored with contents

2002-09-30 Thread Brad Hanson

I have been trying to save a variable using PHP sessions.

What I find is that while most of the time the variable content is restored
and available on the subsequent pages, however there are times that the
variable seems to be there but the contents are not.  If I hit the browser
refresh a couple of times, it will then work.
What am I doing wrong??

Here is the code fragment where the variable is set and kept in session:

at the beginning:
");
  session_register(adminkey);

==
then in the page that needs to get the $admin key contents:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: general apache list

2002-09-30 Thread @ Edwin
Lots of ways. Perhaps,

1. You can try finding one on the Apache website. ;)
2. Try Google. Or,
3. You can try here:

  http://httpd.apache.org/userslist.html

- E

"Electroteque" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> where can i find it ?
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mime type list

2002-09-30 Thread Marek Kilimajer

I know about /etc/mime.types, does that help?

christian haines wrote:

>hi all,
>
>i have been looking around on the net for a relatively complete
>mime-type listing (possibly showing extensions) but have not come across
>anything.
>does anyone know of such a list or where i could obtain one?
>
>who looks after such a list might be a better question.
>
>many thanks
>christian
>
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: general apache list

2002-09-30 Thread @ Edwin
...I mean lot of "places"... :)

- E

"@ Edwin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Lots of ways. Perhaps,
>
> 1. You can try finding one on the Apache website. ;)
> 2. Try Google. Or,
> 3. You can try here:
>
>   http://httpd.apache.org/userslist.html
>
> - E
>
> "Electroteque" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > where can i find it ?
> >
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] mail headers & filtering

2002-09-30 Thread Debbie Dyer

I sent this mail earlier:-

"More and more emails seem to be getting blocked by mail filtering systems looking for 
spam (but trashing legitimate mail at the same time). Does anyone have any tips for 
ensuring mails get through these systems (with regard to headers) or do we just have 
to accept now that email can no longer be relied upon as a means of communication?"

I don't know if it arrived or if there were any replies due to my own provider 
blocking my mails - I know they are doing it because I tested it myself and because I 
have just subscribed to this list under another email address - this other email ad is 
receiving the php list mails the other is not.

Time to change ISP but anyway, if this mail was received and there were any replies, 
I'd be grateful if someone could forward them to me.

Thanks
Debbie



Re: [PHP] mail headers & filtering

2002-09-30 Thread Chris Hewitt

Debbie,

Your post got through. I've not seen any replies. If all ISPs dealt with 
spam generated by their own customers promptly, and passed on the info 
to the right ISP if not them, then the net could be virtually spam free 
(well, maybe).

Regards

Chris

Debbie Dyer wrote:

>I sent this mail earlier:-
>
>"More and more emails seem to be getting blocked by mail filtering systems looking 
>for spam (but trashing legitimate mail at the same time). Does anyone have any tips 
>for ensuring mails get through these systems (with regard to headers) or do we just 
>have to accept now that email can no longer be relied upon as a means of 
>communication?"
>
>I don't know if it arrived or if there were any replies due to my own provider 
>blocking my mails - I know they are doing it because I tested it myself and because I 
>have just subscribed to this list under another email address - this other email ad 
>is receiving the php list mails the other is not.
>
>Time to change ISP but anyway, if this mail was received and there were any replies, 
>I'd be grateful if someone could forward them to me.
>
>Thanks
>Debbie
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Session register variable not always restored with contents

2002-09-30 Thread John W. Holmes

> I have been trying to save a variable using PHP sessions.
> 
> What I find is that while most of the time the variable content is
> restored
> and available on the subsequent pages, however there are times that
the
> variable seems to be there but the contents are not.  If I hit the
browser
> refresh a couple of times, it will then work.
> What am I doing wrong??
> 
> Here is the code fragment where the variable is set and kept in
session:
> 
> at the beginning:
>  // routine to allow login to the system and authenticate that login
> session_start();
> 
> :
>   $adminkey = $row["keychain"];
>   print("Keychain: $adminkey");
>   session_register(adminkey);

should be session_register("adminkey");

Is register globals on or off?

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] image viewing in the mail client

2002-09-30 Thread John W. Holmes

Do you actually want to send the image data in the email? Why not just
reference them off of your server. In your email, provide a full path to
the image, http://www.domain.com/email/images/pic.gif. That's providing
you are already setting the correct HTML headers.

Sending the actual image data along with the email seems like a waste.

---John Holmes...

> -Original Message-
> From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] image viewing in the mail client
> 
> Hai All
> 
> I have developed an application to send newsletter
> periodically using simple mail function in PHP, the
> newsletter is in HTML format and also have some
> images. The problem is when we see the newsletter in
> the inbox, images are not coming.
> 
> So I added base reference to image, its working fine
> but if we are viewing it any mail client image is not
> coming. Please any one tell me how to overcome this
> problem.
> 
> I tried to attach images in the headers, its not
> working Can anyone please help me out
> 
> Regards
> Ramesh N
> 
> 
> 
> __
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread John W. Holmes

> It would be possible to do this if I then created another table to
load
> their profile data to and use the unique id as the identifier. It
would
> make it alot harder for someone to guess an ID. I would then need a
way to
> flush out their records from the second table when they are finished.
> Easily enough done using a logout script but who actually does this
> anymore. It would be possible to create a script to run through cron
to
> delete records from that table that are more than say 30 minutes old.

Yeah, that would be a good way to do it. Save a timestamp along with the
unique identifier. Update the timestamp whenever the user does
something. Then delete the unique identifier if the timestamp ever gets
to be more than X minutes old (cron is best way for that). 

What you are basically doing, though, is recreating sessions with the
trans_sid enabled. PHP will go through your code for you and
automatically add the session ID to all URLs and forms. You can turn off
cookies in php.ini, too, so you have to use the URL method. Only setback
is that PHP must be compiled a certain way (--enable_trans_id or
something) for it to work.

---John Holmes... 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Justing->PDF creation......

2002-09-30 Thread Ryan A

Hey,
Thanks, the online tool at Adobe worked great.
Cheers,
-Ryan.



[PHP] Quickie

2002-09-30 Thread Daniel Alsén

Guys,

i've been away for a while - enjoying a much needed vacation in lovely
Hungary and expanding my company. Now im back to bother you with easy
questions ;)

I am doing a small site multilingual and will display different content
depending on what language the user choses. When the user comes to the site
i want the default language to be swedish and is setting it in a session:

session_start();
session_register("lang");
if (!isset($lang)) { $lang = 'se'; }

However - i can´t change the value for $lang after that. It gets set to 'se'
every time the page loads. Shouldn't row 3 only be executed if $lang isn't
already assigned a value?

Regards
- D




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes

Is register globals on or off?

---John Holmes...

> -Original Message-
> From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 12:19 PM
> To: php general
> Subject: [PHP] Quickie
> 
> Guys,
> 
> i've been away for a while - enjoying a much needed vacation in lovely
> Hungary and expanding my company. Now im back to bother you with easy
> questions ;)
> 
> I am doing a small site multilingual and will display different
content
> depending on what language the user choses. When the user comes to the
> site
> i want the default language to be swedish and is setting it in a
session:
> 
> session_start();
> session_register("lang");
> if (!isset($lang)) { $lang = 'se'; }
> 
> However - i can´t change the value for $lang after that. It gets set
to
> 'se'
> every time the page loads. Shouldn't row 3 only be executed if $lang
isn't
> already assigned a value?
> 
> Regards
> - D
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] checking if a MySQL update worked

2002-09-30 Thread Henry

Hi All,

mysql_affected_rows() returns zero if you update without changing the data
in a database record. How do you tell the difference betwix "it worked but
nothing changed" as opposed to "it didn't work"?

TIA

Henry



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén

John W. Holmes propably said:

> Is register globals on or off?

On.

Now - without doing anything - i managed to change the value of $lang to
'en' with a link (pagesname.php?lang=en). But i can't change it back with
?lang=se. Should i get someting to eat to get my brain working?

- D




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mail headers & filtering

2002-09-30 Thread Henry

Hi Debbie et.al.

I think that we just have to accept that emails can no longer be relied
upon.

How about somebody making a javascript email encoder so that if you use a
javascript enabled mail client it will get decoded only once it arrives with
the recipient. With a link for those people without javascript enabled email
clients to view the message remotely on a
decode server if they wish.

Henry Grech-Cini

PS. If anybody does do this please let me know


"Debbie Dyer" <[EMAIL PROTECTED]> wrote in message
020f01c26895$619cd880$8c093c3e@homepc">news:020f01c26895$619cd880$8c093c3e@homepc...
I sent this mail earlier:-

"More and more emails seem to be getting blocked by mail filtering systems
looking for spam (but trashing legitimate mail at the same time). Does
anyone have any tips for ensuring mails get through these systems (with
regard to headers) or do we just have to accept now that email can no longer
be relied upon as a means of communication?"

I don't know if it arrived or if there were any replies due to my own
provider blocking my mails - I know they are doing it because I tested it
myself and because I have just subscribed to this list under another email
address - this other email ad is receiving the php list mails the other is
not.

Time to change ISP but anyway, if this mail was received and there were any
replies, I'd be grateful if someone could forward them to me.

Thanks
Debbie




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] eregi_replace and regular expressions

2002-09-30 Thread Eric Dean

Hello all,

I am trying to add html code using php on the fly while uploading web pages
to our database.  All of my replace functions seem to work well except one.
I am trying to add a  tag after the body tag.  It is easy to find
the body tag because there is only one "". So here is what
I've tried:

$filedata = eregi_replace("","",$filedata);

This line of code happily adds the  at the end
of the document. eregi_replace uses a case insensitive matching. The reg
exp is matching the entire $filedata rather than stopping at the first ">"
after "" after "http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] image viewing in the mail client

2002-09-30 Thread Steven

Question: Do you need to authenticate to a web proxy type server  / firewall
to view web pages.

In our configuration, if you do not authenticate to our proxy server, you
are not only blocked from surfing the web, but any e-mail with images
embedded via HTML is also blocked. To view the e-mail properly, we need to
login to the proxy.

Just a thought.

-Steven

-Original Message-
From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] image viewing in the mail client


Hai All

I have developed an application to send newsletter
periodically using simple mail function in PHP, the
newsletter is in HTML format and also have some
images. The problem is when we see the newsletter in
the inbox, images are not coming.

So I added base reference to image, its working fine
but if we are viewing it any mail client image is not
coming. Please any one tell me how to overcome this
problem.

I tried to attach images in the headers, its not
working Can anyone please help me out

Regards
Ramesh N



__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer

Jon

Thanks but I already did all that - I first noticed it a while ago when
people signing up on my site (and having to respond to a confirmation mail)
were complaining that they never received the confirmation mail - not all
people just a percentage. I tried manually emailing one of these email
addresses and got it bounced back with the following:-

X-AntiAbuse: This header was added to track abuse, please include it with
any abuse report
X-AntiAbuse: Primary Hostname - server.securesite7.com
X-AntiAbuse: Original Domain - c-u-online.co.uk
X-AntiAbuse: Originator/Caller UID/GID - [32116 32117] / [32116 32117]
X-AntiAbuse: Sender Address Domain - server.securesite7.com

and the subject Subject: Your E-Mail Did Not Make It. In other words mail
trashed. I checked with my web providers who checked and came back to me
saying they have checked and no they are not blackholed.

Maybe this was due to a temporary blackhole I dont know but this isnt my
only problem - there is a form mailer generator at my site and I keep
getting complaints from ppl who use it saying they never receive the mails
sent by the generated script - and this is when the scripts are using their
mail servers - to be sure its not a fault with the script I always test them
using a different email ad (to) and they work fine.

Because of these problems I have done quite a bit of reading about mail
filtering - one providers site actually stated that they will try to stop
mails that they think are sent by scripts. Trouble is these filters work in
different ways, content based filtering, header checking, using the services
of ppl like spamcop etc.

I was just wondering if there was anything I could do (with the header based
filters) to make emails more likely to get through.

Debbie

- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Debbie Dyer'" <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 4:37 PM
Subject: RE: mail headers & filtering


> Hi Debbie,
>
> [offlist, from php-general]
>
> > "More and more emails seem to be getting blocked
> > by mail filtering systems looking for spam (but
> > trashing legitimate mail at the same time).
>
> [snip]
>
> > I don't know if it arrived or if there were any
> > replies due to my own provider blocking my mails
>
> Your ISP may be listed in a block list such as SPEWS (http://spews.org/),
or
> you may be running an open relay on your network that's found its way into
a
> similar list.
>
> You can check your mail servers' IPs by using the "blackhole list check"
> tool at Sam Spade: http://samspade.org/t/.
>
> > do we just have to accept now that email can no
> > longer be relied upon as a means of communication?"
>
> You shouldn't have been doing this anyway, as it's not a reliable form of
> communication - if something's that important, send it through some sort
of
> recorded mail.
>
> Shout if you need any help.
>
> Cheers
> Jon
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] eregi_replace and regular expressions

2002-09-30 Thread John W. Holmes

> I am trying to add html code using php on the fly while uploading web
> pages
> to our database.  All of my replace functions seem to work well except
> one.
> I am trying to add a  tag after the body tag.  It is easy to
find
> the body tag because there is only one " having a terrible time trying to find the end of the tag because it
has
> unknown length and contents, but it does end with a ">". So here is
what
> I've tried:
> 
> $filedata = eregi_replace(""," width='80%'>",$filedata);
> 
> This line of code happily adds the  at the
end
> of the document. eregi_replace uses a case insensitive matching. The
reg
> exp is matching the entire $filedata rather than stopping at the first
">"
> after "" after ". 

Try something like this, instead.

eregi_replace(""

That'll match anything after body and between the closing > tag, but
won't match the < of the next tag. Don't know if I explained that very
well, but have a go at it. :)

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes

> John W. Holmes propably said:
> 
> > Is register globals on or off?
> 
> On.
> 
> Now - without doing anything - i managed to change the value of $lang
to
> 'en' with a link (pagesname.php?lang=en). But i can't change it back
with
> ?lang=se. Should i get someting to eat to get my brain working?

Here's the problem with register globals. If you pass $lang in the url,
it's a get variable. But when you call session_start, $lang is being
overwritten with the $lang from the session. So you're not changing it.
Try passing a $change_to_lang=en, and then 

If(isset($change_to_lang)) { $lang = $change_to_lang; }

Hope that helps.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: SV: [PHP] Quickie

2002-09-30 Thread Marek Kilimajer

Your session variable overwrites the get variable, use $newlang

session_start();
session_register("lang");
if(isset($newlang) $lang=$newlang; // check here for valid values
if (!isset($lang)) { $lang = 'se'; }


Daniel Alsén wrote:

>John W. Holmes propably said:
>
>  
>
>>Is register globals on or off?
>>
>>
>
>On.
>
>Now - without doing anything - i managed to change the value of $lang to
>'en' with a link (pagesname.php?lang=en). But i can't change it back with
>?lang=se. Should i get someting to eat to get my brain working?
>
>- D
>
>
>
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] checking if a MySQL update worked

2002-09-30 Thread Marek Kilimajer

mysql_error() will contain error text if "it didn't work"

Henry wrote:

>Hi All,
>
>mysql_affected_rows() returns zero if you update without changing the data
>in a database record. How do you tell the difference betwix "it worked but
>nothing changed" as opposed to "it didn't work"?
>
>TIA
>
>Henry
>
>
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer

Hi Henry

"I think that we just have to accept that emails can no longer be relied
upon." <- yes

I know we all want to stop spam but when you rely on email to automate
signups, speak to customers etc..it's a 

Good luck finding your javascript encoder

Debbie

- Original Message -
From: "Henry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 5:29 PM
Subject: [PHP] Re: mail headers & filtering


> Hi Debbie et.al.
>
> I think that we just have to accept that emails can no longer be relied
> upon.
>
> How about somebody making a javascript email encoder so that if you use a
> javascript enabled mail client it will get decoded only once it arrives
with
> the recipient. With a link for those people without javascript enabled
email
> clients to view the message remotely on a
> decode server if they wish.
>
> Henry Grech-Cini
>
> PS. If anybody does do this please let me know
>
>
> "Debbie Dyer" <[EMAIL PROTECTED]> wrote in message
> 020f01c26895$619cd880$8c093c3e@homepc">news:020f01c26895$619cd880$8c093c3e@homepc...
> I sent this mail earlier:-
>
> "More and more emails seem to be getting blocked by mail filtering systems
> looking for spam (but trashing legitimate mail at the same time). Does
> anyone have any tips for ensuring mails get through these systems (with
> regard to headers) or do we just have to accept now that email can no
longer
> be relied upon as a means of communication?"
>
> I don't know if it arrived or if there were any replies due to my own
> provider blocking my mails - I know they are doing it because I tested it
> myself and because I have just subscribed to this list under another email
> address - this other email ad is receiving the php list mails the other is
> not.
>
> Time to change ISP but anyway, if this mail was received and there were
any
> replies, I'd be grateful if someone could forward them to me.
>
> Thanks
> Debbie
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




SV: SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén

Thanks guys! That did the trick. Time to study these sessions a bit more
thourough it seems :)

Another thing - the first time the page is loaded every link on the page
gets a '?PHPSESSID=...etc...' attached to itself. But only the first time.
It dissapears after the first click i make.

I've never seen that before. Can i get rid of it?

- D





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security and register globals

2002-09-30 Thread ed


 I think I would rather do it using a new table than have to handle
sessions. It actually sounds harder to do it this way but I like hard. :)

Thanks,

Ed


On Mon, 30 Sep 2002, John W. Holmes wrote:

> > It would be possible to do this if I then created another table to
> load
> > their profile data to and use the unique id as the identifier. It
> would
> > make it alot harder for someone to guess an ID. I would then need a
> way to
> > flush out their records from the second table when they are finished.
> > Easily enough done using a logout script but who actually does this
> > anymore. It would be possible to create a script to run through cron
> to
> > delete records from that table that are more than say 30 minutes old.
> 
> Yeah, that would be a good way to do it. Save a timestamp along with the
> unique identifier. Update the timestamp whenever the user does
> something. Then delete the unique identifier if the timestamp ever gets
> to be more than X minutes old (cron is best way for that). 
> 
> What you are basically doing, though, is recreating sessions with the
> trans_sid enabled. PHP will go through your code for you and
> automatically add the session ID to all URLs and forms. You can turn off
> cookies in php.ini, too, so you have to use the URL method. Only setback
> is that PHP must be compiled a certain way (--enable_trans_id or
> something) for it to work.
> 
> ---John Holmes... 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] general apache list

2002-09-30 Thread Chuck Payne

apache.org or on Google for Apache Today, I think it apachetoday.org. There
you will find your list.

Chuck Payne
-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] general apache list


where can i find it ?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] What to use for multilanguage

2002-09-30 Thread Uros Gruber

Hi!

I'm developing some CMS engine and right now i'm at designing
multilanguage feature.

I nee some advices what is the best way to solve this. What
is with memory because if i have some big language files etc.

What to use, pure php, db, gettext. What about speed.

Any ideas would be good.
  

-- 
tia,
 Uros  mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: general apache list

2002-09-30 Thread electroteque

[EMAIL PROTECTED] if anyone needs it here it is.

"@ Edwin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ...I mean lot of "places"... :)
>
> - E
>
> "@ Edwin" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Lots of ways. Perhaps,
> >
> > 1. You can try finding one on the Apache website. ;)
> > 2. Try Google. Or,
> > 3. You can try here:
> >
> >   http://httpd.apache.org/userslist.html
> >
> > - E
> >
> > "Electroteque" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > where can i find it ?
> > >
> > >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt

Debbie Dyer wrote:

>addresses and got it bounced back with the following:-
>
>X-AntiAbuse: This header was added to track abuse, please include it with
>any abuse report
>X-AntiAbuse: Primary Hostname - server.securesite7.com
>X-AntiAbuse: Original Domain - c-u-online.co.uk
>X-AntiAbuse: Originator/Caller UID/GID - [32116 32117] / [32116 32117]
>X-AntiAbuse: Sender Address Domain - server.securesite7.com
>
Debbie,

It may be dns related. Its one of the things that an anti-abuse program 
can easily check. Your c-u-online.co.uk translates to 64.46.107.4 so its 
in forward dns OK. Doing the reverse lookup, there is no answer (hostname):

[g0pae@server g0pae]$ dig -x 64.46.107.4
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 30427
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;4.107.46.64.in-addr.arpa.INPTR

;; Query time: 3911 msec
;; SERVER: 158.152.1.58#53(158.152.1.58)
;; WHEN: Mon Sep 30 18:45:51 2002
;; MSG SIZE  rcvd: 42

You should also have reverse dns set. I think this is probably your 
whole problem, but if not its a lot of it.

Regards

Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] echo writes number of chars written

2002-09-30 Thread David Busby

List,
On my php.4.2.3, Apache 4.0.42 install my echo statements all output the
number of characters written (in hex).

So this code:
echo "$id->addrone";
echo "$id->addrtwo";
echo "$id->city";

Makes this XML:

1d
PO BOX 698
13

1a
ABCDEF GHIJKL

Couldn't see anything in the bug report, ideas?

/B


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer

Ok, thx Chris.

I'll have to take that up with my providers. Maybe its the same problem for
the others who've been contacting me re mails not arriving at their
mailboxes too - next one who does I will ask them to check their dns as
well.

Debbie

- Original Message -
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "Debbie Dyer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 6:52 PM
Subject: Re: [PHP] Re: mail headers & filtering


> Debbie Dyer wrote:
>
> >addresses and got it bounced back with the following:-
> >
> >X-AntiAbuse: This header was added to track abuse, please include it with
> >any abuse report
> >X-AntiAbuse: Primary Hostname - server.securesite7.com
> >X-AntiAbuse: Original Domain - c-u-online.co.uk
> >X-AntiAbuse: Originator/Caller UID/GID - [32116 32117] / [32116 32117]
> >X-AntiAbuse: Sender Address Domain - server.securesite7.com
> >
> Debbie,
>
> It may be dns related. Its one of the things that an anti-abuse program
> can easily check. Your c-u-online.co.uk translates to 64.46.107.4 so its
> in forward dns OK. Doing the reverse lookup, there is no answer
(hostname):
>
> [g0pae@server g0pae]$ dig -x 64.46.107.4
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 30427
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;4.107.46.64.in-addr.arpa.INPTR
>
> ;; Query time: 3911 msec
> ;; SERVER: 158.152.1.58#53(158.152.1.58)
> ;; WHEN: Mon Sep 30 18:45:51 2002
> ;; MSG SIZE  rcvd: 42
>
> You should also have reverse dns set. I think this is probably your
> whole problem, but if not its a lot of it.
>
> Regards
>
> Chris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT

Hello,

I have a table with timestamps in mysql. The timestamps of course are in
the format of 20020930014535 but I would like to format the output as
this:

date("l F jS H:i:s", $last_modified)

What is the simplest way to do this? I see there are a few ways to convert
it, but I was hoping for something easy (i.e. any built in functions that
I missed).

Thanks!

Bryan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert Brouwer

Cardinal from IRC answered my question. It turns out that when you indent
your childs with tabs, it sees those tabs as cdata of the root element. I
had the following XML file:

sampleDBName
sampleUser
localhost


The tabs in front of the child elements were treated as CDATA of the
 root node.


"Leendert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Leendert" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > It appears that:
> >
> > xml_set_character_data_handler($parser, 'handleData');
> >
> > calls handleData() 3 times per element. Does anyone know the reason
behind
> > this? Sounds like that could be very inefficient.
> >
> >
>
> FYI, this is the code I'm using:
>
>  class XMLSettingsParser
> {
>  var $settingsFile;
>  var $xmlData;
>  var $parser;
>  var $tempElementName;
>
>  function XMLSettingsParser($settingsFile)
>  {
>   $this->SettingsFile = $settingsFile;
>
>   $this->xmlData = implode('', file($settingsFile));
>
>   $this->parser = xml_parser_create();
>   xml_set_object($this->parser, &$this);
>
>   xml_set_element_handler($this->parser, 'handleStartElement',
> 'handleEndElement');
>   xml_set_character_data_handler($this->parser, 'handleData');
>
>   xml_parse($this->parser, $this->xmlData);
>   xml_parser_free($this->parser);
>  }
>
>  function handleStartElement($parser, $name, $attribs)
>  {
>   $this->tempElementName = $name;
>  }
>
>  function handleEndElement()
>  {}
>
>  function handleData($parser, $data)
>  {
>   //if(!defined($this->tempElementName))
>define($this->tempElementName, $data);
>  }
> }
> ?>
>
> It gives me 2 notices per element that the constant is already defined,
> while it shouldn't. When I do use the conditional
> if(!defined($this->tempElementName))  it works fine of course. But it
should
> work in the first place.
> Note: you need error_reporting(E_NOTICE); on to see the error.
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mysql timestamp and php date

2002-09-30 Thread Jason Young

In my pages, I just format the date from the SQL query:

"SELECT DATE_FORMAT(last_modified, '%m/%d/%Y %h:%i:%s %p') AS 
last_modified (...)"

Look up the DATE_FORMAT on mysql.com to get a list of the arguments.

Hope this helps!
-Jason

Bryan Koschmann - Gkt wrote:
> Hello,
> 
> I have a table with timestamps in mysql. The timestamps of course are in
> the format of 20020930014535 but I would like to format the output as
> this:
> 
> date("l F jS H:i:s", $last_modified)
> 
> What is the simplest way to do this? I see there are a few ways to convert
> it, but I was hoping for something easy (i.e. any built in functions that
> I missed).
> 
> Thanks!
> 
>   Bryan
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Determining platform PHP is running on?

2002-09-30 Thread Matt Giddings

Is there a way to determine what platform PHP is running on? I'm trying
to write a script that parses path names which we all know unix and
windose don't agree with each other. 

Thanks, 
Matt


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Determining platform PHP is running on?

2002-09-30 Thread Jay Blanchard

[snip]
Is there a way to determine what platform PHP is running on? I'm trying
to write a script that parses path names which we all know unix and
windose don't agree with each other.
[/snip]

Put  in a page and then load in the browser from your
server. It's revealing ...

HTH!

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Strange output using PHP 4.2.3/Apache 2.0.42 with domxml

2002-09-30 Thread David Busby

List,
When using echo or print to output data to the response buffer, these 
functions also put the number of bytes in the buffer into the output 
stream.  This only happens when I use this code in my script:
$doc = domxml_open_mem($HTTP_RAW_POST_DATA);
After that script echo and print also write the number of bytes in the 
buffer into the buffer, why?  Whats the story with that?  How do I tell 
PHP to not do that?  Why does it write that information?

/B


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Determining platform PHP is running on?

2002-09-30 Thread Matt Giddings

I'm looking for something that returns just the OS type, not tons of
information.  :)  I think the constant PHP_OS is what I'm looking for.
I just found it.

Thanks for the suggestion though,
Matt

> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 2:51 PM
> To: 'Matt Giddings'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Determining platform PHP is running on?
> 
> [snip]
> Is there a way to determine what platform PHP is running on? I'm
trying
> to write a script that parses path names which we all know unix and
> windose don't agree with each other.
> [/snip]
> 
> Put  in a page and then load in the browser from
your
> server. It's revealing ...
> 
> HTH!
> 
> Jay
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] GZip

2002-09-30 Thread Jay

I have the "output_handler = ob_gzhandler" turned on in the php.ini file so
it will automatically compress all my pages.  I was just wondering what is a
good zlib.output_compression level to put it on or is the default (4kb) a
good size?

thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] GET - POST problem

2002-09-30 Thread Francisco Vaucher

Hi,
 
I have a problem when i'm sending form data. The issue happens when I build
a mysql query with some form input data. I send the info and I get 'n'
results. With this I build a list that has links to the records that match
the query. Next step I display one of the items on my query. OK, now here is
where I have the problem. When I go back, the IE gives me an error that
"can't show the page because it was made up with form data and if I want to
see the page again, i have to make a refresh. IE wount send the information
itself."
 
I'm running an Apache Server under RH 7.2.
 
With IIS I don't have this problem.
 
Anyone have an idea for this issue ? I think that is a directive in the
php.ini file. But I don't know wich one is.
 
Help would be apreciated
 
Thanks

Francisco M. Vaucher
mailto:[EMAIL PROTECTED]  

 




[PHP] Annoying Install Problem

2002-09-30 Thread Steve Keller

I'm hoping someone here might be able to spot what I'm doing wrong with my 
installation. This is new to me and I've done the best I can by following 
the documentation, but I can't find a solution to this problem anywhere, 
even Googling for the error.

We're trying to upgrade our version of PHP on a remote server so that we 
can use the cURL libraries. When I try to install PHP, I get an error and 
it tanks.

The system is FreeBSD running Apache. The PHP version is 4.2.3.

The config is:

./configure --with-apxs=/usr/local/www/bin/apxs --with-mysql=/usr/local/ 
--with-gd=/usr/local/ --with-freetype --with-imap --with-curl

And this is the tail end of the make output:

%/bin/sh /tmp/phphold/php-4.2.3/libtool --silent --mode=link gcc  -I. 
-I/tmp/phphold/php-4.2.3/ -I/tmp/phphold/php-4.2.3/main 
-I/tmp/phphold/php-4.2.3 -I/usr/local/www/include 
-I/tmp/phphold/php-4.2.3/Zend -I/usr/local/include -I/usr/local//include/gd 
-I/usr/local/include/c-client -I/usr/local//include/mysql 
-I/tmp/phphold/php-4.2.3/ext/xml/expat  -DMOD_SSL=206104 -DMOD_PERL 
-DUSE_PERL_SSI -DUSE_HSREGEX -DEAPI -I/tmp/phphold/php-4.2.3/TSRM -g -O2 
-prefer-pic   -o libphp4.la -rpath /tmp/phphold/php-4.2.3/libs 
-avoid-version -L/usr/local/lib -L/usr/local//lib 
-L/usr/local//lib/mysql  -R /usr/local/lib -R /usr/local//lib -R 
/usr/local//lib/mysql 
stub.lo  Zend/libZend.la  sapi/apache/libsapi.la  main/libmain.la 
regex/libregex.la  /tmp/phphold/php-4.2.3/ext/ctype/libctype.la 
/tmp/phphold/php-4.2.3/ext/curl/libcurl.la 
/tmp/phphold/php-4.2.3/ext/gd/libgd.la 
/tmp/phphold/php-4.2.3/ext/imap/libimap.la 
/tmp/phphold/php-4.2.3/ext/mysql/libmysql.la 
/tmp/phphold/php-4.2.3/ext/pcre/libpcre.la 
/tmp/phphold/php-4.2.3/ext/posix/libposix.la 
/tmp/phphold/php-4.2.3/ext/session/libsession.la 
/tmp/phphold/php-4.2.3/ext/standard/libstandard.la 
/tmp/phphold/php-4.2.3/ext/xml/libxml.la  TSRM/libtsrm.la -lpam -lc-client4 
-lmysqlclient -lcrypt -lpam -lgd -lcurl -lcrypt -lm -lcrypt -lcurl -lssl 
-lcrypto
Zend/.libs/libZend.al: object 
Zend/.libs/libZend.al(zend_language_parser.lo) in archive is not object
*** Error code 1

Stop in /tmp/phphold/php-4.2.3.
*** Error code 1

Stop in /tmp/phphold/php-4.2.3.


So what I'm hoping for is 1 of 3 things: either someone can point me to a 
page that addresses the problem I'm having, someone knows where I screwed 
up and can tell me how not to do it in the future, or someone tells me they 
need more information, in which case I'll do my best.

Thanks for the help,

~Steve-o
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: [EMAIL PROTECTED]
Web: www.healthtvchannel.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt

Debbie Dyer wrote:

>mailboxes too - next one who does I will ask them to check their dns as
>
Its a problem with the sender's domain, rather than the recipient.

Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Pay Pal

2002-09-30 Thread Anup

Hello everybody, I thought programming pay pal would be a cinch. I can;t
find any information in programming pay pal. All I need to do is one simple
transaction to paypal. payapldev.org is down for the next week. Does any one
know any other site I can use?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] intalling php.

2002-09-30 Thread Anil Garg

Hi,

I want to upload my website..i had a machine on local lan which had
already php installed on it...so i made my website there..

Now on a news new unit.
I am trying to install php on free bsd machine...the apache webserver is
runniing fine..
on installing php it doesnt edit lines like:
"Load module libphp.so.
..
Add module libphp.c"
..

I really got stuckcan someone plz tell me what probably i am doing
wrong.

thanx and regards
anil


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] XML SAX & DOM together?!

2002-09-30 Thread Assistant to Foreign Student Advisor

Hi,

I am puzzled by a question about XML's SAX and DOM engines
compatibility.

Is it possible to have both installed, and use them interchangeably,
depending on the function calls.

Or you you have to choose only one. And if so, can WDDX library operate
with DOM XML or only SAX.

Thank you for you help,

alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Need help creating a mysql query in PHP

2002-09-30 Thread DonPro

Hi,

I have a form containing a text field where the user types in a sentence.  I
need to search a mysql table, specifically a text field and display a list
of found results.  My criteria selections are:

1) return a record if all the words are contained in a record
2) return a record if all any word entered are contained in a record
3) return a record if parts of all words (starting at the beginning) are
contained in a record (e.g.. 'ex is in 'exercise')
3) return a record if parts of any word (starting at the beginning) are
contained in a record (e.g.. 'ex is in 'exercise')

Any advice would be appreciated.

Thanks,
Don



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GET - POST problem

2002-09-30 Thread Kevin Stone

I can think of at least two solutions...

1) Open the item queries in a new window (target="_new") leaving the list
page open and unmodified.

2) Send NoCache headers and use a PHP session or cookie to store the Form
data and resubmit when the back button is pressed.

-Kevin

- Original Message -
From: "Francisco Vaucher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 1:11 PM
Subject: [PHP] GET - POST problem


> Hi,
>
> I have a problem when i'm sending form data. The issue happens when I
build
> a mysql query with some form input data. I send the info and I get 'n'
> results. With this I build a list that has links to the records that match
> the query. Next step I display one of the items on my query. OK, now here
is
> where I have the problem. When I go back, the IE gives me an error that
> "can't show the page because it was made up with form data and if I want
to
> see the page again, i have to make a refresh. IE wount send the
information
> itself."
>
> I'm running an Apache Server under RH 7.2.
>
> With IIS I don't have this problem.
>
> Anyone have an idea for this issue ? I think that is a directive in the
> php.ini file. But I don't know wich one is.
>
> Help would be apreciated
>
> Thanks
>
> Francisco M. Vaucher
> mailto:[EMAIL PROTECTED] 
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] GET - POST problem

2002-09-30 Thread Francisco Vaucher


OK. That would be a solution. I've been working with this one, but I can't
send back the information. Maybe i'm doing something wrong (I really think
this).

What I've been wondering if this is a common problem ¿?


Francisco M. Vaucher
Departamento IT
Tyco / ADT Security Services
Buenos Aires - Argentina
mailto:[EMAIL PROTECTED]


-Mensaje original-
De: Kevin Stone [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 17:45
Para: Francisco Vaucher; [EMAIL PROTECTED]
Asunto: Re: [PHP] GET - POST problem


I can think of at least two solutions...

1) Open the item queries in a new window (target="_new") leaving the list
page open and unmodified.

2) Send NoCache headers and use a PHP session or cookie to store the Form
data and resubmit when the back button is pressed.

-Kevin

- Original Message -
From: "Francisco Vaucher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 1:11 PM
Subject: [PHP] GET - POST problem


> Hi,
>
> I have a problem when i'm sending form data. The issue happens when I
build
> a mysql query with some form input data. I send the info and I get 'n'
> results. With this I build a list that has links to the records that match
> the query. Next step I display one of the items on my query. OK, now here
is
> where I have the problem. When I go back, the IE gives me an error that
> "can't show the page because it was made up with form data and if I want
to
> see the page again, i have to make a refresh. IE wount send the
information
> itself."
>
> I'm running an Apache Server under RH 7.2.
>
> With IIS I don't have this problem.
>
> Anyone have an idea for this issue ? I think that is a directive in the
> php.ini file. But I don't know wich one is.
>
> Help would be apreciated
>
> Thanks
>
> Francisco M. Vaucher
> mailto:[EMAIL PROTECTED] 
>
>
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT

Hi Jason,

I had come across this earlier, and while I can get it to return
perfectly, I was more looking for something that I could do without having
to pull 2 queries. Err, well wait, I wouldn't have to would I? I have 4
columns:

idnum, title, date, news

I was just doing a select * from newlist, but I suppose I can just address
each specifically:

select idnum, title, DATE_FORMAT(date, '%W, %M %D \@ %h:%i%p'), news from
newslist

right? Okay that works.

(don't mind me talking to myself)

Thanks for the help, and making me take a second to look further at it!

Bryan


On Mon, 30 Sep 2002, Jason Young wrote:

|In my pages, I just format the date from the SQL query:
|
|"SELECT DATE_FORMAT(last_modified, '%m/%d/%Y %h:%i:%s %p') AS
|last_modified (...)"
|
|Look up the DATE_FORMAT on mysql.com to get a list of the arguments.
|
|Hope this helps!
|-Jason
|


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Apache 1.3.26 + PHP 4.2.3

2002-09-30 Thread James Mackie

Got a strange problem that I can't find any info on. Maybe someone can
give me some insight.

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source, staticly,
not as modules.

PHP is compiled as follows:

./configure --with-apache= --with-mysql= --with-gd
--enable-trackvars

Aside from this everything works as it should. Any insight would be
helpful. 

Thanks.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Jason Young

No  problem!

Refresh MY memory here.. I noticed you didn't return the DATE_FORMAT 
column "AS " .. is that working okay? I seemed to think that it 
returned a long unwieldy column name.. maybe things are good.. let me 
know :-D

--Jason

Bryan Koschmann - Gkt wrote:
> Hi Jason,
> 
> I had come across this earlier, and while I can get it to return
> perfectly, I was more looking for something that I could do without having
> to pull 2 queries. Err, well wait, I wouldn't have to would I? I have 4
> columns:
> 
> idnum, title, date, news
> 
> I was just doing a select * from newlist, but I suppose I can just address
> each specifically:
> 
> select idnum, title, DATE_FORMAT(date, '%W, %M %D \@ %h:%i%p'), news from
> newslist
> 
> right? Okay that works.
> 
> (don't mind me talking to myself)
> 
> Thanks for the help, and making me take a second to look further at it!
> 
>   Bryan
> 
> 
> On Mon, 30 Sep 2002, Jason Young wrote:
> 
> |In my pages, I just format the date from the SQL query:
> |
> |"SELECT DATE_FORMAT(last_modified, '%m/%d/%Y %h:%i:%s %p') AS
> |last_modified (...)"
> |
> |Look up the DATE_FORMAT on mysql.com to get a list of the arguments.
> |
> |Hope this helps!
> |-Jason
> |
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Installing php - 4.2.3 with apache - 2.0.40

2002-09-30 Thread Anil Garg

Hi,

I am using following versions:

php - 4.2.3
apache - 2.0.40

I am reffering to intallationg intruction at :
http://www.php.net/manual/en/install.apache.php

while intalling php i use the following:
./configure --prerfix=/usr/local
-- with -mysql = /usr/local/msyql
--with -tsrm -pth
--enable -force -cgi - redirect
--with -apxs2=/usr/local/bin/apxs2

BUT, i get the folling while the libtools script is running
It couldnt find libphp4.a in /usr/local/modules/to move it to some
other place with name libphp4.so

And as a result it while i do apachctl startit says it cant find
libphp4.so

Can php - 4.2.3  and apache - 2.0.40 be used together?? In fact i dont want
to use lower versions of both of them as lower versions of both have many
vulnerabilities exploited by now.

So, i got stuck at the mid of uploading my site.

Hope to get some solutions.
Thanx and regards
anil


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT

This is what I am using here:

$db = DB::connect("mysql://$username:$password@$hostName/$databaseName");

if (DB::iserror($db))
die($db->getMessage());

$sql = "SELECT idnum, title, DATE_FORMAT(date, '%W, %M %D \@ %l:%i%p'),
news FROM newslist ORDER BY idnum DESC";

$query = $db->query($sql);
if (DB::iserror($query))
die($db->getMessage());

while ($query->fetchInto($row)) {
echo "\n" .
"\n\n\t$row[1] ID#$row[0]" .
"\n\n\tAdded $row[2]" .
"\n\n\t$row[3]" .
"\n";
}


I took out all the font formatting and stuff so its not so cluttered here.
but it works just dandy, although I know what you are talkng about, when
using the other way to connect it returns the name as whatever (like a
COUNT(*) does). Although, I never knew the AS var thing, so that will help
me with other stuff down the road!

I know this is nothing fancy, but it is just what I've been wanting to do
since before I started learning php and mysql. :)

Bryan

On Mon, 30 Sep 2002, Jason Young wrote:

|No  problem!
|
|Refresh MY memory here.. I noticed you didn't return the DATE_FORMAT
|column "AS " .. is that working okay? I seemed to think that it
|returned a long unwieldy column name.. maybe things are good.. let me
|know :-D
|
|--Jason
|


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Installing php - 4.2.3 with apache - 2.0.40

2002-09-30 Thread Rasmus Lerdorf

You need a current unstable snapshot of PHP to work with recent
versions of Apache 2.  However, unless you have a really good technical
reason for using Apache 2, I would highly suggest sticking with Apache 1
for now.

-Rasmus

On Mon, 30 Sep 2002, Anil Garg wrote:

> Hi,
>
> I am using following versions:
>
> php - 4.2.3
> apache - 2.0.40
>
> I am reffering to intallationg intruction at :
> http://www.php.net/manual/en/install.apache.php
>
> while intalling php i use the following:
> ./configure --prerfix=/usr/local
> -- with -mysql = /usr/local/msyql
> --with -tsrm -pth
> --enable -force -cgi - redirect
> --with -apxs2=/usr/local/bin/apxs2
>
> BUT, i get the folling while the libtools script is running
> It couldnt find libphp4.a in /usr/local/modules/to move it to some
> other place with name libphp4.so
>
> And as a result it while i do apachctl startit says it cant find
> libphp4.so
>
> Can php - 4.2.3  and apache - 2.0.40 be used together?? In fact i dont want
> to use lower versions of both of them as lower versions of both have many
> vulnerabilities exploited by now.
>
> So, i got stuck at the mid of uploading my site.
>
> Hope to get some solutions.
> Thanx and regards
> anil
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP Include Help

2002-09-30 Thread Rick Beckman

I have a series of text files that are set up with each line being a
different field. Line "0" is song title, "1" is artist, "2" is album, and so
forth. I know how to use PHP to include those files in an HTML template so
that I don't have to make a separate page for each song, however, I do have
two problems:

On line "6", I have the list of musicians in the song.
Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass
vocal"
Is there a way to make it so that, when I include line 6 in my PHP template,
the ";" will be replaced with a line break so I get one musician per line in
the HTML output?

Lines 7 and so on are the lyrics. The text file has one line per line (makes
sense, right?) and a blank line between sections of the song. I have the
script set up to read all the lines from 7 on, but it jumbles them all
together, ignoring the line breaks. Is there a way to script PHP to add the
line breaks, or should the line break HTML just be inserted everywhere
needed in all my separate files?

All help is appreciated!



-- 
Kyrie Eleison,
Rick
www.spiritsword.com/phpBB2/


---
Outgoing mail is certified Virus Free because I care. Jesus Saves!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] vulnerabilities??

2002-09-30 Thread Anil Garg

hi,

Is there any version of php and apache for which there are no known
vulnerabilities??

regards
anil :)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: [PHP-INST] vulnerabilities??

2002-09-30 Thread Rasmus Lerdorf

Sure, grab the latest Apache 1.3.x and the latest PHP.

On Mon, 30 Sep 2002, Anil Garg wrote:

> hi,
>
> Is there any version of php and apache for which there are no known
> vulnerabilities??
>
> regards
> anil :)
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Including Text File in PHP/HTML Template

2002-09-30 Thread Rick Beckman

I have a series of text files that are set up with each line being a
different field. Line "0" is song title, "1" is artist, "2" is album, and so
forth. I know how to use PHP to include those files in an HTML template
using 'echo' so that I don't have to make a separate page for each song,
however, I do have two problems:

On line "6", I have the list of musicians in the song.
Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass
vocal"
Is there a way to make it so that, when I include line 6 in my PHP template,
the ";" will be replaced with a line break so I get one musician per line in
the HTML output?

Lines 7 and so on are the lyrics. The text file has one line per line (makes
sense, right?) and a blank line between sections of the song. I have the
script set up to read all the lines from 7 on, but it jumbles them all
together, ignoring the line breaks. Is there a way to script PHP to add the
line breaks, or should the line break HTML just be inserted everywhere
needed in all my separate files?

All help is appreciated!


-- 
Kyrie Eleison,
Rick
www.spiritsword.com/phpBB2/


---
Outgoing mail is certified Virus Free because I care. Jesus Saves!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Including Text File in PHP/HTML Template

2002-09-30 Thread Steve Keller

At 9/30/2002 04:39 AM, Rick Beckman wrote:

>On line "6", I have the list of musicians in the song.
>Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass
>vocal"
>Is there a way to make it so that, when I include line 6 in my PHP template,
>the ";" will be replaced with a line break so I get one musician per line in
>the HTML output?

$line6 = str_replace(";", "\n", $line6);

If you're talking about HTML line breaks,  just substitute  for \n.

>Lines 7 and so on are the lyrics. The text file has one line per line (makes
>sense, right?) and a blank line between sections of the song. I have the
>script set up to read all the lines from 7 on, but it jumbles them all
>together, ignoring the line breaks. Is there a way to script PHP to add the
>line breaks, or should the line break HTML just be inserted everywhere
>needed in all my separate files?

Where is this jumbling that you're talking about, in your HTML display? 
HTML browsers don't recognize line-break escape characters. Yes, you would 
need  if you want it to display in HTML. As far as the browser's 
concerned, there's no difference between HTML served cold and HTML 
generated by PHP.

--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: [EMAIL PROTECTED]
Web: www.healthtvchannel.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Regular Expression

2002-09-30 Thread Daren Cotter

I need a regular expression to verify various inputs
on my form. I know the base case of:

"^[a-zA-Z0-9]+$"

matches any letter or number. I'm looking for various
input from the list as to what characters should be
allowed in the following fields:

Name: I would think -, ', and space for sure. Anything
else I don't know. I don't know how to write the
expression for this though. I tried escaping the -
like \-, but that doesn't work.

Street Address: Same as above, with #

City: Just '  ??


As I said, I'm looking for input, and how to actually
write these expressions.

TIA all!

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MSSQL_ERROR() ?

2002-09-30 Thread [-^-!-%-


Is there an SQL Server quivalent function, to the mysql_error()
function-available for msyql?

If not, then how do you retrieve the db error for an SQL Server error?

-j

=P e p i e  D e s i g n s
 www.pepiedesigns.com
 Providing Solutions That Increase Productivity

 Web Developement. Database. Hosting. Multimedia.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] vulnerabilities??

2002-09-30 Thread Steve Keller

At 9/30/2002 06:17 PM, you wrote:

>Is there any version of php and apache for which there are no known
>vulnerabilities??

It's the vulnerabilities you don't know about that get you.

--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: [EMAIL PROTECTED]
Web: www.healthtvchannel.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] vulnerabilities??

2002-09-30 Thread Brad Bonkoski

Is there such a thing of a software package with no vulnerabilities
and/or bugs??  (Windows perhaps :-)
The advantage to apache/php is the ability to quickly address those
problems once found.
-Brad

Steve Keller wrote:

> At 9/30/2002 06:17 PM, you wrote:
>
> >Is there any version of php and apache for which there are no known
> >vulnerabilities??
>
> It's the vulnerabilities you don't know about that get you.
>
> --
> S. Keller
> UI Engineer
> The Health TV Channel, Inc.
> (a non - profit organization)
> 3820 Lake Otis Pkwy.
> Anchorage, AK 99508
> 907.770.6200 ext.220
> 907.336.6205 (fax)
> Email: [EMAIL PROTECTED]
> Web: www.healthtvchannel.org
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: SV: [PHP] Quickie

2002-09-30 Thread John W. Holmes

> Another thing - the first time the page is loaded every link on the
page
> gets a '?PHPSESSID=...etc...' attached to itself. But only the first
time.
> It dissapears after the first click i make.

Do you have a session_start() on the page? It looks like you have a
trans_sid enabled. PHP will add that to all of your URLs automatically.
Can you disable it in php.ini?

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Multiple Tables Select

2002-09-30 Thread Bob Irwin

G'day,

Hoping someone can help me with a mysql select statement.

I have two tables that I am trying to do a select on.  The basic table
details are below.

table name: time

 |   ID   |   timefinished|   status   |
 |1|   11  |C   |

table name: details

| sid | completedby |
|  1  |   bob |


sid and ID are always the same corresponding value (one is inserted based on
the other).  What I am trying to do is do a select based on the current date
and status and then by who it was completed by.  What I have is...

select * from time, details where time.timefinished between '10' and
'12' and time.status='C' and details.completedby='bob' and time.ID =
details.sid;

What I am getting is not accurated, it just seems to grab the one entry,
which is correct, but there are 3 entries that fall within the range I am
trying to select on.

Any ideas what I'm doing wrong?

Any help is greatly appreciated.  Been staring at the monitor for a while
dribbling :)

Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] xml encodeing with new_xmldoc("1.0");

2002-09-30 Thread Tom Rogers

Hi,

Monday, September 30, 2002, 10:54:25 PM, you wrote:
DÖJ> I need to apply iso-8859-1 encodeing to the  that
DÖJ> this function creates: 
DÖJ> new_xmldoc(“1.0”). 
DÖJ> I tried to replace the line but ofcourse the new_xmldoc function creates
DÖJ> object-tree of the document and I don’t know I can reffrer to
DÖJ> the first line, or  or just create the document
DÖJ> with the encodeing
 
DÖJ> Thanks, David
 

One way to force it:
';
$buffer = ob_get_contents();
ob_end_clean();
$dom = domxml_open_mem($buffer);
echo '';
echo htmlentities($dom->dump_mem(true));
echo '';
?>

When it saves the document it should then convert to iso-8859-1
Just make '' whatever the root element will be.

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Regular Expression

2002-09-30 Thread John W. Holmes

> I need a regular expression to verify various inputs
> on my form. I know the base case of:
> 
> "^[a-zA-Z0-9]+$"
> 
> matches any letter or number. I'm looking for various
> input from the list as to what characters should be
> allowed in the following fields:
> 
> Name: I would think -, ', and space for sure. Anything
> else I don't know. I don't know how to write the
> expression for this though. I tried escaping the -
> like \-, but that doesn't work.

Allow a period, too, for names like "St. Laurent"
"^[-a-zA-Z0-9' .]+$"

> Street Address: Same as above, with #

Again, periods for "Ave."
"^[-a-zA-Z0-9#' .]+$"
 
> City: Just '  ??

I'd allow space and period, too, for "Ft. Gordon" for example.

"^[-a-zA-Z0-9' .]+$"

> As I said, I'm looking for input, and how to actually
> write these expressions.

Hope that helps.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] echo writes number of chars written

2002-09-30 Thread Tom Rogers

Hi,

Tuesday, October 1, 2002, 4:12:46 AM, you wrote:
DB> List,
DB> On my php.4.2.3, Apache 4.0.42 install my echo statements all output the
DB> number of characters written (in hex).

DB> So this code:
DB> echo "$id->addrone";
DB> echo "$id->addrtwo";
DB> echo "$id->city";

DB> Makes this XML:

DB> 1d
DB> PO BOX 698
DB> 13
DB> 
DB> 1a
DB> ABCDEF GHIJKL

DB> Couldn't see anything in the bug report, ideas?

DB> /B



what exactly is $id? An object, array ?

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mime type list

2002-09-30 Thread christian haines

cheers for that...

that listing should do the trick

it was right under my nose as usual

also thanks for your reply  in my other post

christian


Marek Kilimajer wrote:

> I know about /etc/mime.types, does that help?
>
> christian haines wrote:
>
> >hi all,
> >
> >i have been looking around on the net for a relatively complete
> >mime-type listing (possibly showing extensions) but have not come across
> >anything.
> >does anyone know of such a list or where i could obtain one?
> >
> >who looks after such a list might be a better question.
> >
> >many thanks
> >christian
> >
> >
> >
> >


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   >