This looks like a great example to add to weberdev.
would you care to spend 3 minutes and let other PHP developers enjoy
from
your experience?
You are one click away from doing a good deed :)
http://www.weberdev.com/index.php3?GoTo=addexample.php3
Sincerely
berber
Visit
php-general Digest 2 Mar 2002 08:58:08 - Issue 1202
Topics (messages 86834 through 86886):
Re: get the median from an array of integers
86834 by: Jason Wong
86837 by: Erik Price
Re: compile php with GD2
86835 by: Hendrik
Non printable page
86836 by: Diana
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
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
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
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
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
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
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
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
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
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://phpbuildercom/columns/ying2602php3?page=1
Does
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
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
--
PHP General Mailing List
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
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
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:
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
--
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
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)
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 411
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:
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
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
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
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
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
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=multimode=stocksymbol=drooy
Thanks Craig
***
table border=0
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://quotesnasdaqcom/quotedll?page=multimode=stocksymbol=drooy
fopen() will pull the page, yes But then
Sir/Madame, i'd like to ask about PHP support for XMLDOM is it stable and where i
could find better explanation for it?
php-general Digest 2 Mar 2002 21:21:56 - 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
http://www.weberdev.com
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Sean Kennedy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Re: [PHP]
And I also suggest you BACKUP!!! :)
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 7:35 AM
To: Josiah Wallingford; PHP
Maybe this can help :
pick up an array of variables from a query string such as:
http://www.archipro.com/test.php?state=ABstate=BC
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3265
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take
I am wondering if someone could shed some light on
this aspect of PHP It might be something obvious, but
I am not able to figure it out
I have a function that returns a dynamically generated
HTML string However, I need a way to let the caller
know if that function has failed One way I thought
Hello,
I upgraded my PHP to 412 from 406
Now, twig, which uses imap, does not work just returns a popup that
says the document contained no data
I have checked other applications using php and they all seem fine Also,
pine, which uses the imap, is functioning normally as well
There was 1
Hell all,
I need a project done shortly and have already talked to some people
about this project who can offer me the services but I am interested in
all of your thoughts of scripts that already exist or you are willing to
build
Attached is an overview of what I need
--
PHP General
You aren't going to be able to build a php application with frontpage or
any other WYSIWYG HTML editor. You are going to have to type it out, the
PHP that is. If this is something that you need done right away, I suggest
you hire an experienced PHP programmer. If you don't know much about MySQL
Anyone have any ideas or similar problems?
I just built a server yesterday for IMP My PHP configure line was:
'/configure' \
'--with-pdflib=/usr/local' \
'--with-gd=/home/rasmus/gd-201' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=/usr' \
'--enable-gd-native-ttf' \
'--enable-gd-imgstrttf'
Untared php 4.1.1 into /usr/local/src/php4.1.1
Untared apache 1.3.22 into /usr/local/src/apache-1.3.22
ran ./configure in apache
there is /var/www/bin/apxs
When configuring php : ./configure --with-mysql --with-apxs=/var/www/bin/apxs
--with-xml
error occurs that says either perl is not
Anas,
I am wondering if someone could shed some light on
this aspect of PHP. It might be something obvious, but
I am not able to figure it out.
I have a function that returns a dynamically generated
HTML string. However, I need a way to let the caller
know if that function has failed. One
Hello,
Sorry about that last email apparently you cannot attach items to this
list
I need a project done shortly and have already talked to some people
about this project who can offer me the services but I am interested in
all of your thoughts of scripts that already exist or you are willing
Thanks, I redid the configure with BOTH imap and imap-ssl
It now shows up in the phpinfo
I now have another problem when the login is being deneid because of a bad
password, but this is a different problem prob not to do with php
By the way, the system i am on is alpha OSF41
thanks for your help
So - to confirm...
If upgrading from a 4.0.x up to a 4.1.x version, putting register_globals =
on in the /etc/php.ini will ensure that old code continues to run.
But in the long term (ie, in some future php version), the $HTTP_* vars will
no longer be supported.
Is this correct?
You will always be able to turn register_globals on. Completely removing
that feature would make it impossible to ever run a lot of code written
for PHP. Some will argue that this is a good thing, but ultimately it is
not for us to say.
When you turn register_globals on, $HTTP_* do not
Craig,
AFAIK you can't: fopen opens the file and leaves it up to you to read it
a character or some other chunk at a time, keeping what you want, and
leaving the rest. There is no concept of opening a file at a particular
character position, other than to write-over or write-append. (see
Thanks Rasmus,
But I'm not really sure I'm understanding. Maybe if I make the question
simpler:
currently, I'm running 4.0.4pl1... and have:
variables_order = EGPCS ; This directive describes the order
in which PHP registers
register_globals= On ;
Heres a script I wrote to pull the top viruses from antivirus.com
Hope this helps...
?php
$antivirus=file ('http://www.antivirus.com/');
unset($start);
unset($stop);
$count=0;
foreach($antivirus as $line) {
if ( ! isset($stop) ) {
if ( eregi('Top viruses', $line) ) {
Hello all,
I am a beginner of php/mysql and am looking for good books for beginners
and mostly good online php tutorials Anybody have any suggestions?
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
This is really a newbie question, but here goes
I am running PHP4 with Apache on Redhat 62
I am sure I read this somewheres, but can't find it again When I open a
webpage in a small password application that I wrote, the cursor is not on
the first text box I need to fill in, I need to click on
I have a site with logins, etc I was wondering if there's any way to see
how many users are logged in I know I could change a database and add one
to a number when a user logs in, and subtract one when they log off, but
what if they just go to another site or close their browser?
--
PHP
I have a site here that may be helpful:
http://ebdesigns1com/php/
Jeff Oien
Hello all,
I am a beginner of php/mysql and am looking for good books for beginners
and mostly good online php tutorials Anybody have any suggestions?
--
PHP General Mailing List (http://wwwphpnet/)
To
Here is three excellent tutorials. Follow through each, step by step and you
will be in the game.
Building a Database-Driven Web Site Using PHP and MySQL
http://www.mysql.com/articles/ddws/index.html
Introduction to MySQL: A MySQL Tutorial
I have a site that uses a $HTTP_POST_VARS['var_name'],
$HTTP_GET_VARS['var_name'] and $HTTP_SERVER_VARS['var_name'] all over the
place (there is more PHP in there than flat HTML :) and more than a handful
of references to $HTTP_USER_AGENT, $PHP_AUTH_*, $PHP_SELF, etc
Is there anything I
Hi All,
I am trying to develop a web site for daycare and would like to support
web cam where users(parents) can login and see what their child is doing.
I have PHP, Apache, Linux Setup. What are the things required to get me
going with this.
Looking forward for all your response.
I will be setting one up next week so should have more for you then But
there really isn't much for PHP to do here Basically you need something
like camstream to regularly create an image somewhere and then a little
meta-refresh page that reloads that image You are unlikely to be able to
I don't see how this can be a PHP problem If you say that a similar
script written in Perl doesn't cause this, then simply compare the output
of the Perl one to the PHP one and make sure they are sending the same
thing If your IE browser gets confused with the PHP version then it must
be
I've tried, and tried Reread, and reread I can't at all find out what's
wrong with these two lines of code
$SQLString = INSERT INTO Movies (Title, Actors, Review, Reviewer, Short)
VALUES ('$Title','$Actors','$Review','$Reviewer','$Short');
$cursor = odbc_exec($db, $SQLString);
I have an
Well, add this and tell us what it says:
if(!$cursor) echo odbc_error($db): odbc_errormsg($db);
right after that odbc_exec() call
*always check for errors - and when you get one, show it!*
-Rasmus
On Sat, 2 Mar 2002, Dr Shim wrote:
I've tried, and tried Reread, and reread I can't at all
Hello all,
This may be an HTML question, I'm not sure I need to start a file download
from within php The file I wish to download is named INSTALLEREXE, and is
an InstallShield setup program
I know I can use an anchor with an HREF to start a transfer: (A
HREF=INSTALLEREXE)Click here(/A), but
I did, and a rather informative error message came. I didn't know how to
debug like that. Sorry, I'm rather new to this.
It says [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT
INTO statement.
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
Well,
This is not a php question. It is a JavaScript issue. You need to add this
code to the bottom of your page:
script
document.forms[0].text_box_name.focus();
/script
--
Gaylen
PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
Ralph Jarvis [EMAIL PROTECTED] wrote in
Hello,
I would really like to upgrade to a new PHP but I am having a problem
when using 4.1.2 as a CGI script.
Here is my applicable httpd.conf for the sites that have PHP running as
a CGI:
ScriptAlias /cgi-php/ /var/www/accountname/cgi-php/
AddTYpe php-cgi .php .php3 .phtml
Action php-cgi
Don't checkboxes, if you name them all the same name, produce a comma delimited string
in php of the values selected???
such as for 15 checkboxes with numeric values would produce a string such as
,,,1314,,,18
when the form was submited?? This is the way it was handled in ASP...
As far as I know, you can't name different checkboxes with the same name
(seems odd to me to do this anyway) When you submit a form to a php
page, the php page will have a variable for each input item in your
form So if you have checkbox items named, a, b, c, and d, and
submit a form with a
Ben,
Hmm I don't really understand you question, but when I had check boxes in a
form, you have to name them all the same but the value all different For
example:
input type=checkbox name=name[1] value=value1
input type=checkbox name=name[2] value=value2
input type=checkbox name=name[3]
The form i am filling with the checkboxes has several checkbox options that
someone can select subscription types. The sub types are all generated from
a result set so that the form can grow or shrink by what is in the database
and not by what is on the html code Trying to accomplish this
On Sat, 2 Mar 2002, Leif K-Brooks wrote:
I have a site with logins, etc I was wondering if there's any way to see
how many users are logged in I know I could change a database and add one
to a number when a user logs in, and subtract one when they log off, but
what if they just go to another
On Sat, 2 Mar 2002, Anas Mughal wrote:
I am wondering if someone could shed some light on
this aspect of PHP It might be something obvious, but
I am not able to figure it out
I have a function that returns a dynamically generated
HTML string However, I need a way to let the caller
know if that
In article 001001c1c15f$22473370$0100a8c0@red5, php-general@ring-
wraithcom says
hi again,
well sorry about that, it worked when i changed it to:
/configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-curl
--with-swf=/usr/local/flash
--enable-ftp --with-gd=/usr
I recently upgraded my site from PHP 406 to PHP 412 The following
bit of code quit working:
static $navigationLinks = array (
indexphp3 = News,
downloadphp3 = Download,
linksphp3 = Links,
archived_newsphp3 = News Archives );
echo
On Sat, 2 Mar 2002, Andrey Hristov wrote:
check you php.ini if you need to change sendmail -t -i to something other.
We are still having problems with this. Doing another mailshot, the script
crawled at 1 message every 75 seconds. After starting 10 more scripts,
each script was putting out
yayy i had my virtual server upgraded to php 412!
oh wait nothings F#*ing working now!
a simple dropdown menu- leading to a page containing:
?
header(location:$location);
exit;
?
doesnt work anymore
contact forms using php_self
survey using foreach()
mailing list declaring multiple functions
Check that register_globals = On in your phpini file
On Sun, 3 Mar 2002, cyberskydive wrote:
yayy i had my virtual server upgraded to php 412!
oh wait nothings F#*ing working now!
a simple dropdown menu- leading to a page containing:
?
header(location:$location);
exit;
?
doesnt work
Hello,
I have PHP 4.1.1 installed on my apache web server, but how do apply the
patch for it? Thanks,
-GENESiS DESiGNS
-Sean Kennedy
-http://www.gdesigns.vcn.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
No one seems to be home at my favourite apache newsgroup :) so I'll ask
here.
I'm trying to reconfigure my PHPMyAdmin.
What do I add to my conf file so as in http://phpmyadmin.somehere.com/
points
to a specific directory on my (windows) drive?
For example, how would I point
75 matches
Mail list logo