Ryan A | 1 Apr 2005 08:54

Re: Password expiration script

Theres instant2c pro at securecents.com, but that might be like using a tank
to kill a fly :-D

On 3/31/2005 11:18:31 AM, Bosky, Dave (dave.bosky <at> htcinc.net) wrote:
> ------_=_NextPart_001_01C53626.6CCF76C0
>
> Content-Type: text/plain
>
>
>
> I'm looking for a script that would require a user to change their
password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm
> looking for?
>
>
>
>
>
>
>
> Thanks,
>
>
>
> Dave
>
>
>
(Continue reading)

Tomás Rodriguez Orta | 1 Apr 2005 03:48
Picon

upload image file to my server

Hello, hard people.

I want to do this, I like to upload image file, 
What can I do?.

somebody help me.?

best regards TOMAS

-------------------------------------------------------------------------
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu  y no se encontro ninguna coincidencia.

--

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

Marek Kilimajer | 1 Apr 2005 01:25

Re: URL file-access disabled

$image_dir is an url (begins with http:// or similar) and 
allow_url_fopen is off on your BSD.

Do you need to access it using url wrappers? If the images are local you 
can access them using plain filesystem access

Jackson Linux wrote:
> Hi, ho,
> 
> I have a problem; something which works locally is complaining on the 
> BSD Unix server I use:
> 
> The Code: (somewhere else I define $image_dir)
> 
> <!-- If there's an image, get it, get its height and width and slap it 
> into an image tag, otherwise, move on  -->
> <?php if (!empty($article['image']))  {
> $image = ($article['image']);
> $size1 = getimagesize("$image_dir"."$image");
> $width1 = $size1[0];
> $height1 = $size1[1];
> 
> include_once(INCLUDES . 'image.include.php');
> }
> 
> ?>
> 
> The Include:
> <img class='right-float' src='<?php echo $image_dir.$image ?>' 
> width='<?php echo $width1 ?>' height='<?php echo $height1 ?>' alt='<?php 
(Continue reading)

Jason Barnett | 1 Apr 2005 02:03

Signal 11 - php-5.0.1-dev - cygwin

OK, so I built php-5.1.0-dev from source using cygwin / gcc.

- buildconf ran ok
- configure ran ok
- make ran ok
- make install failed.  Output was:

Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment:      /usr/local/lib/php/
Signal 11
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2

Any tips on what's going on here?  I haven't built PHP from source
before so I would appreciate any tips / links.

I've done enough digging to figure out that Signal 11 is a Segmentation
Fault, but when I looked through the archives I didn't see anything
specific to this problem.  I'm building with cygwin, but I hope / assume
that all signals and errors should correlate to errors building on *nix.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
(Continue reading)

Jackson Linux | 1 Apr 2005 02:32
Picon

Re: URL file-access disabled

My provider has provided me the solution: adding

php_flag allow_url_fopen on

to the .htaccess

Apologies to the list for wasting time and bandwidth.

Jack

On 31 Mar 2005, at 17:47, Jackson Linux wrote:

> Hi, ho,
>
> I have a problem; something which works locally is complaining on the 
> BSD Unix server I use:
>
> The Code: (somewhere else I define $image_dir)
>
> <!-- If there's an image, get it, get its height and width and slap it 
> into an image tag, otherwise, move on  -->
> <?php if (!empty($article['image']))  {
> $image = ($article['image']);
> $size1 = getimagesize("$image_dir"."$image");
> $width1 = $size1[0];
> $height1 = $size1[1];
>
> include_once(INCLUDES . 'image.include.php');
> }
>
(Continue reading)

Rory Browne | 1 Apr 2005 02:40
Picon

Re: Re: Create MDB File

I don't think it's a case of 'finding a way'. I think its a case of
writing some code.

Some pseudo code to get you started:

connect_to_mysql();
$ms_Access_handler = use_com_ole_or_odbc_to_open_an_access_db();

while( $row = get_row_from_mysql() ){
  $ms_Access_handler->insert_row($row);
}

$ms_Access_handler->save_db("filename.mdb");

Just a thought. 

On Thu, 31 Mar 2005 12:36:51 -0700, René Fournier <m5 <at> renefournier.com> wrote:
> Coincidentally, I also need a way to read a table from MySQL and write
> it out to an .MDB file on-the-fly (from within a PHP script).
> 
> The CSV export idea isn't an option in this case.
> 
> Has anyone found a way to create an MDB file (with a single table) from
> PHP?
> 
> ...Rene
> 
> 
> On 28-Mar-05, at 7:18 PM, Rory Browne wrote:
> 
(Continue reading)

Sebastian | 1 Apr 2005 04:47

hotlinking images

i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:

<img src=http://mydomain.com/script.php?pic=232">

not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.

how can i work around this, if at all possible?

--

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

Philip Hallstrom | 1 Apr 2005 04:54

Re: hotlinking images

Check the value of um... $_SERVER[HTTP_REFERER] (check my spelling).  If 
it's not from your own host, then bail out... or return a static image 
saying something along the lines of "this image stolen without permission"

-philip

On Thu, 31 Mar 2005, Sebastian wrote:

> i have an issue with site linking directly to my images.
> the problem is these images are generated on the fly with php/gd -- they're
> generated each time its viewed because i have done some watermarking
> manipulation and didnt want to watermaker them in a static way. they're
> including the images like this:
>
> <img src=http://mydomain.com/script.php?pic=232">
>
> not only is bandwidth usage increase but so does cpu because php/gd has to
> process them as well.. if they're including 5 or 6 of these images on a
> single page i can imagin how much cpu is being used.
>
> how can i work around this, if at all possible?
>
> -- 
> 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
(Continue reading)

Ben Cheng | 1 Apr 2005 05:00
Picon

Catching error from mail function?

Hi I'm using the mail() function to send email and I know it's failing 
because it's returning a false but how do I tell what problem is?  Is 
there an error message that I can grab that will show me why the 
function is returning false?  Any help greatly appreciated.  Thanks!

-Ben

--

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

John Nichel | 1 Apr 2005 05:21

Re: hotlinking images

Sebastian wrote:
> i have an issue with site linking directly to my images.
> the problem is these images are generated on the fly with php/gd -- they're
> generated each time its viewed because i have done some watermarking
> manipulation and didnt want to watermaker them in a static way. they're
> including the images like this:
> 
> <img src=http://mydomain.com/script.php?pic=232">
> 
> not only is bandwidth usage increase but so does cpu because php/gd has to
> process them as well.. if they're including 5 or 6 of these images on a
> single page i can imagin how much cpu is being used.
> 
> how can i work around this, if at all possible?
> 

Are you using apache?  This might work in a .htaccess

Deny from all
Allow from .mydomain.com
Satisfy any

If that doesn't, maybe a rewrite rule that is normally used for media...

http://www.modwest.com/help/kb1-223.html

Try just changing/adding the php extension (don't know if that will 
work, but it's worth a shot).

--

-- 
(Continue reading)


Gmane