php-general Digest 2 Mar 2002 21:21:56 -0000 Issue 1203
Topics (messages 86887 through 86917):
Bizarre mail() problem
86887 by: andy thomas
86888 by: Andrey Hristov
86892 by: andy thomas
Downloadbox
86889 by: Martin
86890 by: Boaz Yahav
Re: shopping cart question
86891 by: Markas
86895 by: Mika Tuupola
86901 by: Jon Feldhammer
Ben Turner....
86893 by: Sean Kennedy
php to open mail compose window
86894 by: Paul S.
Threads and PHP
86896 by: Gaylen Fraley
86897 by: Andrey Hristov
How to generate an broun & white JPG with GD
86898 by: Andy
words for pspell
86899 by: Tom Kincaid
PHP directing pages/frames to urls.
86900 by: Matthew Darcy
86902 by: Greg Donald
86903 by: Matthew Darcy
86904 by: Greg Donald
86910 by: Matthew Darcy
Re: check on pictures
86905 by: Boaz Yahav
fopen(FTP....)
86906 by: Gonzalo
86914 by: Greg Donald
Re: help please -- error compiling php 4.1.2 (4.0.6 compiles fine)
86907 by: Scott Brown
Sending a file with fpassthru() or readfile(), causes IE to hang.
86908 by: John Chronakis
PHP Help
86909 by: Josiah Wallingford
86913 by: Greg Donald
Passing verables along from Java Scripts
86911 by: Philip J. Newman
86912 by: Richard Crawford
fopen
86915 by: Craig Westerman
86916 by: Greg Donald
XMLDOM
86917 by: Khalid Al-kary
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I have written a script to do some massmailing - it extracts an email
address from a MySQL database and uses it to send a text file as a mail
message. It works but there is a 75 second delay between each message
being sent out!
This is baffling - there are no delays built into the script and nothing
obvious in our sendmail configuration. As I've got over 38000 addresses to
mail out to, this is a problem - I've got round it for now by running 10
scripts simultaneously, each handling 1000 addresses and this has got mail
moving.
The mail() function seems to call sendmail -t -i. This just sits there for
75 seconds, then sends a message and then waits for another 75 seconds.
Surely this should not happen?
Here's the relevant parts of the script - the email address is in column
15 of the MySQL table, so it just extracts field 14 for the email address
data:
$msg_txt="message.txt";
mysql_connect("localhost",$mysql_user,$mysql_pwd);
$query="select * from $table";
$result=mysql($dbname, $query);
$rows=mysql_numrows($result);
$r=0;
$f=14;
while ($r < $rows ) {
$address=mysql_result($result,$r,$f);
mail("$address","$subject","$message","From:$MailFromAddress");
$r++;
}
Any suggestions or pointers to where I'm going wrong will be warmly
received.
Andy
--- End Message ---
--- Begin Message ---
check you php.ini if you need to change sendmail -t -i to something other.
Regards,
Andrey
----- Original Message -----
From: "andy thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 11:04 AM
Subject: [PHP] Bizarre mail() problem
> I have written a script to do some massmailing - it extracts an email
> address from a MySQL database and uses it to send a text file as a mail
> message. It works but there is a 75 second delay between each message
> being sent out!
>
> This is baffling - there are no delays built into the script and nothing
> obvious in our sendmail configuration. As I've got over 38000 addresses to
> mail out to, this is a problem - I've got round it for now by running 10
> scripts simultaneously, each handling 1000 addresses and this has got mail
> moving.
>
> The mail() function seems to call sendmail -t -i. This just sits there for
> 75 seconds, then sends a message and then waits for another 75 seconds.
> Surely this should not happen?
>
> Here's the relevant parts of the script - the email address is in column
> 15 of the MySQL table, so it just extracts field 14 for the email address
> data:
>
> $msg_txt="message.txt";
>
> mysql_connect("localhost",$mysql_user,$mysql_pwd);
> $query="select * from $table";
> $result=mysql($dbname, $query);
> $rows=mysql_numrows($result);
>
> $r=0;
> $f=14;
> while ($r < $rows ) {
> $address=mysql_result($result,$r,$f);
> mail("$address","$subject","$message","From:$MailFromAddress");
> $r++;
> }
>
>
> Any suggestions or pointers to where I'm going wrong will be warmly
> received.
>
> Andy
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Andrey Hristov wrote:
> check you php.ini if you need to change sendmail -t -i to something other.
I think the problem's fixed itself now! About 45 minutes after I
started running 10 scripts in parallel, the whole show went berserk and
all the scripts begain sending a message a second, so that sendmail was
handling 10 messages/second and load average hit 3.5. It must have been a
network related problem but it's all running fine now with 1 message a
second going out from the original script.
cheers,
Andy
> ----- Original Message -----
> From: "andy thomas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, March 02, 2002 11:04 AM
> Subject: [PHP] Bizarre mail() problem
>
>
> > I have written a script to do some massmailing - it extracts an email
> > address from a MySQL database and uses it to send a text file as a mail
> > message. It works but there is a 75 second delay between each message
> > being sent out!
> >
> > This is baffling - there are no delays built into the script and nothing
> > obvious in our sendmail configuration. As I've got over 38000 addresses to
> > mail out to, this is a problem - I've got round it for now by running 10
> > scripts simultaneously, each handling 1000 addresses and this has got mail
> > moving.
> >
> > The mail() function seems to call sendmail -t -i. This just sits there for
> > 75 seconds, then sends a message and then waits for another 75 seconds.
> > Surely this should not happen?
> >
> > Here's the relevant parts of the script - the email address is in column
> > 15 of the MySQL table, so it just extracts field 14 for the email address
> > data:
> >
> > $msg_txt="message.txt";
> >
> > mysql_connect("localhost",$mysql_user,$mysql_pwd);
> > $query="select * from $table";
> > $result=mysql($dbname, $query);
> > $rows=mysql_numrows($result);
> >
> > $r=0;
> > $f=14;
> > while ($r < $rows ) {
> > $address=mysql_result($result,$r,$f);
> > mail("$address","$subject","$message","From:$MailFromAddress");
> > $r++;
> > }
> >
> >
> > Any suggestions or pointers to where I'm going wrong will be warmly
> > received.
> >
> > Andy
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
Hello!
I have a PDF-File, which the user should be able to download. The
problem is that the browser is showing this file when the user clicks
the link instead of displaying the box to start the download. Can I
force the browser to show the box?
Martin
--- End Message ---
--- Begin Message ---
How to force the user to download a file instead of opening it up in an
controlled environment within the browser (i.e. MS Word/Adobe Acrobat)
http://www.weberdev.com/get_example.php3?count=1627
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 11:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Downloadbox
Hello!
I have a PDF-File, which the user should be able to download. The
problem is that the browser is showing this file when the user clicks
the link instead of displaying the box to start the download. Can I
force the browser to show the box?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Why not use php's sessions, where php uses cookies for getting phpsessid,
and if no cookies are available, it automatically adds those id's to every
href (you can manage that in php's conf file)
Jon Feldhammer <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> The way I see it, there are three options for maintaining state in php.
> I've already taken the route of keeping a random session id and putting it
> into a database to track a user/cart. So the only variable i need to
track
> is the session id. The three options I know of then are:
>
> 1. Putting the session id in the url
> 2. Putting the session id into a cookie
> 3. Putting the session id into a hidden input type and have every button
be
> a form
>
> Option 3 sucks asthetically and coding wise. Option 1 is somewhat ugly
> because now you have a big ole session id in your url (plus I don't think
> search engines like these). Also, with option 1 you need to have a <?php
> echo "?session_id=$session_id" ?> type line in every href which is a pain
in
> the ass. Option 2 is great, if the user uses cookies, if not, you cannot
> track the user at all. Anyone have the perfect solution?
>
> Thanks.
>
> Jon
>
>
>
>
--- End Message ---
--- Begin Message ---
On Fri, 1 Mar 2002, Jon Feldhammer wrote:
> The way I see it, there are three options for maintaining state in php.
> I've already taken the route of keeping a random session id and putting it
> into a database to track a user/cart. So the only variable i need to track
> is the session id. The three options I know of then are:
Did I understand correctly you are implementing your own
session handling? Why not use PHP's native sessions?
http://www.php.net/manual/en/ref.session.php
> search engines like these). Also, with option 1 you need to have a <?php
> echo "?session_id=$session_id" ?> type line in every href which is a pain in
> the ass. Option 2 is great, if the user uses cookies, if not, you cannot
This can be automated with --enable-trans-sid.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/
--- End Message ---
--- Begin Message ---
Hmm I miss understood in the past how exactly php session handling was done.
Thanks for the answer.
Jon
"Markas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Why not use php's sessions, where php uses cookies for getting phpsessid,
> and if no cookies are available, it automatically adds those id's to every
> href (you can manage that in php's conf file)
>
> Jon Feldhammer <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> > The way I see it, there are three options for maintaining state in php.
> > I've already taken the route of keeping a random session id and putting
it
> > into a database to track a user/cart. So the only variable i need to
> track
> > is the session id. The three options I know of then are:
> >
> > 1. Putting the session id in the url
> > 2. Putting the session id into a cookie
> > 3. Putting the session id into a hidden input type and have every button
> be
> > a form
> >
> > Option 3 sucks asthetically and coding wise. Option 1 is somewhat ugly
> > because now you have a big ole session id in your url (plus I don't
think
> > search engines like these). Also, with option 1 you need to have a
<?php
> > echo "?session_id=$session_id" ?> type line in every href which is a
pain
> in
> > the ass. Option 2 is great, if the user uses cookies, if not, you
cannot
> > track the user at all. Anyone have the perfect solution?
> >
> > Thanks.
> >
> > Jon
> >
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Hello,
Have you tried putting this between the head tags : <meta
http-equiv="Content-Language" content="en">.
I'm not sure if it will work or not but you can try it. Tell me if it does work.
-GENESiS DESiGNS
-Sean Kennedy
-http://www.gdesigns.vcn.com
--- End Message ---
--- Begin Message ---
I thought that a simple php file "email.php" as follows:
<?php
header("Location:mailto:[EMAIL PROTECTED]");
?>
might open a compose window and circumvent those spam robots (the robots
that search web pages for email addresses for spam lists).
1) If this worked (a href="./email.php) then WOULD spam robots be
circumvented?
2) It does work in NS 4.78. Opera gives an "invalid address" message.
IE5.something opens the compose mail window but the web page it was
called from goes blank. Thus it is too inconsistent to use.
Any way to fix this?
Any way to accomplish circumventing spam robots and opening a mail
compose window?
--- End Message ---
--- Begin Message ---
Is it possible to use threads to perform an operation while another takes
place with PHP? I have a situation where a process calls the mail()
function and then must wait until that completes before going on to the next
step. What I would like to happen is that the mail() function is handled by
its own thread and the next screen refreshes immediately as the next screen
is not dependent on the success/failure of the mail() call. Possible?
--
Gaylen
PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
--- End Message ---
--- Begin Message ---
pcntl extension. But only *nix.
Best regards,
Andrye Hristov
----- Original Message -----
From: "Gaylen Fraley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 6:33 PM
Subject: [PHP] Threads and PHP
> Is it possible to use threads to perform an operation while another takes
> place with PHP? I have a situation where a process calls the mail()
> function and then must wait until that completes before going on to the next
> step. What I would like to happen is that the mail() function is handled by
> its own thread and the next screen refreshes immediately as the next screen
> is not dependent on the success/failure of the mail() call. Possible?
>
> --
> Gaylen
> PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi there,
I was recently browsing throught phpbuilder and did see the user pictures
there.
They are not black/white, but kind of brown white which look pretty cool and
might save some disk space compared to true color.
Here is the link:
http://phpbuilder.com/columns/ying20000602.php3?page=1
Does anybody know how to do this with GD?
Thanx for any help
Andy
--- End Message ---
--- Begin Message ---
I'm trying to use pspell for a forum. It works great, but I can't quite
figure out how to pull individual words out of a string for it. preg_match
("/\b.+?\b/", $text, $matches) works almost perfectly, EXCEPT apostrophes
are word boundaries so the string "Shouldn't this work?" would have
"Shouldn" as the first word. Has anyone ever implemented something like
this? Any advice?
THanks for this and thanks to everyone who helped with the preg_replace. It
was actually part of this.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---
Hi,
I asked the group for a suggestion of how to direct 2 frames to 2 different
locations on the click of a link. A suggestion using javascript was sent
back to me.
I am looking for other options can anyone suggest anything.
Many thanks,
Matt
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Matthew Darcy wrote:
>I asked the group for a suggestion of how to direct 2 frames to 2 different
>locations on the click of a link. A suggestion using javascript was sent
>back to me.
>
>I am looking for other options can anyone suggest anything.
That's how you do it, javascript.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Hi Greg,
I have the java script option, I was wondering if using java script was the
only way to do this ?
I am now guessing it is.
Thanks,
Matt.
-----Original Message-----
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2002 18:08
To: Matthew Darcy
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP directing pages/frames to urls.
On Sat, 2 Mar 2002, Matthew Darcy wrote:
>I asked the group for a suggestion of how to direct 2 frames to 2 different
>locations on the click of a link. A suggestion using javascript was sent
>back to me.
>
>I am looking for other options can anyone suggest anything.
That's how you do it, javascript.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Matthew Darcy wrote:
>I have the java script option, I was wondering if using java script was the
>only way to do this ?
>I am now guessing it is.
It's the only way I can think of. You're wanting to manipulate client
side stuff, so you have to use a client side language.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
thats great.
Thanks Greg.
-----Original Message-----
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2002 18:26
To: Matthew Darcy
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP directing pages/frames to urls.
On Sat, 2 Mar 2002, Matthew Darcy wrote:
>I have the java script option, I was wondering if using java script was the
>only way to do this ?
>I am now guessing it is.
It's the only way I can think of. You're wanting to manipulate client
side stuff, so you have to use a client side language.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
This is pretty Trivial if the remote pages had a standard. But from your
words I understand that the remote gallery pages can look like anything
and contain links to other places than only images.
Not trivial at all...
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Martin Kampherbeek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 10:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] check on pictures
Can someone help me with this problem?
Someone fills in my form. One field on the form is galleryurl. Here he
types a url with some pictures on it. On this page the are thumbnail
with links to bigger pictures.
Now I want to check if the pictures are realy on it. And I want to check
if there is a link to a picture on the thumbnail and not to a html page.
I hope someone can help me.
Cheers,
Martin.
--- End Message ---
--- Begin Message ---
Hello:
A very basic thing.. I'm trying to success with an instruction
fopen (FTP://$PHP_AUTH_USER:$PHP_AUTH_PW@localhost$filename, "r")
being $php_aut_user = [EMAIL PROTECTED] because of the site administrator settings.
I'm having problems because I can't open any file. I allways get the message "No such
file or directory in ...."
Someone told me to conect to the ftp site with site#site.xxx instead of [EMAIL PROTECTED]
but it doesn't work.
¿Could anyone help me?
Gonzalo.
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Gonzalo wrote:
>A very basic thing.. I'm trying to success with an instruction
>
>fopen (FTP://$PHP_AUTH_USER:$PHP_AUTH_PW@localhost$filename, "r")
>
>being $php_aut_user = [EMAIL PROTECTED] because of the site administrator settings.
>
>I'm having problems because I can't open any file. I allways get the message "No such
>file or directory in ...."
>Someone told me to conect to the ftp site with site#site.xxx instead of [EMAIL PROTECTED]
>but it doesn't work.
>
>¿Could anyone help me?
Does it work when you try with actual values instead of posted variables?
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
I dont know if Rasmus or someone else on the Dev team wants to know more --
but I found that by making the following change to filestat.c, 4.1.2 at
least compiled on my system...
#if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS)
# include <sys/statvfs.h>
/*
*#elif defined(HAVE_SYS_STATFS_H) && defined(HAVE_STATFS)
*# include <sys/statfs.h>
*/
#elif defined(HAVE_SYS_MOUNT_H) && defined(HAVE_STATFS)
# include <sys/mount.h>
#endif
I'm still not sure where the duplication of the structure originated - but
this at least lets it compile.
System is a kernel 2.0.36
gcc is version 2.7.2.1
(yes, old, I know....)
> -----Original Message-----
> From: Scott Brown [mailto:[EMAIL PROTECTED]]
> Sent: March 1, 2002 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] help please -- error compiling php 4.1.2
> (4.0.6 compiles
> fine)
>
>
>
> I'm trying to deal with the recent security advisory... but
> I cant get
> 4.1.2 to compile on my system
>
> I'm getting :
>
> gcc -I. -I/home/webmaster/new_build/php-4.1.2/ext/standard
> -I/home/webmaster
> /new_build/php-4.1.2/main -I/home/webmaster/new_build/ph
> p-4.1.2 -I/home/webmaster/new_build/apache_1.3.23/src/include
> -I/home/webmas
> ter/new_build/apache_1.3.23/src/os/unix -I/home/webmaste
> r/new_build/php-4.1.2/Zend
> -I/home/webmaster/new_build/gd-1.8.4 -I/usr/local
> /include -I/home/webmaster/new_build/php-4.1.2/ext/mysql
> /libmysql -I/home/webmaster/new_build/php-4.1.2/ext/xml/expat
> -I/home/webma
> ster/new_build/php-4.1.2/TSRM -O2 -fomit-frame-pointer -
> ffast-math -fexpensive-optimizations -c filestat.c && touch
> filestat.lo
> In file included from /usr/include/sys/statfs.h:26,
> from filestat.c:49:
> /usr/include/statfsbuf.h:25: redefinition of `struct statfs'
> make[3]: *** [filestat.lo] Error 1
> make[3]: Leaving directory
> `/home/webmaster/new_build/php-4.1.2/ext/standard'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/webmaster/new_build/php-4.1.2/ext/standard'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/webmaster/new_build/php-4.1.2/ext'
> make: *** [all-recursive] Error 1
> [root@apollo /home/webmaster/new_build/php-4.1.2]#
>
> However, 4.0.6 compiles fine....
>
> Configure line (same between the 4.0.6 and the 4.1.2 attempts) is:
>
> CFLAGS="-O2 -fomit-frame-pointer -ffast-math
> -fexpensive-optimizations" \
> EAPI_MM=../mm-1.1.3 \
> ./configure \
> --with-apache=../apache_1.3.23 \
> --with-gd=../gd-1.8.4/ \
> --with-mysql \
> --with-gdbm \
> --with-mhash \
> --with-config-file-path=/etc \
> --with-calendar=shared \
> --enable-safe-mode \
> --enable-magic-quotes \
> --enable-trans-sid \
> --enable-apc \
> --enable-ftp \
> --enable-debug=no \
> --enable-memory-limit=yes \
> --enable-xml \
> --enable-track-vars
>
> #exit
>
> System is Redhat 5.something - patched all to hell....
>
> Any help/direction appreciated...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
I have posted the following message to php-windows but i got no answer.
I am using IIs 5 on windows 2k sp2 with php 4.1.1.
There is a problem with the sctipt that follows and MSIE versions 5 to 6.
A script sends a jpeg image to the client. It goes like this:
------------------------------------------------------
$imgsrc = 'full path of the image file';
....
header ("Content-type: some/image");
header ("Content-disposition: attachment; filename=myimage.jpg");
header ("Content-length: ".filesize($imgsrc) );
$fp = fopen( $imgsrc, "rb" );
if (!$fp) {
..... Log the error .....
exit;
}
fpassthru ($fp);
exit;
------------------------------------------------------
It works fine if the user desides to save or open the image.
But if the user cancels the download, Internet Explorer stops
receiving anything from the site. Any click on a link hangs
(IE displays in the status bar "Web site found. Waiting for reply")
Links to static html files on my web server work
and you can also browse any other sites, but nothing on my site that is
parsed by php works.
After some attemts (clicks and reloads), IIs reports the following message:
"HTTP 403.9 - Access Forbidden: Too many users are connected
Internet Information Services"
Increasing the user limit on IIS, just requires a few more atemts to show
this message.
After I close all IE instances or restart IIS, everything works fine again.
I have tried ignore_user_abort(1), sending expire headers, readfile()
instead of
fpassthru() etc but the problem persists.
Nothing changes with older versions of php or IE.
This problem does not happen when using Netscape (any version)
or download managers.
Similar script written in perl does not have the same problem.
Please help. It is a very-very late to switch to another scripting language
for this project (even using perl or asp for the download part requires a
great
deal of work).
John Chronakis
--- End Message ---
--- Begin Message ---
I do not know very much about MySql or PHP but need to build a pretty
complex database and script. I need a program like (I hate to say this)
Front Page or UltraDev that will allow me to do it visually. I am on a
Mac but can run the software on a PC. I hate Front Page so I hope nobody
says that. Anybody know of anything like that? I have the whole project
in my head and can explain it in detail if I need to. If this program is
written in php that would be awsome!
Thanks.
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Josiah Wallingford wrote:
>I do not know very much about MySql or PHP but need to build a pretty
>complex database and script. I need a program like (I hate to say this)
>Front Page or UltraDev that will allow me to do it visually. I am on a
>Mac but can run the software on a PC. I hate Front Page so I hope nobody
>says that. Anybody know of anything like that? I have the whole project
>in my head and can explain it in detail if I need to. If this program is
>written in php that would be awsome!
>Thanks.
Are you looking to hire someone?
PHP is a scripting language, and as such you'll have a hard time finding a
gui editor that can do "everything" you need done. Everytime I see or
hear about a new "PHP" editor, I go check it out. And in every case
so far, after a few hours or less, I find myself uninstalling it and going
back to using vim and editplus.
Learn the code or hire someone, not much way around it else.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Hi there, I have a few java scripts that have some verables that I wish to
pass along to my PHP scripts. Any ideas where to start.
Oh yah and noting to do with PHP ------
Can anyone give me a small java script that will pop up a 400x400pix window
when a button is clicked ... can't wortk that out
--- End Message ---
--- Begin Message ---
Variables can only be passed to a PHP script via POST or GET. So if you
want to pass JavaScript variables to a PHP script, you must do it that
way.
For your second question, look for the window.open() function in
JavaScript. Your code would look something like this:
< form >
< input type="button" value="Press Me"
onClick="javascript:window.open(height=400,width=400,other parameters);"
>
< /form >
You must include the form tags for the button to render properly in
Netscape.
On Sat, 2002-03-02 at 12:11, Philip J. Newman wrote:
> Hi there, I have a few java scripts that have some verables that I wish to
> pass along to my PHP scripts. Any ideas where to start.
>
> Oh yah and noting to do with PHP ------
>
> Can anyone give me a small java script that will pop up a 400x400pix window
> when a button is clicked ... can't wortk that out
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Sliante,
Richard S. Crawford
mailto:[EMAIL PROTECTED] http://www.mossroot.com
AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford
MSN: [EMAIL PROTECTED]
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupery
"Push the button, Max!"
--- End Message ---
--- Begin Message ---
How can I use fopen to retrieve just one html table out of a whole web page.
I need to extract just this table (shown below) from this web page:
http://quotes.nasdaq.com/quote.dll?page=multi&mode=stock&symbol=drooy
Thanks Craig
***********************************************
<table border="0" cellspacing="0" cellpadding="0" width="578">
<tr>
<td nowrap >
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td align="left" width="100" rowspan="2" class="logoFont">
<img
src="http://a676.g.akamaitech.net/f/676/838/1h/nasdaq.com/logos/DROO.GIF"
border="0" align="absmiddle" height="40">
</td>
<td nowrap><font face="Arial, Helvetica, Verdana" size="2"><b>Durban
Roodeport Deep, Ltd.</b> DROOY</font></td>
</tr>
<tr>
<td width="247" align="right"><font face="Arial, Helvetica, Verdana"
size="2">Mar. 1, 2002 Market Closed</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td nowrap>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap width="85">Last Sale:</td>
<td align="right" width="85"><nobr><b>$ 2.76</b></nobr></td>
<td width="20"> </td>
<td align="left" nowrap width="100">Net Change:</td>
<td align="right"><nobr><b> <font color=".FF0000">0.02</font><img
src="http://a676.g.akamaitech.net/7/676/838/b801fe1d2351e8/nasdaq.com/images
/nc_down.gif" border="0" width="11"
height="10"></b></nobr> <nobr><b> <font
color="FF0000">0.72%</font></b> </nobr></td>
<td width="20"> </td>
<td rowspan="5" valign="top" align="left" nowrap>
<font face="Arial, Helvetica, Verdana" size="1">
<a
href="http://www.nasdaq.com/asp/offsite_quotes.asp?symbol=DROOY%60&selected=
DROOY%60&content=http://www.drd.co.za"><img
src="http://a676.g.akamaitech.net/f/676/838/1d/nasdaq.com/images/new_weblink
s.gif" border="0"></a> <a
href="http://www.nasdaq.com/asp/offsite_quotes.asp?symbol=DROOY%60&selected=
DROOY%60&content=http://www.drd.co.za" class="clsA">Web Site</a><br>
</font>
</td>
</tr>
<tr>
<td nowrap width="85">Today's High:</td>
<td align="right"><nobr><b>$ 2.80</b></nobr></td>
<td width="20"> </td>
<td nowrap width="100">Today's Low:</td>
<td align="right" nowrap ><nobr><b>$ 2.64</b></nobr></td>
</tr>
<tr>
<td nowrap width="85">Best Bid:</td>
<td align="right" width="85"><nobr><b>$ 2.75</b></nobr></td>
<td width="20"> </td>
<td nowrap width="100">Best Ask:</td>
<td align="right" nowrap><nobr><b>$ 2.76</b></nobr></td>
</tr>
<tr>
<td nowrap width="85">Volume:</td>
<td align="right" width="85"><b>1,551,300</b></td>
<td width="20"> </td>
<td nowrap width="100">Previous Close:</td>
<td align="right" nowrap><nobr><b>$ 2.78</b></nobr></td>
</tr>
<tr>
<td nowrap valign="top" width="85">Market:</td>
<td nowrap align="right" valign="top" width="85">Nasdaq-SCM</td>
<td width="20"> </td>
<td nowrap width="200" align="left" valign="top"
colspan="2"><b>American Depositary Shares</b></td>
</tr>
</table>
--- End Message ---
--- Begin Message ---
On Sat, 2 Mar 2002, Craig Westerman wrote:
>How can I use fopen to retrieve just one html table out of a whole web page.
>
>I need to extract just this table (shown below) from this web page:
>http://quotes.nasdaq.com/quote.dll?page=multi&mode=stock&symbol=drooy
fopen() will pull the page, yes. But then you will have to parse through
it and get just the part you want, or get rid of the parts you don't want.
You will need regular expressions and probably some string functions:
http://www.php.net/manual/en/ref.regex.php
http://www.php.net/manual/en/ref.strings.php
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Sir/Madame, i'd like to ask about PHP support for XMLDOM is it stable and where i
could find better explanation for it?
--- End Message ---