php-general Digest 16 Feb 2012 14:53:59 - Issue 7691
Topics (messages 316614 through 316616):
pathinfo or other
316614 by: Donovan Brooke
316615 by: Elbert F
Re: Form Post to different domain
316616 by: Tedd Sperling
Administrivia:
To subscribe to the digest,
php-general Digest 17 Feb 2012 04:40:57 - Issue 7692
Topics (messages 316617 through 316646):
Re: Form Post to different domain
316617 by: Daniel Brown
316619 by: Matijn Woudt
316620 by: Daniel Brown
316621 by: Matijn Woudt
Bug with DOMNode::insertBefore in
On Feb 14, 2012, at 1:39 PM, Daniel Brown wrote:
On Tue, Feb 14, 2012 at 13:36, Rick Dwyer rpdw...@earthlink.net wrote:
I only have access to domain B... the one receiving the Form POST.
Then all you should need to do is:
a.) Verify that Domain A is indeed pointing to Domain
On Thu, Feb 16, 2012 at 09:53, Tedd Sperling tedd.sperl...@gmail.com wrote:
Why the '.PHP_EOL' ?
I've never seen that before and looking through the PHP documentation doesn't
give me much.
Cross-compatibility. For systems which use \n, PHP_EOL will be
\n. For systems which use \r\n,
On Thu, Feb 16, 2012 at 4:09 PM, Daniel Brown danbr...@php.net wrote:
On Thu, Feb 16, 2012 at 09:53, Tedd Sperling tedd.sperl...@gmail.com wrote:
This means you can rest assured that the newlines will be
appropriate for the system on which PHP is running. While it makes
little difference
On Thu, Feb 16, 2012 at 10:57, Matijn Woudt tijn...@gmail.com wrote:
What if the system PHP is running on not the same one as the one that
is going to read the plain-text/CSV/.. files? I don't think it is good
practice to use it when writing to files. I often write files on a
Linux server
On Thu, Feb 16, 2012 at 5:02 PM, Daniel Brown danbr...@php.net wrote:
On Thu, Feb 16, 2012 at 10:57, Matijn Woudt tijn...@gmail.com wrote:
What if the system PHP is running on not the same one as the one that
is going to read the plain-text/CSV/.. files? I don't think it is good
practice to
I'm a teacher. I want to use PHP to interface with Google and see if a
student has plagiarized.
I don't see many open-source projects on the subject, so I want to
create my own script.
How can I use PHP to interface with Google and see if this text exists
on the internet?
If this is
I'm a teacher. I want to use PHP to interface with Google and see if a
student has plagiarized.
Hi. Why not just enter the suspected text into a search engine and
see if any close matches come up? If you use the advanced search
tools you can choose verbatim and see if the exact phrase
On Wed, 2012-02-15 at 21:56 -0500, John Taylor-Johnston wrote:
I'm a teacher. I want to use PHP to interface with Google and see if a
student has plagiarized.
I don't see many open-source projects on the subject, so I want to
create my own script.
How can I use PHP to interface with
If you use the advanced search
tools you can choose verbatim and see if the exact phrase matches.
Just correcting myself here, the way to do this is by simply wrapping
the words in quotes like this, hey now. The verbatim tool is
something else.
Marc
--
PHP General Mailing List
Can I use PHP to interface with Google? Any possible examples of this?
Let's start with the first step. :)
I'm sure proprietary sites like http://www.compilatio.net/ for example connects
to search engines. They cannot be crawling the net too. That would be crazy.
(I'm a top quoter. It's more
I'm a top quoter.
I would parse the text first. Phrase by phrase, or phrase segments.
Then spit out a report.
Marc Guay wrote:
If that's not good enough, can you explain how you would like it to
function? Would the whole paper be scanned phrase-by-phrase for
matches and then spit out a report?
On Thu, 2012-02-16 at 14:47 -0500, John Taylor-Johnston wrote:
Can I use PHP to interface with Google? Any possible examples of this?
Let's start with the first step. :)
I'm sure proprietary sites like http://www.compilatio.net/ for example
connects to search engines. They cannot be
On Thu, 2012-02-16 at 14:50 -0500, John Taylor-Johnston wrote:
I'm a top quoter.
I would parse the text first. Phrase by phrase, or phrase segments.
Then spit out a report.
Marc Guay wrote:
If that's not good enough, can you explain how you would like it to
function? Would the whole
2012/2/16 John Taylor-Johnston jt.johns...@usherbrooke.ca:
Can I use PHP to interface with Google? Any possible examples of this?
There's Google Custom Search API:
http://code.google.com/intl/nl-NL/apis/customsearch/v1/overview.html
It interfaces in JSON, and PHP has json functions included
This is the first time I've been surprised that a Drupal module
existed for something...
http://drupal.org/project/authenticate
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sort of off topic but here's a list of existing services (some of
which are free) in case you don't want to reinvent the wheel.
http://www.justfitstudio.com/articles/plagiarism-detection.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi folks,
I've constructed simple conditions based on DB data and would like to
actually evaluate them with PHP. For example, the coded string $x
$y has been str_replaced into 4 5, but now I would actually like
to use that string in an if() statement. I tried eval() but got an
unhelpful
Can you explain a more clearly what it is you're trying to accomplish?
It sounds like you have a string $x $y in the database that you then
replace into a string 4 5 which you want to test a conditional on. If this
is the case, why are you storing conditionals in the database?
Regards,
It sounds like you have a string $x $y in the database that you then
replace into a string 4 5 which you want to test a conditional on. If
this is the case, why are you storing conditionals in the database?
The user will be able to construct their own query strings, it's
complicated but
On Thu, 2012-02-16 at 15:38 -0500, Marc Guay wrote:
It sounds like you have a string $x $y in the database that you then
replace into a string 4 5 which you want to test a conditional on. If
this is the case, why are you storing conditionals in the database?
The user will be able to
I just added the return statement and the semicolon, because the error was
complaining about it not being a proper PHP statement basically.
That's beautiful, thanks. I just stumbled across a forum post that
said it wasn't possible and was about to give up for the day.
Marc
--
PHP General
On Thu, Feb 16, 2012 at 9:49 PM, Marc Guay marc.g...@gmail.com wrote:
I just added the return statement and the semicolon, because the error was
complaining about it not being a proper PHP statement basically.
That's beautiful, thanks. I just stumbled across a forum post that
said it wasn't
It shouldn't be that hard to parse this type of expressions.
I appreciate your concern, and will do my best to validate the input,
but there are two things:
1) The application will only be used by selected users.
and
2) The range of possibilities are broader than I indicated. They
would like
On 16-02-2012 03:56, John Taylor-Johnston wrote:
I'm a teacher. I want to use PHP to interface with Google and see if a
student has plagiarized.
I don't see many open-source projects on the subject, so I want to
create my own script.
How can I use PHP to interface with Google and see if this
On Thu, Feb 16, 2012 at 04:37:18PM -0500, Marc Guay wrote:
It shouldn't be that hard to parse this type of expressions.
I appreciate your concern, and will do my best to validate the input,
but there are two things:
1) The application will only be used by selected users.
and
2) The
On Thu, Feb 16, 2012 at 10:56 PM, Maciek Sokolewicz
maciek.sokolew...@gmail.com wrote:
On 16-02-2012 03:56, John Taylor-Johnston wrote:
I'm a teacher. I want to use PHP to interface with Google and see if a
student has plagiarized.
I don't see many open-source projects on the subject, so I
On Thu, Feb 16, 2012 at 10:37 PM, Marc Guay marc.g...@gmail.com wrote:
It shouldn't be that hard to parse this type of expressions.
I appreciate your concern, and will do my best to validate the input,
but there are two things:
1) The application will only be used by selected users.
and
Am 16.02.12 22:37, schrieb Marc Guay:
2) The range of possibilities are broader than I indicated. They would
like to be able to enter conditions of all sorts. i.e. ($x / $y) 0.5
(($a+$b+$c) / $d) .75 etc. If you have any suggestions on how to
increase the security while maintaning the
Elbert F wrote:
SCRIPT_NAME is a server side path, try REQUEST_URI. This includes the query
string but it's easy to remove.
Elbert
http://swiftlet.org
Hi, I thought I should say that server side SCRIPT_NAME seems to be fine
for me in this case. Thanks for the input.
Donovan
--
D
Hello,
Does anyone know of a basic (open source or freeware) form captcha
system for PHP?
TIA,
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
have you tried reCAPTCHA by Google?
You can find the PHP library on the website.
Easy to use, customizable and free, but nothing to install on your server (no
open source)
Best regards,
Patrick Hafner
Am 17.02.2012 um 05:40 schrieb Donovan Brooke li...@euca.us:
Hello,
Does anyone
On Fri, Feb 17, 2012 at 3:40 PM, Donovan Brooke li...@euca.us wrote:
Hello,
Does anyone know of a basic (open source or freeware) form captcha system
for PHP?
TIA,
Donovan
--
D Brooke
Hi,
There are plenty of free PHP captcha scripts out there. Just google
captcha PHP. Securimage
Hi, all
When you ask for a captcha, I'd first ask what do you want to use it for.
If you read the first lines of Wikipedia it has been developed to differ
between a real user and a bot.
If you'd now say that you want to use it to protect spam in a formula I'd
give you the same explanation that
hi,
I just started to write a simple PHP extension hello, but encountered
some problems. I followed tutorials step by step:
1. ./ext_skel --extname=hello
2. modified hello.c and php_hello.h, and wrote function hello_world() which
simply return a string hello world.
3. phpize
4. ./configure ; make
36 matches
Mail list logo