You can do it by modifying the setting of your HTTP server.
But if you want to do it by PHP, write
header("Location; http://www.boo.com/v2";);
in your PHP script of http://www.boo.com/index.php.
Regards ,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP Gen
I am having a hard time
finding recent mentions of
using MCAL or ICAP with PHP.
I need to add some shared
calendaring to an project I am
working on. I have been
looking at MCAL and ICAP
hoping to find out if they are
viable.
Is the best way to do
calendaring in PHP to use a
database or is there
I get the error:
Fatal error: Only variables can be passed by reference in
/home/tanguay/test/testxslt.php on line 7
when I run this code:
\n";
print "\n";
print $result;
print "\n";
}
else {
print "Sorry, sample.xml could not be transformed by sample.xsl into";
print " the
I'm trying to get all requests from a DOMAIN to go through one file,
something like:
http://www.mydomain.com/all_accesses.php
They can come IN as http requests of:
http://www.mydomain.com/any_directory/any_filename?any_vars with any
POST or COOKIE vars.
Anyone have any ideas? I'm trying to mak
Ben,
I have that kind of problem before, but it whould be much better to use
javascripts rather than the HTTP Header function when redirecting to cover
over the frame page. Use this instead:
echo"top.location.href=http://your.page.direction; ";
I've already tried and using this kind of redirect
I don't think you can have an empty line (even in the php) before cookies
are set
"Frank Ramsay" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Cookies have to be set before the block begins.
>
> -fjr
>
> Bob wrote:
>
> > here is the example:
do you have to delete cookies on the same level (directory) you created
them? coz mine dont seem to be deleting
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***
--
PHP General
You can't send use setcookie after headers have been sent to the browser,
you can have white space in a php block because this is not sent to the
browser. The exception is if you have output buffering enabled.
Jason
From: qartis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 5:14 P
On Thu, Mar 14, 2002 at 07:58:29AM +0800, Michael P. Carel wrote:
> I have that kind of problem before, but it whould be much better to use
> javascripts rather than the HTTP Header function when redirecting to cover
> over the frame page. Use this instead:
>
> echo"top.location.href=http://your
- Original Message -
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 8:36 AM
Subject: Re: [PHP] Targetted redirection?
> On Thu, Mar 14, 2002 at 07:58:29AM +0800, Michael P. Carel wrote:
>
> > I have that kind of problem
yea, i know how to display 10 results per page, but that doesnt work when
you want to do a ORDER BY rand() query.
"Gurhan Ozen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> are you just looking for a way to display 10 results per page? If yes
then
> you can
could you perhaps do the select on the first page, then store the results in
a session (array) and just load different indexed portions of the resultset
each page?
only problem there is that you wouldn't get any refreshed results while
browsing those pages - but i don't know if this matters for y
Pass along a hidden form which documents exactly what rows have already
been shown
then you could use
$seen=explode(':', $seen); to break it into an array...
after that use a foreach to add a 'and id != '.$seen into the sql query
for every element in $seen... thus not allowing duplicates on
Hi!
Do you have a primary key field in the table? If yes, you can after
displaying the first 10 records you can put the primary key values of those
records in an array and have "primary_key_fiels NOT IN
(array_values_seperated_by_commas)" in your quesry.. So when you display
your first page with 1
I've checked google and the PHP manual, with no results,
so i thought i'd ask here:
Is there any functionality in PHP to allow a function to
find out what function/file/line called it? AFAIK, perl
can do this, and i've always found it a big help when
debugging to have functions die with a call t
Hello,
How can I get the number of the current row, something like this:
";
}
?>
I can't just use the id field, because the ID's might not always be 1, 2, 3,
4, 5, 6, etc...they could go 1, 2, 4, 5, 8.
I need it to look like this:
1. first person
2. second person
3. third person
and so on and
Im trying to take this string, "hello", and explode it into an array
with each cell in the array containing one character.
$array[0] = 'h'
$array[1] = 'e'
etc..
How does this work? When is use...
$character = explode('', $string) or
$character = explode($string)
...it doesn't seem to work
Hi all,
I am no DHTML expert and don't even know the language also didn't know where
to post this. But after today I am going to learn.
I downloaded a tetris game from Dynamic Drive:
http://www.dynamicdrive.com/dynamicindex12/tetris/index.htm
Have a look. I would add it here but it's too long.
Hi,
I am connecting to LinkPoint for accepting credit card. They gave me this
instruction :
--
BELOW IS A COPY OF YOUR DIGITAL CERTIFICATE: Your ISP requires a digital
certificate to complete the setup of your website in order for you to
begin accepting credit card payments. A cop
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi gang-
>
> I am working on a javascript box that will allow the user to drag values
> from one select box to another. I will use this box to set the values.
> This is a standard, multiple select box. On the next page I need to
> f
In article <01C1CA7C.C4DA97A0@P01>, [EMAIL PROTECTED] says...
> Hello List,
>
> I'm trying aroung to split the header and the body of an email but
> can't get it to work.
>
> First I read in the email:
>
> $fp = fopen("php://stdin","r");
> $count = 0;
> while (!feof($fp))
> { $data = fgets($f
You might have seen a version of this function:
http://www.php.net/manual/en/function.copy.php
I would like to rework this line:
mkdir($to_path, 0777);
where mkdir will ignore $to_path if
the directory already exists. I have already tried this:
#if(!mkdir($to_path, 0777))
# {mkdir($
On Wed, Mar 13, 2002 at 10:06:01PM -0500, Phil Schwarzmann wrote:
>
> $array[0] = 'h'
> $array[1] = 'e'
>
> $character = explode('', $string) or
You need to explode the array:
$character = explode('', $array);
--Dan
--
PHP scripts that make your job easier
Tyler Longren wrote:
> Hello,
>
> How can I get the number of the current row, something like this:
>
> $sql = mysql_query("SELECT * FROM table ORDER BY id DESC");
> while ($row = mysql_fetch_array($sql)) {
> $id = $row["id"];
> $name = $row["name"];
> print "$current_row_number. $n
just use $string{0} and $string{1} , etc.
note the type of brackets
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] explode() - quick question
Im trying to take this string, "hello", and exp
hmmm, I never thought of that. Thanks for the help. ;-)
Tyler
- Original Message -
From: "michael kimsal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Tyler Longren" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 9:57 PM
Subject: [PHP] Re: Ge
If the webserver is Apache you can do this:
ServerName myserver.mydomain.org
DocumentRoot /usr/local/www/myserver
Action php-parse /path-to/script.php
Action php-parse /path-to/script.php
SetHandler php-parse
SetHandler "application/x-httpd-php"
*Every* request (whether the file
Announcing a couple of PHP scripts that I think have been a long time in
coming ...
validateEmail - 2.0
A much needed updating of the validateEmail function created in '98 by Jon
S. Stevens, and updated by Shane Gibson, berber, and Frank Vogel over time.
Several new features have been added, inc
I have a script that allows the user to upload a file. Right now, though,
it says permission denied when I try to upload. The permissions for the
folder I want to upload to is 755 right now. What should I change it to?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Thursday 14 March 2002 11:37, jtjohnston wrote:
> You might have seen a version of this function:
>
> http://www.php.net/manual/en/function.copy.php
>
> I would like to rework this line:
>
> mkdir($to_path, 0777);
>
> where mkdir will ignore $to_path if
> the directory already exists.
That'd depend upon who owns the directory and what user your web server is
running as.
If the folder, or directory is owned by the user the server is running as
then the permissions should be OK. Due to your error message I'd guess they
don't have write access.
Permissions of 766 might be enough
So I just declare at the beginning:
if(!is_dir($to_path))
mkdir($to_path, 0777);
The code works. But how can I make sure $from_path exists first and fails if
not?
Same thing?
if(!is_dir($from_path))
{
echo "failed";
exit;
}
The first time I ran it, I ran it with a non-existing $from_path direc
I am wanting to use rand() to generate a number between 33-90 OR 125-146.
Is there a way to do this? I don't want any numbers before 33 or between
91-124 or after 146. Could someone point me in the direction I need to look
to accomplish this.
Thanks,
Jeff
--
PHP General Mailing List (http:
On a windows server,
echo getcwd()."";
gives me:
C:\WINDOWS\Bureau\php\microweb
How do I double slash it? Is this ok:
$test_path = getcwd()."\\test1\\";
echo $test_path;
It seems ok, when I echo it? Any screwy Windows thing I need to know
about?
John
--
PHP General Mailing List (http://w
On Thursday 14 March 2002 13:31, Jeff Sittler wrote:
> I am wanting to use rand() to generate a number between 33-90 OR 125-146.
> Is there a way to do this? I don't want any numbers before 33 or between
> 91-124 or after 146. Could someone point me in the direction I need to
> look to accompli
looks good to me - only screwy thing I can think of is the backslash thing -
REALLY annoying - and confusing sometimes
Martin
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Double slash
On a
Something to the effect of
$num=0;
do {
$num=rand(33,146);
if ( $num > 90 && $num < 125 ) {
$num=0;
} else if ( $num > 146 || $num < 33 ) {
$num=0;
}
} while ( $num == 0 );
note: ths is just off the top of my head... check for va
And I just realized how redundant the checks for less then and grater
then the rand min and rand max are...
Oh well... I'm tired :)
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 9:45 PM
To: 'Jeff Sittler'; [EMAIL PROTECTED]
Subje
$n = rand(33, 112);
if ($n > 90) $n += 34;
not tested in code, but logically, this should work
Martin
-Original Message-
From: Jeff Sittler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] rand()
I am wanting to use rand() to gene
the min and max would work if I wanted the number between 33 and 146, but I
am wanting to specify two ranges, not just one.
Please RTFP
Jeff
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thursday 14 March 2002 13:31, Jeff Sittler wrote:
> > I am wanting to use
Just do the obvious:
$rand = rand(33,111);
$num = ($rand>90) ? $rand+35 : $rand;
On Wed, 13 Mar 2002, Jeff Sittler wrote:
> I am wanting to use rand() to generate a number between 33-90 OR 125-146.
> Is there a way to do this? I don't want any numbers before 33 or between
> 91-124 or
Use two rand()'s.
$foo = rand(2);
if ($foo == 0)
rand(first_set);
else
rand(second_set);
Niklas
-Original Message-
From: Jeff Sittler [mailto:[EMAIL PROTECTED]]
Sent: 14. maaliskuuta 2002 7:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] rand()
the min and max would wor
>looks good to me - only screwy thing I can think of is the backslash thing -
>REALLY annoying - and confusing sometimes
Yeah, no kidding. Thanks Martin!
What about if I try copying $to_path onto a Network server?
Do you see any problems with the code and $to_path?
(Not that I have a serve
Not to but in, but you might want to check on your version. www.php.net
published an advisory on a possible flaw on that very issue:
http://www.php.net/release_4_1_2_win32.php
http://security.e-matters.de/advisories/012002.html
Leif K-Brooks wrote:
> I have a script that allows the user to uplo
On first page, there is a form where
User must select choice from Subject1 (mandatory)
User may select choice from Geographic Area (optional)
When you click on Go, you go to Results page where there will be
instructions for PHP:
Search database where Subject1=$subject1 OR Subject2=$subject1 AND
If you use the get method, it will pass the variables in the query string.
if you use post it will pass them in the server variable. Either way, you
can reference them via the form name on the first page.
For example:
On the first page you have a field with the name: subject1 ().
The user submi
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> Im trying to take this string, "hello", and explode it into an array
> with each cell in the array containing one character.
>
> $array[0] = 'h'
> $array[1] = 'e'
> etc..
>
> How does this work? When is use...
>
> $character = explode
In article <000701c1cb06$3b54f3b0$0101a8c0@nightengale>,
[EMAIL PROTECTED] says...
> Hello,
>
> How can I get the number of the current row, something like this:
>
> $sql = mysql_query("SELECT * FROM table ORDER BY id DESC");
> while ($row = mysql_fetch_array($sql)) {
> $id = $row["id"];
>
On Tue, Mar 12, 2002 at 05:42:12PM +0800, Jason Wong wrote:
> On Tuesday 12 March 2002 12:27, Analysis & Solutions wrote:
>
> The source of the data *does* matter. That is why the latest releases of
> PHP (> 4.0.6) recommends having register_globals OFF by default.
> ... snip snip snip ...
> To s
A real newbie would be grateful for some help.
I have a sports club membership database (Mysql) with first and last names,
address and paid or not paid.
In edit.php I would like to be able to pre-fill a list box with whether the
person has paid or not, change if necessary, update the database
and
could anybody help me out, while compiling and Making PHP
its going fine, but I couldn't get any php binary file instead a
file named 'libphp4.la' was created.
I want to compile it as a standalone binary as a normal
user.
Thanks in Advance.
<[EMAIL PROTECTED]>
-
101 - 151 of 151 matches
Mail list logo