It may not be the best approach, but I've always created a form that accepts
the users e-mail address and passes it to a script. The script generates an
e-mail and sends it to the listserv on behalf of the user. The listserv
sends a message to the user and confirms the subscription.
-Ed
Your approach actually seems pretty good to me. I've used two other
approaches in the past though and I'll describe them to give you some other
ideas.
Option 1: Multi-Page Form
You submit a document in stages. From the user's perspective, they click a
button to add document. This lets them
I use mod_rewrite from Apache to do what you're describing. Everything
without a period in the name gets processed by /index.php. The index.php
script knows which data to load by parsing the URL.
-Original Message-
From: Monty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002
Are you really working with actual map coordinates that include longitude
and latitude?
This seems to be a reverse approach to what I usually see. From what I've
seen, you typically display a map of the united states. Click a state to
zoom in. Have the state map divided into sections, click
Which news service are you connecting to?
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Linux Newsgroup... ('continue');
Are you sure these newsgroup work? I tried subscribing to it and got
Good question. Isn't GPS 3D? I'm guessing you're correct, but now I'm
curious.
Assuming it's a 2D-based situation, it still seems easier to use the
approach I described in the last e-mail and then somehow tie the GPS
coordinates into that system rather than base everything on GPS. You'd end
Will this work for you?
$numFields = mysql_num_fields($Results);
print table;
while ($Row = mysql_fetch_array($Results))
{
print tr;
for ($i = 0; $ $numFields; $i++)
print td.$Row[$i]./td;
);
if (isset($Row))
print $Row[0] . br;
}
print /td;
}
print /td/table;
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:18 PM
To: Lazor, Ed
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Table
Wow. That's pretty cool =) Do they allow map over-lays? For example, if
you want to display a map displaying points for each house within the
vicinity of the coordinates?
-Original Message-
From: Analysis Solutions [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:58 PM
To:
I was just checking it out. That map is awesome! What's funny is that it
even has an option to display the picture of a house at the coordinates you
specify.
Thanks for the compliment *grin* I have no idea why I didn't. Probably
just got lazy hehe My only excuse is that I think vacation
Try SourceForge.net and search for PHP banner rotation. There are several
freely available programs doing exactly what you're looking for.
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 11:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] banner rotation
You can refer to fields by their number.
$Row[3];
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL field problem
Hello
I have a problem with mysql.I create a table with a field
I'm not sure if I completely understand what you're asking, but
It sounds like one table has user information. The second table has a
record for each user and a field for the total number of points of each
user. Something like this:
Users (Table 1)
-
ID
Name
Address
etc.
session_set_save_handler()
http://www.zend.com/zend/tut/session.php
-Original Message-
How can I configure my scripts to store sessions in MySQL?
This message is intended for the sole use of the individual
It's the first option in the installation instructions. Follow the part
about installing PHP as an Apache module and you'll be set.
-Original Message-
I am reading a book about php, in its security section, it says it is more
secure, as well as more efficient when installing PHP, to
I like WYSIWYG integration. It allows me to code the page and then focus
separately on web page content. That debugger in PHPEd looks pretty cool...
too bad they don't have WYSIWYG.
-Original Message-
I agree about WYSIWYG. I use UltraDev a lot, but don't use the WYSIWYG very
much
I am too. I've developed an approach to coding with Dreamweaver that allows
me to take advantage of WYSIWYG and my own style of coding at the same time.
The MX version of Dreamweaver is supposed to add support for code snipets,
and a few other things. I'm looking forward to checking them out.
I'm definitely curious and want to check out the debugging tools,
performance analyzer, and database connectivity tools provided by PHPEd.
I get the impression most developers do not integrate coding and content.
Is this correct?
-Ed
-Original Message-
These first two things are
Is it doing this for all php based files? Have you tried a php file that
only has basic commands? Something like this:
?php
echo Hello world!;
?
-Original Message-
only display No input file specified. message.
I wonder if he's using PHP to automate sending the messages. hehe
-Original Message-
If read the earlier posts you'll find that this is the guy who was to thick
to unsubscribe himself this morning - he obviously still hasn't got it so
he's trying to get a lifetime ban.
So sad, so
You're basically paging through results. You have a SQL statement to get
the data - just limit the statement to only draw information applicable to
the page you're on. Like this:
select * from table limit 0,10;
That will select the first 10 records.
Then you can use variables.
if
It sounds like you're trying to do too many things at once. If you create a
form to accept entries, process the entries when the form is submitted.
Check each entry and only add ones that don't already exist in the database.
After that, if you want to display results, start at the beginning of
Is this what you're looking for?
http://www.php.net/manual/en/language.operators.bitwise.php
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 2:33 PM
To: php list
Subject: [PHP] slightly ot, looking for definition and possible info
link about
IMHO: This is a good thing. SPAM is a bad thing, which proliferates
without accountability.
-Original Message-
The relevant line is added by the server that RECEVIES the message, not by
your server. So you don't have any control.
I just wish RedHat's updater worked as seamlessly as Microsoft's. MUHAHAHA
;)
-Original Message-
10 out of 10 for that..
the only loopholes that everexist in development software come from
microsoft themselves.
oh yeah that reminds me
I should run my windows update again
LOL
I'm not sure if it's true or not, but someone said all data coming through
_POST and _COOKIES is filtered - making it safer than pulling the raw data
from variables.
While you're forging cookies, I'll take a few chocolate chip ;)
-Original Message-
Considering the fact that anyone can
Me too ;)
-Original Message-
i agree to that
Look at that we get an easy question and 50 people reply. Today has just
been our day for spam. *LOL* :)
This message is intended for the sole use of the
So is this a new virus?
-Original Message-
From: Rodolfo Contreras T. [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 6:30 PM
To: [EMAIL PROTECTED]; PHP List
Subject: [PHP] don't want to receive but email please
don't want to receive but email please don't want to receive
Are you trying to find out whether the person is logged in? You can also
test the cookie with the isset function.
-Original Message-
Can the $_REQUEST be trusted?? The documentation said it is the combination
of $_GET, $_POST, $_COOKIE $_FILE. If the PHPSESSID is found in
$_REQUEST,
Check HTML meta tags. I'm not certain, but I think that's what you're
looking for.
-Original Message-
Please, How do I make for my webpage expires before time?
This message is intended for the sole use of the
The only problem is that this page isn't completely dynamic. For example,
column #3 should automatically update when column #2 changes. Plus, imagine
what happens when the page and the form both become more complex.
I guess I'm just spouting off my opinion that Javascript is the easier
Thanks to everyone who contributed on this thread. It proved to be very
informative and enjoyable.
-Ed
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain
It looks like you're doing it correctly. Use phpinfo() to verify the
php.ini file being used. Maybe the system's using one other than what you
updated.
-Original Message-
From: Peter Atkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject:
I've typically seen the use of a login / cookie in tracking users and
providing security.
-Original Message-
Quick Question on Cookies vs. IP Number:
They appear to be easy to set (well at least in PHP), hence quite
easily to get around (The user of your Site simply deletes the
Cookie
From what I've seen, people use crontab do call php scripts - effectively
scheduling functions.
-Original Message-
From: Frank S. Kicenko [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 10:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Scheduling tasks
Hi,
I couldn't find anything
]]
Sent: Friday, July 05, 2002 11:17 AM
To: 'Lazor, Ed'
Subject: RE: [PHP] Session not expiring
This is what I get:
Directive Local Value Master Value
session.auto_start
Off Off
session.cache_expire
180 180
session.cache_limiter
nocache nocache
session.cookie_domain
no value no value
Any temp directory set aside for this purpose. You can create one c:\temp
or c:\temp\sessions
-Original Message-
From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Configuring the Session Function in
I have no idea of how to create postgres stored procedures, but a search on
Google brought up a lot of information that you might find helpful:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=postgre+stored+proced
ure
You can also visit their web site at http://www.postgresql.org
MySQL does in 4.0, but that's in alpha right now.
-Original Message-
Postgres supports stored procedures, triggers and views to name a few where
mysql does not...
This message is intended for the sole use of
It almost sounds as if globals is turned off.
-Original Message-
On Fri, 5 Jul 2002, Tony Tzankoff wrote:
Is it possible to pass variables in PHP on the localhost server? Is there
some kind of setting or something that I need? I am new to this and am not
sure how to go about this.
I saw that Microsoft has a Certificate Authority server package that allows
you to create your own key. Is there a way to do this in linux? In this
particular instance, it's me accessing my own web site. I'd like to encrypt
the session and I'm don't need someone to confirm anything.
Correct you can add the data as a URL parameter. Or, you could set a
cookie and use sessions.
-Original Message-
Let's say .
--clip--
Page 1 -
$data = Yes!;
header(Location: test1.php);
Page 2 -
$data = $GLOBALS['data'];
echo $data;
--clip--
This one does not
How many here feel PostgreSQL has surpassed MySQL as the better backend for
PHP? This would be based on performance (speed, scalability, etc.) and
features.
-Ed
This message is intended for the sole use of the
I can always click passed the warning instead of paying $119 for the cert
*grin*
-Original Message-
You can do this in OpenSSL on Linux. But the web browser will give a
warning message stating that the certificate is not issued by the
certificate authority.
I don't understand. What do you mean?
-Original Message-
What about PHPSESSID??? Can't use the $_COOKIE.
This message is intended for the sole use of the individual and entity to
whom it is addressed, and
Well... production with myself as the only client =) I want to encrypt my
webmail.
-Original Message-
:-) Don't tell me if you're gonna use it for production!!!
This message is intended for the sole use of
I've always used MySQL, I don't know either. I suspect they are equal in
ease of use.
-Original Message-
I dunno! Never tried it! I wonder which one is easier to work with?
This message is intended for the
Is this true? :
Session variables are tracked whether or not a visitor's browser supports
cookies. The session id is automatically appeneded to each url on the site
if the user's browser doesn't support cookies.
This represents one of the major differences between setting your own
cookies and
You're only receiving the processed results when you source the php file
from another server. In other words, it's like viewing the web page
through your browser.
-Original Message-
If the script is run over the web, you can just do a
fopen(http://www.example.com/script.php;); and
Use sessions. Create a user_id and pass that as a session variable rather
than the user's actual login and password.
-Original Message-
On my site, when a user logs in, their password is encrypted using md5() and
the username and encrypted password is then passed from page to page using
Installing the web server will create a folder on your
hard drive with pre-made web pages. Find this directory.
This is where you'll want to put your PHP files.
You can access your personal server by opening your
web browser and giving the address of
http://localhost
If you put files in the
It seems that PHP is much more powerful and would completely replace the
need for SSI.
-Original Message-
I think I misunderstood your question. You have a Perl script that returns
HTML and SSI and you want that string, returned to PHP, to be parsed by
Apache, so the SSI is evaluated,
Of course. Btw... You aren't running into a PHP limitation. You're
experiencing an issue of programming design and how to integrate different
technologies. If anything, Apache is what's limiting you, because of the
order of presedence in how it processes files.
From what you've said, you want
Are you able to do an nslookup of these domains from the server?
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Exim sendmail faults
I apologize; this may be more a question for the
people in
Richard Lynch: It's amazing to see how many helpful and informative
messages you're able to rattle off on a daily basis. You're a major
contribution to the community - Good job!
This message is intended for
It sounds like you need to give your apache account access to the database.
You can test this by logging in as root and running su - apache. You'll
be logged in as Apache; try running the commands you used to test everything
when logged in as root. You'll probably get errors that will hopefully
wow, 107megs of ram in one process is impressive. Have you checked your
php.ini max memory setting? Is there sufficient ram / swap file space? Got
enough free drive space?
-Original Message-
List,
I think I saw this one on here before...when reading/writing the
database
I get
PHP is server-side. You're discussing client-side issues. You'll need to
find a way of submitting the information to the server and then PHP can
process it from there.
-Original Message-
I am trying to get the value of a frames path into a PHP variable. Is it
possible to access DOM
Nothing will be inserted if the variable is empty, so you could just use
$firstname, $product, $date, etc. inside your letter. The main problem is
adding logic to your letter to respond appropriately based on the value of
different variables. For example:
$MailBody = ;
if (empty($firstname))
I think there were security updates in the newer version that you'll benefit
from, so it's worth your time. Check the README file for the new download.
There are notes on upgrading.
-Original Message-
Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth
my time and
It sounds like you need to use templates. I haven't played with them much
so I can't give specifics, but I hope that points you in the right direction
=)
-Original Message-
I would like to do that, but I'm not hard coding the letters myself. I'm
trying to provide a way for others (to
Why would it be quicker on the client-side? I would think you'd go with the
first option. That way the layout of your web page is maintained while the
image downloads.
-Original Message-
Do not want
img src=getdata.php?id=3 width=100 height=100
WHat I want
img
I don't understand alpha channel well enough to explain it, but I know you
can find more information over at Adobe.com and by running a Google search
for alpha channel tutorial.
-Original Message-
The idea is to create a simple glare effect by taking a white circle and
making it more
In that case, go with CWIHosting.com. They are the best I've seen yet.
-Original Message-
He is looking for a web hosting company that has what he has listed below...
This message is intended for the sole use
Send us a copy of your script so that we can help. Odds are that you didn't
specify the proper field name in your upload form.
-Original Message-
Now I'm getting this error each time I upload a file...
Warning: Unable to open 'none' for reading: No such file or directory
in
download of a modem...
Prefer if server has the load...
Steve
|-Original Message-
|From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
|Sent: 02 July 2002 21:34
|To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
|Subject: RE: [PHP] FW: Help please!
|
|
|Why would it be quicker
Portability between different databases makes a DB class beneficial. Then
again, I stick with MySQL, so I don't bother with the extra overhead either.
-Original Message-
I just don't see a cost/benefit ratio that makes sense in the DB classes.
I know it's a minority opinion, but I've
and everything is fine with it.
hey man, thanks for all your help!!
$filename = /tmp/.$userfile;
if (!copy($userfile, $filename))
{
echo something barfed.;
exit;
}
else
{
echo uploaded.;
}
Lazor, Ed [EMAIL PROTECTED] 07/02/02 04:38PM
Send us a copy of your script so that we can help. Odds
Everything going through https is encrypted. Update links to download files
and everything should go smoothly.
-Original Message-
Questions:
1. Are the files actually travelling with no encription ?
2. How can I encript them but making it transparent to the user ?
Dang. $2880 is kind of expensive! I wish they'd base licensing more on how
many copies your encoded program you sell.
-Original Message-
http://www.zend.com/store/products/zend-encoder.php
This message is
Check SourceForge.com to see what content management systems are available.
-Original Message-
To those who have used these content management systems: which one
renders pages faster, PostNuke or PHP-Nuke? I plan to set up a site on
my Linux box and want to know which one I should use.
There are benefits to this making the performance hit worthwhile in some
instances.
More info:
http://www.zend.com/zend/trick/tricks-sept-2001.php
-Original Message-
Inserting images or whatever binary data in a database does not have much
sense
The web server needs write access to where you're trying to store the files.
Check the directory permissions. Check with your ISP to make sure there are
solutions other than making the directory world writeable.
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent:
Aren't you saying that storing files on the local file system is generally
faster than using database blobs?
There are enough examples in the article and related threads to convince me
that benefits to database blobs are more than exceptions to the rule. In
fact, there are even examples where
It depends on your operating system. This is a Windows system level
configuration option. For example, in Windows 2000, you'd configure DSN's
in
Start-Settings-Control Panel-Administrative Tools-Data Sources(ODBC)
-Original Message-
I'm getting this error message...where does
What are the specs on your system? I'm wondering how much over-all system
performance is effecting your results. For example, if you have limited
amounts of ram, storing blobs in a database may end up being slower than the
local file system.
-Original Message-
I thought the performance
You guys are over-complicating this. If you want to help someone and don't
understand their question, just say so. People asking for help are usually
more than happy to provide additional information or rephrase their
question.
Be careful when using the question, Are you new to PHP?. It has
Does anyone have favorite links related to PHP security? My Google searches
have been bringing up a lot of info, but I'd like to make sure everything's
covered. My idea is to collect advice and recommendations on design, style,
and methodologies for secure PHP programming. I will be organizing
I think so. Try using double dollar signs.
$name = food;
$$name = pizza;
print $food;
-Original Message-
Can someone tell me if it's possible to create variable names from
varaible names?
This message is
It sounds like you're describing the difference between data type and data
format. In other words, jpg, bmp, and gif files are all binary data. What
makes them unique is the format of that binary data, which is why it's
necessary to specify the correct file extension to properly process the
I do what you're asking with Javascript. Lookup dynamic forms and you'll
find a lot of examples.
On Tuesday 25 June 2002 10:30 am, M.E. Suliman wrote:
I'm busy with an order form in php. How would I display a text field only
if a checkbox is checked. The reason for this is that if the user
I have an idea on how to do this. Could someone confirm whether this is a
good approach?
function grayscaletohex ($val)
{
$n = ($val * 255) / 100;// convert from range of 100 to
range of 255
$h = dechex($n);// convert decimal to hex
Have you tried this?
header(Location: $retURL);
?
-Original Message-
$retUrl = htmlspecialchars ($retUrl);
if ($retUrl != ) {
header(Location: . $retUrl);
Any ideas?
This message is
I don't know if the function exists, but it should be easy to create.
Something like this:
function replicate($Repeat, $RepeatCount)
{
$Results = ;
if ( ($RepeatCount 1) or ($Repeat == ) )
return false;
for ($i=0; $i $RepeatCount;$i++)
Please send code generating the problem.
-Original Message-
my sendmail problem is still present -- every time I try to call the
mail() function, even with the simplest of arguments (the
first three
required arguments, all three of them simple string literals:
mail('[EMAIL
I don't know the complete answer. But, in case it helps, I can tell you
that you'll need to research how to load standard web pages. In other
words, this is a general Javascript / Flash question and PHP doesn't really
play factor into your solution.
-Original Message-
how can I call
Why would this be the case? PHP is server-side and client independent...
-Original Message-
Your problem is undoubtably to do with the difference in line
endings on
mac/pc/unix.
This message is
You need to establish a relation between the two tables to complete the join
with something like:
AND G.GID = U.GID
Also, this is not a PHP related question. You should also be directing this
to the MySQL mailing list.
-Original Message-
Im having problem in getting the the
Concise is also good ;)
*gives Erik a noogie*
Erik wrote:
I was going to stay out of the thread, because people have
ways of doing
it that they are set in, but this is really the crux of it --
allow me
to extrapolate on what Dan said. Please realize that these
aren't fire
and
Check out the date() and mktime() functions.
-Original Message-
Now i want to compare the leave_from and leave_to date to find out the
number of days between!
What should i do or any function in php can provide this operation?
René,
My 10 cents:
For a monthly fee, host sites and promote your software (and updates) as
part of the service. Or, sell the software and offer upgrades at a price.
This option isn't as attractive though. It's much more expensive upfront
and means the customer will have to deal with managing
Good question. Please refer to the RedHat mailing list for assistance.
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 12:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Red Hat PHP
I'm trying to install a PHP server on Linux Red
Hey Martin, could you send me the syntax for attaching a file? I'll be
doing something like this next week and this would come in handy.
Thanks,
-Ed
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 5:58 PM
To: 'Fargo Lee'; [EMAIL
Hi Everyone,
Any idea why I'm getting this error?
Warning: setcookie() expects parameter 3 to be long, string given in *my
script* on line 2
Here's the entire script generating the error:
?php
setcookie(mytest, 1, , /);
?
The script doesn't work on a new hosting service I subscribed to, but
Thanks for your help Everyone =)
I needed the 3rd parameter set in order to specify the fourth /, because
the cookie is being set by a script located in a sub-directory. One of the
old documents I read said would work as the third parameter - and it did
on my old servers. Setting the third
Funny. I asked a very similar question the other day. Jason Morehouse was
nice enough to offer this advice:
If you use fulltext search (assuming you are using MySQL), it deals with
stop
words on its own as well as some additional search logic.
http://www.mysql.com/doc/F/u/Fulltext_Search.html
Does Dreamweaver MX have good PHP support?
Thanks,
-Ed
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and
Could you restate this question? Sorry, I don't understand what you're
asking.
-Original Message-
but the idea is another user only to start and shutdown the server.
This message is intended for the sole
So how would I in PHP say if $var == value1 then this radio
button is checked? And how do I do
it and keeping the code compact?
input type=checkbox ?php if ($var == value1) echo CHECKED;?
This message is
How necessary is this?
Very.
Don't connections close automatically after the page finishes executing?
Correct. All variables are released and all connections are closed
automatically by PHP upon script completion.
What are the general rules for closing connections and freeing query
1 - 100 of 162 matches
Mail list logo