Hi,
I have table with six records in it. I can use while to display them all,
but in form. Is there any way I can edit all six records, and update them
all with one submit.
TNX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
This looks VERY interesting, it seems to be exactly what the Application
Object does for ASP, and thats exactly what I need ... now I just have to
hope that this version is stable enough ...
many thanks !
mathias rockel
- Original Message -
From: Tamas Arpad [EMAIL PROTECTED]
At 10:07 15-1-03, you wrote:
I have table with six records in it. I can use while to display them all,
but in form. Is there any way I can edit all six records, and update them
all with one submit.
One of the many ways to do it:
When writing the form, number the fieldnames with the ID's of the
Chris Hayes [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
for [each $key, $value in $_POST]
{if (! strpos('field',$key)==false)
{ $key=explode('__',$key);
$ID=$key[1];
mysql_query(UPDATE mytable SET WHERE
Simon wrote:
Hi,
I have table with six records in it. I can use while to display them all,
but in form. Is there any way I can edit all six records, and update them
all with one submit.
TNX
What do you mean with update more same fields at the same time?Can
you give us an example?
Gvre
--
What do you mean with update more same fields at the same time?Can
you give us an example?
Gvre
form name=form1 method=post action=
?
$query1 = SELECT * FROM table where subcat = $_GET[a];
$result1 = mysql_query($query1);
while($row = mysql_fetch_object($result1))
{
?
p
input
Hi All,
Can you please help me with the following problem? I've had code wich was running fine
with php till i've upgraded to PHP version 4.2.3.
The original code line was:
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '$id';
but it's not working when you have
Try
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
{$_GET['id']};
HTH
Danny.
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 10:50 AM
Subject: [PHP] Question about $_GET
Hi All,
Can you please
SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id];
- removed single quotes
Frank Keessen wrote:
Hi All,
Can you please help me with the following problem? I've had code wich was running fine with php till i've upgraded to PHP version 4.2.3.
The original code line was:
Thanks, but not working:
The error message:
Error in query: SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
. You have an error in your SQL syntax near '' at line 1
Here are both lines:
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
{$_GET['id']};
$result =
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
'$_GET['id']';
It looks like here that again $_GET['id'] has an empty value;
Jason k Larson
Frank Keessen wrote:
Thanks, but not working:
The error message:
Error in query: SELECT Newsheadline, News, Contact FROM news
Forms have two distinct methods. GET and POST. if the form has a
method of POST vars are stored in $_POST, ditto for GET.
Use $_POST['id'] not $_GET['id'] if your form uses the POST method.
HTH,
Jason k Larson
Jason k Larson wrote:
$query = SELECT Newsheadline, News, Contact FROM news
At 11:57 15-1-03, Marek Kilimajer wrote:
SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id];
- removed single quotes
I think that that is a really bad advice.
Let me explain.
For one, the single quotes are not in the way here because the query is
written between double
Chris Hayes wrote:
Let me explain.
For one, the single quotes are not in the way here because the query
is written between double quotes.
Then, leaving out the single quotes like Marek suggests will only work
because PHP is too programmer-friendly.
But the indexes of such arrays should
Simon wrote:
What do you mean with update more same fields at the same time?Can
you give us an example?
Gvre
form name=form1 method=post action=
?
$query1 = SELECT * FROM table where subcat = $_GET[a];
$result1 = mysql_query($query1);
while($row = mysql_fetch_object($result1))
{
?
Hi
Again, I already have it! (And it is the one from the distro)
[daniel@p85 daniel]$ rpm -q php-mysql
php-mysql-4.2.2-8.0.5
/daniel
On Wed, 2003-01-15 at 02:19, Larry Brown wrote:
You need the php-mysql rpm do rpm -q php-mysql
Get the one from the distro
Larry S. Brown
Dimension
Simon wrote:
What do you mean with update more same fields at the same time?Can
you give us an example?
Gvre
form name=form1 method=post action=
?
$query1 = SELECT * FROM table where subcat = $_GET[a];
$result1 = mysql_query($query1);
while($row =
Frank,
This is frustrating because there are several things at work here...
-- firstly --
Page data (POST or GET) is ALWAYS 'character' type when received into your
script -- whether or not that's how you use it in your application/database
So most times you need to settype($id, integer) in
If you want to update all the records that have subcat = $_GET[a] with
the same values then you can do somethink like this:
$subcat = $_POST['a'];
$qsubcat = $_POST['subcat'];
update tables set
field1=$_POST['textfield'],field2='$_POST['textfield1']' where
subcat='$qsubcat'
I don 't
On Wednesday 15 January 2003 18:57, Frank Keessen wrote:
Thanks, but not working:
The error message:
Error in query: SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
. You have an error in your SQL syntax near '' at line 1
Here are both lines:
$query = SELECT Newsheadline,
Simon wrote:
If you want to update all the records that have subcat = $_GET[a] with
the same values then you can do somethink like this:
$subcat = $_POST['a'];
$qsubcat = $_POST['subcat'];
update tables set
field1=$_POST['textfield'],field2='$_POST['textfield1']' where
subcat='$qsubcat'
I don
Make life easy for yourself:
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = .$_GET['id'];
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 4:50 AM
Subject: [PHP] Question about $_GET
Hi All,
Can you
with the same data or not?
not with the same data
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone.
I am more of an ActionScript person, but I have to do this one in php.
Should
be easy for everyone familiar with php syntax...
Here is what I want to do:
I am getting several variables into a Php Script such as:
help1 = yes / no
help2 = yes / no
.
.
.
helpX = yes / no
I need to
Following is the code that will do a remote scrape of
http://www3.brinkster.com/soa/val/profile/display.asp (which sometimes goes down),
however, it should time out and produce an error after 5 seconds; instead, sometimes,
the entire page (http://valsignalandet.com) which includes this script
Hi,
I am trying to send an array from one php to another:
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
But if I try to read te array in test2.php, I get Warning: Variable
passed to each() is not an array .
Can anyone help me
Danielle
for($ii=1; $ii20; $ii++)
{
$helpz = help$ii;
if(${$helpz} == yes)
{
}
else
{
}
}
- Original Message -
From: Philipp Hartmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 6:50 AM
Subject: [PHP] dynamic variables in a while loop?
Hi
show us the test1.php code.
show us the test2.php code.
We can't read your mind.
- Original Message -
From: Danielle van Gladbach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 6:59 AM
Subject: [PHP] sending array
Hi,
I am trying to send an array from one php
On Wednesday 15 January 2003 20:59, Danielle van Gladbach wrote:
I am trying to send an array from one php to another:
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
But if I try to read te array in test2.php, I get Warning: Variable
-Original Message-
From: Philipp Hartmann [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 12:50
Here is what I want to do:
I am getting several variables into a Php Script such as:
help1 = yes / no
help2 = yes / no
.
.
.
helpX = yes / no
I need to check whether the
I am not sure you can do it way, here is what i suggest
test2.php?org[index-A]=?php $org['index-A'] ?org[index-B]=?php
$org['index-B'] ?..
you need to specify each var in you array in the query path.
Danielle Van Gladbach [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
There not much in there because I strip it for testing.
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
?
test2.php
?
while (list ($key, $val) = each($org))
{
print key=.$key.val.$val.br\n;
}
?
Rick Emery wrote:
show us the
You know, if you actually looked at the link you've created you'd find your
answer ...
-Original Message-
From: D.M. van Gladbach [mailto:[EMAIL PROTECTED]]
There not much in there because I strip it for testing.
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
print
Just wanted some opinions on the best way to produce well-formed xml from a
php object. In my case, I was toying with the idea of a generic way to
product an xml file from a PEAR DataObject - the idea being that a 3rd
party requests data, I extract from mysql using Pear's DataObjects, then
Simon wrote:
with the same data or not?
not with the same data
You can put your data and the primary keys in arrays and exec a loop
but the data[0] must be the data for the id[0],
data[1] must be the data for id[1] etc.
The loop should be something like this:
for (int $i=0;
Hi,
I want to create dynamic graphs with PHP and Flash for data that changes
constantly (let's say every 2 seconds). The graphs must change visibly in
the browser window without refreshing the page. Is this possible? I have
read most that I could find on MING and searched the web as well, but
Thanks everyone!
Works great!
Phil
- Original Message -
From: Rick Emery [EMAIL PROTECTED]
To: Philipp Hartmann [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 2:03 PM
Subject: Re: [PHP] dynamic variables in a while loop?
for($ii=1; $ii20; $ii++)
{
$helpz =
php-general Digest 15 Jan 2003 13:42:26 - Issue 1824
Topics (messages 131642 through 131700):
Re: Next and Previous
131642 by: Matt
131645 by: Miguel Brás
Re: PHP RTF
131643 by: [-^-!-%-
131647 by: Jason Reid
Re: emptying hte array??
131644 by:
It wouldn't be a good idea to undefined the array with 'unset()' if it is to
be re-use.
Jason K Larson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
That's not going to 'empty' the array it's going to undefine it.
Just overwrite the array with a new empty
At 14:29 15-1-03, you wrote:
not with the same data
You can put your data and the primary keys in arrays and exec a loop
but the data[0] must be the data for the id[0],
data[1] must be the data for id[1] etc.
The loop should be something like this:
for (int $i=0;
The default setting for hte error message is different in Windows and Linux.
I had that problem but reduced it when I configure the error setting in
php.ini. Window just display more error over things that aren't really an
error, like an undefined variable that haven't been yet used. In Unix and
It works thanks
Here is the code, if anyone has the same problem:
test1.php
?
$org[index-A]=1701;
$org[index-B]=1209;
$var=serialize($org);
$var=urlencode($var);
print a href=\test2.php?var=.$var.\test2/aBR\n;
?
test2.php
?
$var=urldecode($var);
$org=unserialize($var);
while (list
Hi,
When compiling PHP what is the difference between these two :
./configure --with-mysql=shared
./configure --with-mysql=/usr/bin/mysql
What are the advantages/disadvatages of using either.
thx
g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello
Is it possible to send all incoming requests to the same script within
PHP?
In other words: How can I get http://mysite/script.php to point to the
same script as http://mysite/anotherscript.php ? And is it possible to do
send a request like
http://mysite/someextrapathinfo to the same
Gamin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
./configure --with-mysql=shared
./configure --with-mysql=/usr/bin/mysql
What are the advantages/disadvatages of using either.
Somebody correct me if I'm wrong, but from what I know is that when using
shared
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
Is it possible to send all incoming requests to the same script within
PHP?
In other words: How can I get http://mysite/script.php to point to the
same script as http://mysite/anotherscript.php ? And is it
On Wed, 2003-01-15 at 09:36, Leon Mergen wrote:
Somebody correct me if I'm wrong, but from what I know is that when using
shared it is compiled as a shared object and only loaded when needed. This
decreases ram usage (which is good) , but increases load (which is bad) .
AFAIK, you should use a
--- Frank Keessen [EMAIL PROTECTED] wrote:
So the code looks like this:
$query = SELECT Newsheadline, News, Contact FROM news
WHERE Newsid = $_GET['id'];
But all i'm getting in my browser is:
parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'
I could not tell if your
Hello all. I was doing some reading and found that fgets() doesn't work so well with
a text file created on a mac, and php.net has a fix. It would be wonderful if my
php.ini file actually contained the variable auto_detect_line_endings. How can I
solve this problem? Is my only solution
At 15:39 15-1-03, you wrote:
Hello
Is it possible to send all incoming requests to the same script within
PHP?
In other words: How can I get http://mysite/script.php to point to the
same script as http://mysite/anotherscript.php ? And is it possible to do
send a request like
--- Jason Jacobs [EMAIL PROTECTED] wrote:
It would be wonderful if my php.ini file actually
contained the variable auto_detect_line_endings.
How can I solve this problem?
Try adding it yourself. Don't let its absence dissuade you
from giving it a shot. :-)
Chris
--
PHP General Mailing List
On Wednesday 15 January 2003 08:59 pm, Danielle van Gladbach wrote:
I am trying to send an array from one php to another:
$org[index-A]=1701;
$org[index-B]=1209;
print a href=\test2.php?org=.$org.\test2/aBR\n;
But if I try to read te array in test2.php, I get Warning: Variable
On Wed, 2003-01-15 at 08:24, Chris Hayes wrote:
At 15:39 15-1-03, you wrote:
Hello
Is it possible to send all incoming requests to the same script within
PHP?
In other words: How can I get http://mysite/script.php to point to the
same script as http://mysite/anotherscript.php ? And is it
Hi gents,
i have a script to manage the registered users on my site.
have also a table with id, name, uname, passwrd, email, datejoined, level
and status
my question is...
it there any possibility to inform a member by mail that his (let'say)
current status changed from inactive to active, or
Hi,
How could I download phpBB?
I tryed in http://www.phpbb.com/index.php but I couldn't.
Thanks.
Un saludo.
Félix García Renedo ( [EMAIL PROTECTED] )
On Thursday 16 January 2003 23:59, Gerald Timothy Quimpo wrote:
e.g., you might have a system whereby you encode the array
somehow into something easily parsed, e.g., index-value
pairs separated by a special delimiter, or urlencoded index
and value separated by a space. save the encoded
http://sf.net/projects/phpbb
--
Maxim Maletsky
[EMAIL PROTECTED]
Félix García Renedo [EMAIL PROTECTED] wrote... :
Hi,
How could I download phpBB?
I tryed in http://www.phpbb.com/index.php but I couldn't.
Thanks.
Un saludo.
Félix García Renedo ( [EMAIL PROTECTED] )
--
PHP
mail() function @ http://php.net/mail
--
Maxim Maletsky
[EMAIL PROTECTED]
Miguel Brás [EMAIL PROTECTED] wrote... :
Hi gents,
i have a script to manage the registered users on my site.
have also a table with id, name, uname, passwrd, email, datejoined, level
and status
my question
On Thursday 16 January 2003 00:54, Miguel Brás wrote:
Hi gents,
i have a script to manage the registered users on my site.
have also a table with id, name, uname, passwrd, email, datejoined, level
and status
my question is...
it there any possibility to inform a member by mail that his
My company's website rely heavily on $_SERVER[HTTP_REFERER] and it use
Session ID also. Problem is HTTP_REFERER is not reliable because it's data
come from the web browser, just like javascript in a way. When I use the
Hier Menus or the javascript, 'location.replace', it prevent the
HTTP_REFERER
Greetings,
I am having a very peculiar problem trying to use imagecreatefromjpeg
(indeed, ANY of the imagecreatefrom... functions)
under both Windows and FreeBSD.
First off, here are my server specs:
Win: apache 1.3.23, php 4.2.1, GD 2.0 or better
BSD: apache 1.3.26, php 4.2.3, GD 2.0 or better
Hi,
I asked previously about the differences between the two and the concensus
was any differences are in the operating systems themselves and not with
PHP. Knowing this, how do I get rid of these errors that keep coming up in
Windows, that don't in Linux. One specific one is Notice: Undefined
I did once read the article on the website about using PHP and Flash. As we
know, that HTML Javascript is client side and the PHP is the server side.
The Flash help to bridge that gap by acting as a glue that hold them
together. So, it is indeed possible for the Flash to contact the PHP server
I have a script that turns certain words into links. That I am having
no problems with, it is when I want to turn the links back in to plain
text that I am having the problem. Below are my examples. And I know
my regex is being greedy but I don't know how to stop it from being so
damn
global register had nothing to do with it. It's the configuration in the
PHP.INI.
Look for error_report display_error in php.ini. Once you reduced the
error messages on the webpages, then put hte @ in front of the php variable
or function
Windows is not equal to Linux or Unix. Windows is
Set your php.ini file and error reporting as such:
error_reporting = E_ALL ~E_NOTICE
See if that helps with the undefined notice.
jeff
- Original Message -
From: Beauford.2002 [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 12:52 PM
Subject:
Hi all,
Here is a question that might be too simple to be asked, but I need to know the
answer: Is there a way to find out if PHP is compiled as a DSO or as a static module?
Thanx
phpinfo()
You can review the configuration command and in there view the command
for apache...
static = --with-apache=../apache_1.3.27
dso = --with-apxs=/path/to/apxs
that should help you out or get you started...you can also verify in
apache which module are built-in...
On Wed,
Hi Justin,
Thanks for that link, looks pretty interesting. I'll take a closer read later.
Cheers,
Jord
--
Jordan Elver
Eagles may soar high, but weasels don't get sucked into jet engines. -- David
Brent (The Office)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 1:00 PM
To: Beauford.2002; PHP General
Subject: Re: [PHP] Windows PHP vs Linux PHP
Set your php.ini file and error reporting as such:
error_reporting = E_ALL ~E_NOTICE
Or
I did what you suggested and I've attached the output - there's no
$_SESSIONS array in there.
But I've managed to register session vars outside of this function I'm
having trouble with so what's going on?
Duncan
-Original Message-
From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL
I figured out what I was doing wrong. My regexp should of looked like
this /a[^]*(Tampa)\/a/ and that made it more specific and kept it
to that match.
Jason Lehman wrote:
I have a script that turns certain words into links. That I am having
no problems with, it is when I want to turn the
Hi,
I've been doing a little OOP lately and have a few questions.
I want to build an application, there a re lots of elements to the
application: Authentication, Database, Presentation, Error Handling etc.
Now, I want to code this cleanly and make it reusable. So, a class for each of
these
I have a script that turns certain words into links. That I am having
no problems with, it is when I want to turn the links back in to plain
text that I am having the problem. Below are my examples. And I know
my regex is being greedy but I don't know how to stop it from being so
damn
Well, beaten to it..
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
global register had nothing to do with it. It's the configuration in the
PHP.INI.
Look for error_report display_error in php.ini. Once you reduced the
error messages on
I've been doing a little OOP lately and have a few questions.
I want to build an application, there a re lots of elements to the
application: Authentication, Database, Presentation, Error Handling etc.
Now, I want to code this cleanly and make it reusable. So, a class for
each of
these
I'd recommend you make a separate database class and error class that each
of your other classes access. That would make it the most modular and
re-usable.
---John Holmes...
I was hoping someone would say that :)
How could I code that though. I've only just started with OOP and don't
Set your php.ini file and error reporting as such:
error_reporting = E_ALL ~E_NOTICE
Or initialize your variables before using them ... especially true if
register_globals is on.
Yeah, that's the best recommendation. Especially if you plan on distributing
your code for others to use,
Frank,
With so many various suggestions coming your way, i'll add my 2 cents.
I have gone through all this mess. Read the information from the manual
about
strings
constants
arrays (why $some_array[id], $some_array[id] are wrong, but would work
sometimes) [unless u have intentionally defined
I am beginning work on a new web-based application using PHP and MySQL. I
have been doing a lot of reading about PHP security and web application
security in general to make sure I am up-to-date on what is known in this
area.
My style of PHP is to name all included files with a .php extension and
Now what is the output if you do this outside of the function after
registering a session var??
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: Duncan Abbott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 January 2003 4:53 AM
To:
Here's what I found so interesting
This code, $_SERVER['HTTP_REFERER'] have worked without a problem when I use
the latest Mozilla build. It even work with the HierMenus,
location.replace('http://whatever.com'), and location.href =
http://whatever.com...
This is a good news for PHP
Most web accounts have at least one or two directory levels behind the
public directory. Simply place the files behind the public directory and
call them into your main script from there. Absolutely no reason those
files need to be publically accessible.
-Kevin
- Original Message -
True. But let's just call me anal retentive. :-) Let's say I didn't have the
option of doing what you suggested. Are my ideas sound? Also, those ideas
apply to top-level PHP scripts in an application.
Jacob
Kevin Stone [EMAIL PROTECTED] wrote in message
it has to do with declaring all php variables before using them in the
script.
$var='';
then do something with the variable.
Jim
- Original Message -
From: Beauford.2002 [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 9:52 AM
Subject: [PHP] Windows
I agree with Chris, the quote should stay there to prevent confusion.
Nevertheless, I often run in the same problem. Sometimes, the only way to
fix it is by removing the quotes ($_GET[id]).
I know PHP documents goes against this, but it dosn't always work with the
quotes.
Perhaps the dev
How can I get the file() function to ignore the first three lines of a
file it is reading in?
I have a site with:
?PHP
require(membercheck.php);
?
... rest of file
at the top of all the pages to control user logins. The problem is the
file() function only reads in the contents of
--- Jacob Copsey [EMAIL PROTECTED] wrote:
My style of PHP is to name all included files with a .php
extension and of course this raises the problem of people
accessing these script files directly.
I always name included files *.inc myself, but that's a
personal preference combined with a
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Here's what I found so interesting
This code, $_SERVER['HTTP_REFERER'] have worked without a
problem when I use the latest Mozilla build. It even work
with the HierMenus,
location.replace('http://whatever.com'),
and location.href =
I agree these are good solutions and I have considered them. However, I am
looking for an all-inclusive solution that is code only within PHP that
allows the admin of the application to copy the files to their server and
not need to do any server specific configuration. That is why I don't name
This method seems to have a size limitation (which is very small).
If your array is (relatively) large, page two will not display the
passed values.
I'm not sure the url string became too long or if the problem came from
SERIALIZE(). Just beware.
FYI
-john
=P e p i e D e s i g n s
It's not a PHP bug. Many PHP programmer tried to their best to use
HTTP_REFERER so they can keep track of which webpages on the current website
did the user last visited. That way, they can keep out the unauthorized
access to the website without first logging in to the website.
Well, my
have you tried
==idex.php===
switch($op) {
case intro:
include(welcome.php);
break;
case about:
include(about.php);
break;
case contact:
incldue(contact.php);
break;
default:
include(welcome.php);
Have you thought about moving your include files outside of the web
directory?
i.e.If your site is in ../apache/htdocs/web/mywbsite_folder
then move your include files to ../apache/my_include_folder/ or something
similar.
-john
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing
--- Jacob Copsey [EMAIL PROTECTED] wrote:
I agree these are good solutions and I have considered
them. However, I am looking for an all-inclusive
solution that is code only within PHP that allows the
admin of the application to copy the files to their
server and not need to do any server
Thanks for the response. I found this web page
(http://www.itworld.com/nl/perl/01112001/) right after I submitted my
question. It was great for explaining regexp's greediness.
1lt John W. Holmes wrote:
I have a script that turns certain words into links. That I am having
no problems with, it
Hello all,
I'm having trouble with upgrading my php 4.1.1 to 4.3.
I have Apache 1.3.2 /php 4.1.1/Mysql 3.23.39 on winME.
It has been running fine but I can't make php 4.3 work.
I have installed 4.3 to a directory next to my current php.
I put 4.3 in /php43 and have php 4.1.1 in /php in the
That wouldn't work if there is already a Session ID, so that's where
HTTP_REFERER come into play.
Try it out by logging to any webpages with Session ID. Then copy the URL
address with the Session ID already there. Paste it into an email and send
it to a different computer. On the new computer,
On Thursday 16 January 2003 04:35, [-^-!-%- wrote:
I agree with Chris, the quote should stay there to prevent confusion.
Nevertheless, I often run in the same problem. Sometimes, the only way to
fix it is by removing the quotes ($_GET[id]).
I know PHP documents goes against this, but it
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Many PHP programmer tried to their best to use
HTTP_REFERER so they can keep track of which
webpages on the current website did the user
last visited.
I think I see what you are referring to now.
The reason that many people (myself included)
1 - 100 of 163 matches
Mail list logo