php-general Digest 8 Feb 2004 04:47:46 -0000 Issue 2577

Topics (messages 177097 through 177120):

Re: Need a way to automate user logout
        177097 by: Lowell Allen

PHP5 Beta 3
        177098 by: Safran von Twesla

[ERR] [PHP] PHP5 Beta 3
        177099 by: postmaster.hanmir.com

PEAR DB 1.6.0RC5 released, please test it
        177100 by: Daniel Convissor

Compilation issue with php 5.00 and mysqli-extension
        177101 by: Jochen

Re: Problems with ö or ä in script
        177102 by: DvDmanDT

Re: explode() an array and grep out a string
        177103 by: Adam Bregenzer

Re: include_once() isnt!
        177104 by: Adam Bregenzer

Re: FreeBSD to Linux -- PHP Issues
        177105 by: Don Read

Re: Checking if database has been setup
        177106 by: Don Read

Re: Beginner amazes self with image gallery script!
        177107 by: Joseph Szobody
        177111 by: Ryan A

Re: Cannot send mail after upgrading to OS X v10.3
        177108 by: gohaku
        177116 by: Jason Wong
        177119 by: gohaku

Re: [PHP-QA] Compilation issue with php 5.00 and mysqli-extension
        177109 by: Marcus Boerger

how to conver a string to float
        177110 by: Sebastian
        177113 by: Galen
        177117 by: Jason Wong

function only available if PHP4 compiled using --enable-exif
        177112 by: Paul Furman
        177114 by: Ben Ramsey
        177115 by: Paul Furman

refresh page (might be 0t)
        177118 by: Ryan A
        177120 by: Paul Furman

Administrivia:

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

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

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


----------------------------------------------------------------------
--- Begin Message ---
> I used cron to do this as well; but i devised a much simpler, elegant
> solution that is cross-browser and event-based and not schedule-based.
> 
> I basically have a javascript include file that instantiates a function that
> counts down in T-minus 10 minutes fashion.  at 9:30 the browser pops a
> window and says "you appear to be inactive; would you like to continue
> working?"  clicking on yes closes the popup and resets the timer; not
> clicking expires the popout which redirects the parent page to the logout.
> clicking on "log me out" basically circumvents the 30-second countdown
> straight to the logout.
> 
> to handle the alt+F4-happy crowd i devised a way to pop a special logout
> window when the browser is closed. this child window destroys sessions and
> makes database logs; this window closes itself.
> 
> this happened to work for me, YMMV.
> 
> ~phillip jackson

I've recently faced a similar issue. I lock CMS database records during
editing so multiple users can't edit simultaneously. It's easy to unlock the
records via PHP if the user goes to any other area of the CMS or if she logs
out. The problem is that users often don't log out, and sometimes leave
directly from an edit screen. I tried using the Javascript onunload event to
open a new window which runs a PHP script to unlock the record then close
itself, but that doesn't work if pop-up blocking software is being used.
Does your method do something similar? Does it work with pop-up blocking?

--
Lowell Allen

--- End Message ---
--- Begin Message ---
Hi php-general,

I have already PHP 4.3.1 running on my apache 2 webserver, on Linux.
Now I've tried to make PHP 5 run, everything compiles well, I have set
the same configuration parameters than for PHP 4, only additionally
--disable-libxml because it wouldn't compile then.

I added the line with libphp5.so (well it did by itself...) and
restarted the webserver (graceful). Didn't work, .php was not sent to
the php-engine.
Then I commented the libphp4.so. No .php file was recognized to go
through the php-engine...
I uncommented the libphp4.so, so I have 2 libphp again,
there, I had segmentation faults, and the webserver
crashed...

restarting the webserver only with php4 gave me following:

[notice] Graceful restart requested, doing restart
[notice] seg fault or similar nasty error detected in the parent process
[warn] pid file /var/run/apache2/httpd.pid overwritten -- Unclean shutdown of previous 
Apache run?
[notice] Apache/2.0.44 (Unix) PHP/4.3.1 configured -- resuming normal operations

