- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 11:37 PM
Subject: Re: [PHP] str_replace
> I just though up a better idea,
> put your conditional statements in your included files not in the calling
> file. T
Mo,
"(we haven't found, in our initial research, a way to do this)"
You could format your variables before they're needed in the link
something like:
if(isset($x)) $x_link="&x=$x";
if(isset($y)) $y_link="&y=$y";
etc.
then your link would look like the following
someplace.com
"slug=1" is
PHP does not allow ';' character in query strings so you'll have to break
these.
regds,
-Original Message-
From: Charles Kline [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 20:34
To: [EMAIL PROTECTED]
Subject: Newbie MySQL INSERT Q
Can I have a single SQL string do INSERTS into
if the header and footer info come from your config.php file, then you have
to get to that file before it's parsed by the server. Perhaps, splitting
config.php into three files (header.php, config.php and footer.php), then
when you want to print just call the middle file.
if(isset($_GET['print'])
doesn't work but also doesn't give any errors, I will try to explain what I
am trying to do:
I am trying to remove the header and footer to create a "printer friendly
page" with just the content, here's what my pages look like, I need to
remove header and footer when they visit: file.php?action=pr
After upgrading to RedHat 8.0 and effectively breaking some python
caller-id script that I have no clue how to fix.. I'm curious of whether
or not PHP would be able to get caller-id data from a modem.. I imagine
it could, and probably won't be too difficult to overcome... but I am
posing that q
$footer = str_replace('include("$header");', '', $footer);
The way you have it now, you're telling PHP to first include the file
named by the variable $header, then do an str_replace on the result; but
the parser is going to fail on that first semi-colon, and that's not
what you want to do anyw
This may seem weird:
How do I str_replace an include function?
I want to replace this line: include("$header");
with nothing ..
something like this:
$footer = str_replace(" '. include("$header"); .' ", "", $footer);
I get errors, any ideas?
cheers,
- Sebastian
Hi,
Saturday, March 15, 2003, 7:31:52 AM, you wrote:
MR> We are looking for a way to set several key/value pairs (which will differ
MR> across users) such that they will persist during the user's session and
MR> be logged in the weblogs for every request that user makes. Some
MR> potential
Hi,
Saturday, March 15, 2003, 4:53:44 AM, you wrote:
RP> Yes I did.
RP> Here is the code, maybe I am just missing something (this is the part
RP> where it writes and then opens again...
RP> $h6 = fopen("/etc/group.backup","a");
RP> for($i = 0; $i < count($users); $i++)
RP>
For the record, am I declaring these in the correct order?
Thanks,
John
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try
mysql_connect("loghost:3306","$username","$password");
- Original Message -
From: "Steve Shead" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 15, 2003 12:14 PM
Subject: [PHP] mysql_connect issue
> I'm trying to get a small PHP based log reader to run but get t
I'm trying to get a small PHP based log reader to run but get this error every time:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/weblog/weblog.php on line 58
Here is the PHP I'm using ... does anyone know what is happening here?
Radu Solea
Contributor: H
Assuming that gAccessLevel = eather one of level-1, level-2, level-3 ...
if (!$gStart) { $gStart=0; }
$sql = "SELECT * FROM gallerys WHERE gMode = '$mode' AND ";
if ($siteAccessLevel == "level-1") {
// LEVEL-1 VIEWING ONLY.
$sql .= "WHERE (gAccessLevel = 'level-1')";
} else if
I've had to convert times in a MySQL field to a normal date, but never in
reverse. How to I convert a date in this format, 03/14/2003, to MySQL format
so it can be posted to a date field?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Did you play with
or
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 6:25 PM
To: '- Edwin'
Cc: '[EMAIL PROTECTED]'
Subjec
At 19:37 14.03.2003, Michael Aaron said:
[snip]
>Sorry if this has been answered before but I can not find it anywhere:
>
>Why does the PHP docs. state:
> "Do not use Apache 2.0 and PHP in a production environment neither on
>Unix nor on Windows. "
>
>What
At 22:26 14.03.2003, Richard Ward said:
[snip]
>Also, from my reading, it sounds like some of the features I might need in
>PHP are considered extensions. For example, my Perl script makes heavy use
>of searching and replacing using regular expressions. I've
You could use output buffering to do the rewriting for you.
IF you use ob_start('my_function'); at the top of your page, where
my_function is the name of a callback function
This function might look like this:
function my_function($buffer)
{
return $buffer . '?x=foo&y=bar';
}
That's it.
At 22:31 14.03.2003, Maureen Roihl said:
[snip]
>- find a way for PHP to automatically tack the parameters onto the ends
>of url querystrings, the same way it can do with PHPSESSIONID (we haven't
>found, in our initial research, a way to do this)
>
>Our p
Hello,
I have a ~5500 line monolithic Perl script that I distribute with my
commercial application for processing forms on any Web server that supports
CGI and Perl. Perl has been a wonderful platform because of its portability.
However, people are now suggesting that my program also support PHP,
We are looking for a way to set several key/value pairs (which will differ
across users) such that they will persist during the user's session and
be logged in the weblogs for every request that user makes. Some
potential ways of doing this that occurred to us:
- implement functionality t
Anthony --
Your question is pure browser. Good luck, especially considering the
browser you have to target :-)
You might be able to change the setting with some javascript. You might
also be able to define the print format with a style sheet (doubtful).
In either case, you need to get into IE i
On Fri, 14 Mar 2003, Michael Aaron wrote:
> Sorry if this has been answered before but I can not find it anywhere:
>
> Why does the PHP docs. state:
> "Do not use Apache 2.0 and PHP in a production environment neither on
> Unix nor on Windows. "
>
> What is the reason for this Warning?
The co
I'm gonna post this in some Microsoft list too, but I'm hopping someone here
might be able to help me out. I have a few situations where users will need
to print from my app. The browser they are using will be IE. What I'd like
to be able to do is through some type of scripting remove the header
Hello,
I am developing an application that ouputs the results of a database query
to a PDF file using PHP. The only real problem I have encountered is in
trying to use the "include" and/or "require" keywords. I have a block of
code in another file that needs to called several times from my main
PD
Thank you in advance to any one who may be able to help.
I am looking for a way to have users be able to down load files from a
site via FTP and HTTP.
This sounds easy enough but here are the details.
There will be a application server that users will purchase software
form (Under development)
> That's generally not a good idea because depending on the type of control
> empty input fields will not be available in the $_POST array (e.g.
> unchecked checkboxes are _not_ sent by the browser).
>
> You should rather have a list of input variables that need to be filled
and
> compare $_POST ag
At 20:26 14.03.2003, drparker said:
[snip]
>I'm running this script to make sure all fields are filled in on a form:
>
>foreach($_POST as $p)
>{
> if(!$p)
> {
> header("Location: signup.php?error=3");
> exit();
> }
>}
>
>But I need to exclude one field on
Hello,
As far as I know from Christian Stocker (the domxml maintainer) - they are
already pretty stable. They are tagged as "experimental" to avoid people
complaints about API changes (API changes are necessary because DOMXML
should have a DOM api, and it was pretty not like this at the beggining).
I'm running this script to make sure all fields are filled in on a form:
foreach($_POST as $p)
{
if(!$p)
{
header("Location: signup.php?error=3");
exit();
}
}
But I need to exclude one field on the form from being checked -
Street2. How could I do this?
--
PHP General Mailing List (h
I'm having a bit of trouble...
I have an array that consists of a string like this:
string1\rstring2\rstring3\rstring4
I want to REMOVE STRING3, and keep the rest of the array intact - but cannot
figure on how to do it. I tried using functions such as preg_replace, strstr
and so forth...
In my
Yes I did.
Here is the code, maybe I am just missing something (this is the part
where it writes and then opens again...
$h6 = fopen("/etc/group.backup","a");
for($i = 0; $i < count($users); $i++)
{
for($k = 0; $k < count($grouplines);$k++)
Sorry if this has been answered before but I can not find it anywhere:
Why does the PHP docs. state:
"Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows. "
What is the reason for this Warning?
Thanks in advance.
Mike Aaron
--
PHP General Mailing List (ht
Thank you (all who resonded)!!! It makes sense now.
Now I can wait until 5:00pm, quitting time, to go crazy!!
James
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 1:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] IF statement madness
Compar
> -Original Message-
> From: James E Hicks III [mailto:[EMAIL PROTECTED]
> Sent: 14 March 2003 18:22
>
> Help save my sanity! What can I do to the IF statement in the
> following code to
> make it print the line that says "By God they are equal in
> value."? I have tried
> the following
What happens if you change $target to 216.0?
-- jon
-Original Message-
From: James E Hicks III [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] IF statement madness
Help save my sanity! What can I do to the IF statement in the f
At 19:21 14.03.2003, James E Hicks III said:
[snip]
>Help save my sanity! What can I do to the IF statement in the following
>code to
>make it print the line that says "By God they are equal in value."? I have
>tried
>the following changes;
>
> 1. usin
Comparing a float with an integer can have problems. You could try something
like:
if(abs($i - $target) < .1) {
//then they are essentially equal
}
Kirk
> -Original Message-
> From: James E Hicks III [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2003 11:22 AM
> To: [EMAIL PRO
Help save my sanity! What can I do to the IF statement in the following code to
make it print the line that says "By God they are equal in value."? I have tried
the following changes;
1. using === instead of ==
2. placing (float) in front of the $i and $target inside and before the
At 18:53 14-3-2003, you wrote:
I open a file, modify it, save it out to disk. The VERY next line, i
open it, and the size is zero. I look at the file and it is fine (not
zero).
I think there is a timing issue with php on file read/writes. I tried
sleep(1), but all that did was slow the script do
Here are the PHP related lines from my Appache2.0.43 httpd.conf file.
ScriptAlias /php4/ "E:/PHP4/"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php4/php.exe
With this setup, all *.php and *.phtml files
are processed corr
At 11:12 14-3-2003, you wrote:
Im looking for ideas for a 2 programming contests.
What I need is a very basic challenge - that new php programmers can
do, but involves them mixing there thinking/programming and creative
abilities.
I also need a challenge for professional programmers - something th
I open a file, modify it, save it out to disk. The VERY next line, i
open it, and the size is zero. I look at the file and it is fine (not
zero).
I think there is a timing issue with php on file read/writes. I tried
sleep(1), but all that did was slow the script down (didn't help).
Any ideas?
The string is in double quotes, ont single quotes. The single quotes
are simply characters in the double-quoted string. I believe the
register_globals explanation is correct.
Brent Baisley wrote:
I'm pretty sure your problem is the single quotes around your
variables. Single quotes and doubl
On Thu, 13 Mar 2003 23:17:02 -0500, daniel wrote about "RE: [PHP] trikky
string limit question" what the universal translator turned into this:
>never mind i worked it out
>
>function create_caption($content,$max_length,$primaryID,$ID) {
> if (strlen($content) > $max_length) {
>
At 17:03 14.03.2003, Luis Lebron said:
[snip]
>This may be more of a javascript question than a php question. But how can I
>set up an inactivity timeout that will logout a person after let's say 20
>minutes of inactivity?
[snip]--
On Thu, 13 Mar 2003 16:28:38 -0600, Christina wrote about "[PHP]
Generating Statics Pages" what the universal translator turned into this:
>What is the fastest way to generate multiple static pages?
What do you want them to contain ???
Without knowing that, it's nearly impossible to answer that
use sessions
- Original Message -
From: "Luis Lebron" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:03 AM
Subject: [PHP] OT Inactivity Timeout
> This may be more of a javascript question than a php question. But how can
I
> set up an in
I'm pretty sure your problem is the single quotes around your variables.
Single quotes and double quotes have very different meanings. Single
quotes tell PHP not to look for anything inside the quotes, whereas PHP
will always parse double quotes to see if there is anything it needs to
process.
Hi.
I followed the instructions in the php manual to install php as CGI module
under apache, under windows. I get the following message when requesting
a php file:
Invalid URI in request GET /mydir/myfile.php HTTP/1.1
I believe this is because Apache is not getting the protocol:host part of
the r
Hi all,
when does PHP gets support for a server-html-based form upload progress
meter?
Does anyone know?
thx.
Dominik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to use PDFreportsLite in Windows.
in the /src folder, there is a rep.php example.
But when i run the rep.php script, nothing apears, only the white page and
the window done status.
In the PDFReportsLite.php, i set:
$MM_PDFReportsLite_HOSTNAME = "127.0.0.1";
$MM_PDFReportsLite_DBTY
Hi,
I created a simple example of a problem that I have with a PHP script that
works in Netscape, and in Internet Explorer when cookies are disabled, but
not in Internet Explorer when cookies are enabled. The purpose of the script
is to create a .ram file on the fly, and playback part of a streami
THANKS I got it!
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 5:45 PM
To: Poon, Kelvin (Infomart); 'Chris Hayes'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Search/Regular Expression problem
At 22:15 13-3-2003, Poon, Kelvin (Infomart) wrote
> But how can I
> set up an inactivity timeout that will logout a person after
> let's say 20
> minutes of inactivity?
You could put a refresh on the page, that redirects to an
"inactivity" page. Set the refresh time to the timeout value. Put some
logout code on the "inactivity" page.
Otherwi
I think it's always worth it to at least design using OO methodologies.
The coding moves much faster and is much easier to maintain, in my
experience. A couple of books I've read recently that I'd recommend:
The Object-Oriented Thought Process by Matt Weisfeld and Bill McCarty
Design Patterns Ex
This may be more of a javascript question than a php question. But how can I
set up an inactivity timeout that will logout a person after let's say 20
minutes of inactivity?
thanks,
Luis
Session files will be cleaned up after 24 minutes by default. So if they
take longer than that, and the garbage collection deletes their session
file, then they are no longer logged in. Increase the session.gc_maxlifetime
parameter in php.ini
---John Holmes...
- Original Message -
From: "
Mahmut KARADEMIR wrote:
Hi All;
I am trying to add a new record web database using Mysql&PHP.
But after at every add process a new blank record is added to mysql table.
The entered text is not considered with codes.
What is my trouble in this html or php code?
Could anyone has any idea?
Thanks.
*
Hi
I have a process for people to apply for awards online. The login is controlled using
sessions, with a basic session variable set with the username of the person logged in.
In PHP ini the session cookie lifetime is set to 0 - ie. until the browser session
finishes.
Manyof the applicants are
The problem you are describing is implemented in a quite amazing GPL
shop. You might want to have a look: www.oscommerce.org
Regards Martin
Peter Goggin wrote:
I did not make my request for information clear. The two scenarios which I
have to cover:
1. The user registers as a customer with the s
Aaah! That clears something up. Thanks.
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 22:17 13.03.2003, rotsky said:
> [snip]
> >I thought session vars were either POSTed or passed via cookies...
> --
No avail. Here are the last few lines of the script. I can hit it 17 times
in a row with no problems. Then I might hit it three times and get the CGI
Error. I think it may be IIS not PHP that is the root of this problem. We
have C++ app that had the same sort of problem on IIS until we moved t
Hi All;
I am trying to add a new record web database using Mysql&PHP.
But after at every add process a new blank record is added to mysql table.
The entered text is not considered with codes.
What is my trouble in this html or php code?
Could anyone has any idea?
Thanks.
***name.html**
> Can I have a single SQL string do INSERTS into multiple tables?
No.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Try quoting your dates - you could also edit your code by using the
> BETWEEN SQL keywors.
Using the less than / greater than method is slightly faster and probably
more portable. I don't know how many databases implement BETWEEN.
---John Holmes...
--
PHP General Mailing List (http://www.php
Thanks people, thank you very very much. the missing quotes were the
problem. Can't beleive I kept missing that, everytime I re-read the code.
Sorted now, and I've still got some hair!!
You people are legends!!!
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
-
Try quoting your dates - you could also edit your code by using the
BETWEEN SQL keywors.
hope this helps
|-|
|- www.php-editors.com|
|- php programming contests |
|- php tool reviews |
|- php everything else|
|-|
Can I have a single SQL string do INSERTS into multiple tables?
Like:
sql="INSERT INTO tbl_1 (id,
email_address_1)
VALUES ($v_personid,
'$v_email');
INSERT INTO tbl_2 (person_id,
interest_id)
VALUES ($v_personid,
$v_int1);";
Or do I need to break them up and use tw
On Friday 14 March 2003 22:33, Brad Wright wrote:
> I want to pull all data out of a mysql table that falls between two dates
> (a start-time and end-time).
>
> I use PHP to allow the user to specify the time interval, creating 2
> variables
> 'startTime' and 'endTime'. These are formatted thus: 2
$timeFrom and $timeTo need to be surrounded by quotes within your SQL query
for the format you're using.
$query = "select * from Job_TB where teamNo = $teamNo AND startTime >=
'$timeFrom' AND endTime <= '$timeTo'";
---John Holmes...
- Original Message -
From: "Brad Wright" <[EMAIL PROTEC
Hi all,
I have been tearing my hair out for weeks with this problem, hope someone
can help.
I want to pull all data out of a mysql table that falls between two dates (a
start-time and end-time).
I use PHP to allow the user to specify the time interval, creating 2
variables
'startTime' and 'end
Hi Chris,
Thanks for the pointer :) I found some other interesting reference and ideas
on using this in the manual. Now I just need to provide some error checking
in case $_GET['menu'] isn't defined in the URL (that should be pretty
straight fwd) and in case it is defined, but a corresponding imag
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote:
> On Fri, 14 Mar 2003 00:37:38 +0100
> Michael Cronstrom <[EMAIL PROTECTED]> wrote:
>
> > I get the message:
> >
> > Notice: Undefined variable: msg in
> > F:\www-root\domain.com\website\script.php on line 202
> >
mate, this is not actua
I try to connect to a site via fsockopen function and get data calling a
cgi on remote server using a script like this following.
The response is a large amount of data up to 500Kb. But every 5000
characters approximately I get arbitrary strings like numbers "1400" and
"800" and others like "7be"
Matt,
You are looking at least 2 separate select queries - one to retrieve the
player data on a tournament by tournament basis and a second query to
'calculate' the summary data. Now, you will be needing the GROUP BY clause
in the second query while drawing on at least the player and appearances
t
> the current function been put in place replaces [f1253f] with a file,
for
> inside cms content , where 1253 is the key or the id of the filename
in
> the
> database , therefore to denote its an ftool they added f's around the
keys
> ,
> so maybe i could get away with [1253], what else i'm asking
> If I have a date in this format :19-MAR-03 how do I get the next date
(the
> date plus 1)?
echo strtoupper(date('d-M-y',strtotime("$date +1 day")));
But why do you have it in that format to begin with?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your cop
"Bobby Rahman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am new to PHP and was wondering whether to develop small applications
(20
> pages ) is it worth it to use OOP?
My take is that on 20 pages especially if they behave like app, it makes
sence to use OO.
> In particular I
If I have a date in this format :19-MAR-03 how do I get the next date (the
date plus 1)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
there were some nice threads last week:
- formating the input of a name:
eg: stuart o'neil -> Stuart O'Neil
RONALD MCDONALD -> Ronald McDonald
serge d'avignon -> Serge d'Avignon
von Braun -> von Braun
... implementing that for all possible langugae struktur
I did not make my request for information clear. The two scenarios which I
have to cover:
1. The user registers as a customer with the site. In this case the shopping
basket and items can be attached to the customer Id. and the shopping basket
made available across sessions. The shopping basket is
How didn't it work? How did you test it? I'd be more than willing to help
you test it, but everything is sort of vague right now.
---John Holmes...
- Original Message -
From: "Dennis Gearon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 12:20 AM
Subject: Re: [PH
www.php.net/str-replace
Awlad Hussain wrote:
I have a string with underscore in the middle.. like "This_That"
which function do i use to replace the _ with space? eg to "This That"
the string is in a variable..
I know its really simple but just don't know which function to use.
any suggestion?
There is many functions that can do it.
str_replace() is the fastest on thisone. preg_match() comes on second
position, and after that comes ereg_replace().
But if you need to do harder replacing, preg_match() is the one to use, imo.
Niklas
-Original Message-
From: Awlad Hussain [mailto
I have a string with underscore in the middle.. like "This_That"
which function do i use to replace the _ with space? eg to "This That"
the string is in a variable..
I know its really simple but just don't know which function to use.
any suggestion?
-awlad
George,
Thanks for your idea, I do like it - the only problem is that sound
very much like the current beginners contest (phone book and diary) -
great minds think alike :) - it sound like you may be able to tweek
your code and enter it in the contest !!
I will be adding a repository for php a
Suppose I'm running PHP 4.0.0 on Apache 1.3.12 on a remote server (linked as a
static module, OS is reported as AIX - kinda UNIX). My PHP script tries to
fopen('http://somewhere.else.com/') while responding to HTTP request itself. I've got
a "Socket must be already connected" error. Trying thi
Hiya
I am new to PHP and was wondering whether to develop small applications (20
pages ) is it worth it to use OOP? Can any recommend any books or URLS that
explain Object orientated programming and design in detail.
I have read articles in
www.phpbuilder.com and
www.phppatterns.com.
In part
Hi,
I'm building a site for my rugby club and I want to present players'
data ie: number of appearances, points scored and so on.
I have three tables in my database: a table of tournaments (date,
location, opposition, etc), a table of players (name, contact details,
position, etc) and a table of
here's my solution:
I presume you need the name of the file the user last accessed.
This requires a datetime column in your useronline file which records the
time a user has accessed a page. If the name of this field is atime then
a) create a temporary table storing lact access time for each us
Im looking for ideas for a 2 programming contests.
What I need is a very basic challenge - that new php programmers can
do, but involves them mixing there thinking/programming and creative
abilities.
I also need a challenge for professional programmers - something that
involves lots of thought,
check out the book XML and PHP by Vikram Vaswani, News Riders; a well
written and concise treatment of xml and php.
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do you have any idea about PHP DOM XML functions?
when will PHP DOM XML functions be stable?
Fatih Üstündağ
Yöre Elektronik Yayımcılık A.Ş.
0 212 234 00 90
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Kelly,
It would be better if you just take off the second part,
the one enclosed in "<>".
Also, header("Location: location");
notice, Location starts with capital L .
Hope this helps,
miches:)
-Original Message-
From: Kelly Protsko [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13
if the browser doesn't support Javascript use this :
if (YES) {
header("Location: thispage.php");
}
else {
header("Location: thatpage.php");
}
exit();
Just make sure you haven't send any output to the browser yet.
A suggestion: place this code before you ever print in your
cod
Have a look at the parameter register_global in your php.ini
By default in the recent version of PHP, this parameter is set by default to
off for security reason.
So if you want to use $id, you just have to set this parameter to on
"Stephen" <[EMAIL PROTECTED]> a écrit dans le message de news:
[E
Hello,
You will also might want to try the free Krysalis platform - it's
designed from scratch for XML/XSL content publishing (a la Cocoon) and you
will find it very useful for your goals.
http://www.interakt.ro/products/Krysalis/
Alexnadru
--
Alexandru COSTIN
C
I'm sorry if this question has been answered before, but I couldn't find
anything in the archives. I don't have access to php.ini and I was
wondering which method for changing settings is the fastest. Take, for
example, "session.cache_expire". This can be set via ini_set(),
session_cache_exp
1 - 100 of 106 matches
Mail list logo