In PERL, there is a way to push images even though the HTML is already
outputted to the screen, therefore changing images, live. . . . An example
would be this particular script:
http://www.donerightscripts.com/cgi-bin/demos/sitesubmit/sitesubmitter.cgi
I am wondering how could this be done
Scratch the message. :) I was thinking of something totally different :)
Jonathan Chum [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In PERL, there is a way to push images even though the HTML is already
outputted to the screen, therefore changing images,
I am trying to find out the mime type of an uploaded file, but $file_type as
well as $HTTP_POST_FILES['file']['type'] are an empty string. What can be
the cause of this?
Could you CC the answers to my email address? Thanks for your help!
RNie
--
PHP General Mailing List
I'm developing an app in PHP whereby I need to run simulataneous routines at
once, but have some sort of control on how many instances of the childs will
be spawned and died before another batch is started.
Basically, I'm thinking of using a for loop that loops. Let's say I have 20
loops that I
Further info:
I'm on Redhat Linux 6.2. The uname output is Linux web2 2.2.13-0.13smp #1
SMP Tue Jan 11 13:26:01 EST 2000 i686 unknown.
Also, the problem goes away if I set display_errors in php.ini to Off. Can
someone explain? I'm guessing a memory overrun somewhere.
Note that on another
- Original Message -
From: Steve Walker [EMAIL PROTECTED]
To: Info [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 11:09 AM
Subject: Show of American Solidarity - Read pass on
Tomorrow is U.S. Color day. Red, White Blue should be worn in honor of
our
fellow Americans that
I wrote a PHP script to send a lot of emails, some of them with lots of
bytes that comes from a URL-fopen()'ed ASP page...
the script works fine... but when a large (I don't mean huge... just some
50k worth of HTML data) email is going to be sent, PHP crashes with an
error like this error in
Hey,
I am trying to track the terms the user typed in the search engine to find
and come to my site. How can one do this? I tried some of the Header calls,
but had no success.
Regards,
Kunal Jhunjhunwala
Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb
How about something like this:
?
if (!isset($parent)) {
$parent = 1;
}
function showmessage($parent) {
// REcursive function to display messages
global $db;
$sql = SELECT * FROM sites WHERE parentID='$site';
$r = mysql_query($sql, $db);
echo
How do you set a cookie not to ever expire even after the browser is closed?
I've tried the following:
setcookie(cookie,value);
and when you close the browser it has to set the cookie again, which i don't
want it to do.
Thanks,
jay
--
PHP General Mailing List (http://www.php.net/)
To
See the pcntl extension in CVS
On Thu, 13 Sep 2001, Jonathan Chum wrote:
I'm developing an app in PHP whereby I need to run simulataneous routines at
once, but have some sort of control on how many instances of the childs will
be spawned and died before another batch is started.
Basically,
So sprach »Andrew Perevodchik« am 2001-09-13 um 18:32:03 +0300 :
Is this a bug or feature? The only way to include
Feature. See the manual or maybe perldoc perlre.
You don't need to escape it, if you put it as the very first item, like
so:
[-A-Z0-9]
Also, why are you escaping =, %, . and _
Kunal,
Looking at the referer header will tell you the page they came from, looking
at the querystring typically of this address will normally give you an
indication of the keywords or categories which they were using.
ie,
http://www.google.com/search?hl=enq=using+xsl+in+jsp+pages
Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654
This is not a true quote from Nostradamus. Actually he died many
years ealier.
Better research it before using it as a
Max,
Unfortunately even going part way thru sending mail to someone to verify
their email address doesn't guarantee that it is a valid email, the
accepting SMTP server may or may not verify the recipient user in realtime,
it may que it and then return invalid mail a little later.
Lukas
Max
Eddie Shipman wrote (quoting Kunal Jhunjhunwala):
Two brothers torn apart by Chaos, while the fortress
endures, the great leader will succumb , The third
big war will begin when the big city is burning -
- Nostradamus 1654
This is not a true quote from Nostradamus. Actually he died many
So sprach »Lukas« am 2001-09-14 um 09:12:14 +1200 :
accepting SMTP server may or may not verify the recipient user in realtime,
it may que it and then return invalid mail a little later.
That's right, yes - but in the more-and-more becoming rare case, that it
rejects it, it's known that it's a
Hello all! I am switching a variable to check if a user is logging in or logging
out. If the value of the variable is logout, I want the user to logout, i.e:
case logout:
session_unset();
session_destroy();
$AuthErr = FONT SIZE=-1 COLOR=redSession Terminated/FONT;
break;
What is
I am trying to get SWF installed into PHP for a customer and I am having some problems.
I downloaded the file dist.99.freebsd.tar.Z and uncompressed the file. Then reading the
page on swf on the PHP.net website I did as one user suggested and copied the libswf.a
into the /usr/local/lib and then
I think I found the answer, but please feel free to still add anything to
this:
session_destroy() terminates the session, which cannot be started up again
until the browser is restarted...
sooo... I just removed session_destroy, and settled for using sess_unset()
to log out of a session.
using
Is there a way to do the forced download? i.e., the browser can't read the file
online(no matter whether it is .html or .txt file), instead, when he clicks the link,
he will be asked to download it.
Is there a way to do that?
Thanks ahead!
--
PHP General Mailing List (http://www.php.net/)
I'm trying to find out how to do 2 things one. I'd like to get the ip
address of the client machine so I can write it to a database. And then I'd
like to convert a number to show 2 decmials to the right like for money
etc
Thanks
Troy
--
PHP General Mailing List (http://www.php.net/)
To
Several comments, Jason.
session_destroy() terminates the session, which cannot be
started up again
until the browser is restarted...
Yes, session_destroy removes the session file that stores the values of
session variables between pages. Once gone, it cannot be accessed again
under any
Thanks for the reply Kirk!
case logout:
session_unset();
session_destroy();
$AuthErr = FONT SIZE=-1 COLOR=redSession Terminated/FONT;
break;
What is happening, is after the user authenticates and logs
in, everything
looks good, but whenever the user follows any
How do I find out with PHP who the current .htaccess user is??? Enviroment
variables?
--
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]
How do I find out with PHP who the current logged in .htaccess user is???
Enviroment
variables?
--
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
From: David Robley [EMAIL PROTECTED]
To: Peter Houchin Sun Rentals STR Manager [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] mail problem
Date: Thu, 13 Sep 2001 14:51:36 +0930
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Mozilla-Status:
Hi all,
I am switching from VBScript/ASP to PHP and have run into a problem with
HTML anchors. My page has a list of links generated from a db. The links
reference a second page, which displays multiple records from the db to
include the referenced one. I need that page to load to the
Hi!
I've made a background image devoted to all people who are feeling the
pain with the people of United States Of America.
You can find it on:
http://maniax.host.sk/special/usa/images/120901_usbk.jpg.
The world's with you,
God Bless The USA!
m.
Troy,
$REMOTE_ADDR gives you the client IP.
To convert a number to show 2 decimals use sprintf:
$money = 5;
$money_string = sprintf(%.2f, $money); // $money_string will be 5.00
Cheers,
Kelly.
-Original Message-
From: Troy Lynch [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 September
You need to set the expire time. Set it to 10 years in the future or
something.
$expire_time = time() + (86400 * 365 * 10);
setcookie(cookie, value, $expire_time);
Cheers,
Kelly.
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 September 2001 6:13 AM
On Fri, 14 Sep 2001 00:40, Peter wrote:
Hi,
This may be more of an Mysql question than a PHP question.
I am hoping that I can export an Address Book table from my Access
Database and then import that table into Mysql. I am hoping that I can
then use PHP to carry out queries on the
On Fri, 14 Sep 2001 08:59, Rebecca Donley wrote:
Hi all,
I am switching from VBScript/ASP to PHP and have run into a problem
with HTML anchors. My page has a list of links generated from a db.
The links reference a second page, which displays multiple records from
the db to include the
Help.
I'm no good at installing on unix systems.
But now i have to make a PHP4 cgi on a FreeBSD server.
The provider is still in PHP3. Yes, shame shame. xs4all.nl
website is at /usr/local/WWW/www.ourname.org/WWW
mysql works at /home/j/j_ourname/mysql
i tried
configure
I have a PHP page called index.php. It looks and works fine when I browse
directly to this file. However, when index.php is set as the default
document in Netscape Suitespot, the same page doesn't work properly when
browsing to the domain. No error message, just a nearly blank page. This is
Usually yould have a quota set by your admin, to see how much space you have
used and how much is left just type quota at the command prompt. Unless you
are the admin?
- Original Message -
From: Chrisy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 5:59 PM
whats wrong with the code below?
function bubblesort($vetor,$tam)
{
$trocou=true;
$i=$j=0;
while($trocou)
{
$trocou=false;
for($j=0; $j$tam-$i; $j++)
Phillip and David,
The output control functions worked perfectly. You saved me many hours of
frustration and wasted time. Thanks so much!
Rebecca
From: David Robley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Rebecca Donley [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP]
*Removal Instructions at bottom
MAKE $20,000 in $5 Bills in weeks Using Paypal
The e-mail Letter using PAypal not slow postage
I want to offer this program to everyone I have had
contact with or have sponsored into a program. You may or
may not be interested. Just thought I'd pass it along
Is it acceptable to post announcements of software (PHP scripts) that one
wishes to make public here?
--
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:
Hi,
I am thinking of a program that will search many different freeboards , find the
data,and show the result in my site.I dont want the links to point to the orginal site.
ie.Matter from other site will shown in my site in my flavour.
Have any idea of how to go about it ?
Thankx in advance,
2 queries is ok imho, but let the database do all the work ;)
The first query should be a select count (*) QUERY for a count.
The second query should be the actual QUERY.
Eg something cut 'n' pasted from some code of mine (not nice, but hey ;) )
--
$db =
http://www.time.com/time/nation/article/0,8599,174659,00.html
maybe I'm wrong, but don't you need a return value?
- Original Message -
From: Christian Dechery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 08, 2001 2:24 AM
Subject: [PHP] is PHP crazy, or am I?
whats wrong with the code below?
function bubblesort($vetor,$tam)
Worth reading
Written by Leonard Pitts, a writer for the Miami Herald.
Published Wednesday, September 12, 2001
We'll go forward from this moment.
It's my job to have something to say.
They pay me to provide words that help make sense of that which troubles the American
soul. But in
I have a web page that is generated by a php script and on this page
there are several html text entry slots such as
echo bSpecial Notes:/binput name=\specialNotes\
size=\65\$prodNotes;
on one page. I fill in several of these input slots with default
values, but there are about 3-4 that require
So sprach »Tom Carter« am 2001-09-14 um 03:58:50 +0100 :
maybe I'm wrong, but don't you need a return value?
No, he doesn't . Have a look at the 1st parameter.
PS: Fullquotes are not necessary.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
So sprach »Zhu George-CZZ010« am 2001-09-13 um 17:46:13 -0500 :
Is there a way to do that?
Yes, send a bogus filetype, maybe something like
application/x-download.
PS: Please keep your lines below ~72 characters.
Thanks ahead!
Yep.
Alexander Skwar
--
How to quote: http://learn.to/quote
So sprach »Jay Paulson« am 2001-09-13 um 15:13:15 -0500 :
How do you set a cookie not to ever expire even after the browser is closed?
You don't. All you can do is to set it for a VERY long time (max: 37
years now, I suppose). The third parameter sets when the cookie is to
expire.
-
So sprach »Kurth Bemis« am 2001-09-13 um 10:32:21 -0400 :
the PHP equiv is include('filename')
Well, no, the equiv is readfile.
read the manual -
You too.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:
On Fri, 14 Sep 2001 14:53, Andrew V. Romero wrote:
I have a web page that is generated by a php script and on this page
there are several html text entry slots such as
echo bSpecial Notes:/binput name=\specialNotes\
size=\65\$prodNotes;
on one page. I fill in several of these input slots
So sprach »Crawley« am 2001-09-13 um 19:17:18 +0100 :
I take it php dosent have a dlopen func for opening shared librarys. I
suppose if you dont have one. why ?
You suppose wrong.
- php.net/dl
Also can I turn off the output of headers, so that I can use it as a
general-purpose
On 14-Sep-2001 Andrew V. Romero wrote:
I have a web page that is generated by a php script and on this page
there are several html text entry slots such as
echo bSpecial Notes:/binput name=\specialNotes\
size=\65\$prodNotes;
on one page. I fill in several of these input slots with default
So sprach »murat« am 2001-09-13 um 14:34:31 +0300 :
how can i change variables that has two or more words to variables that
has + instead of blanks in that variables.
Like this: word1 word2 word3 = word1+word2+word3
$word1 . $word2 . $word3
Read the manual!
Alexander Skwar
--
How to
So sprach »Troy Lynch« am 2001-09-13 um 17:48:55 -0500 :
I'm trying to find out how to do 2 things one. I'd like to get the ip
address of the client machine so I can write it to a database. And then I'd
- php.net/ip2long
like to convert a number to show 2 decmials to the right like for money
?php phpinfo();?
Log in or whatever, and do that.
Either you see the data you need, or it's just not available.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little
ScriptAlias /php/ C:/php/
AddType application/x-httpd-php .php
Action application/x-httpd-php /php/php.exe
I'm guessing that this mechanism relies on the / to determine where/when the
end of a URL is...
Or something like that.
You may need to dig deeper into http://apache.org and see if
Add the filename to the end of the URL that they are getting.
It will look real weird, but will work for some browser versions.
I think there may also be two different forms of Content-disposition: for IE
versus Netscape.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Get rid of the @ symbols.
It's pretty weird such a short script can run out of cpu time of 30 seconds.
I can only guess that something is very wrong with where you are trying to
save the session files.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna
It pretty much means that something has so scrambled the brains of the
computer that it just ups and dies.
Well, actually, in the case of Un*x, it means that *PROCESS* dies. If this
were Windows, it would be a General Protection Fault. But it's not
Windows. The brains are all
When all else fails on browser caching, use ?x=$random
where $random is a wildly random variable.
The browser will never think it has the correct data since every link to it
changes.
The next/previous stuff is pretty-well described in the archives and code
samples.
Oh yeah: I'm not seeing
http://php.net/dl
php --help
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Crawley
I dunno nothing about Netscape Suitespot, but it sounds like you're not
getting the web-server to load index.php by default.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a
Do you have the mysql source code matching your ISP's running MySQL version
in a directory /home/j/j_ourname/mysql on the computer on which you are
compiling?...
How much space you have is probably limited by your ISP with user limit in a
system called quota
I think quota will tell you what's
header(Content-type: application/x-octet-stream);
You'll then next be asking about how to make the dialog give the right
filename:
header(Content-disposition: filname=whatever.xxx);
Except that only works on some browsers. On others it's (I think) a
different form of that header. And *some*
function bubblesort($vetor,$tam)
{
$trocou=true;
$i=$j=0;
while($trocou)
{
$trocou=false;
# You set $trocou to false here, and never reset it to true
# This loop will execute exactly once.
for($j=0; $j$tam-$i; $j++)
{
if($vetor[$j]
Try reading some of the sample robots and spiders in the code archives
linked from:
http://php.net/links.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
Try looking at ?php phpinfo();? on your upload script.
I'm guessing that if PHP isn't giving it to you, it's cuz your
browser/web-server ain't providing it...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD:
You did more than just uncompress it, no?...
I've never done it, but I assume you also need to compile the swf stuff...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a
×𾴵Ŀͻ§£ºÄúºÃ!
¡î×¢²áÓòÃû(´øVDNS)´ó·ù¶Èϵ÷
ֻҪעһ¸öÓòÃû¾ÍÄÜÏñËѺü¡¢ÍøÒ×Ò»Ñù½¨¶à¸ö×ÓÕ¾£¬¶øÇÒËæÒâ¿ØÖÆ¿Õ¼äµÄ´æ·ÅλÖÃ,ʹÄú³ÉΪÕâ¸öÓòµÄÕæÕýÓµÓÐÕß¡£
Ãâ·ÑÔùËÍÈý¸ö´Î¼¶ÓòÃû¡£ÕâÊÇÎÒ¹«Ë¾±¾ÔÂÍƳöµÄ¡°¾ø¶ÔÓŻݴóÐж¯¡±£¬×¢²á´øVDNS¹ú¼ÊÓòÃûÀúÊ·×îµÍ¼Û¡£
ÂíÉϵ½ÕâÀïÀ´×¢²áhttp://www.now.net.cn/register/
Don't they taste great?
Okay okay..
Don't they taste great?
Okay okay..
Someone at IGN has a sense of humour.
They send cookies named h2 with a value of o (water), and oatmeal
with a value of yumyum. :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Oops sorry sent that last one on accident.. real problem:
i'm using the below code
?php
header(Location: index.php);
SetCookie(password,$password,time()+3600);
SetCookie(name,$name,time()+3600);
?
Before they go to this page they enter the password and name in a form and hit submit
and
On Fri, 14 Sep 2001 15:07, Alexander Skwar wrote:
So sprach »murat« am 2001-09-13 um 14:34:31 +0300 :
how can i change variables that has two or more words to variables
that has + instead of blanks in that variables.
Like this: word1 word2 word3 = word1+word2+word3
$word1 . $word2 .
Heh, sure not related to PHP but one search engine in finland sends a
variable e with value mc2. :)
Niklas
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: 14. syyskuuta 2001 8:59
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] cookies
Don't they
i have a small problem.
?php
include(http://www.sbg.ac.at/home.htm;);
?
Warning: php_network_getaddresses: getaddrinfo failed: Name does not resolv
to supplied parameters; neither nodename nor servname were passed. in
/usr/INFO/web-docs/test.php on line 3
Warning: Failed opening
I'm not entirely positive but not sure if you can use the domain name in the
include.. in other words try:
?php
include(home.htm);
?
And you obviously cant include pages from other servers..
- Original Message -
From: Andreas Sartori [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote:
I'm not entirely positive but not sure if you can use the domain name in the
include.. in other words try:
?php
include(home.htm);
?
And you obviously cant include pages from other servers..
1) yes, you can include pages from other
Alexander Skwar wrote:
So sprach »murat« am 2001-09-13 um 14:34:31 +0300 :
how can i change variables that has two or more words to variables that
has + instead of blanks in that variables.
Like this: word1 word2 word3 = word1+word2+word3
$word1 . $word2 . $word3
Read the manual!
Ah, well shows what I know :)
- Original Message -
From: Sterling Hughes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 11:14 PM
Subject: Re: [PHP] Re: WELCOME to [EMAIL PROTECTED]
On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote:
I'm
** I asked a few of the regulars here and found no objections to this
posting **
I am making available a Guest Book program that I have written.
My KISGB (Keep It Simple Guest Book) is a guest book program that does not
require an rdbms. Fully customizable, clean, and fast. Includes
101 - 181 of 181 matches
Mail list logo