Well, my question: what's wrong?

Here my config-parameters (config.nice):

#! /bin/sh
#
# Created by configure

'./configure' \
'--disable-libxml' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-config-file-path=/usr/local/etc' \
'--enable-magic-quotes' \
'--with-bcmath' \
'--enable-exif' \
'--enable-shared=max' \
'--enable-rule=SHARED_CORE' \
'--with-mysql=/usr/local/mysql' \
"$@"


Thanks for answering/helping...

SvT


-- 
Who is the ennemy?

--- End Message ---
--- Begin Message ---
Transmit Report:

 To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Hi php-general,

I have already PHP 4.3.1 running on my apache 2 webserver, on Linux.
Now I've tried to make PHP 5 run, everything compiles well, I have set
the same configuration parameters than for PHP 4, only additionally
--disable-libxml because it wouldn't compile then.

I added the line with libphp5.so (well it did by itself...) and
restarted the webserver (graceful). Didn't work, .php was not sent to
the php-engine.
Then I commented the libphp4.so. No .php file was recognized to go
through the php-engine...
I uncommented the libphp4.so, so I have 2 libphp again,
there, I had segmentation faults, and the webserver
crashed...

restarting the webserver only with php4 gave me following:

[notice] Graceful restart requested, doing restart
[notice] seg fault or similar nasty error detected in the parent process
[warn] pid file /var/run/apache2/httpd.pid overwritten -- Unclean shutdown of previous 
Apache run?
[notice] Apache/2.0.44 (Unix) PHP/4.3.1 configured -- resuming normal operations

Well, my question: what's wrong?

Here my config-parameters (config.nice):

#! /bin/sh
#
# Created by configure

'./configure' \
'--disable-libxml' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-config-file-path=/usr/local/etc' \
'--enable-magic-quotes' \
'--with-bcmath' \
'--enable-exif' \
'--enable-shared=max' \
'--enable-rule=SHARED_CORE' \
'--with-mysql=/usr/local/mysql' \
"$@"


Thanks for answering/helping...

SvT


-- 
Who is the ennemy?

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


--- End Message ---

--- End Message ---
--- Begin Message ---
Hello Again:

Another release of PEAR DB was made yesterday, 1.6.0RC5.

The most important change was fixing the bug for people who use
arrays for the DSN information when connecting.

It also adds a new method called quoteIdentifier(), which is used
for delimiting identifiers (such as field names and table names).

I'm planning to issue the stable 1.6.0 release on Tuesday.  So,
please download the package and test it out.  File bug reports
if stuff doesn't work or is unclear.

Download:    http://pear.php.net/get/DB
Manual:      http://pear.php.net/manual/en/package.database.php
Report Bugs: http://pear.php.net/bugs/report.php?package=DB
Home Page:   http://pear.php.net/package/DB

Oh, and if you like the new features, the fixing of over 40 bugs,
and/or the documentation improvements that have happened since
1.5.0RC2, take note of my "Wishlist" page at
http://www.analysisandsolutions.com/donate/donate.htm
The Financial Donations secition is now working again, too.

Enjoy,

--Dan

PS:  I'm not on the list.  Just posting this as an announcement.

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

--- End Message ---
--- Begin Message ---
Hi all,

i am trying to compile 
php 5.0.0 beta 3 
using:
Apache 2.0.47
MySQL 4.1.1-alpha-debug-debug

with the mysqli extensions under linux. 

When i try to compile php, gcc will bail of with the following message:

