[PHP] probs with session_register() solved...

2001-04-05 Thread Christian Dechery
After about 4 or 5 posts asking for help with session_register() with no replies I finally got my array into session vars... I tried the manual, just not thoroughly enough in the users contribution section... and there was the answer to all my problems... one single sentence "in order to regis

[PHP-CVS] cvs: php4 /main php_variables.c

2001-04-05 Thread Jani Taskinen
sniper Thu Apr 5 18:50:41 2001 EDT Modified files: /php4/main php_variables.c Log: fixed typo in CVS id Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.24 php4/main/php_variables.c:1.25 --- php4/main/php_variables.c:1.24 Wed Apr 4

Re: [PHP] ob_*() functions in Win9x

2001-04-05 Thread Plutarck
I just tried it, and it seems to work like a charm on my Win98 machine (WAMP). So far I have no problems with output buffering on my machine. Test script: Should output: hi! ho! MWUAHAHA! So as far as I know, at very least version 4.0.4pl1 supports Windows. Haven't tried anything with the gz

[PHP] Addendum

2001-04-05 Thread Plutarck
Note on my example by comparing it to a similar example at zend: Note that this example requires PHP 4.0.4 (not yet released at the time of writing) or later, compiled with zlib support turned on. Earlier versions of PHP may not support the optional argument for ob_start(), and don't include the

[PHP-CVS] cvs: php4(PHP_4_0_5) / NEWS php.ini-dist php.ini-optimized /ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /main main.c php_globals.h php_variables.c

2001-04-05 Thread Jani Taskinen
sniper Thu Apr 5 19:09:44 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4 NEWS php.ini-dist php.ini-optimized /php4/ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /php4/main main.c php_globals.h php_variables.c Log: MFH Ind

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
"Steve Werby" <[EMAIL PROTECTED]> wrote: > acutally i found my problem, what was happening was that script1 that was > on the server that file resides had that file open at the same time that > scirpt2 was trying to open via http, when i change that files name, the > permissions changed, and scrip

Re: [PHP] IF this then, move to this line...

2001-04-05 Thread Wade DeWerff
this is mostly a C++ function, java has something similar as well but break would be the closest -Original Message- From: CC Zona <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, April 05, 2001 1:03 PM Subject: Re: [PHP] IF this then, move to this line... >

Re: [PHP] PHP with Win2k or Linux

