, July 23, 2001 5:05 PM
Subject: [PHP] question about forum
Dear all,
I want to set up an online forum by using PHP.
But I don't have a clue.
Could somebody kind enough tell me where to start?
thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
] question about forum
Dear all,
I want to set up an online forum by using PHP.
But I don't have a clue.
Could somebody kind enough tell me where to start?
thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Hello everyone-
I need some expert advice so I turn you to all! :)
I'm am currently in the process of making 7 web sites using PHP and MySQL
backend. I'm porjecting that all of these sites combined will get a million
plus hits a month easy when it's all said and done. What I'm wanting to do
Well for myself I will better like to have the 2 computer design, 1 for
httpd and 1 for mysql, it's alway's better that way the few nano that
you lose in transit are way better then a server that do both stuff. Now
the problem (that eat a lot of time is php and mysql, doh!). So you have
optimise
So sprach »Francis Fillion« am 2001-07-18 18.07.2001 um 17:55:41 -0400 :
thing. Then an other thing is to take big table and put them in smaller
table, way faster for writing/reading (hum, I don't quite remember if
Good idea. Combined with MERGE tables, this might really boost
performance
Hello,
On my site users can submit ftp's.
Is there a way to replace the spaces between the paths?
This is what I mean:
/uploads//by/ /dennis/
must become
/uploads/4sp/by/3spdennis/
Thnx,
Dennis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
hey-
so I want to have my site so that the urls are like /index.php?page=bio
the way I made the index.php so far is just one gigantic switch
statement...is there a better way to do it?
chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 1:44 PM
To: PHP General List (E-mail)
Subject: [PHP] Question about how to do this...
hey-
so I want to have my site so that the urls are like /index.php?page=bio
the way I made the index.php so far is just one
PROTECTED]; 'PHP General List (E-mail)'
Subject: RE: [PHP] Question about how to do this...
Use a database. With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort.
Then, do mysql_query(SELECT pagetext FROM website WHERE
]; 'PHP General List (E-mail)'
[EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 3:59 PM
Subject: RE: [PHP] Question about how to do this...
Use a database. With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort
PROTECTED]
To: [EMAIL PROTECTED]; 'PHP General List (E-mail)'
[EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 3:59 PM
Subject: RE: [PHP] Question about how to do this...
Use a database. With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text
so the switch statement idea works I guess. sounds good.
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:05 PM
To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)'
Subject: Re: [PHP] Question about how to do
Yup = Try splitting the pages out into separate files. I'm betting
you'll find it easier to work with.
Ben
-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 2:02 PM
To: PHP General List (E-mail)
Subject: RE: [PHP] Question about how to do
, July 08, 2001 5:17 PM
Subject: RE: [PHP] Question about how to do this...
| Yup = Try splitting the pages out into separate files. I'm betting
| you'll find it easier to work with.
|
| Ben
|
|
| -Original Message-
| From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, July 08
Networks [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Question about how to do this...
Or even better, create a system where you can create new pages without
adding to the switch statement:
?
$page = /home/full/path/to/site/page_includes
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 9:25 PM
To: PHP General List (E-mail)
Subject: RE: [PHP] Question about how to do this...
ok so if I use this method below, or a hash table, etcand it has an
include/require statement...in those files to be included...do I need to
start
Ben Bleything [EMAIL PROTECTED] wrote:
I believe (and I'm sure someone will correct me if I'm wrong) that
whenever you 'include' or 'require' a file, it drops to regular HTML
mode... so, yes, you will need to use ?php tags at the beginning and ?
tags at the ends =
Think of the behavior of
on 7/8/01 10:58 PM, Steve Werby at [EMAIL PROTECTED] wrote:
Ben Bleything [EMAIL PROTECTED] wrote:
I believe (and I'm sure someone will correct me if I'm wrong) that
whenever you 'include' or 'require' a file, it drops to regular HTML
mode... so, yes, you will need to use ?php tags at the
Thanks, I was looking for that =
Ben
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 10:01 PM
To: 'PHP General List (E-mail)'
Subject: Re: [PHP] Question about how to do this...
on 7/8/01 10:58 PM, Steve Werby at [EMAIL PROTECTED] wrote
Hello,
I noticed there are a lot of php temp files (session files) under /tmp
Whats the best way to dealing with this...
Thanks
Andras
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Hello everyone--
I've got a general question about cookies and sessions. I was wondering if
this is how php handles sessions because this is what I want. Is it
possible to set up php so that the session id is the only thing that is set
in the cookie and then all the session data is either
Hi Jay!
On Thu, 05 Jul 2001, Jay Paulson wrote:
Hello everyone--
I've got a general question about cookies and sessions. I was wondering if
this is how php handles sessions because this is what I want. Is it
possible to set up php so that the session id is the only thing that is set
in
just
to pass the session id.. but i will if i have too..
thanks,
jay
- Original Message -
From: [EMAIL PROTECTED]
To: PHP users [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 7:36 PM
Subject: Re: [PHP] Question about Sessions
Hi Jay!
On Thu, 05 Jul 2001, Jay Paulson wrote:
Hello
I have a question. I am using PHP MySQL.
I am able to quary to DB and edit post delete through forms.
Problem. I need to be able to also send out emails when something is posted
to the databas as well as send the information that was submitted like a
recipt.
Any ideas?
Please help.
-Jason
Don't post the question in a reply and someone will see your question
- Original Message -
From: Jason brashear [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 5:34 PM
Subject: [PHP] question about forms.
I have a question. I am using PHP MySQL.
I am able to quary
I have a question. I am using PHP MySQL.
I am able to quary to DB and edit post delete through forms.
Problem. I need to be able to also send out emails when something is
posted
to the databas as well as send the information that was submitted like a
recipt.
Any ideas?
Please help.
check out the mail() function.
Tyler
-Original Message-
From: Jason Brashear [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 11:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] question about forms
I have a question. I am using PHP MySQL.
I am able to quary to DB and edit
My bosses came to me and asked me to spec out a broadcast mailer (spam box)
that clients could:
- log into
- choose a pre-approved list (clients could have multiple lists)
- choose a stored email
- send sample
- send broadcast
I know that Qmail and EzMLM
hi,
I've been driving myself bonkers trying to figure out wy this code block
does not work as it is supposed to. am hoping that someone on this list
can shed some light on it.
Whta I am trying to do is evluate two arrays. One array is populated with
a list. The other array is populated with
I think array_intersect() and array_diff() is useful for you..
http://www.php.net/manual/en/function.array-intersect.php
http://www.php.net/manual/en/function.array-diff.php
--
Yasuo Ohgaki
"Institute for Social Ecology" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hi =)
Is it possible to track a user session across multiple domains? We have
several related web sites and want to enable a user to login through one
site and end up logged in to them all. I tested and it didn't work and I'm
guessing it's a limitation of cookies. As in, a cookie created
hello!!
I have a question about variables scope!!
?php
$var = 10;
function func1()
{
func2();
}
function func2()
{
echo $var;
}
func1();
?
In the above segment, I know that, func2 won't echo anything, even I add
"global var;" in func2.
if, I modified the segment, so, that, it like
Hello Zenith,
SNIP
However, I am now doing a project, using PHP, I decide to write some
modules, for frequestly used. How ever, these module, have to use some
variables, whose scope is originally on only the upper most level.
If using these way (global all var in each function, even not the
Consider the following code:
$ary1 = array ("one","two");
$ary2 = array ("three","four");
$2d_Dimension[] = $ary1;
$2d_Dimension[] = $ary2;
// is $2d_Dimension a 2 dimensional array?
// and the next question, how to get out content of the $2d_Dimension[]
array
while ( list ( $rec_no, $ary )
-Original Message-
From: Zenith [mailto:[EMAIL PROTECTED]]
Subject: [PHP] question about multidimension array
Consider the following code:
$ary1 = array ("one","two");
$ary2 = array ("three","four");
$2d_Dimension[] = $ary1;
$2d_Dim
Hi,
I have 4 images, and I copy three of them onto one main background, these
images all have fairly different colors and as you can imagine the resulting
image looks splotchy and missing colors.
What do i need to do to make sure the resulting image looks proper?
--
David Raufeisen [EMAIL
I'm running PHP4.0.4pl1-Win32, Zend Engine v1.0.4, Zend Optimizer v1.0.0, I
tryed to run sample script for creating PDF document. It's PHP manual
script, but I get message like this:
Fatal error: Call to undefined function: pdf_new() in c:/web/pdf/pdf.php on
line 2
phpinfo.php said:
Hi,
I've been looking at using PHP but am unsure if it will do what I want.
What first attracted me to PHP is the claim that I can embed PHP code
within my html file and have it build dynamic content. Perhaps someone
on the list can confirm that ic can do as follows:
I have a web page that
Yeppers, it'll do that for you.
Cal
http://www.calevans.com
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 4:09 PM
To: php list
Subject: [PHP] question about PHP use
Hi,
I've been looking at using PHP but am unsure if it will do what I
yes, that is what PHP does best (displaying dynamic content from a
database).
- Original Message -
From: Don [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Wednesday, February 07, 2001 2:08 PM
Subject: [PHP] question about PHP use
Hi,
I've been looking at using PHP but am
Don wrote:
I have a web page that contains various graphics and text. At the
bottom of the page, I have a table of one row by two columns. Using
PHP
and MySQL (I already know that PHP can access MySQL databases), I
want to read data from a table and dynamically grow my table (add
several
Hello php-general,
Script flock.php:
?
$file_name = 'flock.txt';
for($i=0;$i1000;$i++){
if ($fd = fopen($file_name,'a+')){
if (flock($fd,LOCK_EX)){
fseek($fd,0,SEEK_END);
fwrite($fd,$i.' : '.$i."\n");
flock($fd,LOCK_UN);
}else{
die('Can not lock
Hello php-general,
This also does not work:
flock.php
?
$file_name = '/home/sitnikov/tmp/flock.txt';
if ($fd = fopen($file_name,'a+')){
for($i=0;$i1000;$i++){
if (flock($fd,LOCK_EX)){
fseek($fd,0,SEEK_END);
fwrite($fd,$i.' : '.$i."\n");
flock($fd,LOCK_UN);
I need to format decimals that are percise to the second place in the
following format:
4.00 to 4
4.50 to 4.5
4.25 to 4.25
As you can see, I just want to drop the trailing zeros, and if necessary the
decimal.
Thanks
___
Ethan Nelson, Systems Administrator
Net
Hello Ethan,
$onum=4.11440;
$onum =number_format($onum,2)+0;
echo $onum;
With this technique, you get the following:
$onum output
4.166 4.12
4.135 4.11
4.000 4
4.30004.3
Is that what you wanted? To me, it's much easier to code and use
than reg expressions and replaces.
Oops! Copied the numbers wrong. Here's are the numbers I meant
to type:
R $onum output
R 4.166 4.12
4.1166 4.12
R 4.135 4.11
4.1135 4.11
R 4.000 4
R 4.30004.3
R Is that what you wanted? To me, it's much easier to code and use
R than reg expressions and
My question is, when the user first visit, a session created, and I
register
the variable. On the second, or following hits, to use the session
variable,
I also need "session_start", but should I still need to call
session_register() for each hit?
No, once you register it, it's there unless
I have a question about session_register(), and the following is the
background
When I read a tutorial about session. I know that, once the
"session_start()" is called, it will check the session id. If it's not
valid, create a new one, and it will responible to retrieve the variable.
I also
When I first meet PHP, it still in 3.0 version. just after I bought a book
abuot PHP3, for a few weeks, PHP4 is released.
for now, I have fimilar with some basic of PHP, and I try to find some
useful tutorial about the PHP4, I fail.
I have look about the PHP manual (pdf version), I find that,
On Sat, 20 Jan 2001, Zenith wrote:
When I first meet PHP, it still in 3.0 version. just after I bought a book
abuot PHP3, for a few weeks, PHP4 is released.
for now, I have fimilar with some basic of PHP, and I try to find some
useful tutorial about the PHP4, I fail.
I have look about the
phpinfo reports that XML is 'active' but i thought xml was a client side
language? what does it have to do with the server?
thanks!
- Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
801 - 851 of 851 matches
Mail list logo