Adam Zey wrote:
Tunelling arbitrary TCP packets. Similar idea to SSH port forwarding,
except tunneling over HTTP instead of SSH. A good example might be
encapsulating an IRC (or telnet, or pop3, or ssh, etc) connection inside
of an HTTP connection such that incomming IRC traffic goes over a
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there is a value in $flavour
Lester Caine wrote:
The double click 'problem' was a sideline to the original problem, which
I found while trying to track things. The original problem *IS* that PHP
can run two copies of a script in parallel and the second copy does NOT
see the 'locking' in place on the first copy. I had
On Wed, 2006-05-24 at 01:45, Lester Caine wrote:
The double click 'problem' was a sideline to the original problem, which
I found while trying to track things. The original problem *IS* that PHP
can run two copies of a script in parallel and the second copy does NOT
see the 'locking' in
Mark Sargent wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there
On 24/05/06, Mark Sargent [EMAIL PROTECTED] wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these
Mark Sargent wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there
Chris wrote:
Since there aren't actually 18 lines this isn't the real code..
true, as I only posted the php code
The problem is here:
echo $currentValue br\n;
it should be
echo $currentValue . br\n;
or
echo $currentValue , br\n;
thanx to all. The book is Beginning PHP, Apache, MySQL,
Hi all.
I've been playing with captcha for one of my sites. It works well but have had
a few issues integrating it into the site and sometimes it appears not to
work/show the textfield and graphic.
Anyway are there any other suggestions for something with similiar
functionality as captcha
Angelo Zanetti wrote:
Hi all.
I've been playing with captcha for one of my sites. It works well but
have had a few issues integrating it into the site and sometimes it
appears not to work/show the textfield and graphic.
Anyway are there any other suggestions for something with similiar
Robert Cummings wrote:
I've put in a trap for the double click ( and yes it *IS* browser
dependent ) and that works fine, but we will have to see if it makes any
difference to the original 'race' problem :(
Good luck :)
Actually the main problem was I was not updating the _SESSION variable
Hi,
Is a serialized array a safe string to insert into a mysql text field? Or is a
function such as mysql_real_escape_string always needed?
regards
Simon.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
Is a serialized array a safe string to insert into a mysql text field? Or is a
function such as mysql_real_escape_string always needed?
*Always* escape your data.
What if your array contains a quote?
--
Postgresql php tutorials
It's not safe... if the array contains strings which contain ' or
might screw your query... it's safe to escape the string result from
serialize...
Andy
[EMAIL PROTECTED] wrote:
Hi,
Is a serialized array a safe string to insert into a mysql text field? Or is a
function such as
On 24/05/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
Is a serialized array a safe string to insert into a mysql text field? Or is a
function such as mysql_real_escape_string always needed?
No, it's not at all a safe string to insert into a mysql text field.
mysql_real_escap_string() is
RSA and DSA are different types of key formats. They do not imply
protecting the private keywith an encryption algorithm.
If you look at gendsa(1) or genrsa(1), you will see that passphrase
protection is optional to both, and that there a good many choices.
default_md is actually something
On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote:
If that's the case, why don't you just use the export as web page or
save as web page tools of MS Word (if you don't have it anymore you
can as someone who still has it, or I think OpenOffice also has a
similar tool).
Because there are
At 7:19 AM +0100 5/24/06, Stut wrote:
PHP is not 'sequential' and I have no idea where you got that
impression. If the browser puts in a request to the server, the
server will execute that request as soon as sufficient resources are
free to do so. PHP does not 'lock' the session between
Hi all.
I've been playing with captcha for one of my sites. It works well
but have had a few issues integrating it into the site and sometimes
it appears not to work/show the textfield and graphic.
Anyway are there any other suggestions for something with similiar
functionality as captcha
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check the dB to see if the current
record has already been entered? If so, don't do it again.
Isn't this a solution? Or is there something here that I'm
not understanding?
...or maybe
after these very helpfull comments, I rad (again) Shiflett's (and few
others) Security articles about filtering input and output. And more I
read - less is clear :(
Before, I used addslash() before I insert data in database and strislshe()
to show them on screen.
Later found it's not good and
Richard is correct, the format for the mktime() is
hours/minutes/seconds/month/day/year. My code suggestion is based
on the start date being entered as follows -- 05242006, and the
display is to be 05/24/2006. My suggestion is the following...
function generateDates($first, $duration)
{
I have a friend who I wrote some very simple publishing software,
basically he takes his writtings and puts them online. Well his
writtings are in Word and so he has alot of special characters that he
inputs, some unknowingly, into the database. Are there any classes or
samples of what others
[EMAIL PROTECTED] wrote:
after these very helpfull comments, I rad (again) Shiflett's (and few
others) Security articles about filtering input and output. And more I
read - less is clear :(
Before, I used addslash() before I insert data in database and strislshe()
to show them on screen.
Later
So, here's what you need.
http://ftp.45.free.net/pub/catdoc/catdoc-0.94.2.zip
This converts doc files to .txt, although I'm not sure that it will
keep the format intact.
Take care.
On 5/24/06, Finner, Doug [EMAIL PROTECTED] wrote:
On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote:
If
Stut wrote:
Adam Zey wrote:
Tunelling arbitrary TCP packets. Similar idea to SSH port forwarding,
except tunneling over HTTP instead of SSH. A good example might be
encapsulating an IRC (or telnet, or pop3, or ssh, etc) connection
inside of an HTTP connection such that incomming IRC traffic
ok. I just made one test and if you can then explain something to me:
I entered in form (textarea)
afan's crazy web
and stored in db using mysql-real_escape_string().
in DB, it's stored with slashes:
afan\'s \crazy\ web
Then I pulled that from DB on three different ways:
$query =
All,
Can anybody give me a pointer on where I might start to learn how to
embed Zend2/PHP 5 inside a stand-alone C application?
I realize that by asking a question like this it might imply I am not
prepared enough to do handle the answer, but ignoring that, is there a
document out there?
[EMAIL PROTECTED] wrote:
ok. I just made one test and if you can then explain something to me:
I entered in form (textarea)
afan's crazy web
and stored in db using mysql-real_escape_string().
in DB, it's stored with slashes:
afan\'s \crazy\ web
Then I pulled that from DB on three different
in your php.ini file what is the value of:
magic_quotes_gpc?
(hint: should be off, if it is on, then you are add slashes twice...)
-Brad
[EMAIL PROTECTED] wrote:
ok. I just made one test and if you can then explain something to me:
I entered in form (textarea)
afan's crazy web
and stored in db
But, also, I thought, mysql_real_escape_string() is filter for
everything, e.g. lets have three links (add, delete, edit) as
a href=index.php?action=addrec_id=$rec_idAdd new/a
a href=index.php?action=editrec_id=$rec_idEdit/a
a href=index.php?action=deleterec_id=$rec_idDelete/a
and was doing this
I think you can use the 'embed' SAPI for that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
D. Dante Lorenso wrote:
All,
Can anybody give me a pointer on where I might start to learn how to
embed Zend2/PHP 5 inside a stand-alone C application?
I realize that by asking a question like this it might imply I am not
prepared enough to do handle the answer, but ignoring that, is there
Ok. Looks like I DID miss the point :)
I thought that with mysql_real_escape_string() HAVE TO add slash in front
of a quote and THAT's filtering.
:(
Ok. slash SHOULDN'T be in DB!
:)
But, also, I thought, mysql_real_escape_string() is filter for
everything, e.g. lets have three links (add,
Hi,
I am trying to write a script which will avoid browser timeout problem and
in that process I have created 2 files
FILE1.php:
set_time_out(1);
echo shell_exec(/usr/local/bin/php -f FILE2.php );
FILE2.php:
@mail($to,$sub,$msg);
sleep(60);
@mail($to,$sub,$msg);
I run File1.php thr' browser
On Wed, 2006-05-24 at 02:19, Stut wrote:
Lester Caine wrote:
The double click 'problem' was a sideline to the original problem, which
I found while trying to track things. The original problem *IS* that PHP
can run two copies of a script in parallel and the second copy does NOT
see the
On Wed, 2006-05-24 at 09:44, tedd wrote:
At 7:19 AM +0100 5/24/06, Stut wrote:
PHP is not 'sequential' and I have no idea where you got that
impression. If the browser puts in a request to the server, the
server will execute that request as soon as sufficient resources are
free to do so.
Start here...
http://www.php.net/manual/en/function.preg-replace.php
Jef
-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 8:35 AM
To: PHP LIST
Subject: [PHP] parsing/replacing for special MS Word characters
I have a friend who I wrote
When my clients use word to compose the contents of a website, I
always recommend them to paste the contents onto notepad and only then
pass them to the RTE on the browser so that the text looses all it's
formatting.
Sucks, but it's the only way I know. Since then, they started
formatting using
At 9:58 AM -0400 5/24/06, Jim Moseby wrote:
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check the dB to see if the current
record has already been entered? If so, don't do it again.
Isn't this a solution? Or is there something here
On Wed, 2006-05-24 at 13:02, tedd wrote:
At 9:58 AM -0400 5/24/06, Jim Moseby wrote:
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check the dB to see if the current
record has already been entered? If so, don't do it again.
At 12:38 PM -0400 5/24/06, Robert Cummings wrote:
On Wed, 2006-05-24 at 09:44, tedd wrote:
-snip-
Back to the posters problem, which is duplicate dB entries caused by
double clicking.
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check
On Wed, 2006-05-24 at 13:45, tedd wrote:
At 12:38 PM -0400 5/24/06, Robert Cummings wrote:
On Wed, 2006-05-24 at 09:44, tedd wrote:
-snip-
Back to the posters problem, which is duplicate dB entries caused by
double clicking.
Apparently the problem isn't solvable by using tokens,
Robert Cummings wrote:
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check the dB to see if the current
record has already been entered? If so, don't do it again.
Isn't this a solution? Or is there something here that I'm
not understanding?
if magic_quotes_gpc is On, does it add slashes in front of quotes when
submit through form?
Mean, if I submit in input form (text) afan's crazy web, after
echo $_POST['record'];
I'll get afan\'s \crazy\ web. Is this because of magic_quote_gps is On?
-afan
Security wise, it is best to turn it
I Dan McCullough wrote:
I have a friend who I wrote some very simple publishing software,
basically he takes his writtings and puts them online. Well his
writtings are in Word and so he has alot of special characters that he
inputs, some unknowingly, into the database. Are there any classes or
On 5/24/06, Suhas [EMAIL PROTECTED] wrote:
Hi,
I am trying to write a script which will avoid browser timeout problem and
in that process I have created 2 files
FILE1.php:
set_time_out(1);
echo shell_exec(/usr/local/bin/php -f FILE2.php );
FILE2.php:
@mail($to,$sub,$msg);
sleep(60);
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
if magic_quotes_gpc is On, does it add slashes in front of quotes when
submit through form?
Mean, if I submit in input form (text) afan's crazy web, after
echo $_POST['record'];
I'll get afan\'s \crazy\ web. Is this because of
Greetings All,
I have a problem that I usually solve in MySQL pretty easily, but using
PEAR identifiers are not working.
Any suggestions.
I want to loop through a result set in two different while loops that
are not nested.
I am able to do in it MySQl as follows
$sql=Some query;
$result =
Shouldn't it be;
$sql=Some query;
$result = $conn-query($sql);
//V VVV
while ($row = $conn-fetchArray($result)) {
echo $row['hey'];
}
// V VVV
while ($row2 = $conn-fetchArray($result)) {
echo $row2['otherhey'];
}
At 10:50 AM +0100 5/24/06, [EMAIL PROTECTED] wrote:
Hi,
Is a serialized array a safe string to insert into a mysql text
field? Or is a
function such as mysql_real_escape_string always needed?
regards
Simon.
Simon:
If you want to store a serialized array in mysql, then you must use
On Wed, May 24, 2006 at 02:28:33PM -0600, Phillip S. Baker wrote:
Greetings All,
I have a problem that I usually solve in MySQL pretty easily, but using
PEAR identifiers are not working.
Any suggestions.
I want to loop through a result set in two different while loops that
are not
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones that allow significant quantities of data to be
sent by the client. Ideally,
Curt Zirzow wrote:
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones that allow significant quantities of data to be
sent by the
At 8:14 PM +0200 5/24/06, [EMAIL PROTECTED] wrote:
if magic_quotes_gpc is On, does it add slashes in front of quotes when
submit through form?
Mean, if I submit in input form (text) afan's crazy web, after
echo $_POST['record'];
I'll get afan\'s \crazy\ web. Is this because of magic_quote_gps is
What is the correct syntax for calling methods from other classes
into your own class ?
Example:
Calling the ADODB class with:
$this-conn=ADONewConnection('mysql');
This works:
$rs= $this-conn-GetAll(SELECT title FROM content WHERE page_id= ?,
$id);
This fails:
while
Hi all,
I have been rtfm on preg_replace, and I am a bit turned-off by how
complex reg-exing appears to be anyway, I would like to spend some
time learning how I would convert a file full of links that look like:
A HREF=/viewentry.asp?ID=343323PT=PERSONALITIES TARGET=_topFake Link
1/A
At 4:28 PM +0200 5/24/06, [EMAIL PROTECTED] wrote:
after these very helpfull comments, I rad (again) Shiflett's (and few
others) Security articles about filtering input and output. And more I
read - less is clear :(
and
At 6:07 PM +0200 5/24/06, [EMAIL PROTECTED] wrote:
Ok. Looks like I DID
Micky Hulse wrote:
Any good links to tutorials and/or resources that teach one how to scrub
urls with PHP and regex?
Ah, missed this in the comment section of the manual:
http://www.tote-taste.de/X-Project/regex/index.php
Looks like a good place to start. :)
--
PHP General Mailing List
This works:
$rs= $this-conn-GetAll(SELECT title FROM content WHERE
page_id= ?,
$id);
You can't iterate through an array like you are trying to do. Using the
GetAll() function returns an array, you have to use the Execute()
function to be able to iterate through $rs like you are trying to
On Tue, May 23, 2006 at 03:51:51PM -0400, Adam Zey wrote:
PHP seems to cache POST data, and waits for the entire POST to finish
sending before it makes it available to php://input.
I'd like to be able to read the post data from php://input while the
client is still uploading it. How can I
On Wed, May 24, 2006 at 05:44:56PM -0400, Adam Zey wrote:
Curt Zirzow wrote:
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones
Hi!
When the users of my system try to go up files of more than 460 K, they
receive the message:
Fatal error: Maximum execution time of 90 seconds exceeded in
c:\websites\iracbiogenar48\iracbiogen.com.ar\virtual\procesa_msjpriv.php on
line 2
I'm using the following method to up load the files:
Here's a link to a series of 4 articles that explain aggregation in
PHP.as this sounds like what you want to do.
http://www.devshed.com/c/a/PHP/Object-Interaction-in-PHP-Introduction-to-Aggregation-part-1/
HTH
Steve
Graham Anderson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Here's a link to a series of 4 articles that explain aggregation in
PHP.as this sounds like what you want to do.
http://www.devshed.com/c/a/PHP/Object-Interaction-in-PHP-Introduction-to-Aggregation-part-1/
HTH
Steve
Graham Anderson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ing. Tomás Liendo wrote:
Hi!
When the users of my system try to go up files of more than 460 K, they
receive the message:
Fatal error: Maximum execution time of 90 seconds exceeded in
c:\websites\iracbiogenar48\iracbiogen.com.ar\virtual\procesa_msjpriv.php on
line 2
I'm using the following
--- Micky Hulse [EMAIL PROTECTED] wrote:
Micky Hulse wrote:
Any good links to tutorials and/or resources that
teach one how to scrub
urls with PHP and regex?
Hey,
Am learning from here:
http://weblogtoolscollection.com/regex/regex.php
found it via google
(note: Am in NO way
Ryan A wrote:
http://weblogtoolscollection.com/regex/regex.php
HTHs...Cheers,
Yeah, looks like a great resource, thanks! :)
Cheers,
m
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks :)
that helps
g
On May 24, 2006, at 3:19 PM, Brady Mitchell wrote:
This works:
$rs= $this-conn-GetAll(SELECT title FROM content WHERE
page_id= ?,
$id);
You can't iterate through an array like you are trying to do.
Using the
GetAll() function returns an array, you have to use the
Brian A. Seklecki wrote:
RSA and DSA are different types of key formats. They do not imply
protecting the private keywith an encryption algorithm.
If you look at gendsa(1) or genrsa(1), you will see that passphrase
protection is optional to both, and that there a good many choices.
70 matches
Mail list logo