2001-04-05 Thread John
Watch out for 1. file names are case sensitive on Unix. Even mysql table names are case-sensitive on Unix. 2. behaviour of environment/server variables is sometimes different. The plus side is PHP on Linux tends to be more reliable and more extensions work. Regards, John ""Frank K"" <[EMAIL P

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-05 Thread John
Hello Adrian, There are some concurrency issues with mssql if you are using mssql_pconnect. Try switching to mssql_connect. Also check to see if transactions are enabled in mssql. Your SQL insert syntax looks ok. Regards, John PS: for porting mysql to mssql, have a look at http://php.weblogs.c

Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-05 Thread Steve Werby
"Peter Kuppelwieser" <[EMAIL PROTECTED]> wrote: > I have an problem with on of our scripts, and some caching proxy servers > > the script produces output, then it does a flush(), > After this, the script does a sleep(10) and then it does a db-query without > producing html output. > > normally the

Re: [PHP] Crack extension

2001-04-05 Thread John
Hi AZ, Where can we get it, what does it do, and do we smoke it? Regards, John PS: Last is a joke, but I am sincerely curious -- what does it do? <[EMAIL PROTECTED]> wrote in message 9agj7e$7ba$[EMAIL PROTECTED]">news:9agj7e$7ba$[EMAIL PROTECTED]... > Anyone using the crack extension in PHP? >

[PHP] doubt in ob_*() functions

2001-04-05 Thread Christian Dechery
take a look at this small code: ob_start(); echo "something"; echo "something else"; $string=ob_get_contents(); ob_end_flush(); echo $string.""; shouldn't this be the output? something something else so why it outputs this? something something else something something else

[PHP] mystery line

2001-04-05 Thread Martin Skjöldebrand
It's not first of April today is it? In: "; print "TID detail view - Document #"; $sql="select * from tid_tbl where id=" . $id; $result1=mysql_query($sql, $mysql_link); $row = mysql_fetch_array($result1); echo ''; echo 'Subject' . $row["subject"] . ''; echo 'Issue/Info' . ereg_replace (1

RE: [PHP] mystery line

2001-04-05 Thread Tyler Longren
In line 3, you don't need your tags again. This is how you have it: print "TID detail view - Document #"; this is how it should be: print "TID detail view - Document #$id"; Tyler Longren -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2

Re: [PHP] doubt in ob_*() functions

2001-04-05 Thread Aaron Tuller
umm, no, you assigned $string to the output and you flushed it and you echoed $string. maybe you mean ob_end_clean()? -aaron At 12:22 AM -0300 4/6/01, Christian Dechery wrote: >take a look at this small code: > >ob_start(); >echo "something"; >echo "something else"; >$string=ob_get_contents();

Re: [PHP] mystery line

2001-04-05 Thread David Robley
On Fri, 6 Apr 2001 13:00, Martin Skjöldebrand wrote: > It's not first of April today is it? Only where you are :-) > > In: > > > print ""; > print "TID detail view - Document #"; > > > $sql="select * from tid_tbl where id=" . $id; > $result1=mysql_query($sql, $mysql_link); > $row = mysql_f

[PHP] Problem with each()

2001-04-05 Thread David Minor
I recall reading this somewhere in the past, but can't find the answer after looking for a couple of hours. I am getting this warning: Warning: Variable passed to each() is not an array or object in myfile.inc on line 1 Here's what I'm doing: While doing: $each_array = each($HTTP_POST_VARS) pri

Re: [PHP] Building an array from a URL

2001-04-05 Thread Mike Gifford
Hi Joe, this would be useful if I wanted to write to a URL, but I need to read from it. Perhaps I wasn't clear in this. Mike Joe Stump wrote: > Ok - say you have this: > $foo = array( > 0 => 'joe', > 1 => 'stump', > 2 => '

[PHP] How to don´t write if exist

2001-04-05 Thread Jan Grafström
Hi! I want php to check if a word already exist and then don´t write it to the file. This is my file list.txt: car, cat, dog, ... and my php which need some more function: -- $fp = fopen("list.txt", "a"); $string = "$word".","." "; fwrite ($fp, $string); fclose ($fp); --- I want to add: If

[PHP] Passing Arrays Between Pages Using Forms

2001-04-05 Thread Mike Gifford
Hello, I've currently got a list which is generated from a single database table: http://openconcept.ca/rabble/newsfeeds.phtml I can now select from this list and be presented with a more concenced list of links into which changes can be made and summaries added: http://openconce

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-05 Thread Michael Kimsal
Hi John - Can you elaborate on the concurrency issues? Thanks. John wrote: > Hello Adrian, > > There are some concurrency issues with mssql if you are using > mssql_pconnect. Try switching to mssql_connect. Also check to see if > transactions are enabled in mssql. > > Your SQL insert syntax lo

RE: [PHP] mystery line

2001-04-05 Thread Martin Skjöldebrand
Tyler Longren wrote: > In line 3, you don't need your tags again. > This is how you have it: > print "TID detail view - Document #"; > > this is how it should be: > print "TID detail view - Document #$id"; Ofcourse, I've seen that all the time - and yet ... oh well ... a bug in the carbon base

Re: [PHP] Problem with each()

2001-04-05 Thread Jeff Carnahan
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... }print("key: $each_array[0] value: $each_array[1]"); } }When I get to an array within HTTP_POST_VARS, it prints: }key: var_name value: Array } }ok, but when I try to do an each on that array: (and maybe this is where I }am wrong) }$each_ar

Re: [PHP] mystery line

2001-04-05 Thread David Robley
On Fri, 6 Apr 2001 13:50, Martin Skjöldebrand wrote: > Tyler Longren wrote: > > In line 3, you don't need your tags again. > > This is how you have it: > > print "TID detail view - Document #"; > > > > this is how it should be: > > print "TID detail view - Document #$id"; > > Ofcourse, I've seen

[PHP] use NEWLY-ASSIGNED SESSION id?

2001-04-05 Thread Derek Sivers
My PHP script (with --trans-sid enabled) assigns a session ID for people without cookies. No big deal, right? BUT THE BIG QUESTION IS: Can I immediately know what long string PHP assigned to the session, without having to click to a different page first? I want one single PHP page to #1 - a

[PHP] fopen() redirected file & frameset file

