Dear All,
I am wondering if anyone shed some light.
i am thinking of setting value for php.ini variables like
register_globals = ON/OFF at runtime (within our php script).
Is there any function built-in in php?, or can we do it ourselves.
Looking forward,
Thanks
Tariq
--
PHP General Mailing
You cannot do it inside a script as the register_globals magic happens
before the script starts executing, so toggling the setting at runtime is
too late.
-Rasmus
On Mon, 25 Nov 2002, Tariq Murtaza wrote:
> Dear All,
>
> I am wondering if anyone shed some light.
> i am thinking of setting value
Hi all,
I would like to use PHP to read a binary file which contains a structure in
C, such as:
struct simple {
int a;
float b;
};
with f.e. a = 2 and b = 1.5.
Please notice that this is stored as *binary* data and not as text.
I know it is possible to read binary files using fgets() in P
Hi all,
I am updating a site accounting for register_globals = off. I have a
page which allows for the uploading of a number of files. The page sends
these in an "array" of files.
The destination script used to have:
if ($AttachmentCount > 0) {
foreach($userfile as $key => $value) {
Eric Pierce wrote:
> Hi there...
>
> Just wondering... when creating a dynamic image, is
> there a way/fuction to insert an existing image using
> x,y coordiantes for precision?
Yes, there is...use imagecopy (http://www.php.net/imagecopy)
Grtz Erwin
--
PHP General Mailing List (http://www.php.
Hi all,
I have a multiple select called Consultants[] In one page.
On the target page, how would I reference it? Would it be:
$_POST['Consultants'][0]
$_POST['Consultants'][1]
Etc
Or something else?
Thanks
David Russell
IT Support Manager
Barloworld Optimus (Pty) Ltd
Tel: +2711 444-7250
Fax:
David Russell wrote:
> Hi all,
>
> I have a multiple select called Consultants[] In one page.
>
> On the target page, how would I reference it? Would it be:
>
> $_POST['Consultants'][0]
> $_POST['Consultants'][1]
> Etc
Since $_POST['Consultants'] contains an array, you can indeed use the above
syn
On Monday 25 November 2002 16:48, David Russell wrote:
> Hi all,
>
> I have a multiple select called Consultants[] In one page.
>
> On the target page, how would I reference it? Would it be:
>
> $_POST['Consultants'][0]
> $_POST['Consultants'][1]
If in doubt, print it out (TM):
print_r($_POST);
Hi All,
I would like to know if it's possible to use php to encode form variables as
if they had come from a post form instead of a get form. I imagine I need to
place them into a header but cannot find much to read that gives any
information on this.
I need to create form variables and than use
Hello,
1.How many tables can be created inside a database? There is a maximum number?
2.Is it possible to erase a table?
Thanks,
Adrian
php.net/unpack
On Sun, 24 Nov 2002, Tim Molendijk wrote:
> Hi all,
>
> I would like to use PHP to read a binary file which contains a structure in
> C, such as:
> struct simple {
> int a;
> float b;
> };
> with f.e. a = 2 and b = 1.5.
> Please notice that this is stored as *binary* data a
You can't send POST data with a Location redirect. You can do it by
connecting directly to port 80 of the remote server and sending the POST
data.
-R
On Mon, 25 Nov 2002, Zac Hillier wrote:
> Hi All,
>
> I would like to know if it's possible to use php to encode form variables as
> if they had
>From now on ask this on a MySQL list, please.
> 1.How many tables can be created inside a database? There is a maximum
> number?
Only limit is how many files your file system will allow in one
directory.
> 2.Is it possible to erase a table?
Yes
---John Holmes...
--
PHP General Mailing Lis
Dear all
here is the path i want to open for reading files from it!
path = "c:/pdf_reports/bills/Oct-02"
i always got returned with these error :
" Warning: OpenDir: Invalid argument (errno 22) in c:/page.php on line 21"
"Warning: Supplied argument is not a valid Directory resource in c:/page.php
is it doable?
ie
class myClass {
var $myInt;
// default constructor
function myClass() {
}
// overloaded constructor
function myClass($newInt) {
$this->myInt = $newInt;
}
}
--
Dan Field
Systems Development Offi
Excuse me breaking in...somewhat similar problem:
Have set up a client recently, preaching security persuaded them into
updating so that could run Register_Globals=Off. Now they want to install a
'wiki' which requires (to my horror) Register_Globals=On.
Short of two Apache/PHP servers, what is a
a .htaccess file in the directory you want RG OFF (ie /wiki/) should do the
trick:
php_flag register_globals on
This seems to work for me...
on 25/11/02 10:37 PM, DL Neil ([EMAIL PROTECTED]) wrote:
> Excuse me breaking in...somewhat similar problem:
>
> Have set up a client recently, pr
Yes.
http://www.sharksforum.com
"Dan Field" <[EMAIL PROTECTED]> skrev i en meddelelse
1038221845.1245.144.camel@dsspc">news:1038221845.1245.144.camel@dsspc...
> is it doable?
>
> ie
>
> class myClass {
> var $myInt;
>
> // default constructor
> function myClass() {
> }
>
> // overloaded construct
On Monday 25 November 2002 19:37, DL Neil wrote:
> Excuse me breaking in...somewhat similar problem:
>
> Have set up a client recently, preaching security persuaded them into
> updating so that could run Register_Globals=Off. Now they want to install a
> 'wiki' which requires (to my horror) Registe
Justin,
Neat!
Don't limit thoughts to PHP when can solve it in Apache - thank you,
=dn
> a .htaccess file in the directory you want RG OFF (ie /wiki/) should do
the
> trick:
>
>
> php_flag register_globals on
>
>
> This seems to work for me...
>
>
> on 25/11/02 10:37 PM, DL Neil ([EMAIL PRO
Hi,
I can't send multiple sql staments in one query, i always get an error
saying that the sentece is incorrect, i thorw the sentece in a mysql
console and works fine, i'm sepraing sentences with ; i try to separe
using ;\n or ;\r\n but don't work
Anyone can help me?
:-)
___
Jason,
ad infinitum, ad nauseum
However it was your recent post that (sig file) quoted the Freudian:
ontogency recapitulates phylogeny
We should make them become more like us
- even if we kill them in the process!
=dn
> On Sunday 24 November 2002 22:58, DL Neil wrote:
> > Neatly done Ernest!
>
--
I can't send multiple sql staments in one query, i always get an error
saying that the sentece is incorrect, i thorw the sentece in a mysql
console and works fine, i'm sepraing sentences with ; i try to separe
using ;\n or ;\r\
At 11:57 25.11.2002, Dan Field said:
[snip]
>is it doable?
>
>class myClass {
> var $myInt;
>
> // default constructor
> function myClass() {
> }
>
> // overloaded constructor
> function myClass($newInt) {
>
Hi I have the following code that breaks:
// PLACE NICK INTO NICKNAMES.TXT AND START OFF MESSAGES.TXT
$fileID = fopen($path . "/nicknames.txt", "a") or die("Could not open " . $path .
"/nicknames.txt");
chmod($path . "/nicknames.txt", 0755);
fputs($fileID, $nickname . "\n"); fflush($file
Hello!
So, let me see if i understood:
1) Static content like Google´s logo(which i see every ten minutes :-) ) are cached
with no problems. Actually, i´ve got that working. Does that always depend on the
If-Modified-Since header?
2) Given that i send the proper header, could i receive as a re
On Mon, 2002-11-25 at 10:57, Dan Field wrote:
> is it doable?
well I found a way. It's a bit of a hack but FYI heres how it works:
function Form() {
// a slight hack which allows us to overload
// constructors by the number of args
$name = "Form".func_num_args();
I remember seeing threads debating this before, but is there anyway to
disable/prevent a user from heading back in the browser and getting the
"WARNING: Page has Expired" notice?
Cheers
Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you must give the same permissions to the folder also.
"Phil Powell" <[EMAIL PROTECTED]> wrote in message
0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6">news:0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6...
Hi I have the following code that breaks:
// PLACE NICK INTO NICKNAMES.TXT AND START OFF
I did just that. Permissions are set the /chat folder as it is in all other
folders. This is the first time I've ever done fopen with "w" and I can't
get it to write, always getting "unable to access" errors. I want to be able
to create the file if it does not exist. It works for me to do "r" in
on 26/11/02 12:03 AM, Craig ([EMAIL PROTECTED]) wrote:
> I remember seeing threads debating this before, but is there anyway to
> disable/prevent a user from heading back in the browser and getting the
> "WARNING: Page has Expired" notice?
This is more like a diversion around the problem... It wi
I would notice the difference, but computers don't understand text, it
is just data for them,
and they represent it the same way (there is no special file type for
text and binary in
filesystem either). The only difference is in case sensitivity - taken
from mysql manual.
You can also store bina
Miguel lópez dinaweb dpto. programación wrote:
Hi,
I can't send multiple sql staments in one query, i always get an error
saying that the sentece is incorrect, i thorw the sentece in a mysql
console and works fine, i'm sepraing sentences with ; i try to separe
using ;\n or ;\r\n but don't work
If you want to create a file, the directory must be writeable to the
server proces, so if the directory is
owned by you do
chmod o+w chat
Phil Powell wrote:
I did just that. Permissions are set the /chat folder as it is in all other
folders. This is the first time I've ever done fopen with "w
Or if you use GET in your forms, instead of POST, you won't have this
problem.
---John Holmes...
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:15 AM
Subject: Re: [PHP] Sessions/Browser
Lo all,
I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following
code is generating a WARNING???
if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
$modpath = "themes/$ThemeSel/";
}
I don't get it?
Warning: Unable to access themes/DeepBlue/modul
Hello,
"Chris Knipe" <[EMAIL PROTECTED]> wrote:
> Lo all,
>
> I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following
> code is generating a WARNING???
>
>
> if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> $modpath = "themes/$ThemeSel/";
> }
Hello,
"Seth Remington" <[EMAIL PROTECTED]> wrote:
[snip]
> Here's a function that I use to run multiple SQL statements at once -
[/snip]
...perhaps, a better way to put it is "run multiple SQL statements" _one
after another_ :)
It's a good approach though. ;)
- E
--
PHP General Mailing List
Hello,
"1LT John W. Holmes" <[EMAIL PROTECTED]> wrote:
[snip]
> No, can't do it. Only one query per mysql_query() call. Not sure with
other
> database interfaces, but it should be the same.
[/snip]
Yes, you cannot do it in MySQL. But you can do it with others.
(I think it was discussed before--
Hello,
Myrage wrote:
> No luck
> I have installed GD lib and zlib and all into c:\php\extensions bur i
> still
> get an error
>
> *Fatal error*: Call to undefined function: imagecreate() in
> *c:\inetpub\wwwroot\image.php* on line *24*
Run phpinfo() and check again (under GD). See if you can f
Hello,
"Monty" <[EMAIL PROTECTED]> wrote:
> I'm writing a poll app. I want it to work this way:
>
> 1. On web page, user selects choice, clicks VOTE.
>
> 2. Clicking VOTE triggers a pop-up window.
>
> 3. PHP script running in pop-up records vote, displays results.
>
> Problem is, POST
Hello,
There could be a lot of problems here but what *exactly* is the problem? No
more coffee, perhaps? :)
Post the error, if there's any. Or, take away the "@" sign and see what
happens...
- E
"Paul Dionne" <[EMAIL PROTECTED]> wrote:
> Ug, I hate Mondays. must drink more coffee.
>
> Anyway
Just to add...
Here's something that might interest you:
http://www.alistapart.com/stories/alternate/
... and here's another one: (Should be better than the one discussed above
:) )
http://www.alistapart.com/stories/phpswitch/
- E
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote:
> You might s
I am in need of a search engine. I'd rather do one in PhP. Is there one
available that I can see or at least get the code for?
I'm a newbie to php. :)
Krystal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
The problem I am having is as follows:
I setup PHP with IIS and it seems to work fine. I am creating a Intranet
site and would like to obtain the user logged on to the networks
username. I have setup basic auth but when I visit the site it asks me
for my username and password before I can get in
Hello,
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote:
> I'm having a weird problem.
I guess so. I don't understand what it is :)
> When I submit a form on my site, it often
> sends twice.
Sends what twice?
> I'm not sure if this is a client-side or server-side
> problem, but it doesn't happen
Can you be a bit more specific as to what you need to search on? Is it a
database, a set of web documents or do you want to create a search
engine like Google, which crawls websites as needed?
Let us know!
Marco
--
php|architect - The magazine for PHP Professionals
The first monthl
hotscripts.com
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am in need of a search engine. I'd rather do one in PhP. Is there one
> available that I can see or at least get the code for?
>
> I'm a newbie to php. :)
>
>
> Krystal
--
PHP General Mailing
Is it still possible to use enable-inline-optimization?
Is it adviceable?
I am using RedHat Linux 7.3 with all RPM's updated (i.e. GCC and so on), Php
4.2.3 and Apache 1.3.27
Regards Jacob
http://www.sharksforum.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Hi,
The problem is that i need to do only one mysql_query, i'm working whith
a remote database and i have .5 seconds in response time, to one - four
querys is less than two seconds Ok is fast but is i do 10 querys i need
5 seconds very slow.
:-)
__
On Mon, 2002-11-25 at 10:35,
> > conbud wrote:
> >
> > >Hey. This really isnt a PHP question. but what fonts do you reccomend
> using
> > >so they look decent on linux. Mainly looking for a good font that will
> look
> > >nice in MoZilla and Galeon. Almost all the fonts Ive used so far appear
> >
Hello,
"Chris" <[EMAIL PROTECTED]> wrote:
> I'm trying to write PHP code that will not only parse the XML but also
> allow me to sort the parsed information by the values parsed.
I'm not sure if I really understand but let me try...
...[snip code]...
Adding echo ''; before this and
> $xml_par
On Mon, 2002-11-25 at 08:31, [EMAIL PROTECTED] wrote:
> I am in need of a search engine. I'd rather do one in PhP. Is there one
> available that I can see or at least get the code for?
This article might help.
http://www.onlamp.com/pub/a/php/2002/10/24/simplesearchengine.html
Brad
--
PHP Ge
> > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> > $modpath = "themes/$ThemeSel/";
> > }
> >
> > I don't get it?
> >
> > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 4
I still havent found a site that shows what I need.
I dont think php.net explain how ereg works.
I only want to publish stuff from the stringvariable $text thats inside tags
looking like this
This shall be visible
or
This shall be visible too
thanks
Martin
--
PHP General Mailing List (http:/
Hello all,
I have searched the archives and cannot find an answer to this question.
I would like to implement the same type of white list spam protection
(where you must send a confirmation to be accepted) that php.net is
using at my company. Does anyone know what type of software packages
"Chris Knipe" <[EMAIL PROTECTED]> wrote:
> > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> > > $modpath = "themes/$ThemeSel/";
> > > }
> > >
> > > I don't get it?
> > >
> > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > > /usr/lo
Heyas,
Once upon a time I used to be able to POST form data to external sites with
ASP and an MSXML (or something) server object on IIS and I'm wondering if
there's a similar sort of technique using PHP. Would prefer it if I didn't
have to use anything that isn't part of your typical PHP/Apach
Hello,
"David Pratt" <[EMAIL PROTECTED]> wrote:
> Anyone have a simple technique for obtaining a unique list of elements
from
> an XML file?
>
> Am looking for something that will identify the first opening tag ie
> and the single tag so that I get an array of tags
> that I can print out. Havi
Just set register_globals on in the wiki directory.
Like this in your httpd.conf:
php_admin_flag register_globals on
-Rasmus
On Mon, 25 Nov 2002, DL Neil wrote:
> Excuse me breaking in...somewhat similar problem:
>
> Have set up a client recently, preaching security persuaded them into
> u
> Once upon a time I used to be able to POST form data to external sites
> with
> ASP and an MSXML (or something) server object on IIS and I'm wondering
if
> there's a similar sort of technique using PHP. Would prefer it if I
> didn't
> have to use anything that isn't part of your typical PHP/Apac
Thanks a lot, but do you know how to do the same with ereg_replace? I'm
trying to learn PCRE, but until I do, I won't be able to add anything to
this...
\\2',$text);
return $text;
}
print bbcode('[i]This[/i] is a [i]test[/i].');
?>
Works...
--
Kyle Gibson
admin(at)frozenonline.com
http://
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
tag, for example).
Kyle Gibson wrote:
Thanks a lot, but do you know how to do the same with ereg_replace?
I'm trying to learn PCRE, but until I do, I won't be able to add
anything to this...
\\2',$text);
return $text;
}
Sorry, use to using to a listserv that auto-plants the listserv address,
not the responder's address on replies :P
> From: @ Edwin [mailto:[EMAIL PROTECTED]]
> If you'd like to sort these, then I think you might be able
> to do something like this: 1. Instead of printf()'ing your
> 's or 's ins
I still havent found a site that shows what I need.
I dont think php.net explain how ereg works.
I only want to publish stuff from the stringvariable $text thats inside tags
looking like this
This shall be visible
or
This shall be visible too
thanks
Martin
Try the following:
]+>)([^<]+)(]+>)
On Tuesday 26 November 2002 00:02, Gene Bandy wrote:
> Hello all,
>
>
>
> I have searched the archives and cannot find an answer to this question.
Which archives did you search? Not the PHP ones I hope?
> I would like to implement the same type of white list spam protection
> (where you must send
> > > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
{
> > > > $modpath = "themes/$ThemeSel/";
> > > > }
> > > >
> > > > I don't get it?
> > > >
> > > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > > > /usr/local/www/v-webs/games.savage
hi
i'm having problems resizing jpegs.
here's an e.g. using manual example.
code used :
and the result can be seen here.
http://www.sitestogo.biz/temp/test.php
i'm wondering if it's to do with the gd library installed.
Does anyone know of any significant changes to the fgets() function in
php-4.3.0pre2 which might affect reading from a socket a single byte at
a time in the way I describe below? I've had to change to using fread()
instead, which is fine, but I'd like to know why I've had to do this,
and whether th
Check the owners of directories and files, they must be the same as for
/usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should
work under
safe mode too.
Chris Knipe wrote:
if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
{
$modpath = "th
Dave, et al --
...and then Merritt, Dave said...
%
% I working with helping our local high school technical center set up a web
% server/site. Went with the typical AMP solution (unfortunately on MSWin
Hey, three out of four ain't bad :-)
% though). The center is wanting to add an on-line ca
On Tuesday 26 November 2002 01:42, Leif K-Brooks wrote:
> Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
> tag, for example).
If you want to deal with nested tags then it's probably best to replace each
opening and closing tag individually. Otherwise you might end up with
All files are owened by my Apache user + Group, set to rw access on files
and rwx on directories...
I do a chown + chmod on my web server's tree every few minutes via cron for
my development system.
Just to proove my point...
root@netsonic:~# ls -l
/usr/local/www/v-webs/games.savage.za.org/html/
Hi,
I really need some help here because I am going to lose my mind otherwise!!
A script that was running fine Friday has decided not to work for no
apparent reason today. The problem seems to be with a socket_create that
just stops the script, so I created a simple test script as shown below to
s
On Tuesday 26 November 2002 02:10, [EMAIL PROTECTED] wrote:
> hi
> i'm having problems resizing jpegs.
> here's an e.g. using manual example.
> code used :
> $new_w=395;
> $new_h=297;
> header("Content-type: image/jpeg");
> $dst_img=ImageCreate($new_w,$new_h);
> $src_img=ImageCreateFromJpeg($name)
This seems to me to be more easily handled by XSLT. (Not the only option
but a good one).
XSLT lets you select only the nodes you want and also sort them as well.
@ Edwin wrote:
Hello,
"Chris" <[EMAIL PROTECTED]> wrote:
I'm trying to write PHP code that will not only parse the XML but also
Hi,
You have to choose a protocol for AF_INET sockets.
Try getprotobyname() with tcp and udp to get one.
bye
On Mon, 25 Nov 2002 10:24:46 -0800
[EMAIL PROTECTED] (Gareth Thomas) wrote:
> Hi,
>
> I really need some help here because I am going to lose my mind otherwise!!
> A script that was run
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote:
> hi
> i'm having problems resizing jpegs.
> here's an e.g. using manual example.
> code used :
> $new_w=395;
> $new_h=297;
> header("Content-type: image/jpeg");
> $dst_img=ImageCreate($new_w,$new_h);
> $src_img=ImageCreateFromJpeg($name);
>
>
Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache
are running on the same computer as Cyrus. Thanks!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This will replace all versions (open and close) of bold, italicize and
underline tags with brackets using preg_replace.
$text = preg_replace("/\[(\/)?([biu])\]/","<\\1\\2>",$text) ;
- find [ = "\["
- match IF slash exists = "(\/)?"
- match
sorry.i included the link so you can see the result
it's difficult to explain what it looks like without including
attachments - which is a worse idea i think!
there are no errors it just looks bad.
i didn't know that imagecreate() produces 8-bit images.
this implies that with older versions of gd
Hi.
I'm working on a project where I need to send a user an e-mail whose
content is identical to an already existing PHP-generated web page.
(This web page relies on session data to do its work.) The mail
function in PHP requires that I save the HTML of this page into a
variable and send it along
Hi.
I'm working on a project where I need to send a user an e-mail whose
content is identical to an already existing PHP-generated web page.
(This web page relies on session data to do its work.) The mail
function in PHP requires that I save the HTML of this page into a
variable and send it along
--- Kris Williams <[EMAIL PROTECTED]> wrote:
> Once upon a time I used to be able to POST form data to external
> sites with ASP and an MSXML (or something) server object on IIS
> and I'm wondering if there's a similar sort of technique using
> PHP.
You can post with PHP using cURL or doing it yo
On Tuesday 26 November 2002 03:14, Greg wrote:
> Can I user php to create IMAP mailboxes? I'm using Cyrus and php and
> apache are running on the same computer as Cyrus. Thanks!
The short answer is, yes.
The long answer is, if you have to ask then no.
Try searching the archives for something a
On Mon, 25 Nov 2002 14:14:54 -0500 [EMAIL PROTECTED] (Greg) wrote:
> Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache
> are running on the same computer as Cyrus. Thanks!
> -Greg
>
>
Maybe something like that would fit your needs:
http://www.delouw.ch/linux/web-cyr
Can anyone suggest an ELEGANT way to find out if an array is made of empty
strings or not?
example
$a = Array( '' , '' , '' ); //ok
$b = Array( '' , '' , 'error' ); // not ok
$c = Array( 'error' , '' , 'error' ); // not ok
tia
Mattia
--
PHP General Mailing List (http://www.php.net/)
To unsub
Hi,
After I submited a query, if I use back then forward
again the form will resubmit itself. Which I do not
want. Does anyone have a solution for this problem?
Thanks,
David
__
Do you Yahoo!?
Yahoo! Mail Plus Powerful. Affordable. Sign up now.
h
When the form is submitted check the database with the info that is
being submitted. If a record matches the data being submitted then don't
do the insert. If there is not a record there, then insert the record..
HTH
Clint
-Original Message-
From: David H [mailto:[EMAIL PROTECTED]]
Sent:
I don't know if I got it right bu try
echo htmlentities('This shall be visible');
htmlentities() will translate your string in 'This shall be visible'
> This shall be visible
> or
> This shall be visible too
--
PHP General Mailing List (http://www.php.net/)
To unsu
Hi,
I'm trying to use disable_functions inside an Apache's VirtualHost, like
this:
php_value disable_functions basename,chgrp,chmod,phpinfo
I tried both with and without " but the functions are not disabled. I'm
using php_flag safe_mode on in the same virtual host. Any help on what I'm
doing
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote:
> sorry.i included the link so you can see the result
> it's difficult to explain what it looks like without including
> attachments - which is a worse idea i think!
> there are no errors it just looks bad.
> i didn't know that imagecreate() pro
> When the form is submitted check the database with the info that is
> being submitted. If a record matches the data being submitted then don't
> do the insert. If there is not a record there, then insert the record..
Either that or, if you are using mySQL, instead of using "INSERT INTO..."
use "
But what about updates to the database...? Is there
away not to have the information send to the server at
all?
Thanks,
David
--- Clint Tredway <[EMAIL PROTECTED]>
wrote:
> When the form is submitted check the database with
> the info that is
> being submitted. If a record matches the data being
Unavailable as I am reading an XML file produced by another web site and
it dynamically updates the information on the sheet every 5 minutes or
so. At least to my knowledge of what XSLT can do.
> From: Geoff Hankerson [mailto:[EMAIL PROTECTED]]
>
> This seems to me to be more easily handled by
You can't disable functions in your httpd.conf. That particular directive
is probably the only one that is server-wide and can only be set in your
php.ini file. The reason is that it is too expensive to disable and
re-enabled functions on a per-request basis which is what we would need to
do if w
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
tag, for example).
Nested tags? Do you mean [ib] ? Or [i[b]]?
If you mean [ib], then I'm afraid what you want cannot be done in
ereg_replace.
As far as I am aware, that is.
--
Kyle Gibson
admin(at)frozenonline.com
http://w
Not really. The back button uses the browers history to go back.. And
there is no way to disable the back button.
-Original Message-
From: David H [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:33 PM
To: Clint Tredway; [EMAIL PROTECTED]
Subject: RE: [PHP] Form trouble
Bu
There is one common method used to avoid this that is pretty
reliable.
1. http://example.org/1.php submits to http://example.org/2.php
2. http://example.org/2.php processes the form, then uses a
Location header to redirect to http://example.org/3.php. For
example:
header("Location: http
On Mon, 25 Nov 2002, Rasmus Lerdorf wrote:
> You can't disable functions in your httpd.conf. That particular directive
> is probably the only one that is server-wide and can only be set in your
> php.ini file. The reason is that it is too expensive to disable and
> re-enabled functions on a per-
1 - 100 of 163 matches
Mail list logo