Hi,
I want call the current page and set a variable (or call a function)
a href=index.php?variable=bananas -this works but means I have to change
it for every page name
I have tried
a href=? $PHP_SELF(); ?this is the link/a
Only works within a form tag.
Any ideas - no javascript solutions
Ross wrote:
I want call the current page and set a variable (or call a function)
a href=index.php?variable=bananas -this works but means I have to change
it for every page name
I have tried
a href=? $PHP_SELF(); ?this is the link/a
What's wrong with
a href=?php
a href=? echo $PHP_SELF,'?','action=something' ?do somehthing/a
this seems to work but can someone explain the syntax to me what does a '?'
and a ',' do in PHP?
I thought you joined strings with a full stop '.' (a period if you are from
the US).
R.
Ross [EMAIL PROTECTED] wrote in message
Ross wrote:
a href=? echo $PHP_SELF,'?','action=something' ?do somehthing/a
this seems to work but can someone explain the syntax to me what does a '?'
and a ',' do in PHP?
I thought you joined strings with a full stop '.' (a period if you are from
the US).
You are passing multiple
when I try to access anything.php it tells me HTTP 400 bad request I have no
clue how to fix this
Seth
Hi,
On checking form fields that they are of type int, what is best to use:
intval() or type casting (int)?
In terms of speed, would (int) not be better, because we save a function
call (especially on very large sql statements)?
Thanks.
Thomasx`
SPIRAL EYE STUDIOS
P.O. Box 37907, Faerie
Ross wrote:
a href=? echo $PHP_SELF,'?','action=something' ?do somehthing/a
this seems to work but can someone explain the syntax to me what does a
'?'
and a ',' do in PHP?
I thought you joined strings with a full stop '.' (a period if you are
from
the US).
There was a long
Seth Rainsdon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
when I try to access anything.php it tells me HTTP 400 bad request I have no
clue how to fix this
Seth
Nor do we, yet.
Which OS?
Which web server?
What have you tried so far?
Has it just broken, or did it never work?
--
Mark Rees wrote:
Ross wrote:
I thought you joined strings with a full stop '.' (a period if you are
from
the US).
There was a long thread on this only yesterday, under the heading String
format problem. The online archives will carry it shortly, if they don't
already, and it is well
Hi All,
I have php running over Apache on a debian box. I am tryin to use the php
mail function. When i run this command from console (php email.php) it will
run and the mail is delivered as it will get the from username from the
postfix config file but when i run the command from browser it
Hi guys,
quick question
I need to find out if two different variables are pointing to same place...
example:
$var1 = my_array;
$var2 = my_array;
I need to do:
if ($var1 === $var2)
but I don't want to compare it by data, array is gonna be quite big and
condition used in loop quite often.
I
Marcus Bointon wrote:
On 18 Jul 2005, at 20:56, Sebastian wrote:
The phone would have to have GPS capabilities..
Not true. The network knows what cell the phone is in(and cells are
pretty small in cities), and it knows where the cell is. This is the
mechanism that's used for location
Angelo Zanetti wrote:
Marcus Bointon wrote:
On 18 Jul 2005, at 20:56, Sebastian wrote:
The phone would have to have GPS capabilities..
Not true. The network knows what cell the phone is in(and cells are
pretty small in cities), and it knows where the cell is. This is the
mechanism that's
Hi,
I think that I may have messed up my php (v5.0.1).
Earlier today, I downloaded the most recent extensions and replaced my
php_pdf.dll (aug 2004)with the most recent (Mar 2005) - set the permissions
to be the same as the other extensions - then restarted the machine.
I'm now getting an
Hi guys,
When running
?php echo `dir c:`; ?
On Windows 98SE, apache 1.3, PHP4, client get such thing in apache's
error.log .
[Fri Sep 02 09:33:21 2005] [warn] exec() may not be safe
[Fri Sep 02 09:34:26 2005] [warn] exec() may not be safe
[Fri Sep 02 09:35:31 2005] [warn] exec() may not be
Hi all,
Just a quickie today: I was wondering if I can declare a Class variable
as a certain type of object. I'm using PHP 4 by the way.
For example, if my class looks like this:
class myClass {
var $object;
function someFunction() {
// code, code, code
Alex Gemmell wrote:
Just a quickie today: I was wondering if I can declare a Class variable
as a certain type of object. I'm using PHP 4 by the way.
I don't know if this works in PHP4, but I would suggest to clear this in
your constructur. But I don't know if this is always called in PHP4.
Norbert Wenzel wrote:
I don't know if this works in PHP4, but I would suggest to clear this in
your constructur. But I don't know if this is always called in PHP4.
class myClass {
var $object;
myClass() {
$this-object = new OtherObject();
}
}
This isn't really
http://php.net/mail
choksi wrote:
Hi All,
I have php running over Apache on a debian box. I am tryin to use the php
mail function. When i run this command from console (php email.php) it will
run and the mail is delivered as it will get the from username from the
postfix config file but
Seth Rainsdon wrote:
when I try to access anything.php it tells me HTTP 400 bad request I have no
clue how to fix this
Seth
And yet, unlike us, you have access to the code.
Please turn off your request for return receipts when posting to a
mailing list.
--
John C. Nichel
ÜberGeek
Thanks
This is sorted now.
Rgds
Dhaval
On 02/09/05, JamesBenson [EMAIL PROTECTED] wrote:
http://php.net/mail
choksi wrote:
Hi All,
I have php running over Apache on a debian box. I am tryin to use the
php
mail function. When i run this command from console (php email.php) it
On checking form fields that they are of type int, what is best to use:
intval() or type casting (int)?
In terms of speed, would (int) not be better, because we save a function
call (especially on very large sql statements)?
Time it.
On an 800mhz box doing absolutely nothing else (it's just
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.
div style=filter: alpha(opacity=90); opacity:0.9;
Hi, I have this problem , When I start a Session everything seems to be
ok but sometimes with no reason the session vanishes.
I'm using PHP 4.3.4 as a Apache module.
Apache version is 1.3 under Suse Linux 8.2
All settings are default , I mean session_cache_expire is 180 min.
I understand that
Murray, Miles, Cristea Jim: Thanks a lot, I got it figured out. Peace, -z
Hello everyone,
I'm using a while loop to display a list of people contained in my
database.
I'd like to assign different font colors to each depending on which city
they're from, but I can't seem to get an
I have a php script that can delete files in a folder but it can not
delete the folder itself.
I've tried to play around with permissions on the Windows box and
couldn't set it to something that would allow the PHP script to
delete the folder. I think I even tried to set the permissions for
Rasmus Lerdorf wrote:
That's a bit misleading. The HTTP response headers are sent a soon
as you output something from your script (calling header() or
setcookie() doesn't count as output, so you can set all the headers
and cookies you want).
They're sent to Apache, but that doesn't mean
John Nichel wrote:
How are you weathering the storm? I hope all is well there.
Just heard that Chris is safe. Don't know where he is as of yet, but he
did leave before the storm.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
On Fri, 2 Sep 2005, Mauricio Pellegrini wrote:
Hi, I have this problem , When I start a Session everything seems to be
ok but sometimes with no reason the session vanishes.
I'm using PHP 4.3.4 as a Apache module.
Apache version is 1.3 under Suse Linux 8.2
All settings are default , I mean
Rasmus Lerdorf wrote:
That's a bit misleading. The HTTP response headers are sent a soon
as you output something from your script (calling header() or
setcookie() doesn't count as output, so you can set all the headers
and cookies you want).
They're sent to Apache, but that doesn't mean
On Fri, 2 Sep 2005, Mauricio Pellegrini wrote:
Hi, I have this problem , When I start a Session everything seems to
be
ok but sometimes with no reason the session vanishes.
All settings are default , I mean session_cache_expire is 180 min.
I understand that this setting should make
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
That's a bit misleading. The HTTP response headers are sent a soon
as you output something from your script (calling header() or
setcookie() doesn't count as output, so you can set all the headers
and cookies you want).
They're sent to
Hi there!
Are you using rmdir?
http://se2.php.net/manual/en/function.rmdir.php
/G
@varupiraten.se
- Original Message -
From: James [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Friday, September 02, 2005 6:45 PM
Subject: [PHP] deleting files on Windows...permissions issue
Chris Shiflett wrote:
And the browsers tend to redirect right away once they get this
header.
I would find that very surprising. Maybe I'll experiment.
I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of
them request the new URL before receiving the previous response
Chris Shiflett wrote:
Chris Shiflett wrote:
And the browsers tend to redirect right away once they get this
header.
I would find that very surprising. Maybe I'll experiment.
I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of
them request the new URL before
Hi there!
Anyone that has an easy solution to this?
I have a string filled with content. A lot of content is before Jumping Jack
flash
I want the $content - string to start at Jumping Jack flash
Is there any smart way of doing this?
/G
@varupiraten.se
--
PHP General Mailing List
Rasmus Lerdorf wrote:
Then you have configured your server to always turn on output
buffering or your test script is bad.
I don't think it's either, but I'll let you decide. I tried a new test
with your code and some slight modifications:
?php
header('Location: http://www.php.net/');
$fp =
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
Then you have configured your server to always turn on output
buffering or your test script is bad.
I don't think it's either, but I'll let you decide. I tried a new test
with your code and some slight modifications:
Why modify my test? What
Hi there!
Anyone that has an easy solution to this?
I have a string filled with content. A lot of content is before Jumping Jack
flash
I want the $content - string to start at Jumping Jack flash
Is there any smart way of doing this?
Use strstr() to find the first occurence of Jumping Jack
(int) seems to be faster, but not by an awful lot. Personally however
if its a case of typing five characters (int) and saving a little exec
time, or typing 8 and losing a little, then I'd perfer to go with the
five an save the exec time.
I think I remember hearing about some other consequence
Rasmus Lerdorf wrote:
Why modify my test?
Because it has less delay. Thus, it's more difficult to tell if the
browser is requesting the new URL before or after receiving the entire
response. My script is essentially the same thing, but the script takes
30 seconds to execute. It makes the
On Fri, 2005-09-02 at 14:47, Rory Browne wrote:
(int) seems to be faster, but not by an awful lot. Personally however
if its a case of typing five characters (int) and saving a little exec
time, or typing 8 and losing a little, then I'd perfer to go with the
five an save the exec time.
(int)
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
Why modify my test?
Because it has less delay. Thus, it's more difficult to tell if the
browser is requesting the new URL before or after receiving the entire
response. My script is essentially the same thing, but the script takes
30 seconds
Rasmus Lerdorf wrote:
Chris Shiflett wrote:
Rasmus Lerdorf wrote:
Why modify my test?
Because it has less delay. Thus, it's more difficult to tell if the
browser is requesting the new URL before or after receiving the entire
response. My script is essentially the same thing, but the script
Hi all,
I am new to php. I am going to be setting up a page that has a form
on it. When the user clicks on submit an email should be sent with
the contents of the form. My question is How do I do that?
the webserver that I will be placing this page on has php ver 4.4.0 on it.
Any help would
I am new to php. I am going to be setting up a page that has a form
on it. When the user clicks on submit an email should be sent with
the contents of the form. My question is How do I do that?
the webserver that I will be placing this page on has php ver 4.4.0 on it.
Any help would be
http://www.php.net/mail
On 9/2/05 12:40 PM, Paul Goepfert [EMAIL PROTECTED] wrote:
Hi all,
I am new to php. I am going to be setting up a page that has a form
on it. When the user clicks on submit an email should be sent with
the contents of the form. My question is How do I do that?
Hi,
I'm trying to install PHP 4.4.0 with pdf support in CentOS 4.1
Should I compile PHP with --with-pdflib first and install pdflib using pear
command (pear install pdflib)?
or compile PHP with no --with-pdflib and then install pdflib using pear
command (pear install pdflib)?
I already
hello,
I'm writing a socket approach to send email directly via an SMTP server
(since some hosts block sendmail trough php due to abuse). Now, I have
the code, attached below:
I have cut it down slightly so it would still be readable though. I'm
very sure that none of the stuff I removed
Hello people.
I have an problem very very complicate for me.
I have some template in my web sitie, and a car buy, I want to show to the user
what count of the books have in your car buy,
but when I enter a new page in the other tampletae the variable take 1, why?
In ache page I write the
All:
Firstly, sorry if this is the wrong list. There are thousands of forums
and PHP5 related MLs, but nothing FBSD specific.
Second, I wouldn't post if this wasn't happening on two completely
different FBSD boxes.
For whatever reason, the php4 and php5 from FreeBSD ports refuses to
Hi there!
I don't quite understand what you're trying to do here. Please send more
code, then I might be able to help you... :-)
/G
@varupiraten.se
- Original Message -
From: Tomás Rodriguez Orta [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Saturday, September 03, 2005
Brian A. Seklecki wrote:
Firstly, sorry if this is the wrong list. There are thousands of forums
and PHP5 related MLs, but nothing FBSD specific.
Second, I wouldn't post if this wasn't happening on two completely
different FBSD boxes.
For whatever reason, the php4 and php5 from FreeBSD
Hi there!
Soundex works with diffrent kind of pronounciation... but does it work with
Swedish language?
Anyone have experience of this???
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
54 matches
Mail list logo