I'm trying to create a function that will generate output that could go to
either a file or to the current browser directly. To do this I have something
like:
function GenerateOutput($out)
{
fwrite($out, Some stuff);
fflush($out);
}
and to call it I tried:
$stdout =
As far as I'm aware PHP does output to stdout. Whether or not we can
actually access that stream is another question, and one I don't know the
answer to.
However, I do have a suggestion... Have you looked at the output buffering
functions? They seem to implement what you're trying to do...
Thanks Richard,
I don't think the output buffering does what I want. I want to be able to do
something like this:
if( $preview_mode )
$output = fopen(php://stdout, w);
else
$output = fopen(/some/file/path/soemwhere.html, w);
Dear all
I had designed a Index.php, this page is made of different Frames by using
UltraDev.The Frame included are Top, Left and Main. In my Left Frame which i
used left.php, i had use JavaScript to make a Menu. Top Frame is a Banner
and Main is just some content. When i browse preview it, the
Maybe you should take a look at XSL
http://www.w3schools.com/xsl/
http://www.w3.org/Style/XSL/
-Original Message-
From: php dood [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 2:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] arrays
I'm trying to figure out how to parse an xml
Hey guys,
I know this has been brought up several times but can't find it in the
archives of this list.
I have some PHP 4 scripts that check the value of a logged in variable.
if the user authenticates him/her self, then the logged in variable gets
set and registered with the session. How
Dear all
Here is my Code in
Login Page!!!
?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$KT_LoginAction = $PHP_SELF;
if ($QUERY_STRING!=) $KT_LoginAction .= ?.$QUERY_STRING;
$KT_valUsername=$user;
if (isset($KT_valUsername)) {
Hi everybody,
I've a little problem with quicktime movies. I want to get the size (not
size of file, the dimensions) of a QuickTime movie. for example 300x300
Thanx a lot...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Or you can use this simply class from Manuel Lemos's site. It works with
Mysql only.
http://phpclasses.upperdesign.com/browse.html/package/366
Hi,
I need an algorithm for paging. If I have 100 pages of results, I only
want to show
Prev 1 2 3 4 5 6 7 8 9 10 Next
Where I limit the
session_register(sessionvar);
you can now assign values to $sessionvar (or whatever you've chosen to call
it). You need to register each variable and start the session at the top of
each script.
In practice it's a lot easier if you hold all your session stuff under a
single hash array, that way
Dear all
Here is the Code for my Login.php page
?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$KT_LoginAction = $PHP_SELF;
if ($QUERY_STRING!=) $KT_LoginAction .= ?.$QUERY_STRING;
$KT_valUsername=$user;
if (isset($KT_valUsername)) {
On Thursday 20 December 2001 15:37, Jon Farmer stuffed this into my mailbox:
256 bit encryption should be crackable by not too much more people than
Microsoft, the US government, China and perhaps some others with shitloads of
money that CAN dissapear (within reasonable time). Else there will
Hi,
I have problem.
Everytime that I want to send email using a PHP script from my server, it
automatically appends the domain name of my server to the From: line.
else
{
$mailheaders .= From: XYZ company\n;
$mailheaders .= Reply-To: $email\r\n;
$mailheaders .= Content-Type: text/html;
Hi,
I was wondering whenever I use sessions on a page and then I use the
back button on the browser, I get Warning page has expired. Is there
anyway to avoid this?
Thanks.
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
That's because XYZ company isn't a valid email address and sendmail fixes
the address with the name of the server. If you'd put
[EMAIL PROTECTED], you'd see that address unchanged.
Alex.
- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 21,
I am sorry to say. But it is bullshit wot you are saying.
I am quite sure that a 256 bit encryption can cracked (brute force way) by
the big players (US, MS, etc) within a reasonable time say 2 or 3 months!
And yes you can buy computers or clusters for 100.000 $. And they are 100
more
some body flood mypage how can I prevent them ?
Lo all,
I am trying to get the following script to work..
?
if ($HTTP_POST_VARS[action] == 1)
{
checklogin($HTTP_POST_VARS[user_name], $HTTP_POST_VARS[password]);
exit;
}
function checklogin($user, $pass)
{
$sid (login($user, $pass));
if ($sid != -1)
{
At 01:59 AM 12/21/2001 -0500, jtjohnston wrote:
Michael,
$fp = fopen (./users.txt, r);
while (!feof ($fp)) {
$buffer = fgets($fp, 4096);
echo $buffer;
}
fclose($fp);
Ok. But $buffer is not an array, is it? Why/what is 4096? What is !feof ?
Don't you have access to the WWW? You need to
Line 10 is?
$sid (login($user, $pass)); --- missing =
-Original Message-
From: Necro [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Login Script
Lo all,
I am trying to get the following script to work..
?
if
sorry it was rejected the first time so there might be some garbage in it
Whow, I'd have to check that :-) any crypto people here? :-) bitwise 56 is
40. Mathematically it would take a lot less time to brute force 40 bit than
it would 56 bit.
40 bit = (2^40) 1.0995116278e+12 (1.099.511.627.800
On Friday 21 December 2001 02:39, you wrote:
I believe (not sure so please clarify) that if your code was
if ($pwd == goodpwd) $lethimin = 1;
else $lethimin = 0;
the code would be secure. only setting the variable when the pass is correct
would be too easy to crack right? since I'd call the
On Friday 21 December 2001 05:59, Manuel Lemos stuffed this into my mailbox:
err if it's coming from SQL just use LIMIT
like
select * from table limit 0, 10
would give you the first 10 resulst
select * from table limit 10, 10
gives you results 11 - 20
select * from table limit 20, 10
gives you
Oh yeah. Guess I had a mental lapse there. If you are using, say, a
script downloaded from freshmeat.net and it happens to be poorly secured
then obviously the entire free world is going to know how to exploit your
copy of itduh
Actually that's exactly what I had in mind.
This is your problem -- what do you expect this line to do?
$sid (login($user, $pass));
Bogdan
--
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:
- Original Message -
From: TD - Sales International Holland B.V. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 12:34 PM
Subject: [RC5] Re: [PHP] PHP / SSL | for distributed.net
for the distributed.net people
sorry this
at least you have to tell what is getting flooded...
db?
apache?
logs?
pings?
Alawi [EMAIL PROTECTED] schrieb im Newsbeitrag
00cd01c18a1a$05063440$b084a2d4@mcsh2l7jqy8bgj">news:00cd01c18a1a$05063440$b084a2d4@mcsh2l7jqy8bgj...
some body flood mypage how can I prevent them ?
--
PHP General
Manuel Lemos wrote:
For example, multi-threading. Looking at the PHP sources, I can see this
would be fairly easy to implement on some most server modules. Before I
get fried by people for suggesting this, I know there are many functions
that are not thread safe, such the ob_*
Embed as in...? To my knowledge there is no way to embed a PDF in a web page -
you can see a PDF from the browser, but I don't know how a PDF could be
embedded within an actual HTML page.
Bogdan
Webleycity wrote:
Does anybody out there know how to embed pdf in a web page
--
PHP General
May be by using IFRAME, this:
Does anybody out there know how to embed pdf in a web page
can be succeeded.
Regards,
Andrey Hristov
- Original Message -
From: Bogdan Stancescu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 3:22 PM
Subject: Re: [PHP] embed pdf.
Or, better yet, try From: XYZ company xyz@mydomain;
Bogdan
Alex Vargas wrote:
That's because XYZ company isn't a valid email address and sendmail fixes
the address with the name of the server. If you'd put
[EMAIL PROTECTED], you'd see that address unchanged.
Alex.
- Original Message
Dear list,
Does anyone know how the internals of create function works?
$test = create_function('blah','$arg,$arg2',$code);
Does it really create the function in $test; or creates it a global function
and references it to $test
And further more,
is it very SLOW?
Warm regards,
Emile Bosch
Why do you need this? To my knowledge you get the same behaviour with
?
function create_function()
{
[body]
}
$test=create_function;
$test;
?
Bogdan
Emile Bosch wrote:
Dear list,
Does anyone know how the internals of create function works?
$test =
Thank you for you interest,
I need to know this because am building an CMS package..
and create function create functions on the fly which can come in handy very
much..
My questions was wheter create_function the PHP tag, slow is or not... hope
someone can
help me out here..
Warm regards,
Nope
$test();
Regards,
Andrey
- Original Message -
From: Bogdan Stancescu [EMAIL PROTECTED]
To: Emile Bosch [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 3:43 PM
Subject: Re: [PHP] Question about CREATE_FUNCTION
Why do you need this? To my knowledge you get
Hi! I'm having some problems with checkboxes at the moment, and i'd be glad if you
could help me solve it... i'll give a brief explanation of the situation first so that
you can understand what i'm talking about :-)
I have the tables 'User' (containing userid,etc), 'Category' (containing
On Friday 21 December 2001 11:48, Peter stuffed this into my mailbox:
You probably have masquerading on I think. I believe it's the DM tag in the
sendmail.conf
off record
I think you want to use this for spam. since else it's pretty useless to send
email from a non-existing domain which XYZ
This is what I got back so far from RC5 where there are crypto experts. And
as the guy from GMDI? i forgot, something like that .nl, pointed out, it also
matters whether it's SSL2 or SSL3 40bit encryption if I'm not mistaken. Hope
you can do something with this info.
Appearantly, like stated
while ($row = mysql_fetch_array($result))
{
echo $row[name];
list($checked)=mysql_fetch_row(mysql_query(select user_id from User_Category where
user_id='$current_user' and category_id='.$row[category_id].'));
$checked=$checked? checked:;
echo 'input type=checkbox name=cat[]
Ummm, though of this after I sent the e-mail: you may even perform the line after
list($checked)... with an if in the query and skip the line altogether. But that may
be a little too much... :-)
Bogdan
Bogdan Stancescu wrote:
while ($row = mysql_fetch_array($result))
{
echo
Ususally when someone needs to select last row in a table (s)he do:
select * from some_table order by some_field desc limit 1;
but there is another possible solution for mysql :
?
mysql_free_result(mysql_query('select @a:=max(member_id) from memberInfo'));
$res=mysql_query('select * from
I wrote this because maybe the ordering is more expensive than 2 queries (one one
indexed field possibly).
Regards,
Andrey
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 5:18 PM
Subject: [PHP] last row in the table
I have no problems using fopen to open up a long
file name under Win2k Pro...
$fp = fopen(C:\WINNT\Temp\adodb_9002b91d2d52c10124c949e2b415a980.cache, r);
I notice in the example you give your file has a trailing
space, not sure if that would throw things at all.
Have you tried using *$array
Try this :
$fp = fopen(C:\\WINNT\\Temp\\adodb_9002b91d2d52c10124c949e2b415a980.cache, r);
HTH,
Andrey
- Original Message -
From: Garth Dahlstrom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 5:24 PM
Subject: [PHP] Re: Issues with fopen long file names?
I
set From: like this -
$mailheaders .= From: XYZ Company [EMAIL PROTECTED]\n;
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 4:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Sendemail appends domain to mail function
Hi,
I have problem.
?php
$test='htmlspecialchars';
echo $test('html');
?
Produces :
lt;htmlgt;
Regards,
Andrey
- Original Message -
From: Alexander Skwar [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 5:35 PM
Subject: Re: [PHP] Question about
I've installed authenification by
$PHP_AUTH_USER and $PHP_AUTH_PW
which works fine with my browser (IE NS)
on a win98 box. It keeps the
login even if I switch to another
protected page (same user, same pw)
On a Win2k Machine the authentication
works fine on the first page, but when
I
this has been covered before on the newsgroup, never the less.
this is because php sends the no-cache header when using sessions. try it.
sniff the line and run the same page with sessions and then without
sessions, you can see the different headers. you can get around this by
sending a cache
insted of
if ( $isloggedin )
user logged in
do
if ( $HTTP_SESSION_VARS['isloggedin'] )
user is logged in
--
Chris Lee
[EMAIL PROTECTED]
Steve Maroney [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey guys,
I know this has been brought up
Hi PHP users,
I have a couple of PHP scripts that generate dynamic content for a website.
Now the admin of this website should be able to burn a CD of its pages, so I
wrote another PHP script which calls the CGI PHP executable to get the
content and write it down, like this:
$content =
look at the output bufering functions.
http://php.ca/manual/en/ref.outcontrol.php
--
Chris Lee
[EMAIL PROTECTED]
Paul H. Breslin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm trying to create a function that will generate output that could go to
wow sessions and cookie on the same page? why dont you just use one or the
other? I pref sessions. never the less.
your not setting the exp, path, or domain in your setcookie() you must do
all those.
setcookie('name', 'chris lee', time()+84700, '/',
'www.mediawaveonline.com');
--
Chris Lee
Or, to actually prove your point in the original e-mail (I checked it and
you're right):
?
function echotest()
{
echo(Testing);
}
$test=echotest;
?
If you now try ? $test; ? it won't do anything -- as you said, ? $test();
? is the proper code.
Something worth mentioning is that
Hi,all
when i configuring Php 4.0.6 with gd and libpng support i get an error like this:
...
checking for the location of libpng... yes
checking for png_info_init in -lpng... no
configure: error: libpng not found!
All help are liked well.Thanks
hmm, i remember not too long ago, people were suggesting a new logo for php...
wondering why nobody\'s discussing it now? or am i missing something?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
I have PHP on windows 2000 web server
I would like to remote to a MS SQL database on another web server.
I tried something like:
?php
$h = server adr;
$u = user;
$p = passw;
$b = db;
$connexion = mssql_connect($h, $u, $p);
mssql_select_db($b);
$sql = select * from test;
$result
array_walk($ar, array($object, 'methodname'));
- Original Message -
From: Jeff Levy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 1:17 PM
Subject: [PHP] array_walk() + class methods
| I'd like to call a class method with array_walk(). Is this
Hello all,
I have a PostgreSQL database that is storing The Bible. It has 31,103
records in it and I have a PHP page executing this query:
SELECT
books.book_name, bible.chapter, bible.verse, bible.versetext
FROM asv_bible bible, book_bible books WHERE bible.book = books.id ORDER BY
random()
i think the conversation lost momentum over the last weekend, i would like to
interject some
thought onto the subject, that someone who designs logo's as a job told me about the
process. the
process wasnt setup for success if the people that are responsible for php needed to
drive the
some good packet filtering rules should take care all of that.
On Fri, 21 Dec 2001, Daniel Masur wrote:
at least you have to tell what is getting flooded...
db?
apache?
logs?
pings?
Alawi [EMAIL PROTECTED] schrieb im Newsbeitrag
I believe fork is very expensive in terms of performance.
One should consider that in the case of server modules (ISAPI in
particular) a huge overhead is incurred when forking. I better
alternative would be the vfork call. Or better still, the __clone call.
Do you know of any ways to implement
One thing that I do know is dangerous is deleting rows based on an
integer field with an unprocessed value;
Example: Delete row script
?
if($delete $id){
delete from mytable where id = $id;
}
?
By simply appending an all inclusive sql clause.
$id = 21421 or 1 = 1;
Ca-Boom! The
Yes, that's a very good one I didn't think of!
One thing that I do know is dangerous is deleting rows based on an
integer field with an unprocessed value;
Ca-Boom! The entire table has been deleted. Don't you feel dumb!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi
The most insecure part of entering a password in a web
form is when you click submit and your password is
sent in plain text form to your next PHP script.
Is there any way around this without using JavaScript?
How secure is it to use HTTP_AUTH?
Cheers
--jaa
Is it possible to have a .php file parse SSI's? I tried adding .php as a
SSI file but it overwrote the php type, and wouldn't display PHP. And
vice-versa. If not, i'd hafta write a php script that executes a program,
and take the output from that program and parse it, which I don't know how
to
Hi,
You dont have the book field in the asv_bible table indexed. Use this to
index it
CREATE INDEX myindexname ON asv_bible(book);
(the primary key fields are ok because PostgreSQL creates a unique index to
implement the PRIMARY KEY constraint).
Hope that helps :)
--
Shane
I have a
Hi Nick,
No, this isnt possible - but the constructs in PHP should allow you to do
anything you can do with SSI just as easily.
--
Shane
On Friday 21 Dec 2001 5:45 pm, Nick wrote:
Is it possible to have a .php file parse SSI's? I tried adding .php as a
SSI file but it overwrote the php
JavaScript doesn't implement any kind of one-way hashing. But that's for a
good reason: suppose JavaScript encoded your password and sent it encoded to
the server. The in-between hacker would retrieve the encoded password as it
is sent to the server and simply pass that as the password - he
Hello Jack,
I'm not sure I follow exactly what you are doing but I think you can
make this work by passing the variable data in all url links to each
php page in the frameset - frame tags. I haven't found a limit to
the number of times these links can be nested.
The other issue that might
You might consider converting users.pass to one of the various DB formats
so that you can do a direct lookup on $user.
And, move the check for !isset($PHP_AUTH_USER) outside of the while loop.
If that condition is going to be true, there's no reason to even bother
opening the file.
On Fri, 21
As a side note, that's obviously the most insecure part of entering the
password because it's the only time you enter the password. :-)
The most insecure part of entering a password in a web
form is when you click submit and your password is
sent in plain text form to your next PHP
Well the include line I needed was this:
!--#include virtual=/cgi-bin/ssirand.cgi?REGION=Sports --!
That didn't work since the filetype is PHP. After some searching on the
developers website I came across a posting for getting the thing to work on
PHP3, so I tried it (even tho i'm using
Another way I validate input is by using settype();
For instance:
settype($id, integer);
I use addslashes and settype on all data coming from a browser that ends
up being using in a query.
(abs will convert negative numbers, which may be what you want, but then
again. G)
Jaime Bozza
if he wants to burn a cd why dont you just copy the php dir onto a cd? why
do you have to parse everything? as an admin I would rather the entire dir
then the content of the executed script. plus on your side parseing every
url recursivly and getting all the images etc, what a hasle, just copy
hehe, not exactly a php question but whatever.
you have a firewall correct? if you dont, lie and say you do because no one
should be caught dead without one, and add the person to your block list.
--
Chris Lee
[EMAIL PROTECTED]
Alawi [EMAIL PROTECTED] wrote in message
hi everyone. Im trying to categorize my data from my MySQL database. Ive set
up a MySQL database with 2 tables: my categories and subcategories and
another with my data and a category id from the category table. Im a newbie
to PHP so am I on the right track??
Ultimately, I want a list of
Hiow can i do 2 hide the real Filename / Url of a file?
Ive seen it donde in lots of places...
i need this 2 show some images and hide the real Location of them
Anyone can help me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I am storing comments in a MySQL db, and want to know how to include line
breaks from multi-line input boxes.
Does anyone have any experience of doing this?
Kind Regards,
Robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Yes - implement the Nike solution: Just do it! You have no problems, simply
insert the data from the input box in the table. You may want to display the
results with nl2br() so you can see the line breaks in HTML afterwards.
Bogdan
Robin McKenzie wrote:
I am storing comments in a MySQL db,
Are you talking about multiple line input boxes from HTML forms, or from a
Visual Basic program (or some other such program)?
In both cases, the line breaks are included in the output the form posts.
However, when displaying them in HTML the linebreaks are ignored and you'd
have to use the br
Well, to do this you'll just have to write a loop that takes in every
identifier=value pair and converts them into an array of values attached
to the tag name. You'll have to parse the input character by character.
The following pseudo code might help to explain a bit:
// input[x] refers to the
Oh, and don't forget to check for the trailing tags i.e. the /report etc.
Jeremy Reed [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well, to do this you'll just have to write a loop that takes in every
identifier=value pair and converts them into an array of
Try virtual()
http://uk.php.net/virtual
Something like:
virtual('cgi-bin/ssirand.cgi?REGION=Sports');
regards,
Philip Olson
On Fri, 21 Dec 2001, Nick wrote:
Well the include line I needed was this:
!--#include virtual=/cgi-bin/ssirand.cgi?REGION=Sports --!
That didn't work
Hi,
I was just going through some Message Board system and
noticed that there is a Views column which gives how
many times the Message has been viewed.
I created a similar message board, where Messages are
stored in a MySQL DB Table. But i have no idea how to
do this, that the number of times
UPDATE $table views=views+1
Op vrijdag 21 december 2001 21:38, schreef Thomas Edison Jr.:
Hi,
I was just going through some Message Board system and
noticed that there is a Views column which gives how
many times the Message has been viewed.
I created a similar message board, where
To be exact,
update table messages set views=views+1 where id=$msg_id
Bogdan
Bas Jobsen wrote:
UPDATE $table views=views+1
picked up is counted!! Can anyone guide me as to how
this can be achieved?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
UPDATE $table views=views+1
Umm.. can you be a little more specific. I couldn't
make much sense, thought i could get the logic.
Thanks.
T. Edison jr.
Hi,
I was just going through some Message Board system
and
noticed that there is a Views column which gives
how
many times the
You could stop it coming up in the status bar by using javascript
IMG SRC=path.gif onMouseOver=JavaScript: window.status = 'Ready'
Can PHP read a set of images into a file pointer or array and then echo them
back? See the images thread from 20/12/01 in this newsgroup for how to do
IMG
thx for al the help but i need some help of a php developer i guess cuz i am
misunderstood here..
Bogdan Stancescu [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Or, to actually prove your point in the original e-mail (I checked it and
you're right):
?
Why do you draw the conclusion you're misunderstood? We are unable to answer
your question about speed -- so aren't we allowed to have a separate discussion
derrivated from your question?
Bogdan
Emile Bosch wrote:
thx for al the help but i need some help of a php developer i guess cuz i am
configure --help
ie. nope, nothing there.
uh?
This has nothing to do with compiling php!!
Rational Rose is a tool for uml modelling which can generate oo code from
uml diagrams...
Arne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I understand what you want to know (I dont know myself though) I dont see
why it should be significantly slower than any other function (unless you're
doing it millions of times in a row!!)
If it doesnt recommend using a different function in the manual, I would
keep using the one you're
I'm seeing the headers at the top of every page. Does anyone know
what's going on here? It was working fine on a different machine with
the same binaries and the same php.ini and httpd.conf
I'm using apache with the openssl patch.
thanks,
- Mark
--
PHP General Mailing List
It won't affect your database. Adding --with-pgsql just tells php to
compile PostgreSQL support and tells it where to find the postgresql
libraries.
It won't touch your database at all.
On Fri, 21 Dec 2001 [EMAIL PROTECTED] wrote:
Hello, just wondering if I compile or have to recompile php
Hello,
Vincent Stoessel wrote:
I did not know that, thank you for the info.
I just downloaded phpIDE beta and I am highly impressed with the
debugger. It say that it can do remote debugging as well. That sounds cool
but I wonder how secure it is. Zend folks, I apologize for taking so long
Hello,
Rouvas Stathis wrote:
Manuel Lemos wrote:
For example, multi-threading. Looking at the PHP sources, I can see this
would be fairly easy to implement on some most server modules. Before I
get fried by people for suggesting this, I know there are many functions
that are
Hello,
Stephano Mariani wrote:
I believe fork is very expensive in terms of performance.
One should consider that in the case of server modules (ISAPI in
particular) a huge overhead is incurred when forking. I better
alternative would be the vfork call. Or better still, the __clone call.
if you have a PHP page and you want to use SSI in it... is there a special
method?
--
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]
Add a column to your messages table called views. Whenever you read the
message (SELECT message FROM messages_table WHERE messageid='id';),
increment the column for that row (UPDATE messages_table SET views = views +
1 WHERE messageid='id';).
- Original Message -
From: Thomas Edison Jr.
Can anyone show me how to split() each line and parse to see if $user
exists?
// get contents of a file into a string
$filename = ./users.txt;
$fd = fopen ($filename, r);
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
// seperate the string into an array of lines
$linebreak = \n;
1 - 100 of 116 matches
Mail list logo