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
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
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
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
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
"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
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...
>
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
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
"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
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?
>
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
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
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
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();
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
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
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 => '
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
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
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
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
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
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
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
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
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
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]
> 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
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
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://
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.
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
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
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
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
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,
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,
>
>
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...
> ...
201 - 239 of 239 matches
Mail list logo