Please, please, PLEASE don't correct code that isn't wrong with code
that is! Read http://www.php.net/manual/en/language.types.array.php.
To answer the original question, the $HTTP_POST_VARS variable is out of
scope in your function. Either use $_POST superglobal array if you're
using 4.1.0 o
On Sun, 23 Feb 2003 18:55:06 -0500, you wrote:
>Could someone tell me why this code prompts a parse error. I have tried it
>several different way. The statement is called from within a function:
>
>print "action=\"$_SERVER['PHP_SELF']\">\n";
echo ('' . "\n");
works for me (moved the variable out
This may be a silly question and may be a case of my having missed
something in the documentation, but...
I cannot seem to find an example of how to use mod_auth_external to
verify a username/password with the Unix password file. I have checked
that Apache already has this module installed and lo
Hi,
Sunday, February 23, 2003, 10:43:36 PM, you wrote:
HI> Hi All,
HI> i am new to qmail and linux so bear with me.first of all i would like to clearly
state my situation here.we have to
HI> servers linux+windows.we have qmail installed on linux.wesite is hosted on
windows.now i want to create
worked like a champ! thanks!
"Chris Hayes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 00:05 24-2-2003, you wrote:
> >trying to parse a URL and write html code to a file, then search the file
> >for a string between ... how would I implement the
fread
> >function below, a
hi to all;
what function should i used to know the hostname of the server im using
where php and apache reside?
mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This information is quite easy to find in the PHP docs. You are looking
for $_SERVER['SERVER_NAME'], which is a predefined variable.
---Matt
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 8:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] s
$_SERVER['HTTP_HOST'] or $HTTP_SERVER_VARS['HTTP_HOST']
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 9:23 PM
Subject: [PHP] server host
What was suggested will work fine if the and are on the
same line. If someone writes the file such as
My Title
Then it will not match it. If this is a possibility for you, you'll want
to add an 's' modifier onto your pattern.
$pattern="/(.*)<\/title>/is";
---John W. Holmes...
PHP Architect
The $HTTP_POST_VARS array has no scope within your function. Make it
global for this to work or use $_POST.
function retrieve_select_listing($link, $workshop, $session, $username)
{
global $HTTP_POST_VARS;
//rest of your code...
---John W. Holmes...
PHP Architect - A monthly maga
> I have a php script with an include("mydomain.com/script.pl"); it
includes
> a
> bit of perl, but will not include it if I do it using /home/path/ only
> full
> URL, and when i use the full URL it causes one of my other php
includes
> not
> to function correctly.
>
> unfortunately, I do not thin
Wow, thank you. That is perfect.
I never heard of virtual() function, it really should also be located at:
http://www.php.net/manual/en/function.include.php
since it's a type of include.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From
never used php and flash but a quick search and you
would have found these.
http://www.polar-lights.com/fla/url.html
http://www.phpbuilder.com/columns/hill20011214.php3
http://www.flashkit.com/tutorials/Dynamic_Content/
--- pei_world <[EMAIL PROTECTED]> wrote:
> do you know how to load the varia
Hi, after asort()ing an array, the numeric keys are obviously out of order.
what i'd like to do is reset the keys, starting at zero.
is there a function for this, or do I just walk through the array with a
foreach() and do it manually?
Justin
--
PHP General Mailing List (http://www.php.net/)
ah, I didn' see that. Thanks.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: Leif K-Brooks
To: Sebastian
Sent: Sunday, February 23, 2003 11:17 PM
Subject: Re: [PHP] includes || perl
It is. "See also require(), require_o
> Hi, after asort()ing an array, the numeric keys are obviously out of
> order.
> what i'd like to do is reset the keys, starting at zero.
>
> is there a function for this, or do I just walk through the array with
a
> foreach() and do it manually?
Why don't you just use sort()?
---John W. Holmes
Hi,
According to the PHP manual session_start always returns true.
Ther are times (like when there is a disk full error on the server) that the
sesison_start will fail because its unable to write the session tmp file.
So shouldnt session_start be able to return false if the file write fails?
O
hi..
i have a button on a web page that is supposted to go to another web page
when either clicked with a mouse or when someone presses enter on it.. :
post a prayer
that is my basic code for the button... my problem is the fact that when you
click the button or hit enter on it all it does is re
Hello,
Justin French <[EMAIL PROTECTED]> wrote:
> Hi, after asort()ing an array, the numeric keys are obviously
> out of order.
> what i'd like to do is reset the keys, starting at zero.
>
> is there a function for this, or do I just walk through the
> array with a foreach() and do it manually
Oooops!
Didn't see it, despite looking over and over :)
Thx,
Justin
on 24/02/03 3:42 PM, John W. Holmes ([EMAIL PROTECTED]) wrote:
>> Hi, after asort()ing an array, the numeric keys are obviously out of
>> order.
>> what i'd like to do is reset the keys, starting at zero.
>>
>> is there a fu
This has nothing to do with PHP, but a button is used to submit a form.
You'll have to create a form with its action set to the page to direct to.
Sunfire wrote:
hi..
i have a button on a web page that is supposted to go to another web page
when either clicked with a mouse or when someone press
Hello,
"Sunfire" <[EMAIL PROTECTED]> wrote:
> hi..
>
> i have a button on a web page that is supposted to go to
> another web page
> when either clicked with a mouse or when someone presses enter
> on it.. :
>
> post a prayer
>
> that is my basic code for the button... my problem is the fact
The onClick should be onClick=window.location("newpage.php") and this has
nothing to do with php.
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 12:15 AM
To: Sunfire
Cc: [EMAIL PROTECT
Hello
"Mr Percival" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> According to the PHP manual session_start always returns true.
>
> Ther are times (like when there is a disk full error on the
> server) that the sesison_start will fail because its unable to
> write the session tmp file.
>
> So should
tnx! it works now so now i know what i need to do with buttons that are self
created now...
- Original Message -
From: "erich" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:11 AM
Subject: Re: [PHP] and
> i would try
> onclick="window.locatio
Hi,
I'm trying to use move_uploaded_file, but so far with no success, no matter
what I try.
The file info. is loaded from a form via POST.
Here's the snippet that get's called:
:
case("add_image"):
$res = mysql_query("select allowed_imgs,max_image_size,files_umask from
".$table_prefix."flag
usually i would do something like:
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 10:26 AM
Subject: [PHP] table width problems
> Hi,
>
> I've got a table that gets it's contents from a database, the problem is
> that even though I specify the width of the table, it is still wider tha
yes
include("filename.php");
- Original Message -
From: "Rohin Gosling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 2:59 PM
Subject: [PHP] Is there a way to "include" php source files in a php script
?
> Is there a way to include a *.php source file from i
The manual is right, session_start should always return true. For example
using this code:
PHP is set to save to C:\tmp which does not exist. But, because session data
is not saved at the beginning of the page where the session_start is called,
but at the end there the script is through executin
yes
include("filename.php");
1. its in the php manual
2. you posted the same question twice already i think (unless 1 was a
original post and one was a reply)
sorry getting a little tired here its almost 1am here and still working for
the last 2 days straight with 0% sleep and 100% caffine..
(sor
this question was answered about 15 times already ;)
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Sunfire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:52 AM
Subject: Re: [PHP] Is there a way to "
actually yes a link would be rather nice for just going to another page but
my client doesnt want a link he is paying for a button to be there instead
of a link.. so if thats what he wants and pays for i guess wether i agree
with it being there or not i put it there for him..
- Original Messa
"Sunfire" <[EMAIL PROTECTED]> wrote:
> actually yes a link would be rather nice for just going to
> another page but my client doesnt want a link he is paying for
> a button to be there instead of a link.. so if thats what he
> wants and pays for i guess wether i agree with it being there
> o
hi
my client just told me that he wants his table borders shown on his web page
to be a darker blue than the default color of html web page tables.. does
anybody know how to set the color for the table border color?
would it be something like:
http://www.grisoft.com).
Version: 6.0.443 / Virus Da
This code works perfectly and returns all the data that I expect:
mssql_pconnect($hostname, $username, $password) or die("blah blah");
mssql_select_db($dbName) or die("blah blah");
$result = mssql_query("select MyFieldName from MyTable");
But if I change the last line to this:
$result = mssql_q
oh sorry i forgot in the last message too..
he wants 3 radio buttons on a form .. something to the affect of:
this
is a general post
this is
an urgent post
this is a
message i need to post because it bothers me
would this be the right setup for radio buttons and if so what is the best
way to tell
This isn't a PHP thing.
And you should use
bordercolor="#FF"
-Original Message-
From: Sunfire [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 1:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] table border colors in html/xml
hi
my client just told me that he wants his tabl
got it will remember that from now on tnx
- Original Message -
From: "Larry Brown" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:24 AM
Subject: RE: [PHP] and
> The onClick should be onClick=window.location("newpage.php") and this has
> nothin
On Monday 24 February 2003 14:23, Sunfire wrote:
> hi
>
> my client just told me that he wants his table borders shown on his web
> page to be a darker blue than the default color of html web page tables..
> does anybody know how to set the color for the table border color?
>
> would it be somethi
Using a case statment would be the easyest way to tell which one was
checked, but technicly one could check all three unless the value of name is
changed the same like ...
this
is a general post
this
is
an urgent post
this is a
message i need to post because it bothers me
-Original Message--
sorry.. does anybody know of any mailing list i can join for that then?
- Original Message -
From: "Dennis Cole" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 1:26 AM
Subject: RE: [PHP] table border colors in html/xml
>
>
> T
CSS will help here... however this is definitely NOT a php question... :)
Try the NG:
comp.infosystems.www.authoring.stylesheets
Justin
on 24/02/03 5:23 PM, Sunfire ([EMAIL PROTECTED]) wrote:
> hi
>
> my client just told me that he wants his table borders shown on his web page
> to be a darker
"Sunfire" <[EMAIL PROTECTED]> wrote
> sorry.. does anybody know of any mailing list i can join for that then?
alt.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
so if the name of radio is "priority" then it needs not be checked for its
value other than it being empty? or could i say put that one of those is
defaulted to checked...
this is a
general post
.
then do in the php script something like:
There was an error in your form submission
there
Hi,
I have an index.html that I use on different URLs. Because of that, I want to create a
causal reality. I want to
if ?? = http://foo.ccl.flsh.usherb.ca/
include('./note.html');
if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL is
http://foo.compcanlit.ca/
What variable can
On Monday 24 February 2003 15:03, John Taylor-Johnston wrote:
> Hi,
> I have an index.html that I use on different URLs. Because of that, I want
> to create a causal reality. I want to
>
> if ?? = http://foo.ccl.flsh.usherb.ca/
> include('./note.html');
>
> if the URL is http://foo.ccl.flsh.ush
Which variable should I use?
_SERVER["HTTP_HOST"]
_SERVER["SERVER_NAME"]
HTTP_HOST
Server_NAME
Host
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
better to use something like
mysql_connect("localhost", "test1", "test1")||die(mysql_error());
because you will make smaller code that way killing the script instantly
when connection is refused and you will still get the same message:
user access denied for '[EMAIL PROTECTED]' using password:(yes)
Jason,
$_SERVER is outdated now isn't it?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Instead of doing this:
Which function am I looking for to see if $HTTP_HOST contains "compcanlit"?
This is not what I am looking for:
http://www.php.net/manual/en/function.similar-text.php
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Use this
http://www.php.net/manual/en/function.strstr.php
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Which function?
Instead of doing this:
Which function am I looking for to see
I'm using the following to try and replace urls in my html output:
$newhrefs = preg_replace("/script.php\?(.*)=(.*)&(.*)=(.*)&(.*)=(.*)/",
"script-$1-$2-$3-$4-$5-$6.html", $hrefs);
This works fine as long as there are exactly 3 var=val pairs... not 1 or 2
or 4 or more...
How can I write my expre
101 - 152 of 152 matches
Mail list logo