php-general Digest 25 Mar 2001 18:29:24 -0000 Issue 588
Topics (messages 45471 through 45500):
Re: Text fading with PHP?
45471 by: Kristofer Widholm
Re: What is session.cookie_secure?
45472 by: Yasuo Ohgaki
Re: [PHP4]
45473 by: Joe Brown
45496 by: Dddogbruce \(.home.com\)
45497 by: Dddogbruce \(.home.com\)
Compiling, How to resolve COM
45474 by: Joe Brown
Strange Error Reporting
45475 by: Kristofer Widholm
45495 by: CC Zona
Re: compile php4 compress uncompress libmysqlclient issue
45476 by: Grant Walters
Re: PHP_SELF problems!
45477 by: almir
Re: PHP vs Servlet
45478 by: Jesper Blomström
PDF support in PHP
45479 by: Phil Allsopp
Let the Server do the downloading
45480 by: techzeus.pacific.net.sg
writing to a file
45481 by: adam
45484 by: Felix Kronlage
45485 by: Mukul Sabharwal
Regular Expr. on access.log
45482 by: Andre
$B#J#u#s#t(B$B#i#n(B$B#M#a#i#l(B$B>pJs(B
45483 by: ka.tkk.att.ne.jp
Can You get a file unlinked after one month?
45486 by: Jan Grafström
45489 by: Christian Reiniger
Re: ODBC & Oracle
45487 by: Brooks, Ken
Re: attachments with mail() function
45488 by: BlackLord
String Functions (replace)
45490 by: Brooks, Ken
45491 by: Brooks, Ken
Changing within a file
45492 by: Jimmy Bäckström
45499 by: Jesper Blomström
huge time/memory consuming script
45493 by: Christian Dechery
45494 by: Brooks, Ken
Re: Delaying Printed Output
45498 by: Greg Scott
set_error_handler and parse errors
45500 by: Dean Hall
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]
----------------------------------------------------------------------
Here's what you wrote, 01.03.24:
>Hi
>
>Is it possible to do text fading with PHP. For instance, I want to one line
>of text fade in, have another line fade in later, and a third line after
>that. Then all three lines will fade out at the same time and start over
>with three different lines. Is this possible with php?
>
>Thanks
>
>Jamie
No, due to some browsers waiting for all a complete document object
before outputting text. Even with browsers that will parse and
display a partial feed, you really can't achieve a smooth effect due
to network latency. The best thing to do is to work with JavaScript
and CSS. Look into the setTimeout() function in JavaScript and use it
to step through different color values for your text using CSS.
Or, just use an animated gif.
K
--
______________________________________
Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn NY 11211
718.599.4893
______________________________________
I guess its for make use of cookie's secure option. (Send cookie only when
encryption (SSL) is enabled)
I haven't look into code, so I can be wrong.
--
Yasuo Ohgaki
"Michael Champagne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I noticed the setting session.cookie_secure in my php_info(), but could not
> find anything mentioned about it in the documentation. Does anyone know what
> this setting does?
>
> --
> Michael Champagne, Software Engineer
> Capital Institutional Services, Inc.
> wk: [EMAIL PROTECTED]
> hm: [EMAIL PROTECTED]
>
>
>
> ******************************************************************
> This communication is for informational purposes only. It is not
> intended as an offer or solicitation for the purchase or sale of
> any financial instrument or as an official confirmation of any
> transaction, unless specifically agreed otherwise. All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without
> notice. Any comments or statements made herein do not
> necessarily reflect the views or opinions of Capital Institutional
> Services, Inc. Capital Institutional Services, Inc. accepts no
> liability for any errors or omissions arising as a result of
> transmission. Use of this communication by other than intended
> recipients is prohibited.
> ******************************************************************
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
if($formSubmit) {
echo "form submitted: $frmName"; //<= have you tried this to make sure
$formSubmit is true?
$newsSubmit = file("news.txt"); //RTM, your not using file() the way it's
inteneded.
$fp = fopen("news.txt", 'a'); //looks good
fwrite($fp, $frmName); //looks good, but does $frmName contain anything?
fclose($fb); //$newsSubmit is not a file pointer and should not be used as
such, use $fp instead.
} else {...
good luck
""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've defined all the variables in the form, and have all the files..
>
> <HTML>
> <TITLE>Submit News</TITLE>
> <BODY>
> Your news has been processed and added to the main page. Thanks!
> <?
> if($formSubmit) {
> $newsSubmit = file("news.txt");
> $fp = fopen("news.txt", 'a');
> fwrite($fp, $frmName);
> fclose($newsSubmit);
> } else {
> include ("newsForm.php");
> }
> ?>
> </BODY>
> </HTML>
>
> See any problems? It won't dump $frmName onto the .txt file.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Your suggestions returned a parse error: I don't know.. I'm new to this.
You said something about file(), could you explain that? Maybe that's the
problem.
<?
if($formSubmit) {
$newsSubmit = file("news.txt");
$fp = fopen("news.txt", 'a');
fwrite($fp, $frmName);
fclose($newsSubmit);
} else {
include ("newsForm.php");
}
?>
All the variables are true. When I "post" the information to a nother file from
the form, it works.
This is the form script, if you're wondering..
<HTML>
<TITLE>Submit news</TITLE>
<BODY>
<form action="newSubmit.php" method="post">
<td>Name:</td>
<td><input type="text" name="frmName" size="24"><br>
<td>Email:</td>
<td><input type="text" name="email" size="24"><br>
<td>Subject:</td>
<td><input type="text" name="subject" size="24"><br>
Message:
<textarea name="message" rows="8" cols="70"></textarea><br>
<input type="submit" name ="formSubmit value="Submit">
</BODY>
</HTML>
I've been trying to compile php4 on Windows.
Almost there, but I haven't figured out how to resolve this, except to yank
COM stuff out of the source.
Haven't figured out how to compile oci8 either, but that's secondary to the
initial obstical.
With RC1 and the latest snaps, there are unresolved symboles in the compile:
Linking...
Creating library ..\Debug/php4nts_debug.lib and object
..\Debug/php4nts_debug.exp
internal_functions_win32.obj : error LNK2001: unresolved external symbol
_VARIANT_module_entry
COM.obj : error LNK2001: unresolved external symbol _php_char_to_OLECHAR
COM.obj : error LNK2001: unresolved external symbol _php_OLECHAR_to_char
COM.obj : error LNK2001: unresolved external symbol _php_pval_to_variant
COM.obj : error LNK2001: unresolved external symbol _php_variant_to_pval
..\Debug\php4nts_debug.dll : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
Please enlighten me.
Thanks,
-Joe
Anyone know why I get this warning?
Warning: Bad escape sequence: \. in validate.inc.php on line 142
CODE:
Line 142: if (!eregi("index\.php",$PHP_SELF)) {
blah blah blah;
}
I didn't know there was any other escape sequence possible in RegEx!
I have error reporting set to
error_reporting(32+16+8+4+2+1);
and that's pretty picky error reporting. Still, I don't get what's wrong.
K
--
______________________________________
Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn NY 11211
718.599.4893
______________________________________
In article <p04320407b6e35b98ce1b@[209.246.86.33]>,
[EMAIL PROTECTED] (Kristofer Widholm) wrote:
> Warning: Bad escape sequence: \. in validate.inc.php on line 142
>
> CODE:
> Line 142: if (!eregi("index\.php",$PHP_SELF)) {
> blah blah blah;
> }
>
> I didn't know there was any other escape sequence possible in RegEx!
In a way, there is another "escape": using square braces.
eregi("index[.]php",$PHP_SELF)
--
CC
Hi all.
Firstly apoligies to those on the list who receive every email to the
general list in their inbox like I do :-)
I've just spent a rather frustrating five days (15hrs/day) trying to compile
php 4 for use both at the command line and within apache 1.3.12
(openssl/mod_ssl).
I've scanned the lists and internet looking for solutions to the issue
outlined in the subject above and have found the following solution, which I
am posting for future refernce, so hopefully it will help others. This is
the procedure I used to produce the php binary (CGI) but the mods to build
the apache stuff are minimal.
I haven't tested either of these yet but I think there are 2 options for the
apache side of things:
FOR APXS:
--with-apxs=/usr/local/apache/bin/apxs (or wherever your apache source tree
is)
FOR STATIC?:
--with-apache=../apache_1.3.12 (or wherever your apache source tree is)
Add either line to the Build_php4 script below.
If anything in here looks really wrong can somebody please modify it
accordingly and repost it.
If this is considered an inappropriate post, can somebody let me know a
better place to put it (or even better a Web Site to put it on).
The issue is with PHP not being able to find the compress and uncompress
routines when calling/compiling using the MySQL libmysqlclient library.
The 2 routines in questions belong to the Zlib compression.
(The nm tool can be used to show that the routines are marked as "UNDEF"
which means they are from another externally called library)
The scenario/setup
------------------
SCO Openserver 5.0.5
mysql-3.23.28-gamma
php-4.0.4pl1 (although I tried 4.0pl2 as well)
apache_1.3.12
zlib_1.1.2
Everything I build is from /usr/local/Build
I use /usr/local (the default) for the --prefix option to configure scripts.
I also have things like GD, OpenSSL, Mod_SSL, BerkeleyDB (what a drama) and
a whole bunch of stuff froim the SCO Skunkware brigade
(http://www.sco.com/skunkware).
What I did (My scripts etc)
----------
The first tricky thing I found was to ensure that programs could find the
libraries when required. Much searching of the NET came up with some things
I have put into a script:
-------/usr/local/bin/LD.sh-------
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/lib/mys
ql
LIBPATH=/usr/lib:/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/lib/mysql
SHLIB_PATH=/usr/lib:/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/lib/mysql
if [ -f /usr/local/openlink/openlink.sh ]; then
. /usr/local/openlink/openlink.sh
fi
export LD_LIBRARY_PATH LIBPATH SHLIB_PATH
------------------------------------------
I note that by default SCO looks for libraries in /lib and /usr/lib.
Creating symbolic links from /usr/local/lib etc into /usr/lib also seems to
work, rather than the variables.
I am not a C programmer so I have no real idea what the 3 environment
variables are and I believe that there is another one called LD_RUN_PATH as
well, but I don't seem to need it.
On the apache front, I modified my apachectl startup script to call this
script with ". /usr/local/bin/LD.sh" (the dot is crucial) to import the
variables into the script before starting apache so apache can find the
libraries and openlink stuff as well.
For Linux users this stuff is unnecessary (I think) as you can modify
/etc/ld.so.conf to add any non standard directory like /usr/local/mysql/lib
(the default I think).
Then run ldconfig to rebuild the list (I can't remember if a reboot is
necessary but I don't think so) and voila, linux can find the libraries
required.
MYSQL
- with zlib compression enabled
- my libz.* files reside in /usr/local/lib
Configured MySQL ready to run make with the following script:
---------Build_mysql------------
rm -f config.cache
./configure \
--prefix=/usr/local \
--enable-assembler \
--enable-large-files \
--without-debug \
--with-comment \
--without-bench \
--with-named-z-libs=z \
--with-berkely-db=/usr/local
--------------------------------
PHP4
1) I modified the PHP configure script (using information from a previous
post regarding modifying Makefiles) to add -lz (to have PHP include the Zlib
libraries any time is uses mysql).
In my case the relevant lines were:
25577
Changed From MYSQL_SHARED_LIBADD="-lmysqlclient $MYSQL_SHARED_LIBADD"
Changed To MYSQL_SHARED_LIBADD="-lmysqlclient -lz $MYSQL_SHARED_LIBADD"
25657
Changed From LIBS="-lmysqlclient $LIBS"
Changed To LIBS="-lmysqlclient -lz $LIBS"
2) Configured PHP ready to run make with the following script:
Most of the stuff is irrelevant to the issue and some of the options are
ignored, but I haven't work out which ones yet.
I think having the with-openlink line means the the without-iodbc line is
ignored.
---------Build_php4-------------
rm -f config.cache
./configure \
--with-openlink \
--with-zlib-dir=/usr/local \
--with-dbm \
--with-mysql=/usr/local \
--without-iodbc \
--enable-discard-path=yes \
--enable-magic-quotes=yes \
--enable-track-vars=yes \
--enable-memory-limit \
--enable-trans-sid \
--enable-versioning \
--enable-shared=yes \
--enable-static=no \
--disable-pear \
--disable-xml \
--disable-bcmath \
--disable-calendar \
--without-gd \
--without-cybercash \
--without-mod-dav \
--without-gdbm \
--without-ndbm \
--without-db2 \
--without-db3 \
--without-cdb \
--without-dom \
--without-gettext \
--without-hyperwave \
--without-icap \
--without-imap \
--without-ldap \
--without-mcal \
--without-mcrypt \
--without-mhash \
--without-custom-odbc \
--without-pdflib
--------------------------------
The php binary when installed (in mycase) in /usr/local/bin works and
preforms all of the SELECT, UPDATE, DELETE stuff I have thrown at it so far.
It you run the ldd command on it you get this.
# ldd /usr/local/bin/php
dynamic linker: /usr/local/bin/php: file loaded: /usr/lib/libiodbc.so
dynamic linker: /usr/local/bin/php: file loaded:
/usr/local/lib/mysql/libmysqlclient.so10
dynamic linker: /usr/local/bin/php: file loaded: /usr/local/lib/libz.so.1
dynamic linker: /usr/local/bin/php: file loaded: /usr/lib/libsocket.so.1
dynamic linker: /usr/local/bin/php: file loaded: /usr/lib/libc.so.1
NOTES:
There is probably a whole lot of stuff that is a bit wrong with what I have
done above, but a functioning binary was all I was after. I would
appreciate any feedback on this.
Regards
Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989
simple
echo basename($PHP_SELF) or base_name check docu
almir
""Erick Papadakis"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
99foro$tig$[EMAIL PROTECTED]">news:99foro$tig$[EMAIL PROTECTED]...
> hi,
>
> i am using my program
>
> http://localhost/test.php
>
> inside this program is a form, which points to $PHP_SELF
>
> but, when i submit this form, the link actually becomes
>
> http://localhost/php/php.exe/test.php
>
> this results in some images not being displayed correctly!
>
> is there anyway i can disable this, and make the PHP SELF same as the
> original?
>
> thanks/erick
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Okey, sorry about that.
Communicating with a servlet via http is not different from other
php-http-methods:
For example:
# First declare some parameters which shall be sent to the Servlet/JSP
$eqid = '1';
$oparameter = 'tablist';
$nocolumn = '1';
$request = '?eqid=' . urlencode($eqid);
$request .= '&oparameter=' . urlencode($oparameter);
$request .= '&nocolumn=' . urlencode($nocolumn);
# Then it is just a simple as reading a file via http (NOTE! the client does
not care whether it is a file or a stream)
# To be able to access the server I must also submit a userId and a pwd.
$elements =
file("http://userid:[EMAIL PROTECTED]/servlets/XQuery".$request);
Then all you have to do is to iterate the returned array (there are many way
ie: for ($i = 0; $i < sizeof($elements); $i++)).
If you want to split the stream with a RE you can try to use a method like
this one:
function readandsplit($filename, $separator) {
$fd = fopen($filename, "r");
$contents = "";
$chunksize = 1000;
do {
$tmpstr = fread ($fd, $chunksize);
$contents = $contents.$tmpstr;
} while (strlen($tmpstr) == $chunksize);
fclose($fd);
# And for example use the preg_split-method which takes the RE and splits
the string
$elements=preg_split($separator, $contents);
return($elements);
}
By from Stockholm, Sweden!
/ Jeppe
Krznaric Michael <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:81A3043681E6824EBE672F7421C30E7E2A1952@SRVTORON
TO.RAND.COM...
So tell us?
Mike
-----Original Message-----
From: Jesper Blomstrm [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: SV: [PHP] PHP vs Servlet
I found out how to do it.
Thx anyway
/ J
Jesper Blomström <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:[EMAIL PROTECTED]
> Hi!
>
> I am sure you have a solution to this...
>
> How shall I communicate with a servlet from PHP?
> I have a servlet which makes a DB-query and returns the
> result.
>
> Thanks!
>
>
>
> / Jeppe
>
>
>
> --
> Jesper Blomström
> [EMAIL PROTECTED]
> Arbete: 08-566 280 08
> Hem: 08-669 23 10
> Mobil: 070-30 24 911
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I am having some problems getting PDF support enabled with PHP4.04pl1
Using FreeBSD 4.2, Apache 1.3.9, PHP4.04pl1 and Pdflib 3.0
When doing a PHP ./configure, I see :
Checking whether to include Pdflib 3.x support... /usr/local yes
(and)
creating ext/pdf/Makefile
when doing a make, I see:
making all in pdf
When doing a make install, I see:
Making install in pdf
But when running the standard example code through MS I.E 5.5, I see
Fatal error: Call to undefined function: pdf_new()
in /usr/www/htdocs/index.html on line 6
Anyone any ideas on this one ?
Regards
Phil.
Is it possible?
Have anyone made a script that allows you to grab a file from another URL directly
from the server so that you don't need to download the file and upload it again?
Chua Zhi Hon aka. Zeus
-------------------------------------
Founder/CEO, Frozened Network
"We provide you with the tools needed to setup an online business"
http://www.frozened.com
Editorial, paGn.net
http://www.pagn.net
how do i write to the beginning of a file instead of the end?
On Sun, Mar 25, 2001 at 03:39:28AM -0800, adam wrote:
> how do i write to the beginning of a file instead of the end?
fseek will help. With it you con move the pointer to the file beginning.
http://www.php.net/manual/en/function.fseek.php will have details.
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |
PGP signature
heyo,
http://devhome.net/php/tutorials/230101.html
will be nice
--- adam <[EMAIL PROTECTED]> wrote: > how do i write to
the beginning of a file instead of
> the end?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
=====
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
Hello,
i am writing a script to read out the apaches´ access.log.
Now i want to set a counter when the following String includes the
expression
"MAR" "test.php" "a=5" and "d=6901"
127.0.0.1 - - [21/Mar/2001:21:19:17 +0100] "GET
/test.php?a=5&b=4&c=42&d=6901 HTTP/1.1" 200 54
can someone tell me how i can realize this?
Thanks a lot list!!
$B!z!z!z!z!z!z!z!!(BJust in Mail $B!z!z!z!z!z!z!z(B
$B>pJsDs6!4k6HL>(B $B%P%J!<%3%`(B
$B"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!(B
$B:#=5$N$*>)$a%5%$%H$r$*CN$i$;$$$?$7$^$9(B
http://www.hh.iij4u.or.jp/~g-spot/check/mail.html
$B!!!!http://www.hh.iij4u.or.jp/~g-spot
$B"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!(B
$B$"$J$?$N%a!<%k%"%I%l%9$O(B
< http://www.php.net/manual/admin-notes.php?last_entry=300 > $B$N(B
$B%5%$%H$h$j<}=8CW$7$^$7$?!#(B
Just in Mail $B$K4X$9$k$40U8+!"$*Ld$$9g$o$;$O(B
$B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(B $B!!([EMAIL PROTECTED]$B!!$^$G$I$&$>!#(B
$B!z!z!z!z!z!z!z!!(BJust in Mail $B!z!z!z!z!z!z!z(B
Hi!
I wonder if it is possible to delete a file using unlink and a time
function.
I wont the file to be automtically unlinked after a month.
I am very thankful for any help.
Regards
Jan Grafstrom
On Sunday 25 March 2001 15:45, you wrote:
> Hi!
> I wonder if it is possible to delete a file using unlink and a time
> function.
> I wont the file to be automtically unlinked after a month.
man cron
man tmpreaper
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
Joe,
I love you!! (In a 'Happy I now have something working' sort of way of
course) :)
It hasn't finished (it's still running now), but it is sure going *alot*
further
than it had before.
-ken
-----Original Message-----
From: Joe Brown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 5:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] ODBC & Oracle
There is a timeout, that should halt a script if it runs too long. If you
can, check
php.ini
set max_execution_time to something greater than 30 seconds, see if that
helps.
""Brooks, Ken"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I thought maybe the php script was running to fast for the network
> connection.
> So i put in a sleep(1)
> It still only ran for about the same amount of time (less records pulled
of
> course).
>
> Could it be losing the connection instead because of lack of activity?
>
> Would a persistent connection make any difference?
>
> -----Original Message-----
> From: Brooks, Ken [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] ODBC & Oracle
>
>
> Are there any limitations on how many records I can pull from an Oracle
> Database
> over ODBC?
>
> I have it pulling one record just fine, but when I tell it to pull all
> records,
> which should be about 75,000, it only gets about 600 or so.
>
> Does the php script time out (i'm running it thru a web browser).
>
> What could it be?...
>
> thanks,
> ken
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thank you Michael. I will look for mime_mail classes.
"Michael Hall" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm not sure about including them in the mail function as such, but it can
> certainly be done using one of several mime_mail classes that are around.
> I don't have one handy right now but you can find them by searching the
> php archives
> and/or the annotated php manual. I know the one by Schumann and
> Ratschiller works OK.
>
>
> Mick
>
> On Sun, 25 Mar 2001, BlackLord wrote:
>
> > Is there anyway to include attachments in mail() function?
> >
> > If you give a small example, it will be great.
> >
> > Thanks
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I know this is completely stupid but how can i take something with a single
quote ' and replace it in the string with \'
Ex:
Bain's Deli
to
Bain\'s Deli
$fieldcontents = strtr($fieldcontents, "'", "\\\'"); -or-
$fieldcontents = strtr($fieldcontents, "'", "\\'");
doesn't work. I feel dumb, but my brain isn't going yet this morning.
Thanks,
ken
Nevermind, stumbled across addslashes().
What a wonderful language. :)
-ken
-----Original Message-----
From: Brooks, Ken [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 25, 2001 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] String Functions (replace)
I know this is completely stupid but how can i take something with a single
quote ' and replace it in the string with \'
Ex:
Bain's Deli
to
Bain\'s Deli
$fieldcontents = strtr($fieldcontents, "'", "\\\'"); -or-
$fieldcontents = strtr($fieldcontents, "'", "\\'");
doesn't work. I feel dumb, but my brain isn't going yet this morning.
Thanks,
ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Yo!
Does anyone know how I can change a line in a textfile?
I want to find a specific line, and then change it a bit...
Hi!
This is what you want:
http://www.php.net/manual/en/function.preg-replace.php
The preg_replace-method uses a ordinary RE to search and replace.
Hoppas det går vägen!
/ Jeppe
Jimmy Bäckström <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:001901c0b543$329648c0$[EMAIL PROTECTED]
Yo!
Does anyone know how I can change a line in a textfile?
I want to find a specific line, and then change it a bit...
I'm thinking about building a PHP script that loads an entire database on a
weekly basis, based on a text catalog.
The reason I'm doing it, it's because the catalog is too generic and has
lots off stuff to be done in it (such as lots of string replacements and
'fixing') before I can really parse it and create the insert statements.
The doubt I have is this: it's kinda of BIG catalog, I'm talking about more
than 20MB of text files, and I have to 'clean' the whole DB and load it
entirely again (I don't make the rules, this is how it works)...
I'm worried about the time it will take and the memory it'll cost, so I was
thinking of a step-by-step solution, like break the process into several
'steps' that of course would be carried out automatically.
Like I'd have
<?php
do this this this and that
reload the page to go to the next step
?>
So... just by reloading the page, I get a good 'memory cleaning' so I can
be sure everything is going to get carried out??... there are steps that
I'm worried about taking over 30min to finish, like loading the main table
with 140.000 rows...
thanks...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
I don't know exactly what you are asking.
But I'm running a script as we speak that is pulling 75000+ rows from
an oracle database over ODBC (from a remote server) and creating
a table in a local mysql database, dumping all records into it.
-ken
-----Original Message-----
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 25, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] huge time/memory consuming script
I'm thinking about building a PHP script that loads an entire database on a
weekly basis, based on a text catalog.
The reason I'm doing it, it's because the catalog is too generic and has
lots off stuff to be done in it (such as lots of string replacements and
'fixing') before I can really parse it and create the insert statements.
The doubt I have is this: it's kinda of BIG catalog, I'm talking about more
than 20MB of text files, and I have to 'clean' the whole DB and load it
entirely again (I don't make the rules, this is how it works)...
I'm worried about the time it will take and the memory it'll cost, so I was
thinking of a step-by-step solution, like break the process into several
'steps' that of course would be carried out automatically.
Like I'd have
<?php
do this this this and that
reload the page to go to the next step
?>
So... just by reloading the page, I get a good 'memory cleaning' so I can
be sure everything is going to get carried out??... there are steps that
I'm worried about taking over 30min to finish, like loading the main table
with 140.000 rows...
thanks...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> Have you looked into javascript/java?
This client has worked up a Power Point slide presentation that he wants
me to duplicate on the web. I had a PHP solution that was working fine,
but then he decided to jazz up his Power Point presentation some. The
adding a single line of text at time didn't seem to complicated so I was
going to see if I could find a PHP solution to it that would work with
all browsers. But now he's decided that he wants motion involved with
it too, so I guess I'll start learning a little more about FLASH. I did
discover I have an Adobe program I have can use to create FLASH files so
I guess I'll try that route and just warn him that he may be eliminating
some web visitors this way (actually I'll probably keep the old PHP
slide show and give them an option).
Thanks everyone for your input into this.
Greg
Is it just me, or do parse errors get reported by the engine even if you use
your own error handler?
I've registered my own error handler with "set_error_handler()", but it
doesn't get called on parse errors -- the manual seems to hint that this is
the case (without actually saying it), and I searched the list archives and
came across someone who hacked the PHP source to make parse errors get
passed to the error handler. Anyone know for sure?
Dean.