2001-04-05 Thread Thomas Edison Jr.
the fopen() function alongwith the fgets() can easily get a line from any file containg our query and print it out using this code : however, if i open a url file which is actually being redirected to a new file...how to read that file? if $fd = fopen("http://www.to.com/nothin","r"); and this u

[PHP] fopen() Redirected File & Frameset File!!!

2001-04-05 Thread Thomas Edison Jr.
the fopen() function alongwith the fgets() can easily get a line from any file containg our query and print it out using this code : however, if i open a url file which is actually being redirected to a new file...how to read that file? if $fd = fopen("http://www.to.com/nothin","r"); and this u

[PHP] Using proxy servers with fsockopen()

2001-04-05 Thread Vlad
Hi all Is any way to open socet connections using proxy servers from php script? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP and geocities

2001-04-05 Thread Joseph Bannon
> Sure you can, but the only way I know of is to use fsockopen() and use > fputs() to mimick an HTTP connection session. Can you give me the coding for this? > To fake geocities you'll need to set the referer, I believe. Not sure what > it needs to be set to, however. What is the code for thi

Re: [PHP] PHP and geocities

2001-04-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Joseph Bannon") wrote: > > Sure you can, but the only way I know of is to use fsockopen() and use > > fputs() to mimick an HTTP connection session. > > Can you give me the coding for this? The annotated docs contain many code samples to lear

[PHP] Array of words in textfile?

2001-04-05 Thread Jan Grafström
Hi! I want to read a textfile (cat, dog, rat,) and get it like this: $namesArray = array("cat,", "dog,", "rat,"); If I can do this than I can go on and make changes in my array. Like the examples in php manual. Thanks in advance for any tips. Regards Jan -- PHP General Mailing List (http://

[PHP] function and global problems

2001-04-05 Thread Richard Kurth
I can not seem to get this figuered out I whant to run this function to pull data out of a file and thin use the data in the rest of the program. When I do this I get a Parse error: parse error in c:/httpd/htdocs/autosetup/auto/test.php on line 25 -- PHP General Mailing List (http://www.php.

Re: [PHP] Using proxy servers with fsockopen()

2001-04-05 Thread Plamen Slavov
try this $desired_agent="User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)\n"; $datei = fsockopen($proxyaddr, $proxyport, &$errno, &$errstr,30); if( !$datei ) { echo "proxy not available !"; fclose($resultfile); } else { fputs($datei,"GET $filewanted/ HTTP/1.0\n"); fp

Re: [PHP] Array of words in textfile?

2001-04-05 Thread Plutarck
If they are all in a format like that, first just read the text file with fopen/fread into one big string. Then use: $refined_string = explode(" ", $bigstring); That's the main way to do it, but the preferable way is using a regular expression with either the ereg or preg functions. -- Plutar

Re: [PHP] function and global problems

2001-04-05 Thread Plutarck
Look at the line directly above where you're parse error is. It semi-lacks part of the lower intentestional tract. That will seem funny to you tommarrow. -- Plutarck Should be working on something... ...but forgot what it was. PS: No it won't. ""Richard Kurth"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] sockets (long)

2001-04-05 Thread Joseph Blythe
Yasuo Ohgaki wrote: > set_nonblock() is in PHP C source, but not in the PHP Manual. May be it's dead? > > It seems it take one parameter (file descriptor), let us know if it works. I > might want to use it in the future :) Yasuo, There is one mention of set_nonblock() in the manual under acc

Re: [PHP] PHP and geocities

2001-04-05 Thread Plutarck
Also check out the CURL group of functions in the manual. As for code, nope. Never needed to do it, and you won't find the code you need anywhere. You'll have to write it yourself. Which is kind of the point, I thought... You'll find all the info you need in the manual under fsockopen, fgets,

Re: [PHP] Building an array from a URL

2001-04-05 Thread Plutarck
You'll probably want to play with the following function: http://www.php.net/manual/en/function.parse-url.php -- Plutarck Should be working on something... ...but forgot what it was. "Mike Gifford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > >

RE: [PHP] function and global problems

2001-04-05 Thread Richard Kurth
I don't have to wait tell tomorrow I feel funny already Thanks Richard > Look at the line directly above where you're parse error is. > > It semi-lacks part of the lower intentestional tract. > > > That will seem funny to you tommarrow. > > > -- > Plutarck > Should be working on something... > ...

<    1   2   3