/bin/sh /home/jochen/Documents/php/php-5.0.0b3/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/mysqli/ -I/home/jochen
Documents/php/php-5.0.0b3/ext/mysqli/ -DPHP_ATOM_INC -I/home/jochen
Documents/php/php-5.0.0b3/include -I/home/jochen/Documents/php/php-5.0.0b3
main -I/home/jochen/Documents/php/php-5.0.0b3 -I/home/jochen/Documents/php
php-5.0.0b3/Zend -I/usr/include/libxml2 -I/usr/local/mysql/include  -I
home/jochen/Documents/php/php-5.0.0b3/TSRM  -g -O2  -prefer-pic -c /home
jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c -o ext/mysqli
mysqli_report.lo

/home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c: In
function `php_mysqli_report_index':
/home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
`SERVER_QUERY_NO_GOOD_INDEX_USED' undeclared (first use in this function)
/home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
(Each undeclared identifier is reported only once
/home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
for each function it appears in.)
/home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:66: error:
`SERVER_QUERY_NO_INDEX_USED' undeclared (first use in this function)
make: *** [ext/mysqli/mysqli_report.lo] Fehler 1

Nor i can find a definition of SERVER_QUERY_NO_GOOD_INDEX_USED or
SERVER_QUERY_NO_INDEX_USED

my ./configure parameters are:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --without-mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config

Has anyone got an idea of how to avoid that?

Regards,
Jochen

--- End Message ---
--- Begin Message ---
It's because the HTML or HTTP or whateverdoesn't allow them.. :p

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Piet From South Africa" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> When using ö or ä the hyperlinks or photo references does not work even
> though it point correct like "../banner/Jörns Gästehaus/mainphoto.jpg, i
> tried specialchars but this does not seem  to work, can anyone tell me
why?

--- End Message ---
--- Begin Message ---
On Sat, 2004-02-07 at 03:09, Bobby R.Cox wrote:
> Is it possible to explode an array and have it exclude a certain 
> string.   I currently have an array that is an ldapsearch that returns 
> sub-accounts of a parent account. These accounts are then displayed so 
> customer can either change the passwd or delete them.    Thing is 
> ldapsearch returns everymatch which includes the parent account, which 
> is already listed on the page as the parent account.  I would like to 
> eliminate the second listing of the parent account where the 
> sub-accounts are listed.

Try this:

$parent_account = 'parent_name';
$ldap_results = array('account1','account2','parent_name');
$results = array_diff($ldap_results, array($parent_account));

$results will now have only account1 and account2.

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

--- End Message ---
--- Begin Message ---
On Tue, 2004-02-03 at 17:04, Rob wrote:
> Ive programmed with C/C++ for years and have recently started to dabble in
> PHP. Ive written a multi-part script for a friend and Ive run into a
> problem.
<snip>
> Heres where the problem lies. Each component is in a separate file, and when
> I run the script, I get an arror saying I cant re-define the classes.
> Which makes me believe that the include_once() function is trying to include
> the other components even though they are already included. So, does that
> mean that include_once() only works right when it is used in the same file?
> It wont recognise that an include was already included in another include?
> Have I confused you yet? I am.

This is not an answer, but it is a solution.  I don't ever rely on
include_once.  If someone else uses my include files they may not use
include_once.  Instead I use the old C/C++ trick of defines:
<?php
if (!defined('SOME_INCLUDE')) {
    define('SOME_INCLUDE', TRUE);
    // Place code here
}
?>

I use the following structure for creating unique constants to prevent
collisions:
{projectname}_{classname}( include ? _INC:)

A global class outside my projects:
_CLASS_NAME

The class FooBar in my Rule The World project:
RULE_THE_WORLD_FOO_BAR

The config include in my Rule The World project:
RULE_THE_WORLD_CONFIG_INC


-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

--- End Message ---
--- Begin Message ---
On 03-Feb-2004 Daryl Meese wrote:
> Hello all,
> 
> I am considering changing hosting providers and moving from FreeBSD
> to
> Linux.
> 
> My question is are there any PHP related issues to moving (functions
> that
> don't work on Linux but do on FreeBSD, etc)?
> 
> I doubt there are but have to cover the bases.
> 

All functions, assuming they were configured, work the same. The only
thing that isn't a one-for-one swap (that I've seen) is locale names:

[Linux]
nat221.dread$ ls | grep es_
es_AR
es_ES

[FreeBSD]
localhost.dread$ ls | grep es_
es_ES.DIS_8859-15
es_ES.ISO8859-1
es_ES.ISO8859-15
es_ES.ISO_8859-1
es_ES.ISO_8859-15

So if you're part of the 99.9% that don't mess with locales, you should
be OK.


Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

--- End Message ---
--- Begin Message ---
On 07-Feb-2004 Ryan A wrote:

<snip>

> but how do i check if the database/tables have
> been setup?
> 

SHOW DATABASES LIKE 'mydb';
SHOW TABLES FROM mydb LIKE 'mytable';

Check if a table exists:

SELECT 1 FROM mydb.mytable LIMIT 1;

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

--- End Message ---
--- Begin Message ---
> My question is, I'm updating the pages by creating a url back to the
> same script with some differing $_REQUEST settings for the page number
> (&PAGE=2) and on a smaller screen this bumps the page back to the top.
> Is there a better way to do this with some kind of update image function
> without getting into incompatible javascript or CSS or am I following
> normal procedure?

Paul,

You're in luck. A List Apart just published yesterday a great article on
displaying images without refreshing the entire page.

http://www.alistapart.com/articles/imagegallery

"It works as expected on IE5+ and Netscape 6+ on Windows and Mac. It also
works in Safari and all the various flavors of Mozilla like Firebird and
Camino."

It might be a bit tricking making thetechnique dynamically driven with PHP,
but it's doable. Have fun.

Joseph

--- End Message ---
--- Begin Message ---
Hey,
a quick update, I know not many people use opera but...i do, and this does
not work on Opera 6.05.
It degrades gracefully though, it goes straight to the image.

HTH.
Cheers,
-Ryan


On 2/7/2004 9:37:36 PM, Joseph Szobody
([EMAIL PROTECTED]) wrote:
> > My question is,
> I'm updating the pages by creating a url back to the
> > same script with some differing $_REQUEST settings for the page number
> > (&PAGE=2) and on a smaller screen this bumps the page back to the top.
> > Is there a better way to do this with some kind of update image function
> > without getting into incompatible javascript or CSS or am I following
> > normal procedure?
>
> Paul,
>
> You're
> in luck. A List Apart just published yesterday a great article on
> displaying images without refreshing the entire page.
>
> http://www.alistapart.com/articles/imagegallery
>
> "It works as expected on IE5+ and Netscape 6+ on Windows and Mac. It also
> works in Safari and all the various flavors of Mozilla like Firebird and
> Camino."
>
> It might be a bit tricking making thetechnique dynamically driven with
PHP,
>
> but it's doable. Have fun.
>
> Joseph
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
On Feb 7, 2004, at 12:20 AM, John Nichel wrote:



Hi everyone,
I am using OS X v10.3.2 and just discovered that I can't send mail using the mail() function.
According to phpinfo(), PHP is configured with sendmail.
Before upgrading to v10.3, I did not check if the mail() function worked in v10.2
The script I'm using does work on other servers.

Make sure the path to sendmail is correct in your php.ini. Ensure that sendmail is installed.

Thank You. all I had to do was change one line in php.ini:

From
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
To
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = sendmail -t -i

--- End Message ---
--- Begin Message ---
On Sunday 08 February 2004 05:53, gohaku wrote:

> > Make sure the path to sendmail is correct in your php.ini.
> > Ensure that sendmail is installed.
>
> Thank You.
> all I had to do was change one line in php.ini:
>
> From
> ; For Unix only.  You may supply arguments as well (default: "sendmail
> -t -i").
> ;sendmail_path =
> To
> ; For Unix only.  You may supply arguments as well (default: "sendmail
> -t -i").
> ;sendmail_path = sendmail -t -i

Hang on a minute. Is the above copy and pasted and totally accurate?

1) Lines beginning with a semi-colon (;) are comments. Comments have no effect 
on the configuration.

2) sendmail_path defaults to 'sendmail -t -i' anyway -- just as the comments 
say.

So basically you haven't made any changes to php.ini at all. So whatever got 
your mail working was because of something else that you had done.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A bad sector disk error or a head crash occurs only after you've done several 
hours of work without making a backup
                -- DSP Paradox (Nolans Placebo) n4
*/

--- End Message ---
--- Begin Message ---
On Feb 7, 2004, at 10:36 PM, Jason Wong wrote:



So basically you haven't made any changes to php.ini at all. So whatever got
your mail working was because of something else that you had done.


I stand corrected.
Now I don't remember what I did to fix this.
I waited 5 minutes between sending test emails to myself.

--- End Message ---
--- Begin Message ---
Hello Jochen,

you need mysql 4.1.2+
your version is too old :-)

Saturday, February 7, 2004, 7:09:13 PM, you wrote:

> Hi all,

> i am trying to compile 
> php 5.0.0 beta 3 
> using:
> Apache 2.0.47
> MySQL 4.1.1-alpha-debug-debug

> with the mysqli extensions under linux. 

> When i try to compile php, gcc will bail of with the following message:

> /bin/sh /home/jochen/Documents/php/php-5.0.0b3/libtool --silent
> --preserve-dup-deps --mode=compile gcc  -Iext/mysqli/ -I/home/jochen
> Documents/php/php-5.0.0b3/ext/mysqli/ -DPHP_ATOM_INC -I/home/jochen
> Documents/php/php-5.0.0b3/include -I/home/jochen/Documents/php/php-5.0.0b3
> main -I/home/jochen/Documents/php/php-5.0.0b3 -I/home/jochen/Documents/php
> php-5.0.0b3/Zend -I/usr/include/libxml2 -I/usr/local/mysql/include  -I
> home/jochen/Documents/php/php-5.0.0b3/TSRM  -g -O2  -prefer-pic -c /home
> jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c -o ext/mysqli
> mysqli_report.lo

> /home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c: In
> function `php_mysqli_report_index':
> /home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
> `SERVER_QUERY_NO_GOOD_INDEX_USED' undeclared (first use in this function)
> /home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
> (Each undeclared identifier is reported only once
> /home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:64: error:
> for each function it appears in.)
> /home/jochen/Documents/php/php-5.0.0b3/ext/mysqli/mysqli_report.c:66: error:
> `SERVER_QUERY_NO_INDEX_USED' undeclared (first use in this function)
> make: *** [ext/mysqli/mysqli_report.lo] Fehler 1

