|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 10 Jun 2004 10:03:29 -0000 Issue 2813
php-general-digest-help
lists.php.net
Date: Thu Jun 10 2004 - 05:03:29 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 10 Jun 2004 10:03:29 -0000 Issue 2813
Topics (messages 187987 through 188020):
MySQL equivalent for odbc_result_all()???????
187987 by: Scott Fletcher
187990 by: coopster
187993 by: Red Wingate
Re: Can I set a different include path per Apache Virtual host?
187988 by: James Harrell
187989 by: James Harrell
Re: Session Garbage Collection (session.gc_maxlifetime)
187991 by: coopster
Re: Undefined index ????
187992 by: Justin Patrin
Re: mysql_select_db returned access denied error...
187994 by: coopster
Re: Expedia.com
187995 by: Red Wingate
188002 by: Michal Migurski
188003 by: René Fournier
Re: file knowing its own directory
187996 by: Red Wingate
188001 by: Jordi Canals
PHP 4.3.5 on Red Hat Linux 9
187997 by: James Bond
188007 by: Ben Ramsey
Re: Possible to Google search the news.php.net past post with keywords???
187998 by: Chris Martin
Re: Simple cms type system
187999 by: Tim Brier
Re: <AccommodationName><![CDATA[HOTEL AC MALAGA PALACIO]]></AccommodationName>
188000 by: Tom Rogers
PHP5 RC3 Runnay Processes
188004 by: Michael
188009 by: Ben Ramsey
Re: PHP - Calling a Oracle 9i procedure
188005 by: Joshua Skagemo
Re: . [PHP] Possible to Google search the news.php.net past post with keywords???
188006 by: Cody Phanekham
Realm Based Authentication Problem with webhost ( Yahoo domain )
188008 by: gohaku
188010 by: Ben Ramsey
188016 by: Ben Ramsey
Webyog releases SQLyog 3.71 & SJA 2.0
188011 by: Karam Chand
188012 by: Ryan A
188015 by: daniel.electroteque.org
Free news feeds
188013 by: csnm.ns.sympatico.ca
188014 by: Ben Ramsey
Re: PHP
188017 by: Lester Caine
PHP + JPEG2000
188018 by: Galen
Image Editing and Image Upload
188019 by: Feroze Md. Arif
Running a PHP script on an automated regular schedule
188020 by: I.A. Gray
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
I noticed there is no MySQL equivalent for odbc_result_all(), so it meant I
had to make a user-defined function from scratch. That part, I haven't been
able to do very well. Does anyone have a good code or whip up one that
would work.
Thanks...
FletchSOD
attached mail follows:
There is an example in the User Contributed Notes on the
odbc_result_all() function page.
Scott Fletcher wrote:
> I noticed there is no MySQL equivalent for odbc_result_all(), so it meant I
> had to make a user-defined function from scratch. That part, I haven't been
> able to do very well. Does anyone have a good code or whip up one that
> would work.
>
> Thanks...
> FletchSOD
attached mail follows:
Some old piece of source i found in my libs:
function sql_dump_result ( $result ) {
$line = '';
$head = '';
while ( $temp = mysql_fetch_assoc( $result ) ){
if ( empty ( $head ) ) {
$keys = array_keys($temp);
$head =
'<tr><td><b>'.implode('</b></td><td><b>',$keys).'</b></td></tr>';
}
$line .= '<tr><td>'.implode('</td><td>',$temp).'</td></tr>';
}
return '<table border="0">'.$head.$line.'</table>';
}
maybe this helps :-)
Scott Fletcher wrote:
> I noticed there is no MySQL equivalent for odbc_result_all(), so it meant I
> had to make a user-defined function from scratch. That part, I haven't been
> able to do very well. Does anyone have a good code or whip up one that
> would work.
>
> Thanks...
> FletchSOD
attached mail follows:
Hi Mike,
I'm not certain if it can be configured in a VirtualHost block,
though I know it can be configured in a Directory block (which
is equally as useful).
The problem I see below is you're using the wrong declaration;
instead of php_value, use php_admin_value, ie:
php_admin_value include_path "...."
If that doesn't fix it, add a <Directory ...> </Directory> block
within the virthost declaration, and use php_admin_value there.
Regards,
James
>-----Original Message-----
>From: Mike Zornek [mailto:listguy
mikezornek.com]
>Sent: Wednesday, June 09, 2004 5:33 PM
>To: php-general
lists.php.net
>Subject: [PHP] Can I set a different include path per Apache Virtual
>host?
>
>
>Can I set a different PHP include path per Apache Virtual host?
>
>I am trying this:
>
><VirtualHost *>
> ServerAdmin zornek
asmp.org
> DocumentRoot /Library/WebServer/Websites/stage/content
> ServerName stage.asmpweb.org
> ErrorLog /Library/WebServer/Websites/stage/logs/error_log
> CustomLog /Library/WebServer/Websites/stage/logs/access_log common
> <IfModule mod_php4.c>
> php_value include_path
>".:/usr/local/php/lib/php:/Library/WebServer/Websites/stage/content/includes
>"
> </IfModule>
></VirtualHost>
>
><VirtualHost *>
> ServerAdmin zornek
asmp.org
> DocumentRoot /Library/WebServer/Websites/dev/content
> ServerName dev.asmpweb.org
> ErrorLog /Library/WebServer/Websites/dev/logs/error_log
> CustomLog /Library/WebServer/Websites/dev/logs/access_log common
> <IfModule mod_php4.c>
> php_value include_path
>".:/usr/local/php/lib/php:/Library/WebServer/Websites/dev/content/includes"
> </IfModule>
></VirtualHost>
>
>But I donšt think its working.
>
>~ Mike
>-----
>Mike Zornek
>Web Designer, Media Developer, Programmer and Geek
>Personal site: <http://MikeZornek.com>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Oh- and don't forget to restart apache after your changes.
james
>-----Original Message-----
>From: James Harrell [mailto:jharrell
copernicusllc.com]
>Sent: Wednesday, June 09, 2004 5:44 PM
>To: Mike Zornek; php-general
lists.php.net
>Subject: RE: [PHP] Can I set a different include path per Apache Virtual
>host?
>
>
>Hi Mike,
>
>I'm not certain if it can be configured in a VirtualHost block,
>though I know it can be configured in a Directory block (which
>is equally as useful).
>
>The problem I see below is you're using the wrong declaration;
>instead of php_value, use php_admin_value, ie:
> php_admin_value include_path "...."
>
>If that doesn't fix it, add a <Directory ...> </Directory> block
>within the virthost declaration, and use php_admin_value there.
>
>Regards,
>James
>
>>-----Original Message-----
>>From: Mike Zornek [mailto:listguy
mikezornek.com]
>>Sent: Wednesday, June 09, 2004 5:33 PM
>>To: php-general
lists.php.net
>>Subject: [PHP] Can I set a different include path per Apache Virtual
>>host?
>>
>>
>>Can I set a different PHP include path per Apache Virtual host?
>>
>>I am trying this:
>>
>><VirtualHost *>
>> ServerAdmin zornek
asmp.org
>> DocumentRoot /Library/WebServer/Websites/stage/content
>> ServerName stage.asmpweb.org
>> ErrorLog /Library/WebServer/Websites/stage/logs/error_log
>> CustomLog /Library/WebServer/Websites/stage/logs/access_log common
>> <IfModule mod_php4.c>
>> php_value include_path
>>".:/usr/local/php/lib/php:/Library/WebServer/Websites/stage/content/includes
>>"
>> </IfModule>
>></VirtualHost>
>>
>><VirtualHost *>
>> ServerAdmin zornek
asmp.org
>> DocumentRoot /Library/WebServer/Websites/dev/content
>> ServerName dev.asmpweb.org
>> ErrorLog /Library/WebServer/Websites/dev/logs/error_log
>> CustomLog /Library/WebServer/Websites/dev/logs/access_log common
>> <IfModule mod_php4.c>
>> php_value include_path
>>".:/usr/local/php/lib/php:/Library/WebServer/Websites/dev/content/includes"
>> </IfModule>
>></VirtualHost>
>>
>>But I donšt think its working.
>>
>>~ Mike
>>-----
>>Mike Zornek
>>Web Designer, Media Developer, Programmer and Geek
>>Personal site: <http://MikeZornek.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
>
>
attached mail follows:
Thanks for the affirmation, Marek. That leaves two of us on the same
page :-)
Now, where can we find absolute resolution that this is indeed the
internal workings? Not that I don't trust my judgement, your judgement,
or our extensive testing, but have you ever come across any definitive
documentation on this particular subject, PHP garbage collection on
shared servers?
Marek Kilimajer wrote:
> coopster wrote:
>
>> Do I need to change the session.save_path directive for each virtual
>> host to use their own directory other than the system and/or PHP
>> default (/tmp) in order to effectively override each virtual host
>> session.gc_maxlifetime directive?
>
>
> Yes. But I did not read bellow ;-)
>
>>
>> Let me offer an example for clarification.
>>
attached mail follows:
Michael Jonsson wrote:
> Hi
>
> Why do I get an error if the $_SESSION['user_status'] is emty (it's not
> set to anything) ???
> in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not
> working...
>
> ####Script######
> session_start();
> echo $_SESSION['user_status'];
>
>
> #####error######
> Notice: Undefined index: user_status in
> /var/www/itmdata/include/include.php on line 13
>
>
>
> Regards
> Micke
>
This is a notice. Try setting your error level to E_ALL & ~E_NOTICE or
using isset() before you try to use the variable.
--
paperCrane <Justin Patrin>
attached mail follows:
The Access Privelege and User Account links from here should help
tremendously:
http://dev.mysql.com/doc/mysql/en/Post-installation.html
http://dev.mysql.com/doc/mysql/en/GRANT.html
Scott Fletcher wrote:
> Hi!
>
> When I use the mysql_connect(), it was connected successfully. The next
> step I need to do is to use a database via mysql_select_db(). Problem is I
> get the access denied error from MySQL. It sure look like privileges is not
> setted up right. Am I right? If so then which column in the 'user' table
> in the 'mysql' database is the one that take care of the "USE DATABASE
> db_name" privileges..
>
> Thanks,
> FletchSOD
attached mail follows:
Allmost, after having a quick look at the source i tell you they
do it like that:
<div id="loading" style="display:block">
... loading stuff here ...
</div>
.... page loading here ....
done?
JS: document.getElementByid('loading').display='none';
take a look for yourself :-)
James Harrell wrote:
> Hi Rene,
>
> Here's a thought- make your animated gif that's a "grow-bar"
> that fills from left to right. Maybe it maxes out at 99% or
> loops back around to 0 after reaching 100. :) Display this at
> the top of the screen - but not within a table that is part of
> the results display. More on why shortly.
>
> Send about 256 characters of HTML (including the IMG SRC link
> to your gif), then issue a flush(). At this point begin your
> long-running query, displaying output as it becomes avialable.
> Once the output is complete, issue a javascript that changes
> the gif to a different one that's not animated (ex: 100%).
>
> A few things to keep in mind:
> - Some IE browsers won't display anything until 255 chars
> have been output- hence the 256 number above.
> - Some NS browsers won't display a portion of a table until
> the entire table including closing tag has been written.
> Hence, don't put your grow-bar inside a table unless it's
> completed before issuing the long-running query.
>
> Hope this helps,
> james
>
>
>>-----Original Message-----
>>From: René Fournier [mailto:m5
renefournier.com]
>>Sent: Wednesday, June 09, 2004 3:35 PM
>>To: php
>>Subject: [PHP] Expedia.com
>>
>>
>>When Expedia.com is searching for flights, it displays a page with a
>>little animated GIF progress bar, then display the results.
>>
>>How do they do that? How does the page sit idle until the query is
>>finished, and then sends a new page with the results? I was thinking
>>that they might use HTTP-REFRESH or something, and just keep hitting
>>the database until the result is there. But is there a "best way" to do
>>this? In my application, when the user clicks a certain button, it will
>>take 10-20 seconds for the operation to completeduring that time I
>>need the web browser to "waiit" for the data.
>>
>>I looked around for an article on this, but I'm not sure how to
>>characterize this operation.
>>
>>...Rene
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
attached mail follows:
> When Expedia.com is searching for flights, it displays a page with a
> little animated GIF progress bar, then display the results.
>
> How do they do that? How does the page sit idle until the query is
> finished, and then sends a new page with the results? I was thinking
> that they might use HTTP-REFRESH or something, and just keep hitting the
> database until the result is there. But is there a "best way" to do
> this? In my application, when the user clicks a certain button, it will
> take 10-20 seconds for the operation to completeduring that time I need
> the web browser to "waiit" for the data.
The progress bar goes by too quickly for me to tell, but perhaps they are
using a slow-loading resource someplace on the page? E.g., an image whose
content-length is 64, whose 64th byte does not get sent by the server
until the query is complete. Combine that with a bit of javascript waiting
for the image to load, and you should have basic loading-bar behavior.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html
attached mail follows:
I guess a better question would be, what is the "best practices" way of
showing a "Please wait..." page while a server operation is performed
(which could take 5 or 45 seconds), then make the page display the
resulting data (via reload, or slow-load, or whatever)? Would love to
find an article on this.
...Rene
On Wednesday, June 9, 2004, at 05:56 PM, Michal Migurski wrote:
>> When Expedia.com is searching for flights, it displays a page with a
>> little animated GIF progress bar, then display the results.
>>
>> How do they do that? How does the page sit idle until the query is
>> finished, and then sends a new page with the results? I was thinking
>> that they might use HTTP-REFRESH or something, and just keep hitting
>> the
>> database until the result is there. But is there a "best way" to do
>> this? In my application, when the user clicks a certain button, it
>> will
>> take 10-20 seconds for the operation to completeduring that time I
>> need
>> the web browser to "waiit" for the data.
>
> The progress bar goes by too quickly for me to tell, but perhaps they
> are
> using a slow-loading resource someplace on the page? E.g., an image
> whose
> content-length is 64, whose 64th byte does not get sent by the server
> until the query is complete. Combine that with a bit of javascript
> waiting
> for the image to load, and you should have basic loading-bar behavior.
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
the magic constant __FILE__ will give you the absolut filesystem
location of the file it is called. Eg:
/home/www/tests/foo.php ->
<?php
echo __FILE__ ;
?>
will print: '/home/www/tests/foo.php';
to retrieve the path only you could do:
/home/www/tests/foo.php ->
<?php
echo str_replace( basename ( __FILE__ ) , '' , __FILE__ );
?>
will print: '/home/www/tests/';
hope this helps :-)
Dennis Gearon wrote:
> please CC me 'cause I am on digest
>
> the scenario:
> three files:
> .htaccess
> has line saying "php_prepend
> 'true_filesystem_location_php_prepend_file' "
> prepend.php (aforementioned prepend file)
> has line saying "include file_a.php"
> file_a.php
> has line saying"$my_true_file_system_location =
> I_NEED_A_FUNCTION_HERE;"
>
> So, what do I replace I_NEED_A_FUNCTION_HERE with?
attached mail follows:
Red Wingate wrote:
> the magic constant __FILE__ will give you the absolut filesystem
> location of the file it is called. Eg:
>
> /home/www/tests/foo.php ->
> <?php
> echo __FILE__ ;
> ?>
>
> will print: '/home/www/tests/foo.php';
>
> to retrieve the path only you could do:
> /home/www/tests/foo.php ->
> <?php
> echo str_replace( basename ( __FILE__ ) , '' , __FILE__ );
> ?>
>
I think could be easier with dirname(__FILE__)
Regards,
Jordi.
attached mail follows:
Hi,
I am using Red Hat 9 i386 environment. I am having trouble compiling PHP
with GD library.
I have compiled GD library, libpng, libjpeg on this machine.When I try to
execute the following command to compile PHP, I get the following output
with error.:
./configure --enable-track-vars --enable-sysvsem --enable-sysvshm
--enable-calendar --prefix=/export/apps/php/4.3.5-new --enable-memory-limit
--with-xml --enable-debugger --enable-ftp --with-ttf --enable-bcmath
--with-openssl --enable-trans-sid --with-mysql=/export/apps/mysql/4.0.17
--with-xpm-dir=/usr/X11R6 --with-curl
--with-mcrypt=/export/apps/libmcrypt/2.5.7 --with-gmp --with-gettext
--with-iconv-dir --with-kerberos --with-expat-dir=/usr --enable-xslt
--with-sablot-js --with-xslt-sablot=/export/apps/Sablotron
--with-gd=/export/apps/gdlib/2.0.26 --with-jpeg-dir=/usr/lib --with-zlib
--with-png-dir=/usr/local/lib
--with-apxs=/export/apps/apache/1.3.29.new/bin/apxs --with-freetype=/
usr/include/freetype --with-freetype2=/usr/include/freetype2
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... yes
checking for member fd in BUFF *... yes
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Caudium support... no
checking for CLI build... yes
checking for embedded SAPI library support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache
Running system checks
checking for missing declarations of reentrant functions... done
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking for socket... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes
checking for sin in -lm... yes
checking for res_search... no
checking for __res_search... no
checking for res_search in -lresolv... yes
checking for inet_aton... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for dirent.h... yes
checking for ApplicationServices/ApplicationServices.h... no
checking for sys/param.h... yes
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for netinet/in.h... yes
checking for alloca.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for crypt.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for langinfo.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for monetary.h... yes
checking for mach-o/dyld.h... no
checking for netdb.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/poll.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/vfs.h... yes
checking for sys/sysexits.h... no
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for dlfcn.h... yes
checking for fopencookie... yes
checking for broken getcwd... no
checking for broken libc stdio... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... yes
checking size of long... 4
checking size of int... 4
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for struct sockaddr_storage... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for alphasort... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... yes
checking for crypt... no
checking for flock... yes
checking for ftok... yes
checking for funopen... no
checking for gai_strerror... yes
checking for gcvt... yes
checking for getlogin... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for nl_langinfo... yes
checking for perror... yes
checking for poll... yes
checking for putenv... yes
checking for realpath... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for res_search... (cached) yes
checking for scandir... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for getaddrinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether sprintf is broken... no
checking whether snprintf is broken... no
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
General settings
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking directory to be scanned for configuration files... DEFAULT
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... no
checking whether to enable runpaths... yes
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking whether to enable versioning... no
Configuring extensions
checking for OpenSSL support... yes
checking for pkg-config... /usr/bin/pkg-config
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... yes
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... libcurl 7.9.8
checking for curl_easy_perform in -lcurl... yes
checking for curl_version_info in -lcurl... no
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... no
checking for DOM XSLT support... no
checking for DOM EXSLT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... yes
checking for GD support... yes
checking for the location of libjpeg... /usr/lib
checking for the location of libpng... /usr/local/lib
checking for the location of libXpm... /usr/X11R6
checking for FreeType 1.x support... yes
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
If configure fails try --with-freetype-dir=<DIR>
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageSetTile in -lgd... yes
checking for gdImageEllipse in -lgd... no
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageStringFTEx in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no
checking for gdCacheCreate in -lgd... no
checking for gdFontCacheShutdown in -lgd... no
checking for gdImageCreate in -lgd... yes
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... no
configure: error: Unable to find required gettext library
-------------------------------------------------------------------------------
As you can see from the above output, the problem is related to gettext. I
also referred to config.log file to find the exact problem and found the
following error:
configure:36787: checking for bindtextdomain in -lc
configure:36806: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib
-L/usr/kerberos/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib
-Wl,-rpath,/export/apps/gdlib/2.0.26/lib -L/export/apps/gdlib/2.0.26/lib
-L/usr/lib conftest.c -lc -lgd -lttf -lX11 -lXpm -lpng -lz -ljpeg -lcurl
-lz -lresolv -lm -ldl -lnsl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err -lresolv -ldl -lz -lssl -lcrypto 1>&5
/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
/usr/local/lib/libgd.so: undefined reference to `libiconv'
collect2: ld returned 1 exit status
configure: failed program was:
#line 36795 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char bindtextdomain();
int main() {
bindtextdomain()
; return 0; }
Can anyone help me to get PHP compiled without any errors. I have read
messages on the mailing lists with no luck.
Thanks
Jerry
_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now!
http://toolbar.msn.co.uk/
attached mail follows:
Hi, Bond, James Bond,
Remove --with-gettext from ./configure and try to configure it again.
When I first started compiling PHP on Fedora Core 2 (fairly similar to
Red Hat 9), I just included about every configuration option, and then I
removed (one by one) each option that caused configure to fail. It took
a while, but I now have every option that's available on my system. Of
course, I did download and install a few things during the process to
make it all work.
You may also try doing "rpm -qa | grep gettext" or "whereis gettext" to
see if you have gettext installed on your system. If not, try finding
an RPM for it in a repository somewhere and install it. On my system,
the gettext binaries are in /bin and /usr/bin, and the libraries are in
/usr/lib. Those are most likely the default locations for a Red Hat
system, so check those locations. If it's in a different location, do
--with-gettext=/path/to/gettext in ./configure.
James Bond wrote:
> Hi,
> I am using Red Hat 9 i386 environment. I am having trouble compiling PHP
> with GD library.
> I have compiled GD library, libpng, libjpeg on this machine.When I try
> to execute the following command to compile PHP, I get the following
> output with error.:
>
> ./configure --enable-track-vars --enable-sysvsem --enable-sysvshm
> --enable-calendar --prefix=/export/apps/php/4.3.5-new
> --enable-memory-limit --with-xml --enable-debugger --enable-ftp
> --with-ttf --enable-bcmath --with-openssl --enable-trans-sid
> --with-mysql=/export/apps/mysql/4.0.17 --with-xpm-dir=/usr/X11R6
> --with-curl --with-mcrypt=/export/apps/libmcrypt/2.5.7 --with-gmp
> --with-gettext --with-iconv-dir --with-kerberos --with-expat-dir=/usr
> --enable-xslt --with-sablot-js --with-xslt-sablot=/export/apps/Sablotron
> --with-gd=/export/apps/gdlib/2.0.26 --with-jpeg-dir=/usr/lib
> --with-zlib --with-png-dir=/usr/local/lib
> --with-apxs=/export/apps/apache/1.3.29.new/bin/apxs --with-freetype=/
> usr/include/freetype --with-freetype2=/usr/include/freetype2
> loading cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking whether gcc and cc understand -c and -o together... yes
> checking how to run the C preprocessor... gcc -E
> checking for AIX... no
> checking if compiler supports -R... no
> checking if compiler supports -Wl,-rpath,... yes
> checking for re2c... exit 0;
> checking for ranlib... ranlib
> checking whether ln -s works... yes
> checking for mawk... no
> checking for gawk... gawk
> checking for bison... bison -y
> checking bison version... 1.35 (ok)
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking for working const... yes
> checking flex version... 2.5.4 (ok)
> checking for pthreads_cflags... -pthread
> checking for pthreads_lib...
>
> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache 1.x module support via DSO through APXS... yes
> checking for member fd in BUFF *... yes
> checking for mod_charset compatibility option... no
> checking for Apache 2.0 filter-module support via DSO through APXS... no
> checking for Apache 2.0 handler-module support via DSO through APXS... no
> checking for Caudium support... no
> checking for CLI build... yes
> checking for embedded SAPI library support... no
> checking for Zeus ISAPI support... no
> checking for NSAPI support... no
> checking for PHTTPD support... no
> checking for Pi3Web support... no
> checking for Roxen/Pike support... no
> checking for Servlet support... no
> checking for thttpd... no
> checking for TUX... no
> checking for webjames... no
> checking for chosen SAPI module... apache
>
> Running system checks
> checking for missing declarations of reentrant functions... done
> checking for sendmail... /usr/sbin/sendmail
> checking whether system uses EBCDIC... no
> checking for socket... yes
> checking for htonl... yes
> checking for gethostname... yes
> checking for gethostbyaddr... yes
> checking for yp_get_default_domain... no
> checking for __yp_get_default_domain... no
> checking for yp_get_default_domain in -lnsl... yes
> checking for dlopen... no
> checking for __dlopen... no
> checking for dlopen in -ldl... yes
> checking for sin in -lm... yes
> checking for res_search... no
> checking for __res_search... no
> checking for res_search in -lresolv... yes
> checking for inet_aton... yes
> checking for dn_skipname... no
> checking for __dn_skipname... yes
> checking for ANSI C header files... yes
> checking for dirent.h that defines DIR... yes
> checking for opendir in -ldir... no
> checking for fclose declaration... ok
> checking for dirent.h... yes
> checking for ApplicationServices/ApplicationServices.h... no
> checking for sys/param.h... yes
> checking for sys/types.h... yes
> checking for sys/time.h... yes
> checking for netinet/in.h... yes
> checking for alloca.h... yes
> checking for arpa/inet.h... yes
> checking for arpa/nameser.h... yes
> checking for assert.h... yes
> checking for crypt.h... yes
> checking for fcntl.h... yes
> checking for grp.h... yes
> checking for ieeefp.h... no
> checking for langinfo.h... yes
> checking for limits.h... yes
> checking for locale.h... yes
> checking for monetary.h... yes
> checking for mach-o/dyld.h... no
> checking for netdb.h... yes
> checking for pwd.h... yes
> checking for resolv.h... yes
> checking for signal.h... yes
> checking for stdarg.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for syslog.h... yes
> checking for sysexits.h... yes
> checking for sys/file.h... yes
> checking for sys/mman.h... yes
> checking for sys/mount.h... yes
> checking for sys/poll.h... yes
> checking for sys/resource.h... yes
> checking for sys/select.h... yes
> checking for sys/socket.h... yes
> checking for sys/statfs.h... yes
> checking for sys/statvfs.h... yes
> checking for sys/vfs.h... yes
> checking for sys/sysexits.h... no
> checking for sys/varargs.h... no
> checking for sys/wait.h... yes
> checking for unistd.h... yes
> checking for unix.h... no
> checking for utime.h... yes
> checking for sys/utsname.h... yes
> checking for sys/ipc.h... yes
> checking for dlfcn.h... yes
> checking for fopencookie... yes
> checking for broken getcwd... no
> checking for broken libc stdio... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for tm_zone in struct tm... yes
> checking for tm_gmtoff in struct tm... yes
> checking for struct flock... yes
> checking for socklen_t... yes
> checking size of long... 4
> checking size of int... 4
> checking for st_blksize in struct stat... yes
> checking for st_blocks in struct stat... yes
> checking for st_rdev in struct stat... yes
> checking for size_t... yes
> checking for uid_t in sys/types.h... yes
> checking for struct sockaddr_storage... yes
> checking for IPv6 support... yes
> checking for vprintf... yes
> checking for alphasort... yes
> checking for asctime_r... yes
> checking for chroot... yes
> checking for ctime_r... yes
> checking for cuserid... yes
> checking for crypt... no
> checking for flock... yes
> checking for ftok... yes
> checking for funopen... no
> checking for gai_strerror... yes
> checking for gcvt... yes
> checking for getlogin... yes
> checking for getprotobyname... yes
> checking for getprotobynumber... yes
> checking for getservbyname... yes
> checking for getservbyport... yes
> checking for getrusage... yes
> checking for gettimeofday... yes
> checking for gmtime_r... yes
> checking for isascii... yes
> checking for link... yes
> checking for localtime_r... yes
> checking for lockf... yes
> checking for lrand48... yes
> checking for memcpy... yes
> checking for memmove... yes
> checking for mkstemp... yes
> checking for mmap... yes
> checking for nl_langinfo... yes
> checking for perror... yes
> checking for poll... yes
> checking for putenv... yes
> checking for realpath... yes
> checking for random... yes
> checking for rand_r... yes
> checking for regcomp... yes
> checking for res_search... (cached) yes
> checking for scandir... yes
> checking for setitimer... yes
> checking for setlocale... yes
> checking for localeconv... yes
> checking for setsockopt... yes
> checking for setvbuf... yes
> checking for shutdown... yes
> checking for sin... yes
> checking for snprintf... yes
> checking for srand48... yes
> checking for srandom... yes
> checking for statfs... yes
> checking for statvfs... yes
> checking for std_syslog... no
> checking for strcasecmp... yes
> checking for strcoll... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strftime... yes
> checking for strstr... yes
> checking for strtok_r... yes
> checking for symlink... yes
> checking for tempnam... yes
> checking for tzset... yes
> checking for unsetenv... yes
> checking for usleep... yes
> checking for utime... yes
> checking for vsnprintf... yes
> checking for getaddrinfo... yes
> checking for strlcat... no
> checking for strlcpy... no
> checking for getopt... yes
> checking whether utime accepts a null argument... yes
> checking for working alloca.h... (cached) yes
> checking for alloca... yes
> checking whether sprintf is broken... no
> checking whether snprintf is broken... no
> checking for declared timezone... yes
> checking for type of reentrant time-related functions... POSIX
> checking for readdir_r... yes
> checking for type of readdir_r... POSIX
>
> General settings
> checking whether to include debugging symbols... no
> checking layout of installed files... PHP
> checking path to configuration file... DEFAULT
> checking directory to be scanned for configuration files... DEFAULT
> checking whether to enable safe mode by default... no
> checking for safe mode exec dir... /usr/local/php/bin
> checking whether to enable PHP's own SIGCHLD handler... no
> checking whether to enable magic quotes by default... no
> checking whether to enable runpaths... yes
> checking whether to explicitly link against libgcc... no
> checking whether to enable short tags by default... yes
> checking whether to enable dmalloc... no
> checking whether to enable IPv6 support... yes
> checking whether to enable versioning... no
>
> Configuring extensions
> checking for OpenSSL support... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking for ZLIB support... yes
> checking if the location of ZLIB install directory is defined... no
> checking for gzgets in -lz... yes
> checking whether to enable bc style precision math functions... yes
> checking for BZip2 support... no
> checking whether to enable calendar conversion support... yes
> checking for cpdflib support... no
> checking for CRACKlib support... no
> checking whether to enable ctype functions... yes
> checking for CURL support... yes
> checking for CURL in default path... found in /usr
> checking for cURL 7.9.8 or greater... libcurl 7.9.8
> checking for curl_easy_perform in -lcurl... yes
> checking for curl_version_info in -lcurl... no
> checking for cyrus imap support... no
> checking for xDBM support... no
> checking whether to enable DBA... no
> checking for GDBM support... no
> checking for NDBM support... no
> checking for Berkeley DB4 support... no
> checking for Berkeley DB3 support... no
> checking for Berkeley DB2 support... no
> checking for DBM support... no
> checking for CDB support... no
> checking for INI File support... no
> checking for FlatFile support... no
> checking whether to enable DBA interface... no
> checking whether to enable dbase support... no
> checking whether to enable dbx support... no
> checking whether to enable direct I/O support... no
> checking for DOM support... no
> checking for DOM XSLT support... no
> checking for DOM EXSLT support... no
> checking whether to enable EXIF (metadata from images) support... no
> checking for FrontBase SQL92 (fbsql) support... no
> checking for FDF support... no
> checking whether to enable the bundled filePro support... no
> checking for FriBidi support... no
> checking whether to enable FTP support... yes
> checking for GD support... yes
> checking for the location of libjpeg... /usr/lib
> checking for the location of libpng... /usr/local/lib
> checking for the location of libXpm... /usr/X11R6
> checking for FreeType 1.x support... yes
> checking for FreeType 2... no
> checking for T1lib support... no
> checking whether to enable truetype string function in GD... no
> checking whether to enable JIS-mapped Japanese font support in GD... no
> checking for jpeg_read_header in -ljpeg... yes
> checking for png_write_image in -lpng... yes
> checking for XpmFreeXpmImage in -lXpm... yes
> If configure fails try --with-freetype-dir=<DIR>
> checking for gdImageString16 in -lgd... yes
> checking for gdImagePaletteCopy in -lgd... yes
> checking for gdImageCreateFromPng in -lgd... yes
> checking for gdImageCreateFromGif in -lgd... no
> checking for gdImageGif in -lgd... no
> checking for gdImageWBMP in -lgd... yes
> checking for gdImageCreateFromJpeg in -lgd... yes
> checking for gdImageCreateFromXpm in -lgd... yes
> checking for gdImageCreateFromGd2 in -lgd... yes
> checking for gdImageCreateTrueColor in -lgd... yes
> checking for gdImageSetTile in -lgd... yes
> checking for gdImageEllipse in -lgd... no
> checking for gdImageSetBrush in -lgd... yes
> checking for gdImageStringTTF in -lgd... yes
> checking for gdImageStringFT in -lgd... yes
> checking for gdImageStringFTEx in -lgd... yes
> checking for gdImageColorClosestHWB in -lgd... yes
> checking for gdImageColorResolve in -lgd... yes
> checking for gdImageGifCtx in -lgd... no
> checking for gdCacheCreate in -lgd... no
> checking for gdFontCacheShutdown in -lgd... no
> checking for gdImageCreate in -lgd... yes
> checking for GNU gettext support... yes
> checking for bindtextdomain in -lintl... no
> checking for bindtextdomain in -lc... no
> configure: error: Unable to find required gettext library
>
> -------------------------------------------------------------------------------
>
>
> As you can see from the above output, the problem is related to gettext.
> I also referred to config.log file to find the exact problem and found
> the following error:
> configure:36787: checking for bindtextdomain in -lc
> configure:36806: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib
> -L/usr/kerberos/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
> -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib
> -Wl,-rpath,/export/apps/gdlib/2.0.26/lib -L/export/apps/gdlib/2.0.26/lib
> -L/usr/lib conftest.c -lc -lgd -lttf -lX11 -lXpm -lpng -lz -ljpeg
> -lcurl -lz -lresolv -lm -ldl -lnsl -lssl -lcrypto -lgssapi_krb5 -lkrb5
> -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto
> -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lz -lssl
> -lcrypto 1>&5
> /usr/local/lib/libgd.so: undefined reference to `libiconv_open'
> /usr/local/lib/libgd.so: undefined reference to `libiconv_close'
> /usr/local/lib/libgd.so: undefined reference to `libiconv'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 36795 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error. */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
> char bindtextdomain();
>
> int main() {
> bindtextdomain()
> ; return 0; }
>
>
>
> Can anyone help me to get PHP compiled without any errors. I have read
> messages on the mailing lists with no luck.
>
> Thanks
> Jerry
>
> _________________________________________________________________
> Want to block unwanted pop-ups? Download the free MSN Toolbar now!
> http://toolbar.msn.co.uk/
--
Regards,
Ben Ramsey
http://benramsey.com
---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------
attached mail follows:
Scott Fletcher wrote:
> I'm wondering if it is possible to use Google search to search in hte
> news.php.net's past posting by using the keyword. If so, then how can it be
> done? Example of keywords. Etc..
>
> Thanks,
> FletchSOD
>
Although this isn't google, you can search the lists (and many others)
through Gmane.
http://news.gmane.org/index.php?prefix=gmane.comp.php
--
Chris Martin - Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
attached mail follows:
You may want to look at Mambo Opensource Server
http://www.mamboserver.com/
Tim.
Ryan A wrote:
> Hi,
>
> A while back I started a thread for "lasso" as a client wanted a site
> translated to english, still in talks with that client and he is willing to
> let me do it in pure PHP instead as I dont know lasso and not very keen on
> buying one of their licences.
>
> Anyway, it seems that the client has a control panel where he can make
> changes to the site (nothing major, just add products, edit paragraphs
> etc...NO shopping cart) he wants the same kind of functionality for his new
> pages. Have not seen his "control panel" but I dont think its anything
> major.
>
> Instead of programming this from scratch was wondering if anybody can
> recomend any package/open source project etc that can do this, I'm sure this
> must have come up before with other clients.....
>
> Searched google/phpresource/hot scripts/ script archive.... but most cms's
> are offering far far too much for my needs, and actually stripping them down
> would take as much as making a new one and some are just not worth it (in
> mho).
>
> Any suggestions?
>
> Thanks,
> -Ryan
>
attached mail follows:
Hi,
Thursday, June 10, 2004, 2:28:06 AM, you wrote:
DC> anyone know why my parser is not reading just the internal part of this tag?
DC> Is the cdata in the correct format?
DC> <AccommodationName><![CDATA[HOTEL AC MALAGA
DC> PALACIO]]></AccommodationName>
DC> --
DC> Diana Castillo
DC> Global Reservas, S.L.
DC> C/Granvia 22 dcdo 4-dcha
DC> 28013 Madrid-Spain
DC> Tel : 00-34-913604039
DC> Fax : 00-34-915228673
DC> email: diana
hotelkey.com
DC> Web : http://www.hotelkey.com
DC> http://www.destinia.com
It could be the < and > instead of< > that is upsetting it
<[cdata[ starts and ]]> ends the cdata section
--
regards,
Tom
attached mail follows:
HI,
I installed PHP 5 RC3 this morning and am having some mixed results.
Specifically, every so often, I will refresh a page that loaded fine and
fast the first (second, third, etc...) time around, and then for no
obvious reason the script will eat up all my CPU cycles and time out (I
have it set to time out at 30 seconds).
I am wondering if anyone else has noticed similar behaviour. Also, I
haven't a clue how to go about debugging such an issue, and would
appreciate any pointers.
Thanks,
Michael
BTW, I am running a Dual Xeon processor, 1 Gig ram, Red Hat 9, Apache
1.31 (I think that's right).
attached mail follows:
My advice to you is to post this to the internals
list. They will then
let you know whether you should report it at http://bugs.php.net and so
forth.
Michael wrote:
> HI,
>
> I installed PHP 5 RC3 this morning and am having some mixed results.
> Specifically, every so often, I will refresh a page that loaded fine and
> fast the first (second, third, etc...) time around, and then for no
> obvious reason the script will eat up all my CPU cycles and time out (I
> have it set to time out at 30 seconds).
>
> I am wondering if anyone else has noticed similar behaviour. Also, I
> haven't a clue how to go about debugging such an issue, and would
> appreciate any pointers.
>
> Thanks,
>
> Michael
>
> BTW, I am running a Dual Xeon processor, 1 Gig ram, Red Hat 9, Apache
> 1.31 (I think that's right).
--
Regards,
Ben Ramsey
http://benramsey.com
---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------
attached mail follows:
Hi,
I am trying to call a procedure in Oracle 9i but I just can't get it to
work...
My procedure has 5 IN values and return 1 REF CURSOR called :p_cursor
When I run my script I just keep getting this error:
Warning: OCIFetchInto: ORA-08103: object no longer exists in
E:\Intranet\test.php on line 35
which is the while (OCIFetchInto($curs, $p_cursor, OCI_ASSOC)) {
line....
Please help me with this...I am so stuck...
My PHP code looks like this:
$db = " (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
255.255.0.0)(PORT = 1521)) (CONNECT_DATA = (SID = xxxx)) )";
$conn = OCILogon("logon", "passoword", $db) or die('No Connection');
$curs = OCINewCursor($conn);
$query = "begin NB_P_TRAILBALANCE(:fromDate, :toDate, :companyCode,
:budgetCode, :startYear, :p_cursor); end;";
$stmt = OCIParse($conn, $query) or die ('Can not parse query');
ocibindbyname($stmt, ":fromDate", &$fromDate, -1);
ocibindbyname($stmt, ":toDate", &$toDate, -1);
ocibindbyname($stmt, ":companyCode", &$companyCode, -1);
ocibindbyname($stmt, ":budgetCode", &$budgetCode, -1);
ocibindbyname($stmt, ":startYear", &$startYear, -1);;
ocibindbyname($stmt, ":p_cursor", &$curs, -1, OCI_B_CURSOR);
$fromDate = '01/04/04';
$toDate = '30/04/04';
$companyCode = '01';
$budgetCode = '10909';
$startYear = '01/07/03';
ociexecute($stmt);
ociexecute($curs);
while (OCIFetchInto($curs, $p_cursor, OCI_ASSOC)) {
var_dump($duties);
}
OCIFreeStatement($stmt);
OCIFreeCursor($curs);
OCILogoff($conn);
attached mail follows:
you could use the following in the search field:
Patch memory limit site:news.php.net
This will tell google to search news.php.net for any reference of "Patch" "memory" "limit"
-----Original Message-----
From: Scott Fletcher [mailto:scott
abcoa.com]
Sent: Thursday, June 10, 2004 12:18 AM
To: php-general
lists.php.net
Subject: . [PHP] Possible to Google search the news.php.net past post
with keywords???
I'm wondering if it is possible to use Google search to search in hte
news.php.net's past posting by using the keyword. If so, then how can it be
done? Example of keywords. Etc..
Thanks,
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
***********************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.
The information contained within this e-mail may be solely the opinion of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
***********************************************************************************
attached mail follows:
Hi all,
I'm trying to implement "HTTP User Authentication" for some files but
not directories.
Below is the following script I am using to test "HTTP User
Authentication":
if ($PHP_AUTH_USER != "user" || $PHP_AUTH_PW != "pass")
{
// visitor has not yet given details, or their
// name and password combination are not correct
header('WWW-Authenticate: Basic realm="Realm-Name"');
header("HTTP/1.0 401 Unauthorized");
echo "<h1>Go Away!</h1>";
echo "You are not authorized to view this resource.";
}
else
{
// visitor has provided correct details
echo "<h1>Here it is!</h1>";
echo "<p>I bet you are glad you you can see this secret page.";
}
The works on localhost but it doesn't work when uploaded to my Yahoo
domain.
Please keep in mind that I am talking about Yahoo's Small Business
Webhosting and not Geocities Webhosting.
Yahoo does provide Authentication but only for directories and not
individual files.
just wondering if there's another way.
Thanks in advance.
-gohaku
attached mail follows:
Yahoo probably has register_globals turned off, and rightly so. Try
$_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] instead, but I
would rather go with && instead of ||.
Take a look at http://www.php.net/features.http-auth for more info.
Gohaku wrote:
> Hi all,
> I'm trying to implement "HTTP User Authentication" for some files but
> not directories.
> Below is the following script I am using to test "HTTP User
> Authentication":
>
> if ($PHP_AUTH_USER != "user" || $PHP_AUTH_PW != "pass")
> {
> // visitor has not yet given details, or their
> // name and password combination are not correct
>
> header('WWW-Authenticate: Basic realm="Realm-Name"');
>
> header("HTTP/1.0 401 Unauthorized");
>
> echo "<h1>Go Away!</h1>";
> echo "You are not authorized to view this resource.";
> }
> else
> {
> // visitor has provided correct details
> echo "<h1>Here it is!</h1>";
> echo "<p>I bet you are glad you you can see this secret page.";
> }
>
> The works on localhost but it doesn't work when uploaded to my Yahoo
> domain.
> Please keep in mind that I am talking about Yahoo's Small Business
> Webhosting and not Geocities Webhosting.
>
> Yahoo does provide Authentication but only for directories and not
> individual files.
>
> just wondering if there's another way.
> Thanks in advance.
> -gohaku
--
Regards,
Ben Ramsey
http://benramsey.com
---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------
attached mail follows:
Nevermind. I don't know what I was thinking. You're using !=, so go
back to using || instead of the &&. I goofed. See if that fixes the
problem now. Continue using the $_SERVER globals, though.
gohaku wrote:
> Hi Ben,
> I change the if statement to:
> if ( ($_SERVER['PHP_AUTH_USER'] != "user") && ($_SERVER['PHP_AUTH_PW']
> != "pass") )
>
> still nothing with Yahoo.
>
> The script runs fine on my server but not with Yahoo.
>
> On Jun 9, 2004, at 10:55 PM, Ben Ramsey wrote:
>
>> Yahoo probably has register_globals turned off, and rightly so. Try
>> $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] instead, but I
>> would rather go with && instead of ||.
>>
>> Take a look at http://www.php.net/features.http-auth for more info.
>>
>>
>> Gohaku wrote:
>>
>>> Hi all,
>>> I'm trying to implement "HTTP User Authentication" for some files but
>>> not directories.
>>> Below is the following script I am using to test "HTTP User
>>> Authentication":
>>> if ($PHP_AUTH_USER != "user" || $PHP_AUTH_PW != "pass")
>>> {
>>> // visitor has not yet given details, or their
>>> // name and password combination are not correct
>>> header('WWW-Authenticate: Basic realm="Realm-Name"');
>>> header("HTTP/1.0 401 Unauthorized");
>>> echo "<h1>Go Away!</h1>";
>>> echo "You are not authorized to view this resource.";
>>> }
>>> else
>>> {
>>> // visitor has provided correct details
>>> echo "<h1>Here it is!</h1>";
>>> echo "<p>I bet you are glad you you can see this secret page.";
>>> }
>>> The works on localhost but it doesn't work when uploaded to my Yahoo
>>> domain.
>>> Please keep in mind that I am talking about Yahoo's Small Business
>>> Webhosting and not Geocities Webhosting.
>>> Yahoo does provide Authentication but only for directories and not
>>> individual files.
>>> just wondering if there's another way.
>>> Thanks in advance.
>>> -gohaku
>>
>>
>> --
>> Regards,
>> Ben Ramsey
>> http://benramsey.com
>>
>> ---------------------------------------------------
>> http://www.phpcommunity.org/
>> Open Source, Open Community
>> Visit for more information or to join the movement.
>> ---------------------------------------------------
>>
>
>
>
--
Regards,
Ben Ramsey
http://benramsey.com
---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------
attached mail follows:
Webyog has released SQLyog 3.71 & SQLyog Job Agent (
SJA ) v2.0
Some of the major features added in SQLyog 3.71 are -
-- SQLyog Notification Services - This new feature
allows delivery of formatted resultset(s) over email
at scheduled intervals.
-- SQLyog Database Synchronization Tool now supports
2-way synchronization.
-- Now you can execute SJA jobs from SQLyog using
Tools -> Job Manager.
-- Improved Online Help.
-- Fully compatible with MySQL versions 3.23.58 to
5.x.
You can download a full featured Trial version of
SQLyog at http://www.webyog.com/sqlyog/download.html
Regards,
Karam
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
attached mail follows:
WTF?
Who gives a rats ass about this?
Nearly everyone on this list has php related commerical products but nobody
advertises it here or announces it when they make or update their products
unless its very closely related to php (and usually free), your product does
not fall in either category, so kindly take your "SQLYog" and shove it up
your "yog".
Personally I use PHPMyAdmin which works great, is open source and free
(donation supported)....
-Ryan
On 6/10/2004 5:49:36 AM, Karam Chand (karam_chand03
yahoo.com) wrote:
> Webyog has released SQLyog 3.71 & SQLyog Job Agent (
> SJA ) v2.0
>
> Some of the major features added in SQLyog 3.71 are -
>
> -- SQLyog Notification Services - This new feature
> allows delivery of formatted resultset(s) over email
> at scheduled intervals.
> -- SQLyog Database Synchronization Tool now supports
> 2-way synchronization.
> -- Now you can execute SJA jobs from SQLyog using
> Tools -> Job Manager.
> -- Improved Online Help.
> -- Fully compatible with MySQL versions 3.23.58 to
> 5.x.
>
> You can download a full featured Trial version of
> SQLyog at http://www.webyog.com/sqlyog/download.html
>
> Regards,
> Karam
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> WTF?
> Who gives a rats ass about this?
>
> Nearly everyone on this list has php related commerical products but
> nobody advertises it here or announces it when they make or update
> their products unless its very closely related to php (and usually
> free), your product does not fall in either category, so kindly take
> your "SQLYog" and shove it up your "yog".
>
> Personally I use PHPMyAdmin which works great, is open source and free
> (donation supported)....
>
> -Ryan
>
Ok i'll speak nicely here and i'll be emailing ryan offlist, why not have
taken that email offlist, noone wants to hear your angst reply man !
On this topic, i actually have a licence of this mighty find product, it
was good when it was free, the licence is a bitch, but just have to bite i
guess. Recommendations for the yog website, it is extremely misleading, try
and change it to price for 1-9 licences. It sounds like its 1-9 licences
for that price.
Anyway phpmyadmin is crap sorry, i avoid it like the plague, and only use
it when i have no choice, ie cant access the outside databases through the
firewall because the firewall guy cant pull his finger out and make it work.
2 cents
Dan
attached mail follows:
Hi
I'm looking for recommendations for places I might look for free news feeds
to incorporate into our companies website. Specifically I'm looking for
feeds related to the pharmaceutical and medical industries.
Thanks,
Tim
attached mail follows:
Check out moreover.com. They used to have free RSS feeds, and I think
you can still get to them on their site somewhere... you just have to
dig through everything.
csnm
ns.sympatico.ca wrote:
>
>
> Hi
>
> I'm looking for recommendations for places I might look for free news
> feeds to incorporate into our companies website. Specifically I'm
> looking for feeds related to the pharmaceutical and medical industries.
>
> Thanks,
>
> Tim
--
Regards,
Ben Ramsey
http://benramsey.com
---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------
attached mail follows:
John Nichel wrote:
> Cheung Pui Pan wrote:
>
>> Dear Sir/Madam,
>>
>> I would like to make a page on which people may add records to a table
>> and
>> view them (As my web server does not support MYSQL, I may have to do
> Want us to wash and wax your car while we're at it?
John - Since his ISP does not support MySQL why should he be looking for
MySQL manuals?
He needed pointing to other ways of doing the job!
Far too many knee jurk reactions assume MySQL is the answer to
everything. Thankfully ISP's are now supporting other mush more
convenient options :)
Try looking for a non-MySQL solution using the links you gave :)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
attached mail follows:
I'm developing a photo gallery/store site. I am storing
full-resolution, full-quality images on my server and generating (and
caching) lower resolution thumbnails for previewing the images. As it
stands, I accept PNG and JPEG images via the GD image functions.
Typically, I upload PNG files, but if I happen to upload a JPEG file,
it will be retained as a JPEG (to reduce space requirements - no reason
to convert).
All of the above is working perfectly in PHP using GD image functions,
including an automatic watermarking scheme.
PNG files typically offer a nice reduction in file size over
uncompressed lossless files while not throwing away any image data.
I've been relatively pleased with it, at least until I discovered
JPEG2000 lossless. Completely lossless, just like PNG, but 1/3 smaller.
That means 50% more images can fit in the same space. And considering
that web space is quite valuable (especially when you're looking at
storing hundreds, thousands, or more of several megapixel plus
full-color images online at all times) this is a very significant thing
to me.
So, has anybody worked with JPEG 2000 and PHP? I'm guessing ImageMagick
is the program to use, does that support JPEG2000, and if so, does it
work well and everything?
Also, there might be other formats out there that support lossless
photo compression, any suggestions that would match/beat JPEG2000 and
be usable with PHP? (I'm only going to be accessing the
full-resolution, losslessly encoded images when a customer actually
buys the image, so there is no need for extreme PHP integration or
anything, just a decent way to archive and de-archive the images and,
most important of all - save space!)
Suggestions and thoughts anybody?
attached mail follows:
Hello,
I am involved in building a website that will allow users to upload their
images and edit them online. I am looking for a web based Photo Editor and
an Online Uploader (an applet perhaps that displays the contents of the
users folders and allows them to upload multiple selected files to the
server) that can be used with a PHP application. We are looking at server
side implementations of both.
The image editing features that I am looking at are cropping, rotating,
red-eye reduction, add text and apply a template.
Are there any libraries or readymade software (OCX or Java Applets) that
work with PHP to achieve this? Please advice me on this and if you have any
implementation tips, I would be grateful for them.
Looking forward to hearing from you.
Best Regards
Feroze
===========================
Jar Jar Binks will be Jedi!
===========================
attached mail follows:
Hi.
I am wanting to use a PHP script to check on an hourly/daily basis on a few
things- ie links on my sites, whether the sites are up and running and also
to send an e-mail to me. I know how to do this using PHP but my problem is
how to have this running 24/7. I can't really have this on a web page as
wouldn't it time out? I don't have my own server and so use a hosting
company. Is there a way of running a PHP script on a regular basis (say
every 10 or 30 mins, or hourly or daily)? Would I have to set up my own
server to do this? I just the simplest way of acheiving this. Any ideas?
Does anyone know of any decent link checkers written in PHP that I could
implement?
Many thanks,
Ian Gray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]