Re: [PHP] posted urls

2001-09-13 Thread murat
YESS, THAT'S THE TRUE ANSWER, THANKS LAWRENCE SHEED Lawrence Sheed wrote: > ereg_replace or str_replace perhaps? > > eg > > $something= "this is a sentence"; > > $something = ereg_replace (" ","+", $something); > > print $something; > > -Original Message- > From: Egon Schmid [mai

RE: [PHP] posted urls

2001-09-13 Thread Sterling Hughes
On Fri, 14 Sep 2001 [EMAIL PROTECTED] wrote: > ereg_replace or str_replace perhaps? > > eg > > $something= "this is a sentence"; > > $something = ereg_replace (" ","+", $something); > > print $something; > That'll work, although str_replace is faster and better... fyi, if you want to e

RE: [PHP] posted urls

2001-09-13 Thread Lawrence . Sheed
ereg_replace or str_replace perhaps? eg $something= "this is a sentence"; $something = ereg_replace (" ","+", $something); print $something; -Original Message- From: Egon Schmid [mailto:[EMAIL PROTECTED]] Sent: September 14, 2001 2:20 PM To: Alexander Skwar Cc: murat; [EMAIL PROTECTE

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-09-13 Thread nate
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: >

Re: [PHP] posted urls

2001-09-13 Thread Egon Schmid
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 >

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-09-13 Thread Sterling Hughes
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: > include("home.htm"); > ?> > > And you obviously cant include pages from other servers.. > 1) yes, you can include pages from other s

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-09-13 Thread nate
I'm not entirely positive but not sure if you can use the domain name in the include.. in other words try: And you obviously cant include pages from other servers.. - Original Message - From: "Andreas Sartori" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 13, 200

[PHP] Re: WELCOME to php-general@lists.php.net

2001-09-13 Thread Andreas Sartori
i have a small problem. 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 'http://www.sbg.ac.at/

RE: [PHP] cookies

2001-09-13 Thread Niklas Lampén
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

Re: [PHP] posted urls

2001-09-13 Thread David Robley
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

[PHP] cookies

2001-09-13 Thread nate
Oops sorry sent that last one on accident.. real problem: i'm using the below code Before they go to this page they enter the password and name in a form and hit submit and it submits to this page.. Now is there something wrong with that code? cause it doesnt seem to create the cookie. Tha

RE: [PHP] cookies

2001-09-13 Thread Jason Murray
> 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 addition

[PHP] cookies

2001-09-13 Thread nate
Don't they taste great? Okay okay..

[PHP] È«ÃæÖ§³ÖASP¡¢PHP ¡¢JSP¡¢PERL¡¢CGI¡¢Êý¾Ý¿â, ÀúÊ·×îµÍ¼Û

2001-09-13 Thread [EMAIL PROTECTED]
×𾴵Ŀͻ§£ºÄúºÃ! ¡î×¢²áÓòÃû(´øVDNS)´ó·ù¶Èϵ÷ ֻҪעһ¸öÓòÃû¾ÍÄÜÏñËѺü¡¢ÍøÒ×Ò»Ñù½¨¶à¸ö×ÓÕ¾£¬¶øÇÒËæÒâ¿ØÖÆ¿Õ¼äµÄ´æ·ÅλÖÃ,ʹÄú³ÉΪÕâ¸öÓòµÄÕæÕýÓµÓÐÕß¡£ Ãâ·ÑÔùËÍÈý¸ö´Î¼¶ÓòÃû¡£ÕâÊÇÎÒ¹«Ë¾±¾ÔÂÍÆ³öµÄ¡°¾ø¶ÔÓŻݴóÐж¯¡±£¬×¢²á´øVDNS¹ú¼ÊÓòÃûÀúÊ·×îµÍ¼Û¡£ ÂíÉϵ½ÕâÀïÀ´×¢²áhttp://www.now.net.cn/register/

[PHP] Re: SWF and PHP 4.0.6

2001-09-13 Thread Richard Lynch
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 litt

[PHP] Re: $file_type empty

2001-09-13 Thread Richard Lynch
Try looking at 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: http://l-i-e.com/artist

[PHP] Re: DATA COLLECTOR

