If I have an anchor inside form, how can I send form using the anchor without
displaying target url? I've tried the code below but IE says that this.form
is null or empty and Firefox does nothing.
form action=somewhere.php method=get
# Pick me
/form
--
View this message in context:
tx Lucas,
all your recomended solutions made sence for the different pupose.
for my purpose the apache solution worked just great
Files ~ \.css$
php_value default_mimetype text/css
/Files
and
AddType application/x-httpd-php .css
ralph_def...@yahoo.de
Jim Lucas li...@cmsws.com wrote
yes it does on my machine
and it makes sence since it is not a function its a language construct.
cheers
ralph_def...@yahoo.de
Shawn McKenzie nos...@mckenzies.net wrote in message
news:4a935c42.2010...@mckenzies.net...
Ralph Deffke wrote:
causes an error
Parse error: parse error, expecting
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
causes an error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp6.php on line 42
This is a syntax error, not a runtime error. You've clearly done
something wrong.
Tom Worster
of course its a syntax error, because unset() IS NOT A FUNCTION its a
language construct
ralph
Stuart stut...@gmail.com wrote in message
news:a5f019de0908250201g14e4b61cn73c6cd67da6f...@mail.gmail.com...
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
causes an error
Parse error: parse error,
On Tue, 2009-08-25 at 00:55 -0700, leledumbo wrote:
If I have an anchor inside form, how can I send form using the anchor without
displaying target url? I've tried the code below but IE says that this.form
is null or empty and Firefox does nothing.
form action=somewhere.php method=get
#
Why not just use another submit button?
Because it's actually an entry in a tree-like menu. I need to send
parameters via get method, and code above is one way I can think of.
--
View this message in context:
http://www.nabble.com/anchor-inside-form-tp25129981p25131146.html
Sent from the PHP
Hi gang,
I'm trying to create a script to read the files in a folder (approx
2000) and get the filename, path and last modified date in a tabulated
format to copy into excel. (We have been issued a CD and need to get
all files documented and assigned to an owner.)
I've tried loads of different
may be u can use this
a href=urpage.php?var1=somethingvar2=something
cheers
ralph_def...@yahoo.de
leledumbo leledumbo_c...@yahoo.co.id wrote in message
news:25131146.p...@talk.nabble.com...
Why not just use another submit button?
Because it's actually an entry in a tree-like menu. I
-Original Message-
From: leledumbo [mailto:leledumbo_c...@yahoo.co.id]
Sent: 25 August 2009 09:55 AM
To: php-general@lists.php.net
Subject: [PHP] anchor inside form
If I have an anchor inside form, how can I send form using the anchor
without displaying target url? I've tried the code
On Tue, 2009-08-25 at 12:28 +0200, Arno Kuhl wrote:
-Original Message-
From: leledumbo [mailto:leledumbo_c...@yahoo.co.id]
Sent: 25 August 2009 09:55 AM
To: php-general@lists.php.net
Subject: [PHP] anchor inside form
If I have an anchor inside form, how can I send form using the
I would say
foreach( $dirTree as $key = $value ){
echo $key .br;
foreach( $value as $v){
echo $v .br;
}
}
something like that
ralph_def...@yahoo.de
Tom Chubb tomch...@gmail.com wrote in message
news:4577934f0908250241i195dc691x3f8c552e72791...@mail.gmail.com...
Hi gang,
I'm
On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote:
I would say
foreach( $dirTree as $key = $value ){
echo $key .br;
foreach( $value as $v){
echo $v .br;
}
}
something like that
ralph_def...@yahoo.de
Tom Chubb tomch...@gmail.com wrote in message
2009/8/25 Ashley Sheridan a...@ashleysheridan.co.uk:
On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote:
I would say
foreach( $dirTree as $key = $value ){
echo $key .br;
foreach( $value as $v){
echo $v .br;
}
}
something like that
ralph_def...@yahoo.de
Tom Chubb
On 8/25/09 5:00 AM, Ralph Deffke ralph_def...@yahoo.de wrote:
of course its a syntax error, because unset() IS NOT A FUNCTION its a
language construct
that's hard to believe. i can't imagine how the compiler could reliably
predict if the argument will be set or not when the unset line is
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
I would say
foreach( $dirTree as $key = $value ){
echo $key .br;
foreach( $value as $v){
echo $v .br;
}
}
something like that
ralph_def...@yahoo.de
Tom Chubb tomch...@gmail.com wrote in message
?php
$a = bhsdhjk;
unset();
?
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp8.php on line 5
the function! doen't exist its a language construct
http://us.php.net/manual/en/function.unset.php
Stuart stut...@gmail.com wrote in
The function is described as void unset ( mixed $var [, mixed $var [,
mixed $... ]] )
You should use unset($a); in that case.
-Mensaje original-
De: Ralph Deffke [mailto:ralph_def...@yahoo.de]
Enviado el: martes, 25 de agosto de 2009 13:07
Para: php-general@lists.php.net
Asunto:
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
?php
$a = bhsdhjk;
unset();
?
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp8.php on line 5
the function! doen't exist its a language construct
You can use javascript behind a button or image or link to submit the
form from anywhere in your html page. You don't need the anchor but
you do need a form name. Something like:
href=javascript:document.FormName.submit();
Cheers
Arno
And all it takes for that to break is for
I'm not saying Javascript is evil, and yes I do know what the J in AJAX
is, I'm not as stupid as I look! I use it for plenty of things, but as
an aid rather than the core functionality.
As for the firewalls stripping Javascript, I don't have a specific
reference myself, but I've read about it a
Please don't reply directly unless you intend to pay me for my time.
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
sorry but its about the top topic it say it never does an error if u dont
give an argument
I accept that your English is not great, but given that you should be
a bit more
At 2:31 PM +0100 8/25/09, Stuart wrote:
Please don't reply directly unless you intend to pay me for my time.
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
sorry but its about the top topic it say it never does an error if u dont
give an argument
I accept that your English is not great, but
Recently i read this blog post about speed issues comparing PHP with
ASP.net, please, read that and comment what you think about it:
http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versus-linux-ndash-who-rsquo-s-the-fastest/
The big deal is: I don't know if this bechmark is
At 3:00 PM +0200 8/25/09, Arno Kuhl wrote:
-snip-
BTW I'm not in a debating mood - I've made my point, no doubt Ash you'll
make yours, and I'll leave it at that. But if anyone else has any further
info regarding real-world stats or experience about js switched on or off it
would be very
-Original Message-
Recently i read this blog post about speed issues comparing PHP with
ASP.net, please, read that and comment what you think about it:
http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versu
s-linux-ndash-who-rsquo-s-the-fastest/
The big deal is: I
I am trying to use PHP on my web site I am developing now. I have installed
Apache 2.2 and PHP 5.2. My problem is that I can execute PHP code embedded
in my HTML code, but I can't execute the same cose when I put it into a
separate .php file that i then call from within the html code. for
On Tue, Aug 25, 2009 at 10:37 AM, kyle.smithkyle.sm...@inforonics.com wrote:
-Original Message-
Recently i read this blog post about speed issues comparing PHP with
ASP.net, please, read that and comment what you think about it:
On Mon, 2009-08-24 at 23:16 -0600, mike bode wrote:
I am trying to use PHP on my web site I am developing now. I have installed
Apache 2.2 and PHP 5.2. My problem is that I can execute PHP code embedded
in my HTML code, but I can't execute the same cose when I put it into a
separate .php
php tigger is right i think.
Because of Zend engine parse line by line.(I can't use English give
expression to it with My Poor English).
It mean that (What I think) unset function is right parse but error
for is parameter.
Tigger Display :Warning: Wrong parameter count for unset what
is
To: php-general@lists.php.net
From: mikebo...@hotmail.com
Date: Mon, 24 Aug 2009 23:16:02 -0600
Subject: [PHP] Beginner question
I am trying to use PHP on my web site I am developing now. I have installed
Apache 2.2 and PHP 5.2. My problem is that I can execute PHP code embedded
in
Well, as I said: Beginner ...
I am actually trying to implement some html code that I found on the web,
which uses php (see:
http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm). They use the
method I tried to call a function php and then display a photo album.
Well, that doesn't
I've been playing about more and now I have the following code:
?
error_reporting(E_ALL);
ini_set('display_errors', true);
function getDirectory($path = '.', $ignore = '') {
$dirTree = array ();
$dirTreeTemp = array ();
$fileDate = array ();
$ignore[] = '.';
$ignore[] = '..';
On Tue, Aug 25, 2009 at 00:07, Augusto Flavioafla...@gmail.com wrote:
Answers: (choose 2)
Error messages will contain sensitive session information
Error messages can contain cross site scripting attacks
Security risks involved in logging are handled by PHP
X Error messages give
Is there a simple to way to compare two strings with case insensitivity so
that the following will return true?
$foo = Arnold;
$bar = arnold;
If($foo == $bar) {
}
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Aug 25, 2009 at 12:48 PM, Ben Millerbiprel...@gmail.com wrote:
Is there a simple to way to compare two strings with case insensitivity so
that the following will return true?
$foo = Arnold;
$bar = arnold;
If($foo == $bar) {
}
Thanks.
--
PHP General Mailing List
$rs-Fields(22) equals a NULL in the database
My Code:
if(empty($rs-Fields(22))){
$q4 = ;
}else{
$q4 = $rs-Fields(22);
}
Produces this error:
Fatal error: Can't use method return value in write context in
D:\Inetpub\wwwroot\evaluations\lookup2.php on line 32
Line 32 is the if
-Original Message-
From: mike bode [mailto:mikebo...@hotmail.com]
Sent: 25 August 2009 07:16 AM
To: php-general@lists.php.net
Subject: [PHP] Beginner question
I am trying to use PHP on my web site I am developing now. I have installed
Apache 2.2 and PHP 5.2. My problem is that I can
On Tue, Aug 25, 2009 at 2:00 PM, David Stoltzdsto...@shh.org wrote:
$rs-Fields(22) equals a NULL in the database
My Code:
if(empty($rs-Fields(22))){
$q4 = ;
}else{
$q4 = $rs-Fields(22);
}
Produces this error:
Fatal error: Can't use method return value in write context in
if(empty($rs-Fields(22))){
$q4 = '';
}else{
$q4 = ''.$rs-Fields(22);
}
Still produces errors, whether using empty or is_nullwith single
quotes
???
-Original Message-
From: Bastien Koert [mailto:phps...@gmail.com]
Sent: Tuesday, August 25, 2009 2:17 PM
At 11:16 PM -0600 8/24/09, mike bode wrote:
I get a blank page. this is probably something really stupid, but I
have been wrecking my head for days now, and I can't figure it out.
anybody has an idea?
Mike:
Here's an idea -- try this:
http://sperling.com/examples/include-demo/
If you
David Stoltz wrote:
$rs-Fields(22) equals a NULL in the database
My Code:
if(empty($rs-Fields(22))){
$q4 = ;
}else{
$q4 = $rs-Fields(22);
}
Produces this error:
Fatal error: Can't use method return value in write context in
D:\Inetpub\wwwroot\evaluations\lookup2.php on
2009/8/25 David Stoltz dsto...@shh.org:
if(empty($rs-Fields(22))){
Hi David,
You cannot call empty() on a function or class method like that. From
the manual:
Note: empty() only checks variables as anything else will result in
a parse error. In other words, the following will not work:
Hi,
I'm looking for some help with PHP5.2.x hacking on a web site to
cleanup how the user submitted search form is handled. Basically I
want to make it simple for the end user to a) refine their query, b)
not have to answer popups if they hit the reload button, and c) so I
can learn more PHP.
Shawn McKenzie wrote:
First off, if the value is NULL in the database then in PHP it will be
the string NULL and not a null value as far as I remember. Second,
you cant use a function/method in empty(). Thirdly, the string NULL
is not empty. I'm not sure what DB class you're using here or
John Stoffel wrote:
Hi,
I'm looking for some help with PHP5.2.x hacking on a web site to
cleanup how the user submitted search form is handled. Basically I
want to make it simple for the end user to a) refine their query, b)
not have to answer popups if they hit the reload button, and c)
Shawn McKenzie wrote:
John Stoffel wrote:
Hi,
I'm looking for some help with PHP5.2.x hacking on a web site to
cleanup how the user submitted search form is handled. Basically I
want to make it simple for the end user to a) refine their query, b)
not have to answer popups if they hit the
Thanks.
I will surely do that.
In the meantime I have found out that it really is not a problem with the
code. I uploaded the (non-functioning code) from my PC to a public web
server, and lo and behold, the code works.
It thus appears that there is something wrong with my php-apache setup.
On Tue, Aug 25, 2009 at 02:00:04PM -0400, David Stoltz wrote:
$rs-Fields(22) equals a NULL in the database
My Code:
if(empty($rs-Fields(22))){
$q4 = ;
}else{
$q4 = $rs-Fields(22);
}
Produces this error:
Fatal error: Can't use method return value in write context in
I see. PHP runs on the server and cannot directly interact with my browser,
only through Javascript. So I can use javascript to trigger a php script,
which does something on the server, and returns something to javascript on
my machine, which can then be used to do something on my browser.
Shawn == Shawn McKenzie nos...@mckenzies.net writes:
Shawn Shawn McKenzie wrote:
John Stoffel wrote:
Hi,
I'm looking for some help with PHP5.2.x hacking on a web site to
cleanup how the user submitted search form is handled. Basically I
want to make it simple for the end user to a)
Hey list,
I am going to use a cms for some sites and I have looked a little at
Typo3, Joomla and php-fusion.
Can anyone recommend a system where it is easy to customize the
templates?
regards
Lars Nielsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Tue, Aug 25, 2009 at 4:35 PM, Lars Nielsenl...@mit-web.dk wrote:
Hey list,
I am going to use a cms for some sites and I have looked a little at
Typo3, Joomla and php-fusion.
Can anyone recommend a system where it is easy to customize the
templates?
regards
Lars Nielsen
--
PHP
On Tue, Aug 25, 2009 at 11:29:28AM +0100, Ashley Sheridan wrote:
On Tue, 2009-08-25 at 12:28 +0200, Arno Kuhl wrote:
-Original Message-
From: leledumbo [mailto:leledumbo_c...@yahoo.co.id]
Sent: 25 August 2009 09:55 AM
To: php-general@lists.php.net
Subject: [PHP] anchor inside
__destruct is called only when the object is detroyed.
The object is destroyed only when there is no references to it.
?php
error_reporting( E_ALL | E_STRICT );
header( 'Content-Type: text/plain' );
class Foo
{
function __destruct()
{
echo __METHOD__, PHP_EOL;
}
}
$a = new
At 2:45 PM -0600 8/25/09, mike bode wrote:
I see. PHP runs on the server and cannot directly interact with my
browser, only through Javascript.
Kind of.
PHP runs on the server and can create html, css, javascript et al.
However, PHP will complete it's task before the browser see's
anything.
tir, 25 08 2009 kl. 17:05 -0400, skrev Bastien Koert:
On Tue, Aug 25, 2009 at 4:35 PM, Lars Nielsenl...@mit-web.dk wrote:
Hey list,
I am going to use a cms for some sites and I have looked a little at
Typo3, Joomla and php-fusion.
Can anyone recommend a system where it is easy to
-- Forwarded message --
From: Martin Scotta martinsco...@gmail.com
Date: Tue, Aug 25, 2009 at 6:24 PM
Subject: Re: [PHP] DOMNode children iteration (was Re: array() returns
something weird)
To: webmas...@strefarytmu.pl
Fatal error: Call to a member function getAttribute() on a
Hello,
Iam still a user of PHP5.2.8 - 5.2.10 under BSD.I wish to know what
vulnerabilites this version is exposed aside from CVE-2008-5498.
Is there any site, where I can get an accurate listing, the only page I saw
in php.net was for 5.2.9 listing that one vulnerability, iam thinking there
2009/8/25 tedd tedd.sperl...@gmail.com:
At 2:31 PM +0100 8/25/09, Stuart wrote:
Please don't reply directly unless you intend to pay me for my time.
2009/8/25 Ralph Deffke ralph_def...@yahoo.de:
sorry but its about the top topic it say it never does an error if u
dont
give an argument
sorry I mixed 'set' with 'given' and if my mistake did prevent all the
smarter guys to give u an answer I'm sorry too.
I hope not to be too limited to give u an answer
well, think about how PHP 5 works.
$a e.g. is a REFENCE to some memory where the variable resides.
so the interpreter running
I have posted the question in another thread a bit down, but only buried
within the thread, so please excuse me when I ask again.
I want to use some PHP code from a web site
(http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm), and I am
following their instruction how to implement
I already did see that, but it only lists one single vulnerability
previously stated. Id just want to confirm that is the only one?
On Tue, Aug 25, 2009 at 7:09 PM, Vinicius Pinto vinicius...@gmail.comwrote:
You can look at the changelog for 5.3.0 and see what was fixed:
I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
changes. The script does not work on my computer.
Now I get in addition to the error message below this:
[Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
Function eregi() is deprecated in
i like durpal or e107
2009/8/26 Lars Nielsen l...@mit-web.dk:
tir, 25 08 2009 kl. 17:05 -0400, skrev Bastien Koert:
On Tue, Aug 25, 2009 at 4:35 PM, Lars Nielsenl...@mit-web.dk wrote:
Hey list,
I am going to use a cms for some sites and I have looked a little at
Typo3, Joomla and
It Just Deprecated Function used.It mean source code wouldn't work
wall based on newer php versions.
see this link http://cn.php.net/manual/en/function.eregi.php
If you want fix that warning ,replace eregi to preg_match_all and use
/s instead.
2009/8/26 mike bode mikebo...@hotmail.com:
I just
see this
https://bugzilla.redhat.com/show_bug.cgi?id=478425
2009/8/26 David Taveras d3taveras3...@gmail.com:
I already did see that, but it only lists one single vulnerability
previously stated. Id just want to confirm that is the only one?
On Tue, Aug 25, 2009 at 7:09 PM, Vinicius Pinto
2009/8/25 mike bode mikebo...@hotmail.com:
I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
changes. The script does not work on my computer.
Now I get in addition to the error message below this:
[Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
68 matches
Mail list logo