> Nor i can find a definition of SERVER_QUERY_NO_GOOD_INDEX_USED or
> SERVER_QUERY_NO_INDEX_USED

> my ./configure parameters are:
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --without-mysql 
> --with-mysqli=/usr/local/mysql/bin/mysql_config

> Has anyone got an idea of how to avoid that?

> Regards,
> Jochen




-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Is there a possibility to convert a string like "10*500" (parsed from a
XML-File) to a float?
When i try to store this String in a float variable it only coverts the "10"
but nothing after the "*"-sign, but i need the result of this expresison...
Is there a function to calculate such string expressions?

Thanx...

--- End Message ---
--- Begin Message ---
Look at:
exec()

Be careful if you don't control the input of course.

-Galen

On Feb 7, 2004, at 7:56 AM, Sebastian wrote:

Is there a possibility to convert a string like "10*500" (parsed from a
XML-File) to a float?
When i try to store this String in a float variable it only coverts the "10"
but nothing after the "*"-sign, but i need the result of this expresison...
Is there a function to calculate such string expressions?


Thanx...

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




--- End Message ---
--- Begin Message ---
On Saturday 07 February 2004 23:56, Sebastian wrote:
> Is there a possibility to convert a string like "10*500" (parsed from a
> XML-File) to a float?
> When i try to store this String in a float variable it only coverts the
> "10" but nothing after the "*"-sign, but i need the result of this
> expresison... Is there a function to calculate such string expressions?