2001-09-13 Thread Richard Lynch
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:

[PHP] Re: is PHP crazy, or am I?

2001-09-13 Thread Richard Lynch
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] > $vetor[

[PHP] Re: Forced download??

2001-09-13 Thread Richard Lynch
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 *som

[PHP] Re: dl("php_imap.so")?

2001-09-13 Thread Richard Lynch
Download the PHP source, and configure using "shared" with the --with-imap directive. You'll compile all of PHP, even though all you want is the php_imap.so file that gets save in "lib" (I think it's "lib")... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED]

[PHP] Re: make CGI in own directory on FreeBSD, error no space left on device

2001-09-13 Thread Richard Lynch
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'

[PHP] Re: Question about bizarre behavior with PHP as default document in Netscape Suitespot

2001-09-13 Thread Richard Lynch
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 l

[PHP] Re: dlopen - why ?

2001-09-13 Thread Richard Lynch
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 <[EMAI

[PHP] Re: Go and look at this shitt! The page does not refresh at all!

2001-09-13 Thread Richard Lynch
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 anyt

[PHP] Re: segmentation fault - core dump

2001-09-13 Thread Richard Lynch
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 compartment

[PHP] Re: Unknown-Error in Sessions

2001-09-13 Thread Richard Lynch
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

[PHP] Re: sending PDF to the user (www)

2001-09-13 Thread Richard Lynch
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 [EMA

[PHP] Re: further info - seg fault

2001-09-13 Thread Richard Lynch
Put this data into http://bugs.php.net You'll also need to provide whatever source code is doing this... Preferably a smaller version. It looks to me like you are calling eval or exec, and that's the line at fault, if that helps you narrow it down. -- WARNING [EMAIL PROTECTED] address is an en

[PHP] Re: "Search Engine friendly" URLs (/ instead of ? or &) not working in CGI mode

2001-09-13 Thread Richard Lynch
> 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

[PHP] Re: Logged in User?

2001-09-13 Thread Richard Lynch
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 time: http://chatmusi

Re: [PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Alexander Skwar
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 mo

Re: [PHP] posted urls

2001-09-13 Thread Alexander Skwar
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 -- H

RE: [PHP] Order of focus for text entry inputs

2001-09-13 Thread Don Read
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 "Special Notes: size=\"65\"$prodNotes>"; > on one page. I fill in several of these input slots with default > values, but there a

Re: [PHP] dlopen - why ?

2001-09-13 Thread Alexander Skwar
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 scr

Re: [PHP] Order of focus for text entry inputs

2001-09-13 Thread David Robley
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 "Special Notes: size=\"65\"$prodNotes>"; > on one page. I fill in several of these input slots with default > values,

Re: [PHP] equivelant of ASP's #include file?

2001-09-13 Thread Alexander Skwar
So sprach »Kurth Bemis« am 2001-09-13 um 10:32:21 -0400 : > the PHP equiv is include('') 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: http://www.digitalprojects.com

Re: [PHP] easy cookie question

2001-09-13 Thread Alexander Skwar
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. -> php.net

Re: [PHP] Forced download??

2001-09-13 Thread Alexander Skwar
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/quo

Re: [PHP] is PHP crazy, or am I?

2001-09-13 Thread Alexander Skwar
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) Ho

[PHP] Order of focus for text entry inputs

2001-09-13 Thread Andrew V. Romero
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 "Special Notes:"; on one page. I fill in several of these input slots with default values, but there are about 3-4 that require the user to manually type an answer. I was won

[PHP] Worth reading

2001-09-13 Thread Dallas K.
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 th

Re: [PHP] is PHP crazy, or am I?

2001-09-13 Thread Tom Carter
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(&$ve

[PHP] Time.com Interactive Memorial for the WTC Attack

2001-09-13 Thread Dallas K.
http://www.time.com/time/nation/article/0,8599,174659,00.html

[PHP] New PHP Guest Book Program

2001-09-13 Thread Gaylen Fraley
** 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 web-based

RE: [PHP] limiting rows and pages like google

2001-09-13 Thread Lawrence . Sheed
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 = mysql_conne

[PHP] DATA COLLECTOR

2001-09-13 Thread chinmay varma
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, Ch

[PHP] Is it acceptable to post GPL software releases here?

2001-09-13 Thread Gaylen Fraley
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: [EMA

[PHP] Get CASH deposited to Your PayPAl Account! Works Fast!!!

2001-09-13 Thread Tim Constable
*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

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley
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: [PH

[PHP] is PHP crazy, or am I?

2001-09-13 Thread Christian Dechery
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++)

Fw: [PHP] make CGI in own directory on FreeBSD, error no space left on device

2001-09-13 Thread Chris Schneck
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

[PHP] Question about bizarre behavior with PHP as default document in Netscape Suitespot

2001-09-13 Thread Chris Murtland
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 bizarr

[PHP] make CGI in own directory on FreeBSD, error no space left on device

2001-09-13 Thread Chrisy
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 --with-mysql=/home/j/j

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread David Robley
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 t

Re: [PHP] importing a table

2001-09-13 Thread David Robley
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 i

RE: [PHP] easy cookie question

2001-09-13 Thread Kelly Barrett
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

RE: [PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Kelly Barrett
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 Sep

[PHP] US Flag

2001-09-13 Thread Miroslav Hudak
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.

[PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley
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 selec

Re: [PHP] mail problem

2001-09-13 Thread Peter Houchin Sun Rentals STR Manager
>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-S

[PHP] Logged In User???

2001-09-13 Thread Georgie
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 PR

[PHP] Logged in User?

2001-09-13 Thread Georgie
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]

Re: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
Thanks for the reply Kirk! > > case logout: > >session_unset(); > >session_destroy(); > >$AuthErr = "Session Terminated"; > >break; > > > > > > What is happening, is after the user authenticates and logs > > in, everything > > looks good, but whenever the user follows any link, t

RE: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Johnson, Kirk
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

[PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Troy Lynch
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

[PHP] Forced download??

2001-09-13 Thread Zhu George-CZZ010
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/)

Re: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
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

[PHP] SWF and PHP 4.0.6

2001-09-13 Thread Devin Atencio
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 c

[PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
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 = "Session Terminated"; break; What is happening, is after the u

Re: [PHP] Re: Email checking

2001-09-13 Thread Alexander Skwar
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

Re: [PHP] Re: Terms used in search engine.

2001-09-13 Thread Chris Hobbs
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 di

[PHP] Re: Email checking

2001-09-13 Thread Lukas
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 Mou

[PHP] Re: Terms used in search engine.

2001-09-13 Thread Eddie Shipman
> 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

[PHP] Re: Terms used in search engine.

2001-09-13 Thread Lukas
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=en&q=using+xsl+in+jsp+pages http://google

Re: [PHP] minus in [] groups in ereg

2001-09-13 Thread Alexander Skwar
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 _

Re: [PHP] Forking in PHP

2001-09-13 Thread Rasmus Lerdorf
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. > > Basica

[PHP] easy cookie question

2001-09-13 Thread Jay Paulson
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 un

Re: [PHP] threaded forum to display replies

2001-09-13 Thread Chris Hobbs
How about something like this: \n"; if ($r) { while ($row=mysql_fetch_array($r)) { // output your message here - it'll appear // in a nested list structure with the existing // html code.

[PHP] Terms used in search engine.

2001-09-13 Thread Kunal Jhunjhunwala
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 ,

[PHP] PHP core error in mail()

2001-09-13 Thread Christian Dechery
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 e

[PHP] Fw: Show of American Solidarity - Read & pass on

2001-09-13 Thread Dallas K.
- 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 Americ

[PHP] Re: corrupted definitions

2001-09-13 Thread Doug Farmer
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

[PHP] Forking in PHP

2001-09-13 Thread Jonathan Chum
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 n

[PHP] $file_type empty

2001-09-13 Thread RNie
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 (http://www.php.net/)

[PHP] Re: "Push" Images When HTML is already outputted.

2001-09-13 Thread Jonathan Chum
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

[PHP] "Push" Images When HTML is already outputted.

2001-09-13 Thread Jonathan Chum
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 with

Re: [PHP] Email checking

2001-09-13 Thread Alexander Skwar
So sprach »Max Mouse« am 2001-09-13 um 11:28:01 -0700 : > the domain actually exists. Can anyone lend a hand? My try: function CheckEmail($adr){ // Parameter: // $adr -> Email Adress // Rückgabewerte: // TRUE -> everything fine // Else, returns array: // Array(code, part)

Re: [PHP] Array Question

2001-09-13 Thread Philip Olson
see array_slice() http://php.net/manual/en/function.array-slice.php regards, philip olson On Thu, 13 Sep 2001, dhardison wrote: > Hi, > I've got an array of items that I've sorted in descending order. I'd > like to select the first ten items only from the array to place in a graph

[PHP] dlopen - why ?

2001-09-13 Thread Crawley
I take it php dosent have a dlopen func for opening shared librarys. I suppose if you dont have one. why ? Also can I turn off the output of headers, so that I can use it as a general-purpose scripting language. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] Array Question

2001-09-13 Thread dhardison
Hi, I've got an array of items that I've sorted in descending order. I'd like to select the first ten items only from the array to place in a graph that's generated later in the script. Here's a sample array I'm trying to work with. Array ( [209.181.49.x] => 2 [64.225.143.x] =>

Re: [PHP] limiting rows and pages like google

2001-09-13 Thread Julian Wood
It's not too hard to do the next/previous through all your results, as has been shown by several people. What is a little trickier, at least when using mysql and trying to take advantage of the limit clause, is how to display how many results you have (ie 1 to 10 of 107 results). If you use t

RE: Re[2]: [PHP] minus in [] groups in ereg

2001-09-13 Thread Johnson, Kirk
> JK> Feature. By placing a "dash" next to the > JK> bracket, there is no confusion that the dash > JK> is being used to specify a range. > > Doesn't slash before dash mean that??? Could be, I don't know. I always put a dash next to the bracket, instead of escaping it with a backslash. As is oft

[PHP] Re: Beginner's books?

2001-09-13 Thread Jonathan Chum
Core PHP Programming by Leon Atkins is an excellent book IMHO. Each function comes with a clear cut example how to use it. I have the first edition and right now, I'm considering to purchase the second edition since it covers PHP 4. That was my first PHP book when I started PHP. "Lrw" <[EMAIL PRO

Re[2]: [PHP] minus in [] groups in ereg

2001-09-13 Thread Andrew Perevodchik
Hello! You wrote: JK> Feature. By placing a "dash" next to the JK> bracket, there is no confusion that the dash JK> is being used to specify a range. Doesn't slash before dash mean that??? -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Email checking

2001-09-13 Thread rm
Have you tried: http://zend.com/codex.php?CID=11 --- Max Mouse <[EMAIL PROTECTED]> wrote: > I've been looking to check the validity of an email > address when it's > entered by a person on a from. So far, I have found > many different versions _

RE: [PHP] I am making a mailing list but....

2001-09-13 Thread Michael Geier, CDM Systems Admin
It would help if you were a little more descriptive about this... Are you trying to do this in the To: field, the Cc: or Bcc: fields, actually in the body of a message, in a flat file, in a DB... flat file: $fp = fopen("filename","w"); //emails in array while ($tmp = arra

[PHP] threaded forum to display replies

2001-09-13 Thread hassan xaaji
Hi I have been coding a threaded forum. A simple one. I have this problem: I cannot show all the replies in a threaded way. I tried a recursive method which takes the messageid and I do like $messageID = $p_id +1; showMessages($messageID); This only works if the messageids are 1 2 3 4 5 6. bu

Re: [PHP] I am making a mailing list but....

2001-09-13 Thread Kyle Smith
I really need help on this one, so someone please! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Septem

Re: [PHP] File Uploads

2001-09-13 Thread Christopher CM Allen
Thanks Much Martin! --ccma > --snip-- > > good luck! > > /Martin > > -- > 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] > -- P

RE: [PHP] Beginner's books?

2001-09-13 Thread Brandon Orther
PHP Fast & Easy : http://www.thickbook.com/books/index.phtml -Original Message- From: LRW [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Beginner's books? OK, here's a question that should just make me look like a newbie and n

  1   2   >