Michal Migurski wrote:
I am creating a system to allow users to upload images to the site.
Would it be better to store the images in a MySQL table, or having it
save the images to a directory on the server? Anyone have any
suggestions on this? Pros? Cons?
MySQL themselves advise you use the
I'm writing a script that does image manipulation, and trying to take
some of the images I use in an imagecopy() out of the filesystem as
images, and put them directly in the php file as strings assigned to
variables. Of course, they're binary so they garbledygook everything if
they're not
Hi all,
Im wondering if anyone can help me with this problem
I have a form with the following line of code;
$message .= a
href=\http://127.0.0.1/devsite/activate.php?member=$realnamehash=$initPass\;Click
here to activate/a\n;
What I actually get is the following output;
a
Make sure that your header function as it set to send html mail
Steven Mac Intye [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
Im wondering if anyone can help me with this problem
I have a form with the following line of code;
$message .= a
hehe,
Thanks ... I got it
I replaced my content type with the following:
Content-Type: text/html; charset=iso-8859-15
Now it works perfectly :))
Thanks all
Steven Mac Intye wrote:
Hi Ray,
Nope... this is what it outputs now.
Hi
I am using deskpro. see http://www.deskpro.com
It's written in PHP, but it is not cheap. From my brief experience I would
have to say however that it certainly seems to be worth it.
Such a sophisticated ticketing system would take a very significant amount
of time to build from scratch.
HTH
Hi all
I am having problems printing members of an array that has two
dimensions and am wondering if someone can help me with the syntax
required to do this.
If i have the follwing code:
?php
$test=array('test1'='a','test2'='b');
print $test[test1];
?
I get 'a' echoed to the screen as
Just found the answer so please disregard this.
Cheers
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Tuesday, March 23, 2004, 8:03:05 PM, you wrote:
BP Hi all
BP I am having problems printing members of an array that has two
BP dimensions and am wondering if someone can help me with the syntax
BP required to do this.
BP If i have the follwing code:
BP ?php
BP
Hi all
I know this is not a Javascript mailling list, and I do apologies.
I someone could please help me a url or an email, this would be most appreciated.
I would like to have a yes \ no prompt displayed and depending on which button is
pressed
take the right course of action.
Kind Regards
Hi,
I discover a surprising thing with PHPSESSID, I try something like this
:
$var=htmldoc -t html --quiet ''
'https://login:[EMAIL
PROTECTED]/file.php?documentIdent=157typeAffiche=3PHPSESSID=068dd351a106bb6ead80e11a27f75100';
echo 'var='.$var;
passthru($var);
passthru is waiting for and
How do I change a string to a float, when the string may be in this format :
4,999.90 , or this format: 4999,90 (european style)
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 ext 214
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web :
[snip]
(no theories please. unless it's correct. in which case it's ok. :)
[/snip]
ROFLMFAO! If it is correct then it is no longer theory! Sorry Chris,
maybe I should go lay down.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
?php
interface Foo {
const MY_FOO = hello world;
}
class Bar implements Foo {
public function displayFoo(){
print MY_FOO;
}
}
$obj = new Bar;
$obj-displayFoo();
?
The results should display hello world, but it prints out MY_FOO.
[/snip]
This is not a bug, but
[snip]
How do I change a string to a float, when the string may be in this
format :
4,999.90 , or this format: 4999,90 (european style)
[/snip]
http://us4.php.net/settype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 23 Mar 2004 13:33:36 - Issue 2663
Topics (messages 181215 through 181251):
Re: Passing by conditional IF statement...why?
181215 by: Ligaya Turmelle
181217 by: Daniel Guerrier
181219 by: Ryan A
181221 by: John W. Holmes
181224 by:
Not too fast.
From http://www.php.net/zend-engine-2.php
PHP 5 introduces per-class constants:
?php
class Foo {
const constant = constant;
}
echo Foo::constant = . Foo::constant . \n;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Not too fast.
From http://www.php.net/zend-engine-2.php
PHP 5 introduces per-class constants:
?php
class Foo {
const constant = constant;
}
echo Foo::constant = . Foo::constant . \n;
?
[/snip]
My bad. Still not a bug.
--
PHP General Mailing List (http://www.php.net/)
To
hi
in an attempt to create a login system for site administrators on a website i come
into the following problem that bothers me because i cant find any way to fix it.
problem:
most login scripts/systems i look at for examples on how to make a login section from
sessions (allow the
this is probably because Foo is an interface instead of a class. interfaces
can't contain any data as far as I know.
Jakes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The bug server looks like its down, so I will just post the bug here, and
hopefully someone
will spot it
PHP
try using ' instead of
Steven Mac Intye [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
Im wondering if anyone can help me with this problem
I have a form with the following line of code;
$message .= a
try using $HTTP_SESSION_VARS[]
by the way. if hacks can find out the user-pass combination they can just
use the normal way of logging in ;-)
Andy B [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi
in an attempt to create a login system for site administrators on a website
i come
snip
a
href=securepage.php?_SESSION[username]=admin_SESSION[pwd]=passwordgo
to secure page/a
/snip
Turn off register globals.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
securepage.php?_SESSION[username]=admin_SESSION[pwd]=password
would not register 'username' and 'pwd' to the $_SESSION array but
to the $_GET and $_REQUEST-Array like:
$_GET['_SESSION']['username'] = 'admin'
There is no way to inject any kind of data to the super-global Arrays at all
You can keep constant variables in an interface, because thay are
static and do not change. Trust me, it is a bug.
Gerben [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
this is probably because Foo is an interface instead of a class.
interfaces
can't contain any data as far as I
What does the code look like that is causing this error? I know I can turn the
error off but how do I fix the code that is causing it?
Warning: Unknown(): Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does
not
[snip]
There is no way to inject any kind of data to the super-global Arrays at all
[snip]
duhhh...how come i didnt think of that... well..guess its long nights
without coffee.. tnx...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you define constants with in a interface and then implement that
interface
it does not work on 5RC1
This should work, but it displays the constant name rather than value it
references
interface Settings {
const UNAME = somename;
const PWORD = password;
const SERVER = localhost;
}
IIRC it was changed to
self::CONST_NAME recently
interface Settings {
const UNAME = somename;
const PWORD = password;
const SERVER = localhost;
}
class Conn implements Settings {
public function __construct(){
$dbConn = mysql_connect(self::SERVER, self::UNAME,
Give this a read:
http://marc.theaimsgroup.com/?l=php-devm=107936530102181w=2
Am Dienstag, 23. März 2004 15:16 schrieb Red Wingate:
IIRC it was changed to
self::CONST_NAME recently
interface Settings {
const UNAME = somename;
const PWORD = password;
const SERVER = localhost;
}
In plain english, can't use the header(Location: ), so have to use the
fsockopen() instead. Just that header() is not allowed, don't ask me why.
Just couldn't get the browser perform the HTTP LOCATION event. It does work
when using fsockopen() for HTTP POST or GET as stated in the
In plain english, can't use the header(Location: ), so have to use the
fsockopen() instead. Just that header() is not allowed, don't ask me why.
Just couldn't get the browser perform the HTTP LOCATION event. It does work
when using fsockopen() for HTTP POST or GET as stated in the
You can use the HTTP Authentication instead for username and password.
Andy B [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
There is no way to inject any kind of data to the super-global Arrays at
all
[snip]
duhhh...how come i didnt think of that... well..guess its long
Thanks, will do.
Red Wingate [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Give this a read:
http://marc.theaimsgroup.com/?l=php-devm=107936530102181w=2
Am Dienstag, 23. März 2004 15:16 schrieb Red Wingate:
IIRC it was changed to
self::CONST_NAME recently
interface Settings {
Pablo Gosse a écrit :
munging up the HTTP_REFERER for a page?
In HTTP, Referer is an OPTIONAL field in the HTTP/1.1 spec
(see rfc 2616). I saw many strange referers
(like 'Empty', 'bookmarks' 'XXX++', 'Removed by YYY', etc)
sent or modified by security assistants, browsers, spiders...
You can
[snip]
You can use the HTTP Authentication instead for username and password.
[/snip]
no i cant this time because the people want the login form to follow their
color setup and stuff and with www-authenticate: box you cant do that...so
for this project its out of the question...
--
PHP General
Guillouet Nicolas wrote:
Hi,
I discover a surprising thing with PHPSESSID, I try something like this
:
$var=htmldoc -t html --quiet ''
'https://login:[EMAIL
PROTECTED]/file.php?documentIdent=157typeAffiche=3PHPSESSID=068dd351a106bb6ead80e11a27f75100';
echo 'var='.$var;
passthru($var);
passthru
Hi,
Newbie warning - this may be extremely simple.
I've been given a bit of code to get to work on our test machines, but at
the moment I'm drawing a blank. As far as I can tell the problem lies in the
dev. using a server environment with register_globals = On, while we use
the default setting
[snip]
session_start();
$_SESSION = user;
$_SESSION = pass;
This doesn't work of course, but as I said I'm unsure of how the $_SESSION
superglobal is used, and the info I've found about it didn't shed much
light... I hope I'm just tired today 8-)
Another semi-related question is, is it common to
$_session[user]=$_POST[user];//if using register_globals=off
Actually, $_SESSION with a capital letters does work...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Then do what I did, the script below is only an example..
--snip--
?
if ($_REQUEST['dw'] == 0) {
session_start()
$_SESSION['username'] = ; //Wherever you got the userid from
$_SESSION['password'] = ; //Wherever you got the password from
//if successful
Here's what I do, maybe this will help to give you an idea...
--snip--
?
if ($_REQUEST['dw'] == 0) {
session_start();
$_SESSION['username'] = ; //Wherever you got the username from...
$_SESSION['password'] = ; //Wherever you got hte password from...
} else if ($_REQUEST['dw']
snip
The idea is exactly not to do any queries dynamically generated based
on user input! In the rare cases where this is needed you should not
allow any unparsed input.
/snip
A RARE case, in the world of web applications??? Hardly!
I agree that in an optimal situation queries will not
Hi, all --
I would like to make things easier for my users and replace all of the
garbage characters
`';:[EMAIL PROTECTED]*()[]{}/?\|+=
plus white space (\s) with underscores in the input. I am, however,
having trouble getting my regexp to work.
I can comfortably do
$i =
(This msg. may arrive twice, with two different senders, I've had a little
trouble with the news server)
Hi, thanks for your reply.
first $_SESSION works like this:
session_start();
$_session[user]=$_POST[user];//if using register_globals=off
$_SESSION[user]=$user;//if
In plain english, can't use the header(Location: ), so have to use
the fsockopen() instead. Just that header() is not allowed, don't ask me
why. Just couldn't get the browser perform the HTTP LOCATION event.
--snip--
$host = 192.168.0.2;
$port = 443;
$url_str =
I want to end up with
A-Za-z0-9_-
(letters, numbers, underscore and dash).
If there isn't a handy character class waiting for me, what must I do to
get those chars replaced?
$out = preg_replace('/\W+/', '', $in);
-
This has nothing to do with the browser. Instead of using
session_register(last_time) and setting $last_time, do this:
$_SESSION['last_time'] = time();
It's shorter and it will make the warning go away.
-Rasmus
On Tue, 23 Mar 2004, James E Hicks III wrote:
What does the code look like
Jay Blanchard mailto:[EMAIL PROTECTED]
on Tuesday, March 23, 2004 5:27 AM said:
[snip]
(no theories please. unless it's correct. in which case it's ok. :)
[/snip]
ROFLMFAO! If it is correct then it is no longer theory! Sorry Chris,
maybe I should go lay down.
exactly! that's what i'm
--- Andy B [EMAIL PROTECTED] wrote:
i run into the deal where most login scripts check to see if
$_SESSION[username] or a $_SESSION var has been set or is valid.
i noticed this could be a very bad thing because there is nothing
stopping an outside link from doing something like:
a
[snip]
Then do what I did, the script below is only an example..
--snip--
?
if ($_REQUEST['dw'] == 0) {
session_start()
$_SESSION['username'] = ; //Wherever you got the userid from
$_SESSION['password'] = ; //Wherever you got the password from
//if
--- Michael Rasmussen [EMAIL PROTECTED] wrote:
The idea is exactly not to do any queries dynamically generated based
on user input!
This argument still makes no sense to me. Originally, you stated that a
better option to filtering and escaping data was to use a prepared
statement. Some of us
--- Scott Fletcher [EMAIL PROTECTED] wrote:
In plain english, can't use the header(Location: ), so have to
use the fsockopen() instead. Just that header() is not allowed, don't
ask me why.
I'm asking anyway. :-)
You cannot (thank goodness) connect to a remote client with fsockopen(),
so
Um, you would be able to jump out of the admin area (logged in area) to
public/free area and back to the admin area (logged in area) only if either
one of these two, not necessnary both is maintained on every webpage of that
website, 1) session_start() or 2) session_id via links/form. But if the
James E Hicks III wrote:
What does the code look like that is causing this error? I know I can turn the
error off but how do I fix the code that is causing it?
Warning: Unknown(): Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the
Kim L. Laage wrote:
(This msg. may arrive twice, with two different senders, I've had a little
trouble with the news server)
Hi, thanks for your reply.
first $_SESSION works like this:
session_start();
$_session[user]=$_POST[user];//if using register_globals=off
$_SESSION[user]=$user;//if
Boy! Everyone here is itching for an answer!!! :-) Sigh! Well, I guess
all web browsers suck at it by the way!! Michal Migurski from other posting
had explained that fsockopen() do the TCP stuff or the Transport Layer. So,
no wonder fsockopen() can't get to the Network layer, like the IP
David T-G wrote:
Hi, all --
I would like to make things easier for my users and replace all of the
garbage characters
`';:[EMAIL PROTECTED]*()[]{}/?\|+=
plus white space (\s) with underscores in the input. I am, however,
having trouble getting my regexp to work.
I can comfortably do
$i =
See the reply to the Chris Shiflett's reply...
Michal Migurski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In plain english, can't use the header(Location: ), so have to use
the fsockopen() instead. Just that header() is not allowed, don't ask me
why. Just couldn't get the
Hi,
I've done loads and loads with PHP and MySQL and stuff like that... but
never had to really deal with actually creating new domains and
subdomains with PHP. Especially with subdomains, I've seen lots of
sites create subdomains automatically.
What is the best technique for doing all this
Scott Fletcher wrote:
Um, you would be able to jump out of the admin area (logged in area) to
public/free area and back to the admin area (logged in area) only if either
one of these two, not necessnary both is maintained on every webpage of that
website, 1) session_start() or 2) session_id via
And finally, for those of you who are dying to know the answer to why I
can't use the header(). It's the 3rd party coding that contain the code,
--snip--
if(headers_sent())
$this-Error(' ');
--snip--
Why not delete that part of the 3rd party code then? Or send your Location
header
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Sigh! Well, I guess all web browsers suck at it by the way!
Suck at what exactly?
Michal Migurski from other posting had explained that fsockopen()
do the TCP stuff or the Transport Layer. So, no wonder fsockopen()
can't get to the Network layer,
When I make a complex query to a table with 500,000 rows via PHP, my web
browser thinks for a minute and then stops the execution of the script with
no error messages at all.
I have set the max_execution_time to 400 and called error_reporting(E_ALL)
with the same results. I'm using PHP 4.3.1
Is there a way to get it so that i can clear _post and get it so they
arent
in the header??
After you've finished all of the processing, just do:
header( 'location: ' . $_SERVER['PHP_SELF'] );
exit();
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Galen wrote:
Hi,
I've done loads and loads with PHP and MySQL and stuff like that... but
never had to really deal with actually creating new domains and
subdomains with PHP. Especially with subdomains, I've seen lots of sites
create subdomains automatically.
What is the best technique for
On Tue, 23 Mar 2004 08:25:32 -0800, Pablo Gosse wrote:
A RARE case, in the world of web applications??? Hardly!
I agree that in an optimal situation queries will not be based on user
input, but in the world of the web this is a pipe dream. In 99.99% of the
cases there will be some
On Tue, 23 Mar 2004 09:27:29 -0800, Chris Shiflett wrote:
This argument still makes no sense to me. Originally, you stated that a
better option to filtering and escaping data was to use a prepared
statement. Some of us have decided that you are referring to stored
procedures.
You still
--- Michael Rasmussen [EMAIL PROTECTED] wrote:
I think you have misunderstod the concepts of making queries based
on user input. It is not the users who should create the query, all
to should do is provide the input to narrow down the queries.
To be honest, I think Pablo understands the
snip
PG A RARE case, in the world of web applications??? Hardly!
PG
PG I agree that in an optimal situation queries will not be based on
PG user input, but in the world of the web this is a pipe dream. In
PG 99.99% of the cases there will be some dynamic element to a query.
PG The only
Sigh! Well, I guess all web browsers suck at it by the way!
Suck at what exactly?
Not suck at receiving the HTTP commands from the webserver but suck at not
receiving the HTTP commands from the PHP. :-) I understand how the
browser/webserver communication work so no wonder why it doesn't
Why not delete that part of the 3rd party code then? Or send your Location
header before you call it? Curl won't help you here, for the same reasons
that fsockopen won't work.
Not sure about deleting the part of the 3rd party code though, I had thought
about it alot and I had been itching for
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Application -- Web Browser/Web Server
Presentation -- HTTP/HTTPS/SSL and language (HTML/JavaScript, etc).
Session -- Browser-Server connection, etc.
Transport -- Port 80/Port 443, packet transfer control, etc.
Network -- IP Address/Internet/Router
On some webmail programs, when I send them an email from php, they appear as
being blank emails.
Here's the code I am using:
$headers .= From: \$WEBSITE_name\ $ADMIN_email\n;
$headers .= X-Sender: $ADMIN_email\n;
$headers .= X-Mailer: $WEBSITE_name Mailer\n; // mailer
$headers .=
Apologies if this has been asked before,
I'm experiencing problems with Session Variables and Radio Inputs
values.
For some reason, after I use session_register(number) where
$number has 3 possible values { 1,2,3 }, $number IS NULL.
If I don't use session_register(number), $number IS NOT NULL.
Tom Reed wrote:
On some webmail programs, when I send them an email from php, they appear as
being blank emails.
Here's the code I am using:
$headers .= From: \$WEBSITE_name\ $ADMIN_email\n;
$headers .= X-Sender: $ADMIN_email\n;
$headers .= X-Mailer: $WEBSITE_name Mailer\n; // mailer
Gohaku wrote:
Apologies if this has been asked before,
I'm experiencing problems with Session Variables and Radio Inputs values.
For some reason, after I use session_register(number) where
$number has 3 possible values { 1,2,3 }, $number IS NULL.
If I don't use session_register(number), $number
Also remember to keep in mind, some user's browser had the cookie disabled.
Once that happen then it wouldn't work.
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher wrote:
Um, you would be able to jump out of the admin area (logged in area) to
Hi All,
I am getting this error when I trying to pass some url params;
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
And nothing
Has anybody seen this before? I did a search and it seems that there are a
Hi All,
I have a list box in a page (html select tag with multiple selection
option). Items are added dynamically in list box, using javascript. Can i
get all elements of listbox in my php code.
If i do $_POST['select_tag_name']. I get a variable not an array. Thus
getting only one item.
Justin, et al --
...and then Justin Patrin said...
%
% David T-G wrote:
%
% I would like to make things easier for my users and replace all of the
% garbage characters
%
% `';:[EMAIL PROTECTED]*()[]{}/?\|+=
%
% plus white space (\s) with underscores in the input. I am, however,
% having
Sheeraz fazal wrote:
Hi All,
I have a list box in a page (html select tag with multiple
selection option). Items are added dynamically in list box, using
javascript. Can i get all elements of listbox in my php code.
If i do $_POST['select_tag_name']. I get a variable not an array.
Thus
Matt --
...and then Matt Palermo said...
%
% I am creating a system to allow users to upload images to the site. Would
% it be better to store the images in a MySQL table, or having it save the
% images to a directory on the server? Anyone have any suggestions on this?
% Pros? Cons?
This has
Good afternoon!
I am storing some encrypted data using PHP to do the encryption and a MySQL database.
I have encountered a couple of times where I get back a query sytax error.
INSERT INTO `test`.`tblEncTest` (`encAlg`, `encMode`, `encIV`, `reqName`, `reqSSN`,
`reqEMail`) VALUES ( 'blowfish',
Hey gang,
Ok here's my problem, I'm in the midst of creating a string replace to work
on a rtf file that is on the server, this fuctionallity works perfect with
GET but not POST, I guess I don't understand why. The reason I don't
want to use GET over POST is due to the character restrictions. I
Hello all..
For some odd reason, I am having a very very difficult time compiling
PHP with EAPI support.. Here is my configure line:
CFLAGS= -DEAPI \
./configure \
--with-apxs \
--with-config-file-path=/etc \
--disable-short-tags \
--with-zlib \
--with-bz2 \
--with-curl \
--with-mcrypt \
Thanks.
As same select element is used in PHP and JavaScript. Naming a tag ending
in sqare brackets [] is JavaScript error. Till now either PHP will not
produce desired results or JavaScript will give me error :(
Pablo Gosse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sheeraz fazal
My Mistake. I over looked :(
Pablo Gosse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sheeraz fazal wrote:
Hi All,
I have a list box in a page (html select tag with multiple
selection option). Items are added dynamically in list box, using
javascript. Can i get all elements of
Jay Blanchard wrote:
You have an error in your SQL syntax near 'HXppT 7 GH' ) ' at line 1
Now, if you look closely you can see and additional single quote in R'HX. I cannot use addslashes() here can I? Or should I base64_encode each item and then decode on the way back out. Any thoughts
Scott Fletcher wrote:
Also remember to keep in mind, some user's browser had the cookie disabled.
Once that happen then it wouldn't work.
Very true. If that was the case, you'd have to maintain the session ID
in every URL/form for the private area and also provide it in any URLs
that go from
PHP Email List wrote:
Ok here's my problem, I'm in the midst of creating a string replace to work
on a rtf file that is on the server, this fuctionallity works perfect with
GET but not POST, I guess I don't understand why.
[snip]
$name = $_POST['FNAME'];
[snip]
$output =
What version of mysql are you using? IIRC, there is support for AES in newer
(4+?) versions. If I were you, I'd handle are the encryption and decryption
in the database, if possible.
Yep, http://www.mysql.com/doc/en/Encryption_functions.html
On Tuesday 23 March 2004 02:04 pm, Jay Blanchard
PHP Email List wrote:
Ok here's my problem, I'm in the midst of creating a string replace to
work
on a rtf file that is on the server, this fuctionallity works perfect with
GET but not POST, I guess I don't understand why.
[snip]
$name = $_POST['FNAME'];
[snip]
$output =
I have REGISTER_GLOBALS set to off. I have read and read, but cannot figure out what I
need to do code wise to keep from getting the following message:
Warning: Unknown(): Your script possibly relies on a session side-effect which existed
until PHP 4.2.3. Please be advised that the session
PHP Email List mailto:[EMAIL PROTECTED]
on Tuesday, March 23, 2004 3:08 PM said:
This is becoming very odd!
Possible bug? I hate throwing that out there but it doesn't make
sense why one would work and the other wouldn't since all any of them
are doing is holding strings. Any other
Thanks.
Below is what I changed to session.php.
Are there any possible problems with my changes?
On Mar 23, 2004, at 4:28 PM, Justin Patrin wrote:
?
/***Session.php**/
$varcount = 0;
if($name){$varcount++;}
if($number){$varcount++;}
session_start();
Hi,
What is the correct way, using php to join to strings, vars or other wise.
i.e. how do I join
$string1 = hello;
$string2 = world;
do i do
$string1 . $string2;
and what about ..
$string2 = $string1 . world;
Is that correct?
Matthew Oatham mailto:[EMAIL PROTECTED]
on Tuesday, March 23, 2004 3:59 PM said:
Hi,
hi.
What is the correct way, using php to join to strings, vars or other
wise.
[snip]
i.e. how do I join
$string1 = hello;
$string2 = world;
do i do
$string1 . $string2;
[snip]
Is that
I tried using the Header('location: ') but it seems the posted data
follows the redirection
Im going from my main page to a processing page then back to my main page.
i printed $_POST on the main page and it still has the values that were
originally posted to the
processing page. Also after
what happens if you do the following?
?php
$name = $_POST['FNAME'];
echo ::$name::;
$output = str_replace(FNAME, $name, $output);
?
??
I tried that, but I know I can get the values from the $_POST array as per
John's email about using print_r($_POST) to see what was showing. And yes I
get
1 - 100 of 118 matches
Mail list logo