Not sure if there is a more elegant way but:

  $doo = "10*500";
  eval('$dah = ' . $doo  . ';');
  echo $dah;

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Necessity is the mother of invention" is a silly proverb.  "Necessity
is the mother of futile dodges" is much nearer the truth.
                -- Alfred North Whitehead
*/

--- End Message ---
--- Begin Message --- Does this mean I need to recompile from source code?
(seems an extreme measure to me but what do I know)
Is that difficult to do on a windows machine? I see it in some phpinfo's out there like this: http://www.php.net/~jimw/info.php but that's not in mine or at school or most hosting companies I'd guess. I'm running 4.3.4


for this function: exif_read_data()
http://us2.php.net/manual/en/function.exif-read-data.php

Note: This function is only available in PHP 4 compiled using --enable-exif...

Since PHP 4.3 user comment can automatically change encoding if PHP 4 was compiled using --enable-mbstring.

This function does not require the GD image library.
--- End Message ---
--- Begin Message --- If you're on Windows, you should see a file by the name of php_exif.dll in your PHP\extensions directory. It should've come with the distribution. Depending on the way your php.ini file is set up, you may either leave this file in its current location, or you may need to copy it to your windows\system32 folder. (I have extension_dir in my php.ini file set to c:\PHP\extensions\ so I left the file in that directory.)

