Captcha
http://en.wikipedia.org/wiki/Captcha
On 11/1/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote:
I am wondering if any of you know what it is called when letters come up
for the user to key in for
form entry verification. Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
mething.
Thanks
-Original Message-
From: Joe Wollard [mailto:[EMAIL PROTECTED]
Sent: October 28, 2006 10:30 PM
To: Ed Lazor
Cc: Beauford; PHP
Subject: Re: [PHP] Query question
Agreed, this should go to a MySQL list. But in the spirit of helping I
think
the following should give you a good startin
Agreed, this should go to a MySQL list. But in the spirit of helping I think
the following should give you a good starting point.
SELECT `year`, COUNT(`year`) AS `count` FROM `tbl` GROUP BY `year` ASC
On 10/28/06, Ed Lazor <[EMAIL PROTECTED]> wrote:
Use the mysql list :)
On Oct 28, 2006, at
...and if you wanted to go an extra step you could try an alternate
syntax of the exact same code:
' . $day . '';
?>
Either way, Stut is correct. Don't type this out 31 times unless you
really really really like to type. ;-)
- Joe
On 10/25/06, Stut <[EMAIL PROTECTED]> wrote:
Ron Piggott (PHP)
1. mysqldump will only keep the connection open for as long as it
needs it. Once your calling script is allowed to continue mysqldump
has either exited successfully or with an error, but either way the
connection should no longer be active.
2. I don't think that would be a good idea. 30 min
ok, so if we were talking Java, perhaps you are looking for
information that allows you to build 'accessor' and 'mutator' methods?
If so, then your example should work (syntax aside). Here's another
'test' example that I just whipped up and tested that shows you can
use any method name you wish.
well, perhaps I'm not seeing what it is that you're looking for. The
page I sent you is a basic introduction to classes and OOP in PHP,
which based on the example that you've provided seemed like what you
wanted. It seems obvious that you want to learn more about OOP, but
are you trying to find a
http://us2.php.net/class
On 9/22/06, Chris Boget <[EMAIL PROTECTED]> wrote:
I read about a feature of PHP5 OOP that is something like this in a book or
a magazine a while back. But now I don't remember exactly how this works
and I can't find any reference to it in the online docs. The basic
Since Fedora is popular, can I assume that's what you're running? Even
if it's not I'll bet it's a Linux distro that's employing SELinux.
11,500 web pages agree ;-)
http://www.google.com/search?q=%22reloc:+Permission+denied%22
On 9/20/06, Kelly McCoy <[EMAIL PROTECTED]> wrote:
I am getting t
Hi AraDaen, and welcome to the list ;-)
On Sep 15, 2006, at 7:32 AM, AraDaen wrote:
Hi from Spain. This is my first post and im sure it wont be last :)
AraDaen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing Li
Easiest way: change your search form's method to GET instead of POST
- I'm sure you're not passing enough parameters to the search results
page to actually need to use POST.
On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED] wrote:
Hi,
Could somebody explain to me what to do to skip this mess
I think kOffice can read mdb files on Linux - maybe that would be a
good starting point for research. Perhaps they have built a kind of
API to allow other programs to do the same..then again, maybe not
- but like I said, it's some place to start.
On Sep 7, 2006, at 7:57 AM, Fourat Zoua
Benjamin,
Use the file() function, it will read a file then return each line as
a new element in an array.
http://php.net/file
- Joe
On 7/23/06, Benjamin Adams <[EMAIL PROTECTED]> wrote:
how would I read a file one line at a time:
something like that, I'm cofused on if I use fread, somethin
To refine that a bit, you may want to give them some code that has
been intentionally broken (simple things for the entry level
position, such as missing semicolons or curly braces etc) and watch
to see how they go about discovering the parse errors. To me, it
would be better to hire someon
well, I'm sure that if you really wanted to try to write your own
auth module in PHP you could theoretically do so - but in lieu of
that there is an open source apache module that you might want to
look into called mod_ntlm http://modntlm.sourceforge.net/
keep in mind that all this does is
For a simple OS X install you can either modify the existing
Apache/PHP install and add MySQL or use entropy's package from
http://www.entropy.ch/software/macosx/php/
On 6/25/06, Grae Wolfe - PHP <[EMAIL PROTECTED]> wrote:
It has become evident that I need some form of local testing environm
IMHO I would go with Smarty as it has excellent documentation and
would fit almost anything that the project would require. I also
think it would be a cleaner way of templating than using str_replace
() over and over again. For what it's worth, I use Smarty on almost
all of my projects, larg
(sorry for the duplicate response Parathaban, forgot to reply to the
list)
Look at example 4 from http://us3.php.net/function.mail
> $headers = 'MIME-Version: 1.0' . "\r\n";
> $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
That should get you started.
On Jun 20, 200
If you're not sure you should probably stick with mysql_connect() -
otherwise you could end up bogging down mysql with way more
connections than you need if you're not careful.
On Jun 20, 2006, at 12:34 PM, Juanjo Pascual wrote:
How can i know which of both is better to use each time?
--
I believe the manual says that ldap_connect doesn't actually make the
connection but rather it just simply sets up the connection
parameters. The actual connection doesn't happen until ldap_bind is
executed.
- or so I recall reading some where ;-)
On Jun 19, 2006, at 9:06 AM, Steve Turn
If you don't want to change the names of the files themselve from .php to
.abc then you'd need to use something like mod_rewrite for apache's HTTPD.
I'm not entirely certain as to how you'd do this, but I've included what I
normally use to hide index.php in the url. If possible I'd put this in
htt
(sorry for the dup kartikay, forgot to hit reply to all;-)
So is the file going from server to server or from a client machine to the
server? It sounds like server to server - which if that's the case you can
use headers_list() to see what your server is going to be sending out to the
other server
If you store your sessions in a database then your could gain a little mode
control over your session, but I think what you're asking is if there's a
way to tell if a user has closed the browser thus killing the session on
their side. If that's what you're asking then the answer is not going to li
PHP can't do that for you but Javascript can. Here's roughly 3 million (no
joke) examples of what you'd like to accomplish:
http://www.google.com/search?q=javascript+focus+first+input
On 4/26/06, marvin hunkin <[EMAIL PROTECTED]> wrote:
>
> Hi.
> is there any php or java script function, where i
Will,
Seems to me like you've just done it! Here's another way of doing it that
will utilize mysql_fetch_assoc() to allow your query to dictate the elements
of the array. Keep in mind, I haven't tested this, but since I'm not
entirely sure what you are asking the list, I'll offer it anyway ;-)
I could be off here, but I think he's talking about using XML to transfer
data back and forth between the flash app and the PHP app. That's just me
reading between the lines though. Maybe I'm taking too much from "PHP/XML
should be used with a client-side Web GUI to upload images, part no.,
descrip
No arguments here ;-). For what it's worth, I've used this technique just to
simply clean up the url's a bit. With that in mind, I usually don't need to
do a terrible amount of scrubbing because I'm using the variables in the url
more for navigation. So
http://www.example.com/index.php/edit/custome
I believe Kevin is on the right track there. To expand a bit, you can use
$_SERVER['PATH_INFO'] with these urls instead of $_GET to make use of the
data it contains
example for url http://www.example.com/index.php/foo/bar
produces:
/foo/bar
You can then parse this string, (generally by using th
Of course you said you're running PHP5so that won't work.
According to the site it would be best for you to use the DOM that
comes pre compiled with PHP. http://us3.php.net/manual/en/ref.dom.php
Sorry about the mix up on my part.
On 4/11/06, Joe Wollard <[EMAIL PROTECTED]
Oz,
>From your command line, try:
pecl install domxml
You'll need to be root to do so, but as long as you have PECL/PEAR
installed this should give you domxml. Remember to restart your web
server after doing so.
- Joe
On 4/11/06, Oz <[EMAIL PROTECTED]> wrote:
> Please help, I am not able to d
Marvin,
As much as we try to keep this list PHP-only I think it's hard to
ignore the ties between PHP and MySQL. Most of us learned both
technologies simultaneously. Still, you may want to put [OT] on your
future email subjects to indicate that the question is 'off topic'.
On the matter of MySQL'
Mickey,
I'm not an expert on the topic by any stretch of the imagination, but I seem
to recall reading that it's best to move everything into httpd.conf for
performance reasons. You may want to investigate that, but otherwise I don't
see anything wrong with what you're doing.
On 4/10/06, Micky H
Tedd,
I think Brad was just making some observations, he wasn't trying to be rude.
When he said that "the time differentials are too be expected." I think he
was just answering the question of why the exact same FOR loop could
possibly take different amounts of time to execute under the same condi
Frank,
It sounds like you need to run this as a job through crond. I'm not sure
what the OSX version is (maybe they have a port of crond?) but you could set
that up to execute the specific code, as root, whenever you want. As far as
I can think, and maybe Chris Shifflet can confirm/deny this, you
I just realized that I could check your version, and it appears that we've
found the problem. You're running PHP 4.3.10, so I'd suggest using the non
PHP5 work around on php.net's site.
Cheers!
- Joe
On 4/7/06, Joe Wollard <[EMAIL PROTECTED]> wrote:
>
> Tedd,
Tedd,
The only way that I can even think of this as being possible is if you call
microtime() instead of microtime(true). The former will return 'msec sec'
separated by a space which can produce a negative number because you've
essentially got two different types of measurements there. IMHO PHP sh
On 4/6/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2006-04-06 at 02:29, Joe Wollard wrote:
> > The main perk to using switch over if
> > statements is speed (Google can back this up). The reason it's faster is
> > because it's simpler by de
On 4/5/06, Ray Hauge <[EMAIL PROTECTED]> wrote:
>
> Hello World! wait, not coding... (sorry, long night)
>
> Okay, I finally finished hashing out all the logic for a very complex set
> of
> rules to determine what "type" an application should be set to. I won't
> bore
> you with the details of it,
I agree with Richard on this one. Frames should really be avoided if for no
other reason than they cause headaches like the one you have right now. ;-)
If you can't avoid them, keep it simple - just store the ID in one place,
like a session cookie. Doing so will make sure that if the session ID ge
Paul,
Try TO_DAYS(curdate()) instead - if not you can't say we didn't try! ;-)
If that doesn't work you may want to try a MySQL list.
- Joe
On 4/3/06, Paul Goepfert <[EMAIL PROTECTED]> wrote:
>
> I included the or die function on the end of my query statement. When
> I tested this on my web
el-oh-el. See, I forgot already. Good lookin' out Matt!
On 4/2/06, Matt Richards <[EMAIL PROTECTED]> wrote:
>
> oops forgot the first .. oh well! :(
>
> Matt Richards wrote:
> > quote:
> > Joe Wollard wrote:
> > Just as long as everyone knows that
Just as long as everyone knows that everything I said was all in good fun.
Next time I'll be sure to use just to be sure nothing is taken
the wrong way ;-)
On 4/2/06, Chris Shiflett <[EMAIL PROTECTED]> wrote:
>
> Joe Wollard wrote:
> > I made fun of Chris and Rasmus
this list. They both know they
_rule_so_hard_!
On 4/1/06, Kevin Kinsey <[EMAIL PROTECTED]> wrote:
>
> Stut wrote:
>
> > Joe Wollard wrote:
> >
> >> Leave poor Zouari alone! I for one think that Microsoft
> >> buying Zend would be the best thing to happen t
Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for
PHP to be what it is, he just wanted something simple and now look at it.
It's WAY to complex for an unorganized bunch of hobbyists to maintain. I
Jonathan,
Not sure how you're using fread, but here's a slightly modified version of
what's in the manual that might help:
If my understanding of this code is correct you won't be trying to load the
entire file into memory and you're not trying to store the file in a
variable. All that this sho
On Nov 26, 2005, at 12:11 PM, Todd Cary wrote:
I want to provide the user with an editor like
http://209.204.172.137/FCKeditor/_samples/php/sample01.php
Is it best to use a JavaScript based editor?
Are there some "favorites" out there or is the FCKeditor about as
good as they get?
Todd
-
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote:
Is it possible to use PHP to find out wich type of browser is in use?
Or must is this done by javascript or something else?
I would like to have a little statistic on my page that tells me what
browser is currently moet used.
Try:
-Joe W
Greetings all,
I'm running a rogue (the company knows about it but doesn't support it) web
server for my dept and I'd like to be able to authenticate users
transparently. The company is currently doing this on their own supported
Intranet servers via NTLM on IIS. All I'm really looking for here is
On Oct 26, 2005, at 12:54 AM, John Taylor-Johnston wrote:
It does what I want, but I worry 4096 may not be big enough.
Possible? Is there a way to detect the filesize and insert a value
for 4096?
$buffer = fgets($dataFile, $filesize);
Is this what it is for?
John
http://ca3.php.net/fopen
The first two results both seem pretty good at a glance:
http://www.google.com/search?hl=en&q=php5+ssh+hosting&btnG=Google+Search
On Sep 29, 2005, at 8:29 PM, Ed Lazor wrote:
Any recommendations on good host providers for PHP 5? Bonus points
if they support SSH access and a PHP compiler li
On Sep 19, 2005, at 9:45 PM, Dan Trainor wrote:
Tjoekbezoer van Damme wrote:
I've got PHP set up to the point where it will process files
ending in
.php, but I want to "blanket" the processing of PHP code under
IIS in
the same manner in which I blanket PHP code with Apache.
If anyone has
On Sep 19, 2005, at 4:36 PM, Nathan wrote:
Here's the issue. I use MySQL as my database backend. I used to
have php
running
fine and I used phpMyAdmin to do any admin functions I needed to on
MySQL.
I recently upgraded to MySQL 5.x and ever since I've gotten the
following
error messages
On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote:
bruce wrote:
i'd already asked/explained the error. to reiterate, the error i'm
getting is the error that's generated when you try to use the php
'header' function, and it throws a warning/error regarding 'headers
already being sent...'
If
I have try to use the same $db and to create a new one...
Are you trying to use the $db object inside of another function later
in the code? If so you'll need to use $GLOBALS['db'] instead.
Sorry, this is the only thing I can think of with your description
Have you tried a simple test program
Mark,
Thanks for all the help! Turns out I was right when I said my problem
may have been inexperience. Your suggestion of "DC=domain,DC=com"
worked and everything is functioning great! Thanks again!
On Sep 14, 2005, at 4:35 AM, Mark Rees wrote:
On my server I'm running:
Fedora Core 4
Ap
On Sep 13, 2005, at 4:17 AM, Mark Rees wrote:
I've looked through php.net and scoured Google for a solution to an
issue I'm having with PHP and LDAP but have so far found nothing. I'm
trying to build an intranet site that uses the company LDAP (Active
Directory really) service but I can't seem t
Greetings all:
I've looked through php.net and scoured Google for a solution to an
issue I'm having with PHP and LDAP but have so far found nothing. I'm
trying to build an intranet site that uses the company LDAP (Active
Directory really) service but I can't seem to get around the
"Operat
... an automated script that creates a static site that will
allow me to do
that?
If all you're really looking for is a static version of your site
then you could simply use wget. This will crawl all of the links on
your site and generate the static version you wanted.
On Sep 5, 2005, at 1
Graham:
Unless you need a specific font you could just do this by using pure
CSS. If you do, the image layer would be behind the text layer. The
text layer can be set to any color and (in most every modern browser)
any alpha level.
This is some translucent text
good luck!
-Joe
On Aug 31
I would first start out by dumping the values of $_POST['gmev'] by using
print_r($_POST['gmev']);
Sounds to me like you're not getting the data that your expecting
from the form for some reason. Maybe $_POST['gmev'] is an array of
null values?
-Good Luck
On Aug 17, 2005, at 12:15 PM, zedl
I haven't tested this and it's off the top of my head so don't shoot
me if I'm off track here ;-)
You could possibly use some embedded javascript to set a cookie with
the current URL stored in it. This would be easy to spoof as well,
but not quite as easy as appending ?site=xyz.
(shrug) j
To obtain a certain portion of the referring url you might look at
parse_url();
See http://us3.php.net/manual/en/function.parse-url.php
- or -
If you want to bounce the user right back to the previous page
including get variables you could just use this snippet.
On Jul 30, 2005, at 9:36
Aiguo,
To achieve good performance, I want to load the
whole dictionary into memory when the "application" starts (e.g.,
when
the web server starts...
I'm not sure how ASP works, but in PHP you can't load something into
memory when the web server starts and keep it there. PHP 'compiles'
More specifically, I'd have two frames, one of which is hidden using
css and the other that would display the content of the website. The
user would never know that there were frames on the page by looking
at it.
Just as a warning most people will tell you that putting background
music on
As always, look for someone else's existing project and see how they
did it. ;-)
http://phpsysinfo.sourceforge.net/
Good Luck!
-Joe
On Jul 23, 2005, at 9:25 AM, André Medeiros wrote:
First of all, you want to have the two values in seperate variables.
After reading the contents from the fil
I agree with Jasper here, you want to make it a point to optimize
your queries so that fewer trips are made to the database server. On
the topic of indexing, I'm curious as to how you did that and if your
using it as intended. In your query you are testing columns
`time`,`date` so you'll wa
Jon,
I'm not sure there is a way for you to do this from within PHP, but then
again I didn't think it was possible for PHP to generate a pdf without
any extra libs either ;-)
You might want to start with the pdf2* command line programs. I think
there is in fact one that will output the pdf as
After looking through sybase.com and coming up with nothing I thought
it might be better to see if anyone has already been down this road:
I've got a very old laptop with a tiny little hard drive with very
little free space on it. It's being used as a 'rogue' intranet server
and doing a suprisingl
Chase,
If you're looking for an uber easy setup you might try phptriad which
has PHP, MySQL and Apache all in one installer. I'm not sure what
versions jwynia has put into the package, but I'm assuming that you're
not using the latest and greatest of anything anyway since most hosts
seem to l
Jack,
Everything /appears/ to be in order here, but that still leaves the
actual content of the database and the actual POST data in question. If
this were my script I'd think a simple place to start troubleshooting is
your /if/ statement. I'd update it to output a little more detail just
unt
I used to search the same way until someone on this list mentioned using
a fulltext index in mysql. Doing this almost eliminated all my headaches
with searching.
Easiest way to create a fulltext index is to use phpMyAdmin. Once you've
created the fulltext index on `title`,`description`,`price`,`
Sam,
I'm not an expert in the area but from what I've seen in the past you
might want to look into using LaTex or something similar from the
command line. There might be a way to edit the PDF directly from PHP but
I wouldn't know where to tell you to start.
For that matter I'm not even certain
Evert,
Have you looked at smarty (http://smarty.php.net) ? It doesn't do
exactly what you're talking about but it seems to be the "Fastest
templating mechanism" that I've tested; probably one of the most
versatile as well.
Cheers!
-Joe
www.joewollard.com
Evert | Rooftop Solutions wrote:
Hi all,
David,
Well, I've never seen this issue on a form submission before, but I have
seen it (and other oddities) when editing text files in vi that we
created on M$. You might try something simple first such as:
$text = str_replace("^M\n\r", "\n\r", $_POST['textarea_name']);
?>
I haven't tested th
> On a shared server, every other PHP scripter can read your session data,
> if they work at it a little bit.
If you're on a shared server I think a good option for you might be to
store the sessions in your database. At least then you know that as long
as long as your db server doesn't have any
You might also look towards the bottom of httpd.conf for any additional
conf files that are to be read. As I recall OSX will look for an
additional conf file by default which may be trying to load the same module.
Prathaban Mookiah wrote:
Might be under /modules.d/
Prathap
-- Original Me
Andy,
I've done this in the past when setting a cookie for a user-defined
theme and also for a message board which used the post method. In my
case I put all of the logic into a separate page altogether. So you'd
have your form on page A, logic in page B and a landing page which can
be the same
Graham,
I'm not sure what jpgraph is but the main question I think your asking
doesn't seem to require knowledge of anything more than how to interact
with the server without reloading the page. This is actually pretty
simple. Let's say that you have a simple page already loaded in your
browser
This can also be done with double pipes, which is what is used in many
other languages.
-
if($audio=="Cool" || $audio=="junk" || $audio=="Funky"){
Do this
} else{
Do this
}
--
As far as I can tell there are no plans to remove or reaso
Greetings,
I'm trying to help a C programmer understand and use PHP for web
development. So far all the similarities between C++ and PHP are making
the process rather speedy. He asked what seemed like a very simple
question, but I couldn't find the answer. The questions is how can you
determine
Peter,
I have done this on redhat 7 using an rpm to go from mysql 3.x to 4.x
beta in the past and it worked fine without recompiling php. Of course I
would try to test this on a non-production server first in case of any
serious problems. If you do have to recompile php for some reason don't
fo
Shabanip,
Zend provides a package for doing just this, but it comes with a price
tag starting nigh to $1,000. You can find it here:
http://www.zend.com/store/products/zend-encoder.php
They do offer a free evaluation so you can "try before you buy" ;-)
shabanip wrote:
is there any way to protect
apper_register and
thanks for any help or direction you can send me!
-Joe Wollard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Gene.
I ran into a similar problem a long time ago and found that my issue was
that I had foolishly tried to recompile php5 into the same paths without
cleaning out the old php binaries. I don't know if this is what you are
doing but if it is then as a thought you might want to make sure that
a
Chris,
I have a feeling I'm missing something but from what I'm gathering you
want to be able to use the key of the array right along with the value.
If that's what you need then the following should work:
$array = my_array_creating_function();
while(list($key, $val) = each($array)){
echo ""
Kevin,
I'm having some issues with my email client right now so I'm sorry if
you've already found the answer. There is a way for PHP to do this
without the need to modify your web server's configuration or bothering
with .htaccess/ .htpasswd files by simply modifying the http headers
that your
86 matches
Mail list logo