what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
--
""open source world, open mind for all""
--
PHP General Mailing List (http://www.php.net/)
To u
Everything you need is at:
http://www.php.net/manual/en/function.strip-tags.php
Cheers,
Rob.
Mike Migurski wrote:
>
> >I want to be able to retrieve and return all character that are not
> >located in html tags. For example:
> >
> >1234567
> >or
> >1234567
> >
> >I would just like it to be
So what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
"Thomas Seifert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> yeah its the right w
As I said before that I don't want the same user to confuse in which part of
the site he is ... because as I said it is same PHP files but dealing with
different databases and tables.. so I can't let him jump in between , and
cause some confusion and data mess when he's entering data..
PLEASE COMM
Hi,
Friday, June 20, 2003, 7:42:48 AM, you wrote:
SÖ> Hi, Im having this problem:
SÖ> I set a cookie using this:
SÖ> $sql = "UPDATE member SET cookie=$cookie WHERE
SÖ> ".
SÖ> "id = $this->id";
SÖ> $this->mysql->query($sql
On 22-Jun-2003 Philip J. Newman wrote:
> I run a website from New Zealand. The problem is when j, Y, g:i a"); ?> it shows the time of the server, that just happens to
> be located in Dallas USA. Is there a way that I can change the time so it
> matchs New Zealand Time?
';
putenv('TZ=PST8PDT');
e
>I want to be able to retrieve and return all character that are not
>located in html tags. For example:
>
>1234567
>or
>1234567
>
>I would just like it to be equal to 1234567, but I would need it to work
>with any tags and attributes.
A good starting point might be preg_replace, search pattern '
I want to be able to retrieve and return all character that are not
located in html tags. For example:
1234567
or
1234567
I would just like it to be equal to 1234567, but I would need it to work
with any tags and attributes. Is there a way to just throw out
everything from the < to the > and
what about for version 4.3.1??
Jay
At 01:41 PM 6/22/2003 +1000, you wrote:
Yes, for PHP >= 4.1
Justin
on 22/06/03 12:22 AM, Jay Fitzgerald ([EMAIL PROTECTED]) wrote:
> is this the correct way to register variables via a session?
>
> [code]
> session_start ();
> $_SESSION['eventid'] = 'arma2'
Øystein Håland wrote:
From Excel you can save a table as a tab separated txt-file. I want to take
this and execute INSERT queries (by uploading the file or by copying the
content into a textarea). Anyone who has a script to do this? My platform is
Windows, but the script will be used on a Linux web
I run a website from New Zealand. The problem is when it shows the time of the server, that just happens to be located in Dallas
USA. Is there a way that I can change the time so it matchs New Zealand Time?
"Lel Bruce Peto" updating more energy news...
S Korean SK Global's domestic creditors agree to keep firm
afloat
Domestic creditors of South Korean conglomerate SK group's
debt-ridden trading arm SK Global Tuesday voted in favor of
keeping the company afloat by rescheduling its debt and
converting
>From Excel you can save a table as a tab separated txt-file. I want to take
this and execute INSERT queries (by uploading the file or by copying the
content into a textarea). Anyone who has a script to do this? My platform is
Windows, but the script will be used on a Linux web server.
--
PHP G
Actually, if we want too go into details, according to the international
standard for units, there is a big difference in 'M' and 'm'. 'M' means
Mega and 'm' means milli. You are probably aware of that Mega is 10 in
the power of 3 but milli is 10 in the power of -3. The difference is,
like, a milli
> And what about highlighting the whole word which contains the searched term.
yes - like i said - this would be a solution:
>> - or: displays entries that contain "bytes" and highlights "bytes"
do you have any idea how to manage it?
best wishes
philipp
www.ipdraw.org
am 21.06.2003 12:57 Uhr
Ben Johnston wrote:
How do i get PHP to work on my Microsoft Windows Server 2003?
Read the installation instructions: http://www.php.net/
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
--
PHP G
How do i get PHP to work on my Microsoft Windows Server 2003?
On Sat, 2003-06-21 at 16:59, Kyle Babich wrote:
> $entry = fread($entryGet, filesize("postEntries/{$entriesIndex}"); //67, line /w
> parse error
Missing a ')'
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The following code obtains lists of files from two different directories and reverse
numerically sorts them. Then bellow it takes one file and dumps the contents into an
array, which works fine. The problem is where it takes the entire content of the
matching file from the second directory and
php-general Digest 21 Jun 2003 22:55:26 - Issue 2131
Topics (messages 152376 through 152412):
Re: making image smaller with same aspect ratio
152376 by: azero
search-and-highlight issue ("byt tes")
152377 by: 457945.gmx.ch
152379 by: Milan Reznicek
Re: saving TEXTAR
Thomas Hochstetter wrote:
Hi guys.
I want to call this generic echo function within a class, but have
trouble referencing the output function with $this-> .
Any suggestions? Maybe there is a better solution to this?
This is within a class:
[snip]
# generic WALK functions
function walki
On Sat, 2003-06-21 at 16:00, Dan Anderson wrote:
> I have a form which feeds into an e-mail. When I use the mail function
> all 's turn into \'s and all "s turn into \"s. I tried
> set_magic_quotes_runtime(0) and it didn't do anything, neither did
> urldecode(). Is there a function to strip esca
I have a form which feeds into an e-mail. When I use the mail function
all 's turn into \'s and all "s turn into \"s. I tried
set_magic_quotes_runtime(0) and it didn't do anything, neither did
urldecode(). Is there a function to strip escape charechters?
Thanks,
Dan
--
PHP General Mailing L
At 9:43 AM +0300 6/21/03, nabil wrote:
4- I want if any user jumped to the other directory and logged in with the
correct requested password TO HAVE THE FIRST SESSION UNREGISTERED
automatically, so he can't be logged in in both at same time.. and keep only
the new.. and ofcourse have to re logging
On Jun 21, 2003, "George Pitcher" claimed that:
|Jay,
|
|I've never ventured into 'sessions' (not ones without drinks) but I've a
|feeling that if the user has turned cookies off then sessions are out as
|well as they require a cookie being stored on the user's machine.
|
|Someone will surely corr
On Sat, 21 Jun 2003 19:24:26 +0200, you wrote:
>I want to call this generic echo function within a class, but have
>trouble referencing the output function with $this-> .
>Any suggestions? Maybe there is a better solution to this?
>
>This is within a class:
>
>[snip]
># generic WALK functions
>
On Jun 21, 2003, "John W. Holmes" claimed that:
|Artoo wrote:
|> Is it better to use that function before the INSERT query and save it to the
|> database like that or use that nl2br() function while displaying the results
|> of the SELECT query,
|
|Use it while displaying. You generally want to sa
Artoo wrote:
Is it better to use that function before the INSERT query and save it to the
database like that or use that nl2br() function while displaying the results
of the SELECT query,
Use it while displaying. You generally want to save the data in the
database exactly as it was entered. This w
Jay Fitzgerald wrote:
I have been searching for an answer to this for a couple of hours now
and cant find anything. I believe that there is a secure way of doing
this but I think my brain is having a momentary lapse...
I have these variables:
$eventid = "1";
$age = "15";
Is there a way to pass
How many times do people have to respond to your same email before you get a
clue?
http://marc.theaimsgroup.com/?l=php-general&m=105621501902618&w=2
http://marc.theaimsgroup.com/?l=php-general&m=105593686426998&w=2
http://marc.theaimsgroup.com/?l=php-general&m=105556674131637&w=2
PHP is server s
Hi guys.
I want to call this generic echo function within a class, but have
trouble referencing the output function with $this-> .
Any suggestions? Maybe there is a better solution to this?
This is within a class:
[snip]
# generic WALK functions
function walkit($array)
{
I have recently created a site that has some PHP in it. It works fine in
all browsers except AOL. I can see some of the PHP page in AOL except the
one that fetches information from MySQL database. I also host my own server
for this site. Maybe this is a server setting or securtity issue. Anyon
If there an ability like Perl to determine if a file is a text file (-T) or any other
type??
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
you can transfer the session-id (which is unique) through the url too.
but then its only the session-id and not the actual data and the session-id
can't be guessed that simple to reach another user's data.
Thomas
On Sat, 21 Jun 2003 15:31:56 +0100 [EMAIL PROTECTED] (George Pitcher) wrote:
> Jay
I have a custom extension for windows (dll which can be used in PHP).
I want to run some php code inside this dll module. I searched for Zend_API
Docs, but I could not find any way to run php code inside this API.
Any Ideas how to do this,
Please help!
Thanks
Suhas
--
PHP General Mailing Lis
yeah its the right way.
though I don't know what you'r trying to do with
echo " $_SESSION";
Thomas
On Sat, 21 Jun 2003 09:22:39 -0500 [EMAIL PROTECTED] (Jay Fitzgerald) wrote:
> is this the correct way to register variables via a session?
>
> [code]
> session_start ();
> $_SESSION['eventid'] =
"Roy W" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Can someone let me know how to return TWO variables from a function
>
> I tried:
>
> return $var1, $var2;
>
> But I get parse errors and other errors.
function ReturnMultiValues($a, $b, $c, $d) {
return array($a, $b, $c, $d
Jay,
I've never ventured into 'sessions' (not ones without drinks) but I've a
feeling that if the user has turned cookies off then sessions are out as
well as they require a cookie being stored on the user's machine.
Someone will surely correct me if I am wrong.
I went to the PHP conference in F
is this the correct way to register variables via a session?
[code]
session_start ();
$_SESSION['eventid'] = 'arma2';
print_r ($_SESSION);
echo " $_SESSION";
[/code]
[result]
Array ( [eventid] => arma2 )
Array
[/result]
I apologize for the numerous questions, but I am trying to learn...If
anyone
That was my thought too, George. But if the user does not have cookies
enabled, then I believe, as Thomas pointed out, that a SESSION is the only
way to handle the variables. I have never done a "correct" session so I am
trying to learn how to do them without having a userid and password for
ea
Yeah - just dumb!. I'd put my date vars into mktime in the european order.
Once I switched them it worked fine.
Chers
George
> -Original Message-
> From: George Pitcher [mailto:[EMAIL PROTECTED]
> Sent: 21 June 2003 2:50 pm
> To: [EMAIL PROTECTED]
> Subject: [PHP] Coercing a date calc -
Nabil,
That is one way but it means that Jay would have to use a form and not a
link.
You could set a cookie. That would work, but it relies on the user allowing
cookies.
George
> -Original Message-
> From: nabil [mailto:[EMAIL PROTECTED]
> Sent: 21 June 2003 2:58 pm
> To: [EMAIL PROTEC
use hidden field (pure html) and then u have it as $yourhiddenfield on the
next page even u have the register global off..
Nabil
"Jay Fitzgerald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have been searching for an answer to this for a couple of hours now and
> cant find an
If you don't want them seen anywhere, then you've got to use
sessions.
Thomas
On Sat, 21 Jun 2003 08:53:12 -0500 [EMAIL PROTECTED] (Jay Fitzgerald) wrote:
> I have been searching for an answer to this for a couple of hours now and
> cant find anything. I believe that there is a secure way of
I have been searching for an answer to this for a couple of hours now and
cant find anything. I believe that there is a secure way of doing this but
I think my brain is having a momentary lapse...
I have these variables:
$eventid = "1";
$age = "15";
Is there a way to pass these variables to the
Hi all,
I've just written this function:
$term='Michaelmas';
function f_week($w,$t)
{
$P=7*($w-1);
if( $t == 'Michaelmas'){
$D = 06;
$M = 10;
$Y = 2003;
} else {
$D = 12;
$M = 01;
Here is a class that you could use.
http://phpmailer.sourceforge.net/
Joseph
"Chinmoy Barua" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hello Everybody,
>
> I don't have sendmail/qmail on my web server where i
> installed PHP. But I want to send mails from web
> server using
> From: "czamora" <[EMAIL PROTECTED]>
>
> I'm sending emails to the subscribers of my site using mail() with a fourth
> parameter to specify the From: and Reply-To: headers. They seem to be sent
> correctly and the users may reply to them and I get the replies in the
> mailbox identified by these
Hi there,
I'm sending emails to the subscribers of my site using mail() with a fourth
parameter to specify the From: and Reply-To: headers. They seem to be sent
correctly and the users may reply to them and I get the replies in the
mailbox identified by these headers.
The problem is some email add
Thanks,
Is it better to use that function before the INSERT query and save it to the
database like that or use that nl2br() function while displaying the results
of the SELECT query,
Thanks agian.
Artoo
"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
>
Something like this...
Add the following into a .htaccess file for your domain(s)
php_value SMTP smtp.yourhost.com
On 6/21/03 7:51 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> how do you do this please explain
I think you can do this with an .htaccess file instead of the php.ini file
:)
On 6/21/03 6:29 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> From: Chinmoy Barua <[EMAIL PROTECTED]>
> Date: Fri, 20 Jun 2003 23:46:06 -0700 (PDT)
> To: [EMAIL PROTECTED]
> Subject: MAIL( ) - Send mail using an
Can someone let me know how to return TWO variables from a function
I tried:
return $var1, $var2;
But I get parse errors and other errors.
Thanks!
And what about highlighting the whole word which contains the searched term.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 21, 2003 12:31 PM
Subject: [PHP] search-and-highlight issue ("byt tes")
> hello!
>
> i have a problem with a search-an
Hi,
See the manual nl2br() function.
http://www.php.net/manual/en/function.nl2br.php
Cheers,
Catalin
"Artoo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey,
>
> How do you save the data from a TEXTAREA of a form into a mysql database
so
> that when you retrieve th
hello!
i have a problem with a search-and-highlight script (see code below):
a search for "byt tes" matches entries that contain "bytes" but only
highlights "byt"*.
*) because after the first search term ("byt") is found the line is modified
into bytes and therefore the secound search
term ("tes
> Hey all,
>
> How do you reduse an image while keeping the same aspect ratio so not to
> distort the image
>
> Thanks
Original image: x - 800 y - 600
New size: x1 -100 y1 - ?
y1 = 600*100/800 = 75
formula is: y1 = y*x1/x
the same if you want to find x1 when know y1.
--
PHP General Mailing L
php-general Digest 21 Jun 2003 10:29:11 - Issue 2130
Topics (messages 152352 through 152375):
Chomp, Chomp, Chomp
152352 by: Sparky Kopetzky
152353 by: Sparky Kopetzky
152354 by: Lars Torben Wilson
152356 by: Lars Torben Wilson
152357 by: Aaron Axelsen
On Sat, 2003-06-21 at 00:51, Justin French wrote:
> I'm with Steve on this. Call them (the numerous "hacks" mentioned in this
> thread) deterrents if you like, but there is NO WAY to secure images.
>
> You can brand them with a big watermark, and make sure your copyright and
> terms of use notice
Thank you the problem is solved, I just downloaded php_gd2.dll from
gd site and inabled it in php.ini Now everything is working as it
should.
Yury
On 19 Jun 2003 at 17:24, Andrei BEJENARU wrote:
>
> "Yury B ." <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> > I need to
Hey all,
How do you reduse an image while keeping the same aspect ratio so not to
distort the image
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm with Steve on this. Call them (the numerous "hacks" mentioned in this
thread) deterrents if you like, but there is NO WAY to secure images.
You can brand them with a big watermark, and make sure your copyright and
terms of use notice are prominent on the page, but the nature of the web is
tha
Hey,
How do you save the data from a TEXTAREA of a form into a mysql database so
that when you retrieve the data later you get the same format that the user
entered
EXAMPLE
user enters the following and cliks save
Line 1 testing
Line 2 TEST
Line 4 test
line 5 test
test
testing
result when d
You possibly have a select list box named 'title[]' remove the brackets []
and rename the list box 'title'. That should work.
-Naintara
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Tirnovanu Aurel
Sent: Saturday, June 21, 2003 12:28 PM
To: [EMAIL PROTECTED
Can anyone tell why this script:
$query = "INSERT INTO mos_articles (catid, title, content, date, author,
approved, published) VALUES
('5','$title','$content','$data','$author','1','1')";
$result = mysql_query($query);
add in title field "array" and not the input.
--
PHP General Mailing
65 matches
Mail list logo