After checking that, remove the semi-colon (;) from the line before extension=php_exif.dll in the list of extensions in the php.ini file. Then, restart IIS.

The extension should now work, and you didn't have to recompile anything.

-Ben


Paul Furman wrote:
Does this mean I need to recompile from source code?
(seems an extreme measure to me but what do I know)
Is that difficult to do on a windows machine? I see it in some phpinfo's out there like this: http://www.php.net/~jimw/info.php but that's not in mine or at school or most hosting companies I'd guess. I'm running 4.3.4


for this function: exif_read_data()
http://us2.php.net/manual/en/function.exif-read-data.php

Note: This function is only available in PHP 4 compiled using --enable-exif...

Since PHP 4.3 user comment can automatically change encoding if PHP 4 was compiled using --enable-mbstring.

This function does not require the GD image library.

--- End Message ---
--- Begin Message --- Thanks. I could have sworn I searched php.ini for exif. I had to do both of the below to make it work.

Ben Ramsey wrote:

php.ini [extension_dir = "c:\PHP\extensions"]

[uncomment] extension=php_exif.dll

--- End Message ---
--- Begin Message ---
Hey,
Have run into a little problem...any help appreciated.

Heres what I am doing:
I give the client a control panel where he can add,edit and delete accounts,
after each of the actions I have a link back to
the index page of the contol panel...problem is, unless he presses the
refresh button it shows him the same cached content.
How do i force the browser to display the new updated accounts after and
edit or the new list of accounts after a delete?

I KNOW php is server side and this is a browser issue...but maybe this can
be done with headers or something?

Thanks,
-Ryan

--- End Message ---
--- Begin Message --- .htaccess file on the server maybe?
I'm not at all sure though & you might not want to reload the page *every* time it's visited.


Ryan A wrote:
Hey,
Have run into a little problem...any help appreciated.

Heres what I am doing:
I give the client a control panel where he can add,edit and delete accounts,
after each of the actions I have a link back to
the index page of the contol panel...problem is, unless he presses the
refresh button it shows him the same cached content.
How do i force the browser to display the new updated accounts after and
edit or the new list of accounts after a delete?

I KNOW php is server side and this is a browser issue...but maybe this can
be done with headers or something?

Thanks,
-Ryan

--- End Message ---

Reply via email to